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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004142b0
push esi
push edi
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1008]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x1008]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x20
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x411407
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.004142b0
push ebx
push edi
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x2008]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x2008]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1008]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1008]
push str.Applications_
push eax
call fcn.00412880
lea eax, [ebp - 0x2008]
push 0x5c
push eax
call fcn.00412980
inc eax
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00412890
add esp, 0x18
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1008]
push eax
push SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 1
lea eax, [ebp - 1]
push eax
push 1
push ebx
push str.IsHostApp
push dword [ebp - 8]
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x412a70
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a2b8
call fcn.00412e3c
mov edi, 0x94
mov eax, edi
call fcn.004142b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x420d24], ecx
mov eax, dword [esi + 4]
mov dword [0x420d30], eax
mov edx, dword [esi + 8]
mov dword [0x420d34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x420d28], esi
cmp ecx, 2
je 0x412ad0
or esi, 0x8000
mov dword [0x420d28], esi
shl eax, 8
add eax, edx
mov dword [0x420d2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x412b0b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412b0b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412b23
cmp eax, 0x20b
je 0x412b10
mov dword [ebp - 0x1c], esi
jmp 0x412b37
cmp dword [ecx + 0x84], 0xe
jbe 0x412b0b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x412b31
cmp dword [ecx + 0x74], 0xe
jbe 0x412b0b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00414255
pop ecx
test eax, eax
jne 0x412b4b
push 0x1c
call fcn.00412a4c
pop ecx
call fcn.0041414c
test eax, eax
jne 0x412b5c
push 0x10
call fcn.00412a4c
pop ecx
call fcn.00413ee6
mov dword [ebp - 4], esi
call fcn.00413ce8
test eax, eax
jge 0x412b75
push 0x1b
call fcn.00412a27
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x421954], eax
call fcn.00413bc6
mov dword [0x420bc0], eax
call fcn.00413b24
test eax, eax
jge 0x412b9b
push 8
call fcn.00412a27
pop ecx
call fcn.004138f1
test eax, eax
jge 0x412bac
push 9
call fcn.00412a27
pop ecx
push 1
call fcn.0041334f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412bc2
push eax
call fcn.00412a27
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413894
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412be3
movzx eax, word [ebp - 0x40]
jmp 0x412be6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004114c3
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412c04
push edi
call fcn.0041347c
call fcn.0041349e
jmp 0x412c36
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412e77
ret
Function at 0x4133b9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41a340
call fcn.00412e3c
push 8
call fcn.00412e09
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420d64], esi
jne 0x4133ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420d60], esi
mov al, byte [ebp + 0x10]
mov byte [0x420d5c], al
cmp dword [ebp + 0xc], edi
jne 0x413437
cmp dword [0x421948], edi
je 0x413427
mov eax, dword [0x421944]
sub eax, 4
mov dword [0x421944], eax
cmp eax, dword [0x421948]
jb 0x413427
mov eax, dword [eax]
cmp eax, edi
je 0x413408
call eax
jmp 0x413408
push 0x42008c
mov eax, 0x420088
call fcn.00413337
pop ecx
push 0x420098
mov eax, 0x420090
call fcn.00413337
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x413468
cmp dword [ebp + 0x10], edi
jne 0x413476
mov dword [0x420d64], esi
push dword [ebp + 8]
call fcn.004132f5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413475
push 8
call fcn.00412d54
pop ecx
ret
call fcn.00412e77
ret

