joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1031ffe
Capabilities:
Encrypt data using dpapi

Disassembly:
push reloc.KERNEL32.dll_CreateThread
push 0x1004ac8
call fcn.01032098
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1031ee4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], reloc.msvcrt.dll___p__fmode
jne 0x1031ee4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1031efc
cmp eax, 0x20b
je 0x1031ee9
mov dword [ebp - 0x1c], edi
jmp 0x1031f10
cmp dword [ecx + 0x84], 0xe
jbe 0x1031ee4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1031f0a
cmp dword [ecx + 0x74], 0xe
jbe 0x1031ee4
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [reloc.msvcrt.dll___p__fmode], 0xffffffff
or dword [reloc.msvcrt.dll___p__fmode], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [reloc.msvcrt.dll___p__fmode]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [reloc.msvcrt.dll___p__fmode]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [reloc.msvcrt.dll___p__fmode], eax
call fcn.0102bf74
cmp dword [reloc.msvcrt.dll___p__fmode], edi
jne 0x1031f6d
push fcn.0102bf74
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0103247d
push 0x103f050
push 0x103f04c
call fcn.01032472
mov eax, dword [reloc.msvcrt.dll___p__fmode]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1041954]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103f048
push 0x103f000
call fcn.01032472
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1031fd3
or dword [ebp - 4], reloc.msvcrt.dll___p__fmode
mov eax, 0xff
jmp 0x103208d
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1032021
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1031fef
cmp ax, 0x22
jne 0x1031fdc
cmp word [esi], 0x22
jne 0x1031ffa
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1032008
cmp ax, 0x20
jbe 0x1031ff5
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x103202e
movzx eax, word [ebp - 0x50]
jmp 0x1032031
cmp word [esi], 0x20
jbe 0x1031ffa
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1032021
push reloc.ADVAPI32.dll_RegCreateKeyW
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1032052
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1032087
or dword [ebp - 4], reloc.msvcrt.dll___p__fmode
mov eax, esi
call fcn.010320d3
ret
Function at 0x10339bf
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push 0xf003f
push 0
push 0x1001dd8
push 0x80000002
call fcn.01036aca
test eax, eax
mov dword [ebp - 8], eax
jne 0x10339ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1033a7c
cmp dword [ebp + 8], 0
mov eax, 0x1001fc8
je 0x10339bb
mov eax, 0x1005258
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
jne 0x1033a62
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
push 0x10051d0
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033a5a
push dword [esi + 0xc]
push 0x10051b4
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033a5a
push dword [esi + 0x10]
push 0x1005198
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033a5a
push dword [esi + 0x14]
push 0x100517c
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033a5a
push dword [esi + 0x18]
push 0x1005168
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033a5a
mov esi, dword [esi + 8]
test esi, esi
jne 0x1033a48
mov esi, 0x1001818
push esi
push reloc.WINSPOOL.DRV_DocumentPropertiesW
push dword [ebp - 4]
call fcn.01036ed3
test eax, eax
jne 0x1033a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1033a73
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x1033ab6
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push 0x10052b0
push 0x80000002
mov dword [ebp - 8], ebx
call fcn.01036aca
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x1033abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1033b3d
push esi
mov esi, dword [ebp + 8]
push 0x1005294
push edi
mov dword [esi], 0x10
call fcn.01036d1f
push 0x100527c
push edi
mov dword [esi + 4], eax
call fcn.01036d1f
cmp dword [esi + 4], ebx
mov dword [esi + 8], eax
mov edi, 0x1005160
jne 0x1033af5
cmp eax, ebx
jne 0x1033af5
mov dword [esi + 0xc], ebx
jmp 0x1033b06
push edi
push 0x100526c
push dword [ebp - 4]
call fcn.01036cdf
mov dword [esi + 0xc], eax
cmp dword [esi + 4], ebx
jne 0x1033b10
cmp dword [esi + 8], ebx
je 0x1033b30
push dword [esi + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1033b30
push dword [esi + 0xc]
mov dword [ebp - 8], reloc.ADVAPI32.dll_SetThreadToken
call fcn.01035abf
mov dword [esi + 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1033bf4
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push 0xf003f
push 0
push 0x1001dd8
push 0x80000002
call fcn.01036aca
mov ebx, eax
test ebx, ebx
jne 0x1033b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1033bfb
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x1005300
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
jne 0x1033be3
mov esi, dword [ebp + 8]
push dword [esi + 4]
push 0x1005294
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033bdb
push dword [esi + 8]
push 0x100527c
push dword [ebp - 4]
call fcn.01036e2d
test eax, eax
je 0x1033bdb
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x1033bc9
mov esi, 0x1001818
push esi
push 0x100526c
push dword [ebp - 4]
call fcn.01036ed3
test eax, eax
jne 0x1033be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1033bf4
push dword [ebp - 4]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10348bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov ecx, dword [ebp + 0x1c]
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
mov dword [ebp - reloc.msvcrt.dll___p__fmode], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], ecx
jne 0x10348b8
push esi
push eax
call fcn.01034544
test eax, eax
je 0x10348b8
mov eax, 0x80004005
jmp 0x103492a
push dword [esi]
lea eax, reloc.msvcrt.dll___p__fmode
push 0x1004f20
push 0x1004ffc
push eax
call fcn.010320f6
add esp, 0x10
push 0xf003f
push 1
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 0x80000002
call fcn.01036aca
test eax, eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
jne 0x10348fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x103492a
push dword [ebp - 0x110]
push dword [ebp - 0x108]
push ebx
push edi
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi]
push eax
call fcn.01032bc2
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x28
Function at 0x1035a22
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x1035a2d
mov dword [reloc.msvcrt.dll___p__fmode], eax
xor eax, eax
inc eax
pop ebp
ret 4

