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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040d214
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411ff5
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411ff5
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x411f30
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x411f3e
mov eax, dword [eax + 4]
jmp 0x411f41
add eax, 4
lea edx, [ebp - 4]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411ff0
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 0x18], ebx
lea edi, [esi + 4]
jb 0x411f71
mov eax, dword [edi]
jmp 0x411f73
mov eax, edi
lea ecx, [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411fe5
cmp dword [ebp - 8], 1
jne 0x411fe5
push dword [ebp + 0x18]
call fcn.004effa0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x411fe5
push dword [ebp + 0x18]
push ebx
push eax
call fcn.00502e80
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x411fb6
mov edi, dword [edi]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 8]
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411fdc
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.00402a45
mov byte [ebp + 0xf], 1
push dword [ebp + 8]
call fcn.005031d4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x411ff7
xor al, al
pop ebx
leave
ret 0x14
Function at 0x41224b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00411ec0
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412356
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412356
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412280
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x41228e
mov eax, dword [eax + 4]
jmp 0x412291
add eax, 4
lea edx, [ebp - 4]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412351
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 8], ebx
lea edi, [esi + 4]
jb 0x4122c1
mov eax, dword [edi]
jmp 0x4122c3
mov eax, edi
lea ecx, [ebp + 8]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412346
cmp dword [ebp - 8], 3
jne 0x412346
push dword [ebp + 8]
call fcn.004effa0
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x412346
push dword [ebp + 8]
push ebx
push eax
call fcn.00502e80
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x412306
mov edi, dword [edi]
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41233f
cmp dword [ebp + 8], ebx
jbe 0x41233b
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.004121f1
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x412323
mov byte [ebp + 0xf], 1
push esi
call fcn.005031d4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x412358
xor al, al
pop ebx
leave
ret 0x14
Function at 0x41235d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x52ad88
call fcn.00502c17
mov eax, dword [ebp + 0x40c]
mov esi, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x410]
xor ebx, ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ebx
call fcn.004027da
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x412477
cmp dword [esi + 0x14], ebx
je 0x412477
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x4123ce
mov eax, 0x108
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x4123dc
mov esi, dword [esi + 4]
jmp 0x4123df
add esi, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412469
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00502e80
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
mov edi, 0x400
push edi
lea eax, [ebp]
push eax
mov dword [ebp - 0x10], ebx
push ebx
jmp 0x412454
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.004020cc
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004028ab
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402a66
inc dword [ebp - 0x10]
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x41241e
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040280c
jmp 0x412483
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040280c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.00402899
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00502c08
add ebp, 0x404
leave
ret 0x10
Function at 0x41c970
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set current directory
Write file on windows

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x64
mov eax, 0x52c0ed
call fcn.00502c17
xor edi, edi
mov dword [ebp - 0x10], ecx
cmp dword [ecx + 0x24], edi
je 0x41c9a5
mov al, 1
jmp 0x41cb5b
mov dword [ebp - 0x1c], edi
call fcn.004ef450
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00437fc3
pop ecx
push edi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call fcn.004097e2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
call fcn.0041c375
pop ecx
pop ecx
mov bl, al
neg bl
push edi
sbb bl, bl
push 1
lea ecx, [ebp - 0x54]
inc bl
mov byte [ebp - 4], 0
call fcn.004096ec
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402a66
test bl, bl
je 0x41ca0b
xor al, al
jmp 0x41cb5b
push 0x54124c
push 0x73
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x41cb50
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
je 0x41cb50
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, edi
jbe 0x41cb50
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x41cb50
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.0041c8a8
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 2
jb 0x41ca77
mov eax, dword [eax + 4]
jmp 0x41ca7a
add eax, 4
push 0x5424b0
push eax
call fcn.00504520
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00402a66
cmp ebx, edi
je 0x41cb50
push ebx
push 1
push dword [ebp - 0x14]
push esi
call fcn.005039ee
push ebx
call fcn.00503ca9
mov esi, 0x104
push esi
lea eax, [ebp]
push edi
push eax
call fcn.00502e80
add esp, 0x20
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x28]
call fcn.00402a45
lea eax, [ebp - 0x38]
push eax
call fcn.00438275
pop ecx
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 3
jb 0x41cafb
mov eax, dword [eax + 4]
jmp 0x41cafe
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402a66
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.0041c8a8
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], 4
jb 0x41cb31
mov eax, dword [eax + 4]
jmp 0x41cb34
add eax, 4
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x70]
mov dword [esi + 0x24], eax
call fcn.00402a66
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 0x24], edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00502c08
add ebp, 0x108
leave
ret
Function at 0x41cb7e
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x52bcce
call fcn.00502c17
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41cb9e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x24], 0
cmp dword [esi + 0x3c], 0
je 0x41cbc3
lea edi, [esi + 0x28]
cmp dword [edi + 0x18], 0x10
jb 0x41cbb2
mov eax, dword [edi + 4]
jmp 0x41cbb5
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040d214
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041c8a8
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x41cbdd
mov eax, dword [eax + 4]
jmp 0x41cbe0
add eax, 4
push eax
call fcn.0050385c
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402a66
call fcn.00502cef
ret

Function at 0x41e7cd
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x41e7f7
push esi
mov al, byte [edx]
xor al, byte [ecx]
shr dword [ecx], 8
mov esi, dword [ecx]
movzx eax, al
mov eax, dword [eax*4 + 0x583388]
xor eax, esi
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0xc]
jb 0x41e7d8
pop esi
ret 8

Function at 0x41e88b
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x583788], 0
jne 0x41e8ed
push esi
push edi
mov byte [ebp - 4], 0
mov esi, 0x80000000
xor eax, eax
mov cl, 0x80
mov dl, byte [ebp - 4]
test dl, cl
je 0x41e8b0
xor eax, esi
test esi, eax
je 0x41e8bd
add eax, eax
xor eax, 0x4c11db7
jmp 0x41e8bf
add eax, eax
shr cl, 1
jne 0x41e8a7
push eax
call fcn.0041e74a
push dword [ebp - 4]
mov edi, eax
call fcn.0041e76e
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x583388], edi
jne 0x41e8a3
pop edi
mov byte [0x583788], 1
pop esi
leave
ret

Function at 0x420efb
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x52cb0e
call fcn.00502c4a
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x420f37
cmp dword [eax + 0x18], 0x10
jb 0x420f1f
mov eax, dword [eax + 4]
jmp 0x420f22
add eax, 4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
jmp 0x420f54
cmp dword [eax + 0x18], 0x10
jb 0x420f42
mov eax, dword [eax + 4]
jmp 0x420f45
add eax, 4
push 0x80
jmp 0x420f24
call fcn.00502cef
ret
Function at 0x421d86
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x7c]
xor edx, edx
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebx], edx
je 0x421eb5
cmp dword [edi + 0x14], edx
je 0x421eb5
cmp eax, edx
je 0x421eb5
cmp esi, edx
je 0x421eb5
cmp dword [0x583a88], edx
jne 0x421e1b
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00502e80
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2c], 6
mov ecx, dword [ebp - 0x38]
mov dword [0x583a88], 2
jb 0x421e1b
mov dword [0x583a88], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x421e26
mov eax, dword [ecx + 4]
jmp 0x421e29
lea eax, [ecx + 4]
push dword [0x583a88]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x421eb5
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x421e4e
mov edi, dword [edi + 4]
jmp 0x421e51
add edi, 4
movzx ecx, word [ebx]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x421ea7
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421ea7
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.004effa0
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x421ea7
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.00503f50
add esp, 0xc
mov byte [ebp - 0x31], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x31]
jmp 0x421eb7
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00502c08
add ebp, 0x68
leave
ret 0x10
Function at 0x427fa2
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [eax + edi + 8], ebx
je 0x427fc1
xor al, al
jmp 0x4280cd
push 0x542fd8
push ebx
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x427fba
push esi
lea eax, [ebp - 0x2c]
push eax
push 2
push ebx
mov ecx, edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.0041eea5
mov ecx, eax
call fcn.0041e78e
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.0041eea5
lea eax, [esi + 1]
push eax
call fcn.004effa0
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x4280bf
mov ecx, dword [ebp + 8]
push esi
push 0xffffffffffffffff
push edi
call fcn.0041ef1b
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
mov byte [edi + esi], bl
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [ebp + 8], ebx
call edi
test eax, eax
jne 0x428051
push 2
pop eax
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call edi
cmp dword [ebp - 8], ebx
jbe 0x4280b6
push dword [ebp - 8]
call fcn.004effa0
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4280b6
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 1
jne 0x4280ad
push ebx
push 7
push dword [ebp - 8]
push dword [ebp - 0x10]
push 0x10001
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
jne 0x4280ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp - 0x10]
call fcn.005031d4
pop ecx
push dword [ebp - 0xc]
call fcn.005031d4
pop ecx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x42ba7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x52df58
call fcn.00502c4a
mov ecx, dword [ebp + 0x148]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
call fcn.004020b7
xor edi, edi
inc edi
push 2
pop esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.0046adb0
cmp eax, 0x800
jl 0x42bada
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.004624d0
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x42baf3
mov eax, dword [eax + 4]
jmp 0x42baf6
add eax, 4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
mov ebx, eax
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call fcn.00402a66
test ebx, ebx
je 0x42bc0f
push 0x54124c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42bc0f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42bc0f
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00502fd7
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42bc0f
push esi
push 0
push eax
call fcn.00502e80
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.00503f50
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.00424b10
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x42bb98
mov eax, dword [eax + 4]
jmp 0x42bb9b
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040b989
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402a66
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b8df
lea esi, [eax + 1]
test esi, esi
jbe 0x42bc03
push esi
call fcn.00502fd7
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x42bc03
push esi
push 0
push ebx
call fcn.00502e80
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b8b3
test al, al
je 0x42bc03
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00402a45
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040b765
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x42bc23
push dword [ebp - 0x14]
call fcn.00502efa
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x42bc31
push dword [ebp - 0x1c]
call fcn.00502efa
pop ecx
cmp dword [ebp - 0x18], esi
je 0x42bc3f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.00502c08
add ebp, 0x140
leave
ret 4
Function at 0x43956c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x15c
lea ebp, [esp - 4]
mov eax, dword [0x581094]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push 0x90
mov eax, 0x530346
call fcn.00502c4a
mov esi, dword [ebp + 0x168]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004027da
push dword [ebp + 0x16c]
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00439441
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x439600
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0040280c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00402899
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402899
mov eax, esi
jmp 0x439774
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x439744
push edi
lea ecx, [ebp - 0x30]
call fcn.00406d6e
push str..
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406761
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x439642
mov eax, dword [eax + 4]
jmp 0x439645
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push ebx
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402a66
cmp esi, 0xffffffff
je 0x43974b
lea eax, [ebp + 0x2c]
push eax
call fcn.00502440
pop ecx
test eax, eax
jbe 0x439712
cmp byte [ebp + 0x2c], 0x2e
je 0x439712
test byte [ebp], 0x10
je 0x439712
push edi
lea ecx, [ebp - 0x30]
call fcn.00406d6e
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00462b70
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 5
call fcn.00406761
add esp, 0xc
push 0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00402a66
lea eax, [ebp + 0x140]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00462b70
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.004028ab
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00402a66
push 0
push ebx
lea ecx, [ebp + 0x140]
mov byte [ebp - 4], 3
call fcn.00402a66
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43966a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc edi
jmp 0x439604
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.0040280c
or dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402899
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402899
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x15c]
xor ecx, ebp
call fcn.00502c08
add ebp, 0x160
leave
ret
Function at 0x43d0a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 8]
call fcn.0043ce1d
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x43d0c4
xor al, al
jmp 0x43d134
cmp dword [0x585294], 0x10
mov eax, dword [0x585280]
mov dword [ebp + 8], ebx
jae 0x43d0da
mov eax, 0x585280
lea ecx, [ebp + 8]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43d0c0
cmp dword [0x5852b0], 0x10
mov eax, dword [0x58529c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 4
jae 0x43d10b
mov eax, 0x58529c
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43d129
cmp esi, dword [ebp - 4]
sete bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x43f658
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x43f6e5
cmp dword [0x585678], 0x10
mov eax, dword [0x585664]
jae 0x43f68c
mov eax, 0x585664
push ebx
push esi
push 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x43f6de
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43f6db
cmp dword [ebp - 0x20], 4
je 0x43f6d7
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x43f6db
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x43f6eb
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x43f769
cmp dword [0x585678], 0x10
mov eax, dword [0x585664]
jae 0x43f71f
mov eax, 0x585664
push ebx
push esi
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x43f762
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x43f75f
cmp dword [ebp - 0x20], 4
jne 0x43f75f
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret