joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10783f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x107d494]
cmp dword [eax + 0x28], 0
jne 0x1078408
xor eax, eax
jmp 0x1078537
mov ecx, dword [0x107d414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x107d408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x107d404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x107d408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x107d404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x107d48c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x107c604
push 0x107c620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x107d400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.01078330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x10783c0
mov edx, dword [0x107d494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x107d40c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1078537
cmp dword [ebp - 0x38], 0x12
jne 0x107852b
mov dword [0x107d41c], 0
call fcn.01078540
xor eax, eax
jmp 0x1078537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x10784fc
mov esp, ebp
pop ebp
ret 4

Function at 0x1079840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x107a20c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x107c118
sub eax, eax
test esi, esi
je 0x107a2e4
sub eax, 1
test ecx, ecx
je 0x107a2e2
test esi, 3
je 0x107a24a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x107a22f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x107a2c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x107a254
mov ecx, edx
test ecx, ecx
je 0x107a2e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x107a2cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x107a2ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0107a36f
jae 0x107a2fa
xor ecx, ecx
call fcn.0107a36f
jae 0x107a329
xor eax, eax
call fcn.0107a36f
jae 0x107a339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0107a36f
adc al, al
jae 0x107a31b
jne 0x107a365
stosb byte es:[edi], al
jmp 0x107a2fd
call fcn.0107a37b
sub ecx, ebx
jne 0x107a342
call fcn.0107a379
jmp 0x107a361
lodsb al, byte [esi]
shr eax, 1
je 0x107a38b
adc ecx, ecx
jmp 0x107a35e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0107a379
cmp eax, 0x7d00
jae 0x107a35e
cmp ah, 5
jae 0x107a35f
cmp eax, 0x7f
ja 0x107a360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107a2fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x107ac7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x107d000]
jne 0x107ac86
repz ret
jmp fcn.0107af2d
Function at 0x4018fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40190f
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401921
xor eax, eax
jmp 0x401953
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401945
cmp esi, eax
jae 0x40191d
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401937
cmp esi, eax
jae 0x40191d
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x407c5a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43e0b1
call fcn.0041cf80
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x80], 0
jne 0x407cff
push ebx
push esi
call fcn.004351da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov eax, 0x410
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.004015d8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401537
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00401c5b
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x407cee
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x407cee
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x80], eax
mov dword [edi + 0xf0], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebx - 0x10]
call fcn.0040114a
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x4085d6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43e1aa
call fcn.0041cf80
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.004319c6
xor edi, edi
mov dword [esi], method.CStatic.virtual_0
mov dword [ebp - 4], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], vtable.CFont.0
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 1
call fcn.0042f8a0
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 2
call fcn.0042f8e3
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov byte [ebp - 4], 3
call ebx
push 8
mov dword [esi + 0x50], eax
call ebx
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x74]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x70], edi
call fcn.0042f754
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x88]
call fcn.0042f955
call fcn.004351da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x410
push 0x411
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004015d8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401537
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00401c5b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, edi
je 0x4086e6
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp eax, edi
je 0x4086e6
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0xa4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040114a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a5e3
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40c494
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x43e6e4
call fcn.0041cf80
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
call fcn.0040c2b8
and dword [ebp - 4], 0
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
call fcn.0040c2b8
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040c2b8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40df38
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x43e87e
call fcn.0041cf80
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call fcn.00401c98
push str.mailto:
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401c98
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
mov eax, dword [ebp - 0x18]
mov esi, dword [eax - 0xc]
push ebx
push 0x40
lea ecx, [ebp - 0x14]
call fcn.00407009
cmp eax, 0xffffffff
je 0x40dfb2
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406a57
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x1c], 1
call fcn.0040242a
test al, al
pop ecx
pop ecx
mov byte [ebp - 0xd], 1
jne 0x40dfb5
mov byte [ebp - 0xd], bl
test byte [ebp - 0x1c], 1
je 0x40dfc6
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040114a
cmp byte [ebp - 0xd], bl
je 0x40dff7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040de48
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004021c5
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040114a
push 5
push 0x440b60
push ebx
push dword [ebp - 0x14]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040114a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040114a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x40e0d7
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 1]
push eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov byte [ebp - 1], bl
call fcn.0040e037
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push esi
push dword [ebp - 0x18]
mov edi, eax
push dword [ebp + 0x10]
call fcn.0041ef29
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], ebx
call fcn.0040bb53
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40e0dd
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x424]
sub esp, 0x4a4
mov eax, dword [0x45378c]
and dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x42c]
xor eax, ebp
test esi, esi
mov dword [ebp + 0x420], eax
mov dword [ebp + 4], esi
je 0x40e225
cmp dword [ebp + 0x434], 0
je 0x40e126
push esi
call fcn.0040df38
pop ecx
mov dword [ebp + 8], eax
jmp 0x40e225
push ebx
push edi
xor eax, eax
mov byte [ebp + 0xc], 0
mov ecx, 0x104
lea edi, [ebp + 0xd]
rep stosd dword es:[edi], eax
mov ebx, 0x410
push ebx
lea eax, [ebp + 0xc]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0040e060
add esp, 0x10
test eax, eax
jne 0x40e209
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea eax, [ebp + 0xc]
push eax
call esi
push ebx
lea eax, [ebp + 0xc]
push eax
push eax
push edi
call fcn.0040e060
add esp, 0x10
test eax, eax
jne 0x40e223
lea eax, [ebp + 0xc]
push 0x4420b0
push eax
call fcn.0041e215
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40e1c1
lea eax, [ebp + 0xc]
push 0x4420ac
push eax
call fcn.0041e215
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40e1c1
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebp + eax + 0xb]
jmp 0x40e1c4
mov byte [edi], 0
push 0x4420a8
push edi
call esi
push dword [ebp + 4]
push edi
call esi
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040ddc3
push dword [ebp + 0x430]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
je 0x40e223
push dword [ebp - 0x80]
call fcn.0041cf9f
pop ecx
jmp 0x40e223
push dword [ebp + 0x430]
xor eax, eax
push eax
push eax
push esi
push str.explore
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp + 8], eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x420]
mov eax, dword [ebp + 8]
xor ecx, ebp
pop esi
call fcn.0041c8e3
add ebp, 0x424
leave
ret
Function at 0x411cc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45378c]
xor eax, ebp
cmp dword [ecx], 0xffffffff
mov dword [ebp - 4], eax
je 0x411d07
call fcn.00411c61
push 7
lea ecx, [ebp - 0xc]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411d07
lea eax, [ebp - 0xc]
push eax
call fcn.0041f044
pop ecx
jmp 0x411d09
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c8e3
leave
ret

Function at 0x411e72
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45378c]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x411ea1
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x411f1e
push esi
push eax
call fcn.0041dc16
mov esi, eax
test esi, esi
pop ecx
jne 0x411eb7
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x411f1d
push esi
push dword [ebp - 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x411ede
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x440d60
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x411eee
push esi
call fcn.0041cf9f
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x411f1c
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d86
push esi
call fcn.0041cf9f
lea esi, [ebp - 0x10]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041c8e3
leave
ret
Function at 0x412e22
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x43ee31
call fcn.0041cf80
sub esp, 0x88
mov eax, dword [0x45378c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 4], esi
jae 0x412e54
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
push 0x20019
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412fb9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x50]
push eax
push esi
push dword [0x452668]
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x412faf
cmp dword [ebp - 0x50], 1
jne 0x412faf
mov eax, dword [ebp - 0x54]
inc eax
push ebx
push eax
call fcn.004351d5
pop ecx
mov ebx, eax
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
push dword [0x452668]
push dword [ebp - 0x4c]
call edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00402883
push ebx
call fcn.004351d0
pop ecx
xor ebx, ebx
push ebx
push 0x443d80
lea ecx, [ebp - 0x48]
call fcn.004120a4
push esi
lea ecx, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x14], 0xf
call fcn.00402135
cmp edi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
jne 0x412f2c
push edi
push ebx
lea eax, [ebp - 0x78]
push eax
call fcn.004122cc
push edi
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040265f
push esi
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.00402151
jmp 0x412f63
mov eax, edi
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x94]
push eax
call fcn.004122cc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0040265f
push esi
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.00402151
lea ebx, [edi + 1]
cmp dword [ebp - 0x18], esi
je 0x412f8b
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x412f74
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00411dcd
push dword [eax]
push dword [ebp - 0x58]
call fcn.00412d84
add esp, 0x10
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402151
cmp edi, 0xffffffff
jne 0x412ed5
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00402151
pop ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402151
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.0041c8e3
leave
ret
Function at 0x41437b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4143ce
call fcn.00439b03
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4143ce
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4143c4
xor eax, eax
jmp 0x4144e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4143fe
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4143fe
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4144e4
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x41442b
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00413e56
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4144e4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x414474
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x414474
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41446e
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00413e56
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4144d4
and dword [ebp + 0xc], 0
jmp 0x4144d4
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4144d4
push 0xc
call fcn.004351a5
mov esi, eax
test esi, esi
pop ecx
je 0x4144b6
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4144b8
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4144cf
push dword [ebp - 8]
call fcn.0042fcd1
jmp 0x4144d4
call fcn.0042fca8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x414439
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41dc28
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.0041dd10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41dcc3
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 [0x456a74]
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 0x41dcc3
cmp eax, 1
je 0x41dce4
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 0x41dcc3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41dc90
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41dcbf
xor eax, eax
inc eax
jmp 0x41dd03
cmp edi, eax
jae 0x41dcc7
xor eax, eax
jmp 0x41dd03
cmp eax, esi
jae 0x41dcce
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 [0x456a74]
jmp 0x41dce7
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