Function at 0x103639a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push dword [esi + 4]
call fcn.01035abf
push dword [esi + 8]
call fcn.01035abf
push dword [esi + 0xc]
call fcn.01035abf
push dword [esi + 0x10]
call fcn.01035abf
push dword [esi + 0x14]
call fcn.01035abf
push dword [esi + 0x18]
call fcn.01035abf
push dword [esi + 0x1c]
call fcn.01035abf
push dword [esi + 0x20]
call fcn.01035abf
push dword [esi + 0x24]
call fcn.01035abf
push dword [esi + 0x28]
call fcn.01035abf
push dword [esi + 0x2c]
call fcn.01035abf
push dword [esi + 0x30]
call fcn.01035abf
push dword [esi + 0x34]
call fcn.01035abf
push dword [esi + 0x38]
call fcn.01035abf
push dword [esi + 0x3c]
call fcn.01035abf
push dword [esi + 0x40]
call fcn.01035abf
cmp dword [ebp + 0xc], 0
je 0x10363ac
push esi
call fcn.01035abf
pop esi
pop ebp
ret 8

Function at 0x1036510
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.0103a052
test eax, eax
jne 0x103653f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x103659d
push esi
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call fcn.0103a06a
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1036563
call esi
mov edi, eax
cmp edi, 0x7a
jne 0x103659c
push dword [ebp - 8]
call fcn.01035a36
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1036577
push 8
pop edi
jmp 0x103659c
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
push eax
push 2
push dword [ebp - 4]
call fcn.0103a06a
test eax, eax
jne 0x103659c
call esi
push dword [ebp - 0xc]
mov edi, eax
call fcn.01035abf
mov dword [ebp - 0xc], ebx
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], ebx
pop edi
pop ebx
je 0x10365b3
push dword [ebp - 4]
call fcn.0103a03a
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x103674e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1630
call fcn.01032130
mov eax, dword [reloc.msvcrt.dll___p__fmode]
and dword [ebp - reloc.msvcrt.dll___p__fmode], 0
and dword [ebp - reloc.msvcrt.dll___p__fmode], 0
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
lea edi, reloc.msvcrt.dll___p__fmode
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x30c
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea esi, reloc.msvcrt.dll___p__fmode
call fcn.01036454
test eax, eax
je 0x10367ae
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], 0xf000c
call fcn.0103a052
test eax, eax
jne 0x10367b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1036879
push ebx
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 0x1000
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 2
push dword [ebp - 0x1620]
call fcn.0103a06a
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x103681d
call edi
mov ebx, eax
cmp ebx, 0x7a
jne 0x1036852
push dword [ebp - 0x1624]
call fcn.01035a36
mov esi, eax
test esi, esi
je 0x103684e
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp - 0x1624]
push esi
push 2
push dword [ebp - 0x1620]
call fcn.0103a06a
test eax, eax
je 0x103684e
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1036830
test al, 8
jne 0x1036852
or eax, 8
jmp 0x1036837
test al, 8
je 0x1036852
and eax, 0xfffffff7
push 0
push esi
push 2
mov dword [esi + 0x34], eax
push dword [ebp - 0x1620]
call fcn.0103a076
test eax, eax
jne 0x1036852
call edi
mov ebx, eax
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 0
je 0x1036866
push dword [ebp - 0x1620]
call fcn.0103a03a
lea eax, reloc.msvcrt.dll___p__fmode
cmp esi, eax
je 0x1036876
push esi
call fcn.01035abf
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 4

