joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c8f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x412d59
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x412d59
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x412cb7
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x412cc5
mov eax, dword [eax + 4]
jmp 0x412cc8
add eax, 4
push ecx
lea esi, [ebp + 0xc]
push esi
push ecx
push edx
push ecx
push ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412d59
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
xor bl, bl
push esi
call fcn.004f7ca0
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x412d4a
xor ebx, ebx
test esi, esi
jbe 0x412d16
push ebx
mov ecx, edi
call fcn.0041289e
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x412d01
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412d24
mov eax, dword [eax + 4]
jmp 0x412d27
add eax, 4
push esi
push dword [ebp + 0x18]
push 3
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.0050ae44
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x412d5b
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x412d60
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412de1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412de1
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x412d80
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x412d8e
mov eax, dword [eax + 4]
jmp 0x412d91
add eax, 4
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x412dd2
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412db6
mov eax, dword [eax + 4]
jmp 0x412db9
add eax, 4
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x412ddb
cmp esi, 2
je 0x412ddb
xor eax, eax
jmp 0x412dde
xor eax, eax
inc eax
pop esi
jmp 0x412de3
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x412de8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412e61
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412e61
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x412e08
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x412e16
mov eax, dword [eax + 4]
jmp 0x412e19
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 0x412e61
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x412e3b
mov eax, dword [eax + 4]
jmp 0x412e3e
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 0x412e63
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x412e68
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 0x412f35
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412f35
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412e99
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x412ea7
mov eax, dword [eax + 4]
jmp 0x412eaa
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 0x412f30
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 0x412ed6
mov eax, dword [edi]
jmp 0x412ed8
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 0x412f25
cmp dword [ebp + 8], 4
jne 0x412f25
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x412f01
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 0x412f25
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 0x412f37
xor al, al
pop ebx
leave
ret 0x14
Function at 0x412fde
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x413152
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x413152
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x41300a
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x413018
mov eax, dword [eax + 4]
jmp 0x41301b
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 0x413152
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.004047f7
jmp 0x41306c
lea ecx, [ebp - 8]
call fcn.00428f93
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.004038bc
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004047f7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040316d
test al, al
je 0x41304f
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.004f7ca0
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x413143
push edi
push 0
push eax
call fcn.0050aaf0
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.004047f7
jmp 0x4130f1
lea ecx, [ebp - 8]
call fcn.00428f93
cmp dword [eax + 0x18], 0x10
jb 0x4130ce
mov eax, dword [eax + 4]
jmp 0x4130d1
add eax, 4
push eax
push ebx
call fcn.0050bf60
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00428f93
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.004038bc
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004047f7
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040316d
test al, al
je 0x4130bb
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41311b
mov eax, dword [eax + 4]
jmp 0x41311e
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.0050ae44
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x413154
xor al, al
pop esi
leave
ret 0x14
Function at 0x413202
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.0040e502
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4132fc
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4132fc
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413237
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x413245
mov eax, dword [eax + 4]
jmp 0x413248
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 0x4132f7
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 0x413278
mov eax, dword [edi]
jmp 0x41327a
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 0x4132ec
cmp dword [ebp - 8], 1
jne 0x4132ec
push dword [ebp + 0x18]
call fcn.004f7ca0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4132ec
push dword [ebp + 0x18]
push ebx
push eax
call fcn.0050aaf0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4132bd
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 0x4132e3
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.004033ab
mov byte [ebp + 0xf], 1
push dword [ebp + 8]
call fcn.0050ae44
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x4132fe
xor al, al
pop ebx
leave
ret 0x14
Function at 0x413552
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.004131c7
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41365d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41365d
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413587
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x413595
mov eax, dword [eax + 4]
jmp 0x413598
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 0x413658
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 0x4135c8
mov eax, dword [edi]
jmp 0x4135ca
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 0x41364d
cmp dword [ebp - 8], 3
jne 0x41364d
push dword [ebp + 8]
call fcn.004f7ca0
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x41364d
push dword [ebp + 8]
push ebx
push eax
call fcn.0050aaf0
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x41360d
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 0x413646
cmp dword [ebp + 8], ebx
jbe 0x413642
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.004134f8
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x41362a
mov byte [ebp + 0xf], 1
push esi
call fcn.0050ae44
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x41365f
xor al, al
pop ebx
leave
ret 0x14
Function at 0x413664
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x532981
call fcn.0050a887
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.00402a8c
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x41377e
cmp dword [esi + 0x14], ebx
je 0x41377e
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x4136d5
mov eax, 0x108
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x4136e3
mov esi, dword [esi + 4]
jmp 0x4136e6
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 0x413770
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0050aaf0
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 0x41375b
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.004026ad
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00402bc9
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004034b0
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 0x413725
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.00407995
jmp 0x41378a
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.00407995
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.00402abe
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.0050a878
add ebp, 0x404
leave
ret 0x10
Function at 0x41eb31
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x53abf5
call fcn.0050a887
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41eb51
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x24], 0
cmp dword [esi + 0x3c], 0
je 0x41eb76
lea edi, [esi + 0x28]
cmp dword [edi + 0x18], 0x10
jb 0x41eb65
mov eax, dword [edi + 4]
jmp 0x41eb68
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040e502
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041e817
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x41eb90
mov eax, dword [eax + 4]
jmp 0x41eb93
add eax, 4
push eax
call fcn.0050b4cc
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004034b0
call fcn.0050a95f
ret

Function at 0x42268d
Capabilities:
Encode data using xor

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

Function at 0x42274b
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x58ed68], 0
jne 0x4227ad
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 0x422770
xor eax, esi
test esi, eax
je 0x42277d
add eax, eax
xor eax, 0x4c11db7
jmp 0x42277f
add eax, eax
shr cl, 1
jne 0x422767
push eax
call fcn.0042260a
push dword [ebp - 4]
mov edi, eax
call fcn.0042262e
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x58e968], edi
jne 0x422763
pop edi
mov byte [0x58ed68], 1
pop esi
leave
ret

Function at 0x424d8b
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x534ec6
call fcn.0050a8ba
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x424dc7
cmp dword [eax + 0x18], 0x10
jb 0x424daf
mov eax, dword [eax + 4]
jmp 0x424db2
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 0x424de4
cmp dword [eax + 0x18], 0x10
jb 0x424dd2
mov eax, dword [eax + 4]
jmp 0x424dd5
add eax, 4
push 0x80
jmp 0x424db4
call fcn.0050a95f
ret
Function at 0x425c58
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x58c584]
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 0x425d87
cmp dword [edi + 0x14], edx
je 0x425d87
cmp eax, edx
je 0x425d87
cmp esi, edx
je 0x425d87
cmp dword [0x58f068], edx
jne 0x425ced
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0050aaf0
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 [0x58f068], 2
jb 0x425ced
mov dword [0x58f068], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x425cf8
mov eax, dword [ecx + 4]
jmp 0x425cfb
lea eax, [ecx + 4]
push dword [0x58f068]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x425d87
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x425d20
mov edi, dword [edi + 4]
jmp 0x425d23
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 0x425d79
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x425d79
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.004f7ca0
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x425d79
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.0050bbc0
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 0x425d89
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a878
add ebp, 0x68
leave
ret 0x10
Function at 0x42c514
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 0x42c533
xor al, al
jmp 0x42c667
push str.ROOT
push 0x24000
push ebx
push ebx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x42c52c
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.00422d41
mov ecx, eax
call fcn.0042264e
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.00422d41
lea eax, [esi + 1]
push eax
call fcn.004f7ca0
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x42c659
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.0050aaf0
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push 0xffffffffffffffff
push edi
call fcn.00422db7
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 0x42c5d9
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 0x42c650
inc eax
push eax
call fcn.004f7ca0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x42c650
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push ebx
push eax
call fcn.0050aaf0
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 0x42c647
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 0x42c647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp + 8]
call fcn.0050ae44
pop ecx
push dword [ebp - 0xc]
call fcn.0050ae44
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 0x42ffde
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x58c584]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x53634b
call fcn.0050a8ba
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.00402698
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.00470780
cmp eax, 0x800
jl 0x43003c
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.00467e90
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x430055
mov eax, dword [eax + 4]
jmp 0x430058
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.004034b0
test ebx, ebx
je 0x430171
push 0x54a27c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x430171
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x430171
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0050ac47
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x430171
push esi
push 0
push eax
call fcn.0050aaf0
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0050bbc0
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.00428f3f
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x4300fa
mov eax, dword [eax + 4]
jmp 0x4300fd
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040cc82
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004034b0
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040cbbc
lea esi, [eax + 1]
test esi, esi
jbe 0x430165
push esi
call fcn.0050ac47
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x430165
push esi
push 0
push ebx
call fcn.0050aaf0
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040cb90
test al, al
je 0x430165
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.004033ab
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040ca42
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x430185
push dword [ebp - 0x14]
call fcn.0050ab6a
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x430193
push dword [ebp - 0x1c]
call fcn.0050ab6a
pop ecx
cmp dword [ebp - 0x18], esi
je 0x4301a1
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.0050a878
add ebp, 0x140
leave
ret 4