Function at 0x41357f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4204d0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420200]
je 0x4135b6
inc eax
cmp eax, 0x13
jb 0x4135a7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420200]
jne 0x4136d9
mov eax, dword [0x420bc8]
cmp eax, 1
je 0x4136b4
cmp eax, edx
jne 0x4135e6
cmp dword [0x4200c4], 1
je 0x4136b4
cmp ecx, 0xfc
je 0x4136d9
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41361c
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00412880
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00415430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413650
mov eax, edi
push eax
call fcn.00415430
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a748
push edi
call fcn.00415300
add esp, 0x10
push edi
call fcn.00415430
push dword [esi + 0x420204]
mov ebx, eax
call fcn.00415430
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004142b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412880
push edi
push ebx
call fcn.00412890
push 0x41a728
push ebx
call fcn.00412890
push dword [esi + 0x420204]
push ebx
call fcn.00412890
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004151fe
add esp, 0x2c
jmp 0x4136d9
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x420204]
push dword [esi]
call fcn.00415430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004154ec
add ebp, 0x90
leave
ret
Function at 0x414fa2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x414fd0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x414fd7
cmp ebx, dword [eax + 4]
jae 0x414fd7
xor eax, eax
jmp 0x4151c7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x414fe8
xor eax, eax
inc eax
jmp 0x4151c6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x414ffe
cmp ecx, edx
jae 0x415143
cmp dword [eax + 4], 0
je 0x415007
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x414fef
cmp dword [ebp + 8], 0
je 0x415029
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415143
cmp eax, esi
jae 0x415143
mov eax, dword [0x420e90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41504e
cmp dword [esi*4 + 0x420e98], edi
je 0x415147
inc esi
cmp esi, eax
jl 0x41503c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4151c3
cmp dword [ebp - 8], 0x1000000
jne 0x4151c3
test byte [ebp - 0xc], 0xcc
je 0x4150cc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4151c3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4151c3
cmp word [eax + 0x18], 0x10b
jne 0x4151c3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4151c3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4150cc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4150cc
test byte [ecx + 0x27], 0x80
jne 0x415143
push 1
push 0x420ed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x414fe0
mov ecx, dword [0x420e90]
test ecx, ecx
mov edx, ecx
jle 0x415100
lea eax, [ecx*4 + 0x420e94]
cmp dword [eax], edi
je 0x415100
dec edx
sub eax, 4
test edx, edx
jg 0x4150f4
test edx, edx
jne 0x415131
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41510d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x415125
lea eax, [edx*4 + 0x420e98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x415113
cmp ecx, 0x10
jge 0x415131
inc ecx
mov dword [0x420e90], ecx
push 0
push 0x420ed8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x414fe0
xor eax, eax
jmp 0x4151c6
test esi, esi
jle 0x414fe0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x420ed8
call ebx
test eax, eax
jne 0x414fe0
cmp dword [esi*4 + 0x420e98], edi
je 0x41519d
mov eax, dword [0x420e90]
lea esi, [eax - 1]
test esi, esi
jl 0x41518b
cmp dword [esi*4 + 0x420e98], edi
je 0x415187
dec esi
jns 0x41517b
test esi, esi
jge 0x41519b
cmp eax, 0x10
jge 0x415196
inc eax
mov dword [0x420e90], eax
lea esi, [eax - 1]
jmp 0x41519d
je 0x4151b5
xor ecx, ecx
test esi, esi
jl 0x4151b5
lea eax, [ecx*4 + 0x420e98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4151a3
push 0
push 0x420ed8
call ebx
jmp 0x414fe0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4151fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x420ee4], ebx
push esi
push edi
jne 0x41527e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4152b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x420ee4], eax
je 0x4152b9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x420ee8], eax
call esi
cmp dword [0x420d24], 2
mov dword [0x420eec], eax
jne 0x41527e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x420ef4], eax
je 0x41527e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x420ef0], eax
mov eax, dword [0x420ef0]
test eax, eax
je 0x4152c3
call eax
test eax, eax
je 0x4152aa
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x420ef4]
test eax, eax
je 0x4152aa
test byte [ebp - 8], 1
jne 0x4152c3
cmp dword [0x420d30], 4
jb 0x4152bd
or byte [ebp + 0x12], 0x20
jmp 0x4152e2
xor eax, eax
jmp 0x4152f2
or byte [ebp + 0x12], 4
jmp 0x4152e2
mov eax, dword [0x420ee8]
test eax, eax
je 0x4152e2
call eax
mov ebx, eax
test ebx, ebx
je 0x4152e2
mov eax, dword [0x420eec]
test eax, eax
je 0x4152e2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x420ee4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416be1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004142b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416c7c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x420d24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x416c7c
cmp eax, 1
je 0x416c9d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416c7c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416c49
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416c78
xor eax, eax
inc eax
jmp 0x416cbc
cmp edi, eax
jae 0x416c80
xor eax, eax
jmp 0x416cbc
cmp eax, esi
jae 0x416c87
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x420d24]
jmp 0x416ca0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40624e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43ea44], esi
push edi
jne 0x406288
mov ecx, 0x43ea40
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406264
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43ee40
jl 0x40625f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4062bd
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea40]
xor eax, esi
inc ecx
dec edx
jne 0x4062a0
pop edi
pop esi
not eax
ret 0xc

Function at 0x402a98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x405014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b10
xor eax, eax
push ebp
push 0x402b09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x405014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x405014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403220
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403281
cmp word [0x406208], 0xd7b2
jne 0x403249
cmp dword [0x406210], 0
jbe 0x403249
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40505c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4032a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405020], 0
jne 0x40329d
push 0
push 0x405054
push 0x40505c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403e74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403eda
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004034f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040298c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403ec4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee1
lea eax, [ebp - 0x10]
call fcn.004033a4
ret
Function at 0xb4c370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xb4c38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb75074
push ecx
mov edi, eax
call fcn.00b60198
mov esi, eax
add esp, 8
test esi, esi
jne 0xb4c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00b6002e
push esi
call fcn.00b5ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xb4f850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xb4f8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb7a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb4f8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00b601e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xb4f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb7a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xb4f92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00b61082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xb4f957
mov word [eax], si
add eax, 2
push eax
call fcn.00b61030
add esp, 4
jmp 0xb4f959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xb4f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xb4f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xb4fff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xb50080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xb500c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb75458
push ecx
call fcn.00b601e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00b601e1
add esp, 0x10
jmp 0xb500d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00b6020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00b5fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00b50050
mov eax, dword [0xb7a728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xb5013b
push esi
call fcn.00b4ffb0
add esp, 4
mov dword [0xb7a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xb5014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00b4fff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xb53440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xb534b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xb5348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xb53471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xb5347e
add edx, ecx
cmp ebx, edx
jb 0xb5348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xb53467
xor ecx, ecx
jmp 0xb534a2
test eax, eax
jne 0xb53492
xor ecx, ecx
jmp 0xb534a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00b533c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xb538f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xb53921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xb53946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xb5396e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xb53993
push ecx
push esi
call fcn.00b534c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret