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

Disassembly:
push 0x274
mov eax, 0x484160
call fcn.004649f3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall
xor bh, bh
call fcn.00403358
mov edx, 0x20119
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00425f67
mov edi, eax
test edi, edi
je 0x4286a0
xor ecx, ecx
lea eax, [ebp - 0x27c]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x27c], esi
jbe 0x4286a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0x497a94
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x278]
call fcn.00403da6
pop ecx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x260]
call fcn.0040ad28
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
mov edx, eax
mov dword [esp], str.DisplayName
call fcn.0040ad28
pop ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004245c7
push 0
push 1
lea ecx, [ebp - 0x248]
mov bl, al
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call fcn.0040224f
test bl, bl
jne 0x4287a6
inc esi
cmp esi, dword [ebp - 0x27c]
jb 0x4285da
mov edx, 0x20219
lea ecx, [ebp - 0x230]
call fcn.00425f67
mov edi, eax
test edi, edi
je 0x4287a8
xor ecx, ecx
lea eax, [ebp - 0x27c]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x27c], esi
jbe 0x4287a8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0x497a94
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x248]
call fcn.00403da6
pop ecx
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x260]
call fcn.0040ad28
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x278]
mov edx, eax
mov dword [esp], str.DisplayName
call fcn.0040ad28
pop ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004245c7
push 0
push 1
lea ecx, [ebp - 0x278]
mov bl, al
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.0040224f
push 0
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0040224f
test bl, bl
jne 0x4287a6
inc esi
cmp esi, dword [ebp - 0x27c]
jb 0x4286e2
jmp 0x4287a8
mov bh, 1
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.0040224f
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040224f
mov al, bh
call fcn.004649a2
ret
Function at 0x428c70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 8]
xor eax, eax
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test bl, bl
push edi
push 5
mov edi, ecx
pop ecx
cmovne eax, ecx
push eax
push dword [edi + 8]
mov dword [ebp + 8], eax
call esi
push 0x499928
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetPropW]
push 0
push eax
call esi
mov esi, dword [edi + 0x14]
mov byte [edi + 0x48], bl
mov ebx, dword [ebp + 8]
push ebx
cmp esi, dword [edi + 0x18]
je 0x428cc3
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0x14
jmp 0x428cb0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x42e5f3
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov edi, ecx
call fcn.004314e7
mov edx, eax
xor esi, esi
pop ecx
test edx, edx
je 0x42e60e
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x42e610
mov edx, esi
mov eax, dword [edi + 0x98]
push esi
push esi
push edx
push 0x409218
mov dword [edx], eax
mov eax, dword [edi + 0x20]
push esi
push esi
mov dword [edx + 4], eax
call fcn.00460919
push 8
call fcn.004314e7
mov ecx, eax
add esp, 0x1c
test ecx, ecx
je 0x42e644
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x42e646
mov ecx, esi
mov eax, dword [edi + 0x98]
push esi
push esi
push ecx
push 0x4091f0
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
push esi
push esi
mov dword [ecx + 4], eax
call fcn.00460919
add esp, 0x18
pop edi
pop esi
ret

Function at 0x42eab0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042b072
xor esi, esi
push esi
push esi
push edi
push 0x42ee82
push esi
push esi
call fcn.00460919
lea ebx, [edi + 0xa0]
add esp, 0x18
test ebx, ebx
jne 0x42eadc
mov ebx, esi
jmp 0x42eadf
mov ebx, dword [ebx + 0x20]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x32
push 0x402
push dword [edi + 0xc0]
call esi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x16
push 1
push 0x40a
push dword [edi + 0xc0]
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret

Function at 0x430bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x4b0760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1f4
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.00462bd0
mov esi, 0x114
lea eax, [ebp - 0x120]
push esi
push 0
mov ebx, 0x1f8
push eax
mov dword [ebp - 0x318], ebx
call fcn.00462bd0
add esp, 0x18
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x430c2d
sub dword [ebp - 0x318], 4
push 0
lea eax, [ebp - 0x318]
push eax
push ebx
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004600e1
mov esp, ebp
pop ebp
ret
Function at 0x435dcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x435e14
call fcn.004460b8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x435e14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x435e30
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004310b5
mov ebx, eax
test edi, edi
je 0x435e2e
test esi, esi
je 0x435e2e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43aa71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004460b8
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43aaa8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043aac9
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x472642
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b0760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004672ae
mov dword [ebp - 0x14], eax
cmp dword [0x4b6b3c], esi
jne 0x472735
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4726c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x472815
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x472815
push 0x490f08
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x472815
push eax
call ebx
push 0x490f14
push edi
mov dword [0x4b6b3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x490f24
push edi
mov dword [0x4b6b40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b6b44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b6b4c], eax
test eax, eax
je 0x472732
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b6b48], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47275a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47274d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x47276f
push 4
pop eax
jmp 0x472817
cmp dword [ebp - 0x14], esi
je 0x47276f
push dword [0x4b6b3c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x472754
mov eax, dword [0x4b6b48]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4727cd
cmp dword [0x4b6b4c], edi
je 0x4727cd
push eax
call ebx
push dword [0x4b6b4c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4727cd
test eax, eax
je 0x4727cd
call ecx
test eax, eax
je 0x4727c2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4727c2
test byte [ebp - 8], 1
jne 0x4727cd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4727fd
mov eax, dword [0x4b6b40]
cmp eax, edi
je 0x4727fa
push eax
call ebx
test eax, eax
je 0x4727fa
call eax
mov esi, eax
test esi, esi
je 0x4727fa
mov eax, dword [0x4b6b44]
cmp eax, edi
je 0x4727fa
push eax
call ebx
test eax, eax
je 0x4727fa
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b6b3c]
call ebx
test eax, eax
je 0x472815
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x472817
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004600e1
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x402c00
pop dword [ebp - 8]
mov eax, 0x402c00
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xae0f89c0
add dword [ebp - 0x18], 0xa042bb8b
mov dword [ebp - 0x14], 0xeec38579
add dword [ebp - 0x14], 0x436fc6cc
mov dword [ebp - 0x10], 0xcf287ff1
add dword [ebp - 0x10], 0x7d23c43d
mov dword [ebp - 0xc], 0x9843514e
sub dword [ebp - 0xc], 0x9843514e
lea eax, [ebp - 0x18]
push eax
mov eax, 0x526c1841
sub eax, 0x522ba7dd
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x3ecb8daa
add dword [ebp - 0x18], 0x35a6dbac
mov dword [ebp - 0x14], 0x26821e8d
add dword [ebp - 0x14], 0x1aea42e8
mov dword [ebp - 0x10], 0x54d0f20f
add dword [ebp - 0x10], 0xe9e7a5d
mov dword [ebp - 0xc], 0x8fdb94b9
add dword [ebp - 0xc], 0x70246b47
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xc7cea092
add eax, 0x3871d016
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35756
push 0
call eax
mov ecx, 0x4314
mov edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 8]
mov edx, 0xbb3c62a1
add edx, 0x9af44d1f
mov esi, dword [ebx]
sub dword [ebp - 4], 0x5e5072be
add esi, edx
xor dword [ebp - 4], 0x6846936d
mov dword [edi], esi
xor dword [ebp - 4], ecx
add edi, 0xe53b879a
add edi, 0x1ac4786a
add ebx, 0x83cf2c5f
sub ebx, 0x83cf2c5b
loop 0x402d11
add eax, 0xff23
xor ebx, ebx
add ebx, eax
add eax, 0x5b5698b6
sub eax, 0x5b5698b1
mov ecx, 0x56cb3255
sub ecx, 0x568b3255
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401bd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5698bc
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x5cbff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.004045f8
push 0
call fcn.004057b1
push 0xc
call fcn.004038cb
add esp, 8
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x401c59
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00406653
mov esi, eax
jmp 0x401c5b
xor esi, esi
push 0x57a9f4
mov dword [ebp - 4], 0xffffffff
call fcn.0040efa4
push 0x5ada60
mov ecx, edi
call fcn.00412750
push 0x2e0
lea eax, [ebp - 0x2f8]
push 0
push eax
call fcn.0054e0b0
add esp, 0xc
lea ecx, [ebp - 0x2f8]
push 0
push 0x66
call fcn.0041a422
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x220]
mov dword [ebp - method.CDialogEx.virtual_0], 0x5ade5c
call fcn.0041aa94
mov dword [ebp - method.CEdit.virtual_0], vtable.CEdit.0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 2
call fcn.0041aa94
mov dword [ebp - method.CEdit.virtual_0], vtable.CEdit.0
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 3
call fcn.0041aa94
mov dword [ebp - method.CEdit.virtual_0], vtable.CEdit.0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call fcn.0041aa94
mov dword [ebp - 0xa0], vtable.CEdit.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], vtable.CFont.0
mov byte [ebp - 4], 6
call fcn.00422856
call fcn.00422856
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x2f8]
mov dword [ebp - 4], 7
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00412f80
test esi, esi
je 0x401d63
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
call fcn.00413f2e
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFont.0
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
call fcn.004155cb
lea ecx, [ebp - 0x120]
call fcn.004155cb
lea ecx, [ebp - 0x1a0]
call fcn.004155cb
lea ecx, [ebp - 0x220]
call fcn.004155cb
lea ecx, [ebp - 0x238]
call fcn.004186c7
lea ecx, [ebp - 0x244]
mov dword [ebp - method.CBrush.virtual_0], vtable.CBrush.0
call fcn.00402cf0
lea ecx, [ebp - 0x2f8]
call fcn.00412a29
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c250
mov esp, ebp
pop ebp
ret
Function at 0x402060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402089
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40209f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402096
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4020d2
nop
cmp esi, ecx
jae 0x402096
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4020c0
cmp esi, ecx
jae 0x402096
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.00416f12
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x402281
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402281
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402281
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402281
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402208
cmp esi, ecx
jae 0x402281
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4021f2
cmp esi, ecx
jae 0x402281
movzx eax, word [esi]
test ax, ax
je 0x402281
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40223b
push edi
mov ecx, ebx
call fcn.00402a50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40223e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0055273a
add esp, 0x10
cmp eax, 0x50
ja case.0x40225c.1
movzx eax, byte [eax + 0x4022b0]
jmp dword [eax*4 + 0x4022a0]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402291
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00416884
push 0x80070057
call fcn.00402b00
call fcn.0041686a
arpl word [edx], sp
inc eax
add byte [edx + 0x229b0040], cl
inc eax
add byte [ebx + 0x4022], bl
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3
Function at 0x402310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor cl, cl
test eax, eax
je 0x40241a
test eax, 0xffff0000
jne 0x40241a
push esi
push edi
movzx edi, ax
push edi
call fcn.00416f12
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x402416
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402416
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402416
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402416
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4023a9
cmp esi, ecx
jae 0x402416
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402397
cmp esi, ecx
jae 0x402416
movzx eax, word [esi]
test ax, ax
je 0x402416
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x4023dc
push edi
mov ecx, ebx
call fcn.00402a50
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x4023df
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.0055273a
add esp, 0x10
cmp eax, 0x50
ja case.0x4023fd.1
movzx eax, byte [eax + 0x402448]
jmp dword [eax*4 + 0x402438]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x40242d
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop edi
mov cl, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041686a
call fcn.00416884
push 0x80070057
call fcn.00402b00
nop
add al, 0x24
inc eax
add byte [eax], ch
and al, 0x40
add byte [ebx], ah
and al, 0x40
add byte [ebx], ah
and al, 0x40
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3

Function at 0x403680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00412c0d