joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42fe88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x9c]
sub eax, 0x10
push eax
call fcn.00401a30
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0x94]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
push 1
mov ecx, esi
call fcn.00428b6d
mov eax, dword [edi + 0x60]
cmp eax, 2
mov ecx, esi
jne 0x402286
mov eax, dword [edi + 8]
test eax, eax
je 0x402265
mov edx, dword [esi]
add edi, 0x24
push edi
call dword [edx + 0x28]
jmp 0x40226e
mov eax, dword [esi]
add edi, 0x78
push edi
call dword [eax + 0x28]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x14]
inc ecx
add eax, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4022bf
cmp eax, 1
mov eax, dword [edi + 8]
jne 0x4022a2
test eax, eax
je 0x40229d
mov edx, dword [esi]
add edi, 0x24
push edi
call dword [edx + 0x28]
jmp 0x4022bd
add edi, 0x78
jmp 0x4022b7
test eax, eax
je 0x4022b1
mov edx, dword [esi]
add edi, 0x24
push edi
call dword [edx + 0x28]
jmp 0x4022bd
add edi, 0x8c
mov eax, dword [esi]
push edi
call dword [eax + 0x28]
mov edi, eax
mov eax, dword [ebx - 0xc]
mov edx, dword [esi]
push 0x24
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
mov ecx, esi
call dword [edx + 0x68]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x28]
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x4022ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14

Function at 0x402480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402499
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4024ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4024ce
cmp esi, eax
jae 0x4024a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4024c0
cmp esi, eax
jae 0x4024a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42feb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00428c3c
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x40258f
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x4025a7
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40263c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0042905c
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.00429343
test ebp, ebp
je 0x4025fb
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.004293cc
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.00428bca
mov edx, dword [ebx + 8]
push 2
push edi
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00428d8c
jmp 0x40264e
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.0042a8b4
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x403930
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ffcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x14]
call fcn.004033f0
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x134], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40399f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4039b7
push 0x39
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x18]
call fcn.00401fd0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a6a
mov edx, dword [esp + 0x14]
mov byte [esp + 0x18], al
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.FYTVPLAYER
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
sete cl
add eax, 0xfffffff0
mov dword [esp + 0x12c], 0xffffffff
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x124]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ffeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
push str.SOFTWAREMicrosoftInternet_ExplorerMAIN
lea ecx, [esp + 0x14]
call fcn.004033f0
push str.IsWow64Process
xor ebx, ebx
push str.kernel32
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x403b1a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], ebx
je 0x403b32
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf013f
push ebx
push edx
jmp 0x403b42
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403bf0
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.Start_Page
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
mov edi, str.http:__www.hao123.com__tn29065018_104_hao_pg
lea esi, [esp + 0x20]
mov ecx, 0x2e
repe cmpsb byte [esi], byte es:[edi]
mov edx, eax
mov eax, dword [esp + 0x10]
sete dl
add eax, 0xfffffff0
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403bd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403c30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
push esi
mov esi, dword [esp + 0x268]
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.004033f0
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov word [esp + 0x4c], ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], 1
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403c83
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403cd8
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x403cf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esp, 0x260
ret 4
Function at 0x406b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
cmp ebp, ebx
jne 0x406ba5
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x406bd4
push eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x20], 0xffffffff
mov byte [ebp + 0x1d], 0
mov byte [ebp + 0x1c], 0
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.0042bfdf
mov ecx, dword [esp + 0x1c]
movzx edx, word [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x406bfe
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
call fcn.0042bfdf
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x406bf5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [esp + 0x10], ebx
call fcn.0042bfdf
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x406c7d
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebp
call fcn.004068a0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 4]
test eax, eax
je 0x406d5d
mov eax, dword [ebp + 0xc]
test eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0
jle 0x406d5d
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
test ecx, ecx
jle 0x406d4c
mov edi, edi
mov eax, dword [ebp + 0x18]
imul eax, dword [esp + 0x18]
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp + 0x14]
imul edx, ebx
mov ecx, eax
sar ecx, 3
add ecx, edx
mov edx, dword [ebp + 8]
movzx edi, byte [ecx + edx + 3]
movzx esi, byte [ecx + edx]
add ecx, edx
imul esi, edi
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x20]
inc ebx
cmp ebx, eax
jl 0x406cc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x406cb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
Function at 0x4086a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430473
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
mov esi, ecx
call fcn.00407740
add esp, 4
push 0xc
push str.settings.ini
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], 0
call fcn.00403200
push str.AutoRun
lea ecx, [esp + 0x1c]
call fcn.004033f0
push str.MainPage
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.004033f0
push str.Topmost
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.004033f0
push str.Upgrade
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 3
call fcn.004033f0
push str.CloseHide
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 4
call fcn.004033f0
mov ecx, dword [esi + 0x370]
mov edx, dword [esi + 0x374]
mov eax, dword [esi + 0x378]
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x37c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x380]
mov byte [esp + 0x48], 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
xor esi, esi
mov ecx, dword [esp + esi + 0x2c]
xor eax, eax
test ecx, ecx
setne al
mov edi, eax
call fcn.004219f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x18]
push 0x4334a0
push eax
mov byte [esp + 0x54], 6
call fcn.004073a0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + esi + 0x24]
add esp, 0xc
push ebp
push edi
push eax
push str.Main
call ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x48], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 4
cmp esi, 0x14
jl 0x408780
push fcn.00401950
push 5
push 4
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x58], 0
call fcn.0041417a
add ebp, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40882c
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x4093b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4305b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x38]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.004090b0
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004090b0
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x409426
mov ecx, dword [esp + 0x10]
sub ecx, esi
sar ecx, 2
cmp ecx, edi
jne 0x40945c
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x409437
push eax
call fcn.00421af0
add esp, 4
cmp esi, edi
je 0x409444
push esi
call fcn.00421af0
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebp
mov ebp, dword [esp + 0x20]
cmp ebp, edi
je 0x40947b
mov eax, dword [esp + 0x24]
sub eax, ebp
sar eax, 2
cmp eax, edi
jne 0x40949d
push ebp
call fcn.00421af0
add esp, 4
push esi
call fcn.00421af0
add esp, 4
pop ebp
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebx
mov ebx, ecx
cmp ebx, eax
jbe 0x4094a6
mov ebx, eax
xor esi, esi
cmp ebx, edi
jbe 0x4094c7
mov edi, dword [esp + 0x14]
mov eax, ebp
sub edi, ebp
mov ecx, dword [edi + eax]
mov edx, dword [eax]
cmp ecx, edx
jg 0x4094f1
jl 0x40951e
inc esi
add eax, 4
cmp esi, ebx
jb 0x4094b4
push ebp
call fcn.00421af0
mov eax, dword [esp + 0x18]
push eax
call fcn.00421af0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebp
call fcn.00421af0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00421af0
add esp, 8
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push ebp
call fcn.00421af0
mov edx, dword [esp + 0x18]
push edx
call fcn.00421af0
mov ecx, dword [esp + 0x38]
add esp, 8
pop ebx
pop ebp
pop edi
or eax, 0xffffffff
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x40af4d
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 0x40afa0
call fcn.0042bfdf
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40afa0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40af96
xor eax, eax
jmp 0x40b0b9
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 0x40afd0
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 0x40afd0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40b0b6
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40affd
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040bcf2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40b0b6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40b046
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40b046
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40b040
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040bcf2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40b0a6
and dword [ebp + 0xc], 0
jmp 0x40b0a6
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40b0a6
push 0xc
call fcn.00421ac5
mov esi, eax
test esi, esi
pop ecx
je 0x40b088
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 0x40b08a
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40b0a1
push dword [ebp - 8]
call fcn.00421421
jmp 0x40b0a6
call fcn.004213f8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40b00b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4135ba
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.004138a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413655
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 [0x443360]
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 0x413655
cmp eax, 1
je 0x413676
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 0x413655
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413622
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413651
xor eax, eax
inc eax
jmp 0x413695
cmp edi, eax
jae 0x413659
xor eax, eax
jmp 0x413695
cmp eax, esi
jae 0x413660
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 [0x443360]
jmp 0x413679
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