Function at 0x10368e3
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
and dword [ebp - 0x5c], 0
push esi
push edi
push 0x14
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
mov esi, 0x4040
xor edi, edi
call fcn.010365bf
test eax, eax
mov dword [ebp - 4], eax
jne 0x10368c0
cmp dword [ebp - 8], eax
jne 0x103692c
call fcn.01036a72
test eax, eax
mov eax, dword [ebp + 8]
jne 0x10368d3
mov esi, 0x4048
mov edi, eax
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
push 2
push 0
mov dword [ebp - 0x50], 0x100215c
mov dword [ebp - 0x4c], 0x100216c
mov dword [ebp - 0x38], 0x1006ecc
mov dword [ebp - 0x34], 0x1006ec4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x54], edi
call fcn.0103a082
test eax, eax
jne 0x103691e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1036929
push eax
call fcn.0103a03a
call fcn.010366d2
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x10369e7
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, reloc.msvcrt.dll___p__fmode
rep stosd dword es:[edi], eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x1036a61
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 2
jne 0x1036a61
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 5
jb 0x1036a61
mov eax, dword [ebp - 8]
test al, 0x40
je 0x1036a32
test al, 1
je 0x1036a28
push 0x20
jmp 0x1036a5e
cmp byte [ebp - 6], 3
jne 0x1036a32
push 0x40
jmp 0x1036a5e
test ah, 2
je 0x1036a3c
xor eax, eax
inc eax
jmp 0x1036a63
test al, 2
je 0x1036a44
push 8
jmp 0x1036a5e
test al, al
jns 0x1036a4c
push 0x10
jmp 0x1036a5e
cmp byte [ebp - 6], 1
jne 0x1036a56
push 2
jmp 0x1036a5e
cmp byte [ebp - 6], 3
jne 0x1036a61
push 4
pop eax
jmp 0x1036a63
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01031d91
leave
ret

Function at 0x1036b38
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
je 0x1036b02
cmp eax, esi
jne 0x1036ae7
mov eax, 0xf003f
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x1036b1d
cmp eax, esi
jne 0x1036b0b
mov eax, 0xf003f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x1036b2c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1036b36
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop esi
leave
ret 0x10

Function at 0x1036ea3
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
cmp eax, reloc.msvcrt.dll___p__fmode
jne 0x1036eb0
cmp dword [ebp + 0x14], 0
je 0x1036eae
push dword [ebp + 0x14]
call fcn.010321f6
pop ecx
lea eax, [eax + eax + 2]
jmp 0x1036eb0
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret 0x14
Function at 0x103709e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [reloc.msvcrt.dll___p__fmode]
mov ecx, dword [ebp + 0xc]
push esi
lea edx, reloc.msvcrt.dll___p__fmode
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
xor esi, esi
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], ecx
mov dword [ebp - reloc.msvcrt.dll___p__fmode], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x1037066
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10370f9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1037085
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp - 0x210]
call fcn.01037017
test eax, eax
je 0x10370f6
push esi
push esi
push esi
push esi
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], 0x104
call edi
cmp eax, esi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
je 0x103706f
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 0x103
jne 0x10370ea
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
je 0x10370e5
push eax
jmp 0x10370f0
xor eax, eax
inc eax
jmp 0x10370f8
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.01031d91
leave
ret 8
Function at 0x10374ec
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [reloc.msvcrt.dll___p__fmode]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
xor ebx, ebx
push 9
xor eax, eax
cmp edx, ebx
mov word [ebp - 0x2c], bx
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], edx
mov dword [ebp - reloc.msvcrt.dll___p__fmode], esi
stosw word es:[edi], ax
jne 0x1037541
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, reloc.msvcrt.dll___p__fmode
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
push 0x5c
push dword [ebp - 0x444]
call fcn.010321a2
cmp eax, ebx
pop ecx
pop ecx
je 0x1037566
cmp word [eax + 2], bx
jne 0x1037566
push 1
push ebx
push eax
call fcn.01039ff2
add esp, 0xc
cmp esi, ebx
jne 0x1037574
mov dword [ebp - reloc.TAPI32.dll_lineTranslateAddressW], 0x1001a80
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], ebx
jne 0x1037586
mov dword [ebp - 0x448], 0x1001818
cmp dword [ebp + 8], ebx
je 0x10375a3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x2c]
push 0x1006f80
push eax
call fcn.010320f6
add esp, 0xc
mov dword [ebp - reloc.msvcrt.dll___p__fmode], ebx
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x103768d
mov esi, dword [ebp - reloc.msvcrt.dll___p__fmode]
push dword [ebp - 0x450]
mov eax, dword [ebp - reloc.msvcrt.dll___p__fmode]
xor edi, edi
shld edi, esi, 0x18
shr eax, 8
xor ecx, ecx
or edi, ecx
push edi
shl esi, 0x18
or esi, eax
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x448]
mov eax, dword [ebp + 0x1c]
push dword [ebp - 0x444]
dec eax
push 0x1006f60
push eax
push dword [ebp - 0x44c]
call fcn.01032196
add esp, 0x24
test eax, eax
jl 0x103766e
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, reloc.msvcrt.dll___p__fmode
jne 0x1037672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1037656
cmp eax, 0x50
jne 0x103768d
inc dword [ebp - reloc.msvcrt.dll___p__fmode]
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 0x100
jb 0x10375a9
jmp 0x1037679
push reloc.KERNEL32.dll_GetCurrentThread
jmp 0x1037687
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], 0x100
jne 0x1037693
push 4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
xor edx, edx
jmp 0x1037697
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x18
Function at 0x1037cbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 1
push 8
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1037d24
call esi
cmp eax, 0x3f0
mov dword [ebp - 4], eax
jne 0x1037db5
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1037d24
call esi
mov dword [ebp - 4], eax
jmp 0x1037db5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 1
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1037d49
call esi
cmp eax, 0x7a
mov dword [ebp - 4], eax
jne 0x1037db4
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call fcn.01035a36
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x1037daf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [ebp - 8]
call edi
test eax, eax
je 0x1037daf
mov edi, dword [ebx]
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1037d83
mov dword [ebp - 4], reloc.msvcrt.dll___p__fmode
jmp 0x1037db4
push edi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ebx, eax
push ebx
call fcn.01035a36
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1037da2
mov dword [ebp - 4], reloc.ADVAPI32.dll_RevertToSelf
jmp 0x1037db4
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
jne 0x1037db4
call esi
mov dword [ebp - 4], eax
pop edi
push dword [ebp - 0x14]
call fcn.01035abf
xor esi, esi
cmp dword [ebp - 8], esi
je 0x1037dcd
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x1037de6
push dword [ebp - 0xc]
call fcn.01035abf
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret