joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push 0x80000003
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x10003d79
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.10001000
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x10003d6f
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x10003d21
cmp dword [ebp - 8], ebx
jbe 0x10003cf9
inc dword [ebp - 4]
xor esi, esi
jmp 0x10003d43
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x10003d67
push dword [ebp - 0x14]
call fcn.10001015
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.10001000
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x10003cf5
push 8
pop esi
jmp 0x10003d67
cmp esi, edi
jne 0x10003d5d
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.100037e1
mov esi, eax
cmp esi, edi
jne 0x10003d5d
push edi
push dword [0x1000d45c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10003cc3
jmp 0x10003d67
cmp esi, 0x103
jne 0x10003d67
xor esi, esi
push dword [ebp - 0x18]
call fcn.10001015
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x10004126
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
push esi
mov esi, eax
je 0x1000416a
or eax, 0xffffffff
test esi, esi
je 0x10004166
push edi
mov cl, byte [edx]
movzx ecx, cl
mov edi, ecx
xor edi, eax
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x1000b2e8]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x1000b2e8]
dec esi
inc edx
test esi, esi
jne 0x10004135
pop edi
not eax
jmp 0x1000416c
xor eax, eax
not eax
pop esi
ret

Function at 0x100042f0
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x100058c9
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1000d460]
push ebx
mov dword [ebp - 8], eax
xor ebx, ebx
push edi
lea eax, [ebp - 8]
mov edx, esi
mov dword [ebp - 4], ebx
call fcn.100029a0
mov edi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 4]
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1000593d
add eax, eax
push eax
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1000593d
lea ecx, [ebp - 4]
push ecx
push eax
call edi
test eax, eax
je 0x1000592d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
call fcn.10004126
xor dword [esi], eax
push dword [ebp - 8]
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10005994
add eax, eax
push eax
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10005994
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10005986
mov eax, dword [ebp - 4]
add eax, eax
mov edx, edi
call fcn.10004126
xor dword [esi + 0xc], eax
push edi
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
cpuid
lea edi, [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
pop edi
xor eax, dword [ebp - 0x18]
pop ebx
xor dword [esi + 4], eax
leave
ret
Function at 0x10005b61
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, 0xea60
mov esi, eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
mov dword [ebp - 0xc], eax
inc eax
push eax
xor edi, edi
push edi
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x10005bb3
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x10005bb3
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x10005c6b
push 0x10005ada
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
cmp eax, 0xffffffff
je 0x10005c6b
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push edi
push 3
push edi
push edi
push 0x50
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x10005c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10005c6b
mov eax, dword [esi + 0x18]
push ebx
call fcn.100059b7
test eax, eax
jne 0x10005c6b
push esi
push 0x84404000
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, edi
mov dword [esi + 0x14], eax
je 0x10005c6b
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [ebp - 8]
push ecx
push 6
push eax
call ebx
test eax, eax
je 0x10005c6b
push 4
lea eax, [ebp - 8]
push eax
push 5
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x10005c6b
xor esi, esi
jmp 0x10005c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 4], edi
je 0x10005c88
push dword [ebp - 4]
push edi
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10005dc9
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [esi + 0x18]
push ebx
push edi
xor ebx, ebx
push 0xea60
mov dword [ebp - 8], ebx
call fcn.100059b7
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10005f79
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10005f70
cmp dword [esi], ebx
jne 0x10005f70
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
mov dword [ebp - 4], 8
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10005f70
mov edi, 0x1000
push edi
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x10005f67
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10005e87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [ebp - 4], eax
jne 0x10005ea1
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
call fcn.100059b7
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10005ea1
mov eax, dword [esi + 0x20]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10005ea1
cmp dword [ebp - 8], ebx
je 0x10005e9e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x10]
jmp 0x10005e3e
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], ebx
jne 0x10005f67
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10005f60
cmp dword [ebp - 0x10], 0xc8
jne 0x10005f60
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x60]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x58]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10005f57
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
push ebx
push ebx
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [edi + 0x14]
mov eax, dword [ebp - 8]
inc eax
push eax
push ebx
push dword [0x1000d438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x10005f4e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ebx
push dword [ebp - 8]
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov byte [edi + eax], bl
mov eax, dword [ebp - 8]
mov dword [esi], edi
mov dword [esi + 0x24], eax
jmp 0x10005f67
mov dword [ebp - 4], 8
jmp 0x10005f67
mov dword [ebp - 4], 0x10d2
jmp 0x10005f67
mov dword [ebp - 4], 0xe8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x10009859
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [esp + 4]
lea edx, [esp + 8]
int 0x2e
ret 0xc
Function at 0x10009a10
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov al, byte [esi]
push edi
xor ebx, ebx
mov byte [ecx], al
add ecx, 1
xor edi, edi
add esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea ecx, [ecx]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10009a56
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10009c13
mov eax, ebx
sub ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
jne 0x10009a88
movzx edx, byte [esi]
add esi, 1
mov ebx, 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
je 0x10009b58
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10009ab4
movzx edx, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
test eax, eax
je 0x10009b06
xor edi, edi
lea ebp, [edi + 4]
mov eax, ebx
sub ebx, 1
test eax, eax
jne 0x10009ad9
movzx edx, byte [esi]
add esi, 1
lea ebx, [eax + 7]
mov eax, edx
shr eax, 7
and eax, 1
add edx, edx
sub ebp, 1
lea edi, [eax + edi*2]
jne 0x10009ac7
test edi, edi
mov dword [esp + 0x14], esi
je 0x10009afe
mov eax, ecx
sub eax, edi
mov al, byte [eax]
jmp 0x10009c1c
mov byte [ecx], 0
jmp 0x10009c1e
movzx ebp, byte [esi]
mov edi, ebp
and edi, 1
add esi, 1
add edi, 2
shr ebp, 1
mov dword [esp + 0x14], esi
je 0x10009b42
test edi, edi
je 0x10009b4a
mov eax, ecx
sub eax, ebp
mov al, byte [eax]
mov byte [ecx], al
add ecx, 1
sub edi, 1
jne 0x10009b20
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10009c27
mov dword [esp + 0x10], 1
mov dword [esp + 0x28], ebp
mov edi, 1
jmp 0x10009c27
lea ecx, [esp + 0x14]
call fcn.10009990
test edi, edi
jne 0x10009b9e
cmp eax, 2
jne 0x10009b99
lea ecx, [esp + 0x14]
call fcn.10009990
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x10009c00
nop
mov edx, ecx
sub edx, dword [esp + 0x28]
add ecx, 1
sub eax, 1
mov dl, byte [edx]
mov byte [ecx - 1], dl
jne 0x10009b80
mov dword [esp + 0x18], ecx
jmp 0x10009c00
sub eax, 3
jmp 0x10009ba1
sub eax, 2
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx]
add ecx, 1
shl eax, 8
add eax, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.10009990
cmp esi, 0x7d00
jb 0x10009bca
add eax, 1
cmp esi, 0x500
jb 0x10009bd5
add eax, 1
cmp esi, 0x80
jae 0x10009be0
add eax, 2
test eax, eax
mov ecx, dword [esp + 0x18]
je 0x10009bfc
mov edx, ecx
sub edx, esi
mov dl, byte [edx]
mov byte [ecx], dl
add ecx, 1
sub eax, 1
jne 0x10009be8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, 1
jmp 0x10009c27
mov al, byte [esi]
add esi, 1
mov dword [esp + 0x14], esi
mov byte [ecx], al
add ecx, 1
xor edi, edi
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x10], 0
je 0x10009a40
pop edi
pop esi
mov eax, ecx
sub eax, dword [esp + 0x24]
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x401ae1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b3a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b29
cmp esi, ecx
jae 0x401b3a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b17
cmp esi, ecx
jae 0x401b3a
cmp word [esi], 0
je 0x401b3a
lfence
mov eax, esi
jmp 0x401b3c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4026b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov edi, 0x80070003
call fcn.00401cda
lea ecx, [ebp - 0x14]
call fcn.00402e1c
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x402811
and dword [ebp - 0xc], 0
or edx, 0xf003f
push ecx
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x43404c
mov dword [ebp - 8], 0x200
call fcn.0040253c
mov edi, eax
test edi, edi
jne 0x4027fc
mov eax, dword [ebp + 8]
sub eax, 1
je 0x4027b9
sub eax, 1
je 0x4027b5
sub eax, 1
je 0x402786
sub eax, 1
je 0x402777
sub eax, 3
je 0x402764
sub eax, 4
je 0x402752
mov edi, 0x8007065d
jmp 0x4027c9
push dword [ebx + 4]
lea ecx, [ebp - 0x10]
push dword [ebx]
push dword [ebp - 0x18]
call fcn.00402ceb
jmp 0x4027c7
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ebx
push dword [ebp - 0x18]
call fcn.00402d51
jmp 0x4027c7
push dword [ebx]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00402cc1
jmp 0x4027c7
mov eax, ebx
neg eax
lfence
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x4027c9
movzx edi, di
or edi, 0x80070000
jmp 0x4027c9
push 2
jmp 0x4027bb
push 1
push ebx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00402d15
mov edi, eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
test eax, eax
je 0x4027f4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x4027e8
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
test edi, edi
jne 0x4027ff
mov edi, ecx
jmp 0x4027ff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x43404c
test eax, eax
je 0x402811
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret
Function at 0x402ab5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ebx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b00
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402b53
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d5dc
cmp dword [ebp - 0xc], 0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x402b4e
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402b53
movzx esi, si
or esi, 0x80070000
jmp 0x402b53
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret 8

Function at 0x402b66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
push edx
push eax
push dword [ebx + 4]
mov dword [ebp - 8], edx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402bb1
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x402c22
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x402c1b
shr edx, 1
add edx, 1
js 0x402c35
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x402bdd
push edx
mov ecx, edi
lfence
call fcn.00402095
cmp dword [edi], 0
jne 0x402be9
mov esi, 0x8007000e
jmp 0x402c10
lea eax, [ebp - 0xc]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x402c10
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.004031a1
jmp 0x402c22
mov ecx, edi
call fcn.00401d26
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret 8
push 0x80070057
call fcn.00401a85
int3

Function at 0x403824
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x40385a
lea esi, [edi + 4]
test esi, esi
je 0x40385a
call fcn.00403784
test al, al
je 0x40385a
mov ecx, edi
call fcn.00403784
test al, al
je 0x40385a
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x40385c
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x404846
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.004015db
push eax
lea ecx, [ebp - 8]
call fcn.00401f9b
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x40488f
push edi
lea ecx, [ebp - 8]
call fcn.00402095
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.004031a1
test esi, esi
jne 0x4048b1
mov edi, 0x80004005
jmp 0x404959
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.0040522b
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.004051f2
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4048d7
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x4048d9
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403107
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.0040632c
test al, al
jne 0x404918
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404918
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0040632c
test al, al
je 0x404937
cmp ebx, 0xffffffff
je 0x40494e
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.004051f2
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004015b2
jmp 0x4048ca
test edi, edi
jle 0x404944
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.004015b2
jmp 0x404958
lea ecx, [esi - 0x10]
call fcn.004015b2
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004015b2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c871
leave
ret

Function at 0x404974
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x40499b
mov eax, 0x80070057
jmp 0x404a3e
push edi
mov ecx, esi
call fcn.00401d26
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0040d600
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x404a1f
movzx ecx, bl
cmp ecx, 0x26
jne 0x4049e0
mov edx, str.ProgramFiles
jmp 0x4049ea
cmp ecx, 0x1c
jne 0x404a0b
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00404b76
push eax
mov ecx, esi
call fcn.00401c8c
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015b2
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x404a18
xor eax, eax
inc eax
jmp 0x404a3d
lfence
mov eax, edi
jmp 0x404a3d
lea eax, [ebp - 0x20c]
push eax
call fcn.00415bdd
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401ed9
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret
Function at 0x405cde
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00404619
mov eax, dword [ebp - 0x1c]
push ebx
push esi
xor esi, esi
push esi
test eax, eax
jne 0x405d21
push esi
push esi
jmp 0x405d27
push eax
push 0x400
push esi
push esi
push esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405d41
call fcn.00408929
mov esi, eax
jmp 0x405d81
movzx ecx, byte [0x43ae81]
neg ecx
sbb ecx, ecx
and ecx, 0x43ad80
je 0x405d81
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
mov dword [ebp - 0x24], eax
call fcn.0040715f
push dword [ebx + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Started_process___u_
push eax
call fcn.00404544
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040466f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c871
leave
ret

Function at 0x406491
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4064ac
mov al, 1
jmp 0x4064ef
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040d600
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4064e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x434728
call fcn.00408b56
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4064a8
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c871
leave
ret