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

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41274b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41274b
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x4126f2
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x412700
mov eax, dword [eax + 4]
jmp 0x412703
add eax, 4
lea edx, [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41274b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412725
mov eax, dword [eax + 4]
jmp 0x412728
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41274d
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x412752
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
cmp dword [ebp + 8], ebx
je 0x41281f
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41281f
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412783
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x412791
mov eax, dword [eax + 4]
jmp 0x412794
add eax, 4
lea edx, [ebp + 0x18]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41281a
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
jb 0x4127c0
mov eax, dword [edi]
jmp 0x4127c2
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41280f
cmp dword [ebp + 8], 4
jne 0x41280f
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x4127eb
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41280f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov byte [ebp + 0xf], 1
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x412821
xor al, al
pop ebx
leave
ret 0x14
Function at 0x4128c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x412a3c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x412a3c
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x4128f4
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x412902
mov eax, dword [eax + 4]
jmp 0x412905
add eax, 4
push esi
lea edx, [ebp + 0xc]
push edx
push esi
push ecx
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412a3c
push ebx
push edi
mov dword [ebp + 0x18], esi
mov esi, dword [ebp + 0x14]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
xor bl, bl
call fcn.004034aa
jmp 0x412956
lea ecx, [ebp - 8]
call fcn.00415001
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 8]
mov dword [ebp + 0x18], eax
call fcn.00407587
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034aa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040724b
test al, al
je 0x412939
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.005041a0
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x412a2d
push edi
push 0
push eax
call fcn.00516fd0
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.004034aa
jmp 0x4129db
lea ecx, [ebp - 8]
call fcn.00415001
cmp dword [eax + 0x18], 0x10
jb 0x4129b8
mov eax, dword [eax + 4]
jmp 0x4129bb
add eax, 4
push eax
push ebx
call fcn.005185a0
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00415001
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.00407587
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034aa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040724b
test al, al
je 0x4129a5
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412a05
mov eax, dword [eax + 4]
jmp 0x412a08
add eax, 4
push dword [ebp + 0x18]
push dword [ebp + 8]
push 7
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00517324
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x412a3e
xor al, al
pop esi
leave
ret 0x14
Function at 0x412b07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040d266
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412c06
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412c06
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412b3b
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x412b49
mov eax, dword [eax + 4]
jmp 0x412b4c
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 0x412c01
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 0x412b7c
mov eax, dword [edi]
jmp 0x412b7e
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 0x412bf6
cmp dword [ebp + 8], 1
je 0x412ba2
cmp dword [ebp + 8], 2
jne 0x412bf6
push dword [ebp + 0x18]
call fcn.005041a0
pop ecx
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x412bf6
push dword [ebp + 0x18]
push ebx
push eax
call fcn.00516fd0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x412bc7
mov edi, dword [edi]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412bed
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.00402a32
mov byte [ebp + 0xf], 1
push dword [ebp + 0x10]
call fcn.00517324
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x412c08
xor al, al
pop ebx
leave
ret 0x14
Function at 0x412e5c
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.00412acc
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412f67
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412f67
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412e91
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x412e9f
mov eax, dword [eax + 4]
jmp 0x412ea2
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 0x412f62
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 0x412ed2
mov eax, dword [edi]
jmp 0x412ed4
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 0x412f57
cmp dword [ebp - 8], 3
jne 0x412f57
push dword [ebp + 8]
call fcn.005041a0
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x412f57
push dword [ebp + 8]
push ebx
push eax
call fcn.00516fd0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x412f17
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 0x412f50
cmp dword [ebp + 8], ebx
jbe 0x412f4c
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.00412e02
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x412f34
mov byte [ebp + 0xf], 1
push esi
call fcn.00517324
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x412f69
xor al, al
pop ebx
leave
ret 0x14
Function at 0x412f6e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x5a1574]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x541e00
call fcn.00516d67
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.004027d0
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x413088
cmp dword [esi + 0x14], ebx
je 0x413088
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x412fdf
mov eax, pe_nt_image_headers32
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x412fed
mov esi, dword [esi + 4]
jmp 0x412ff0
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 0x41307a
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00516fd0
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 0x413065
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.004028a1
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402a53
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 0x41302f
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.00402802
jmp 0x413094
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.00402802
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.0040288f
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.00516d58
add ebp, 0x404
leave
ret 0x10

Function at 0x420e9f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x420ec9
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 + 0x5a3e58]
xor eax, esi
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0xc]
jb 0x420eaa
pop esi
ret 8

Function at 0x420f5d
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5a4258], 0
jne 0x420fbf
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 0x420f82
xor eax, esi
test esi, eax
je 0x420f8f
add eax, eax
xor eax, 0x4c11db7
jmp 0x420f91
add eax, eax
shr cl, 1
jne 0x420f79
push eax
call fcn.00420e1c
push dword [ebp - 4]
mov edi, eax
call fcn.00420e40
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x5a3e58], edi
jne 0x420f75
pop edi
mov byte [0x5a4258], 1
pop esi
leave
ret
Function at 0x424061
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x5441ba
call fcn.00516d67
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call fcn.00409824
push esi
push esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, str.windir
push edi
mov dword [ebp - 0x18], 1
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x4240d7
push eax
call fcn.005041a0
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.00516fd0
add esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00423e10
push dword [ebp - 0x10]
call fcn.00517324
pop ecx
cmp dword [ebx + 0x14], 0
je 0x4240e9
push str.system32cmd.exe
mov ecx, ebx
call fcn.00424048
mov eax, ebx
call fcn.00516e3f
ret

Function at 0x4240f1
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x5441d5
call fcn.00516d9a
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x42412d
cmp dword [eax + 0x18], 0x10
jb 0x424115
mov eax, dword [eax + 4]
jmp 0x424118
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 0x42414a
cmp dword [eax + 0x18], 0x10
jb 0x424138
mov eax, dword [eax + 4]
jmp 0x42413b
add eax, 4
push 0x80
jmp 0x42411a
call fcn.00516e3f
ret
Function at 0x4251a5
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x5a1574]
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 0x4252d4
cmp dword [edi + 0x14], edx
je 0x4252d4
cmp eax, edx
je 0x4252d4
cmp esi, edx
je 0x4252d4
cmp dword [0x5a4574], edx
jne 0x42523a
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00516fd0
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 [0x5a4574], 2
jb 0x42523a
mov dword [0x5a4574], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x425245
mov eax, dword [ecx + 4]
jmp 0x425248
lea eax, [ecx + 4]
push dword [0x5a4574]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4252d4
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x42526d
mov edi, dword [edi + 4]
jmp 0x425270
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 0x4252c6
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4252c6
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.005041a0
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x4252c6
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.00518200
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 0x4252d6
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00516d58
add ebp, 0x68
leave
ret 0x10
Function at 0x42beb6
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 0x42bed5
xor al, al
jmp 0x42c009
push 0x55b43c
push 0x24000
push ebx
push ebx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42bece
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.00421549
mov ecx, eax
call fcn.00420e60
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.00421549
lea eax, [esi + 1]
push eax
call fcn.005041a0
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x42bffb
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.00516fd0
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push 0xffffffffffffffff
push edi
call fcn.004215bf
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 - 0x10], ebx
call edi
test eax, eax
jne 0x42bf7b
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 - 0x10], eax
call edi
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x42bff2
inc eax
push eax
call fcn.005041a0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x42bff2
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push ebx
push eax
call fcn.00516fd0
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 1
jne 0x42bfe9
push ebx
push 7
push dword [ebp - 8]
push dword [ebp + 8]
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 0x42bfe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp + 8]
call fcn.00517324
pop ecx
push dword [ebp - 0xc]
call fcn.00517324
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 0x42c00f
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push str.ROOT
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x42c0ce
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x42c040
mov eax, dword [eax + 4]
jmp 0x42c043
add eax, 4
push esi
push ebx
push eax
push 0x70007
push ebx
push 0x10001
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov esi, eax
cmp esi, ebx
je 0x42c0c3
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp + 8], ebx
push dword [esi + 4]
call edi
cmp dword [ebp + 8], ebx
jbe 0x42c0c2
push dword [ebp + 8]
call fcn.005041a0
pop ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push dword [esi + 8]
mov dword [ebp - 8], eax
push dword [esi + 4]
call edi
cmp eax, 1
jne 0x42c0b9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 8], ebx
jne 0x42c0b9
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0042be10
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.00517324
pop ecx
pop edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 8
Function at 0x42fc48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x5a1574]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x5456eb
call fcn.00516d9a
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.00470670
cmp eax, 0x800
jl 0x42fca6
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.00467d80
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x42fcbf
mov eax, dword [eax + 4]
jmp 0x42fcc2
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.00402a53
test ebx, ebx
je 0x42fddb
push 0x55936c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x42fddb
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42fddb
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00517127
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42fddb
push esi
push 0
push eax
call fcn.00516fd0
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.00518200
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.004284ce
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x42fd64
mov eax, dword [eax + 4]
jmp 0x42fd67
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040b9dc
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402a53
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b916
lea esi, [eax + 1]
test esi, esi
jbe 0x42fdcf
push esi
call fcn.00517127
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x42fdcf
push esi
push 0
push ebx
call fcn.00516fd0
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040b8ea
test al, al
je 0x42fdcf
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00402a32
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040b79c
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x42fdef
push dword [ebp - 0x14]
call fcn.0051704a
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x42fdfd
push dword [ebp - 0x1c]
call fcn.0051704a
pop ecx
cmp dword [ebp - 0x18], esi
je 0x42fe0b
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.00516d58
add ebp, 0x140
leave
ret 4