joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44bf9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bf7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44bf8c
or bl, 4
test esi, 0x20000000
je 0x44bf97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4525a0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4525b2
add esp, 0xfffffff0
call fcn.00403a48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ca04
mov eax, dword [0x46c678]
mov dword [eax + 4], ebx
mov dword [eax], 0x452944
mov eax, dword [0x46c684]
mov dword [eax + 4], ebx
mov dword [eax], 0x452950
mov eax, ebx
call fcn.0045295c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44ee24
push eax
push 0
push 0
mov eax, dword [0x46c7b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e41c]
call fcn.0041faf0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e41c]
call fcn.0041faf0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e41c]
call fcn.0041faf0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452d7c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452c58
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452c58
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452c58
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4526ef
call fcn.00403aa0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452a3c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452be7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452bc8
mov dl, 1
mov eax, dword [0x412f54]
call fcn.004036b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404450
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452bb7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440660
test al, al
je 0x452baa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452bf8
lea eax, [ebp - 0x254]
call fcn.00409280
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452baa
xor eax, eax
push ebp
push 0x452ba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452c30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452b8c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452b8c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452baa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452aad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041709c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452bee
lea eax, [ebp - 0x260]
call fcn.00404450
ret

Function at 0x45351c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46dbfc]
cmp byte [eax + 0xa5], 0
jne 0x45358d
cmp dword [0x46dc14], 0
jne 0x45354e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4534d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46dc14], eax
cmp dword [0x46dc10], 0
jne 0x453569
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46dc10], eax
cmp dword [0x46dc18], 0
jne 0x45358d
push esp
push 0
push 0
push 0x45347c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46dc18], eax
pop edx
ret
Function at 0x453684
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45369b
add esp, 0xfffffff0
call fcn.00403a48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ca04
mov eax, dword [0x46c7a0]
cmp word [eax + 2], 0
jne 0x4536c3
mov eax, dword [0x46c7a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454d48
mov eax, dword [0x46c834]
cmp word [eax + 2], 0
jne 0x4536dd
mov eax, dword [0x46c834]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454f40
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412a64]
call fcn.004036b4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ee9c]
call fcn.0042653c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453864
mov eax, dword [0x46c6d4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042690c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4554c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46c6d4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bdcc
test eax, eax
je 0x4537d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bdc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bdf4
test eax, eax
je 0x4537e6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004046b8
mov eax, dword [0x46c5d8]
cmp byte [eax], 0
jne 0x45381a
mov eax, ebx
call fcn.0045398c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045569c
mov eax, ebx
call fcn.00455fdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45385a
call fcn.00403aa0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453c00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46dbfc]
cmp dword [eax + 0x30], 0
je 0x453caa
cmp dword [ebx + 0x94], 0
jne 0x453ca4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453b90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453ca4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x453c6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453ca4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415104
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453c79
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454788
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4547bd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404540
jmp 0x4547ca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044a4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455878
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4558b9
mov eax, esi
call fcn.0043bd98
test al, al
je 0x4558b9
mov eax, dword [ebx + 0x84]
call fcn.0043ba94
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4558b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ba94
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45941c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45944a
mov eax, ebx
call fcn.00459ed4
cmp dword [ebx + 0x3c], 0
je 0x459443
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4594bb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4594ad
cmp dword [ebx + 8], 0
je 0x45946c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45947e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4594ad
cmp dword [ebx + 8], 0
je 0x45945f
cmp eax, 3
je 0x459491
dec eax
jne 0x45945f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45945f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45945f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4594d9
cmp dword [ebx + 0x10], 0xcc
je 0x4594d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004594e4
pop ebx
ret
Function at 0x469950
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
xor eax, eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x469a22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00407274
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x54], 0xc
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x60], 0xc
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xffffffff
lea edx, [ebp - 0x68]
mov eax, dword [0x46c820]
mov eax, dword [eax]
call fcn.00455220
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00408a78
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 4]
mov ecx, 0x469a38
call fcn.00404754
push 0x46dce4
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
call fcn.00404900
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469a29
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00404474
lea eax, [ebp - 4]
call fcn.00404450
ret

Function at 0x469a50
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x46c820]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0xfffbffff
push 0xffffffffffffffec
mov eax, dword [0x46c820]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x46c820]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x469c98
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.00469ba0
cmp al, 2
jne 0x469ce2
mov cl, 1
mov edx, 0x469d04
mov eax, ebx
call fcn.00469bdc
cmp esi, 2
jne 0x469cc5
push 0
push 4
call sub.user32.dll_ExitWindowsEx
push 0
push esi
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x469cf8
xor ecx, ecx
mov edx, 0x469d04
mov eax, ebx
call fcn.00469bdc
pop esi
pop ebx
ret
cmp esi, 2
jne 0x469cf0
push 0
push 4
call sub.user32.dll_ExitWindowsEx
push 0
push esi
call sub.user32.dll_ExitWindowsEx
pop esi
pop ebx
ret

Function at 0x46a8c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov eax, 0x46a6d8
call fcn.004067f4
mov ebx, dword [0x46c820]
mov eax, dword [ebx]
call fcn.00454bb0
mov eax, dword [ebx]
mov edx, 0x46a928
call fcn.004547d4
mov ecx, dword [0x46c804]
mov eax, dword [ebx]
mov edx, dword [0x46961c]
call fcn.00454bc8
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx]
call fcn.00454c48
pop ebx
call fcn.00404360
add byte [eax], al
add bh, bh
invalid
Function at 0x401390
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 0x4013a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013d0
cmp esi, eax
jb 0x4013ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402280
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x431db2
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4425ac]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov eax, dword [0x4425ac]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
xor ebx, ebx
push 0x434b78
mov ecx, esi
mov dword [esp + 0x224], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call fcn.004021c0
push 0x1ff
lea eax, [esp + 0x19]
push ebx
push eax
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], bl
call fcn.0041f650
add esp, 0xc
push ebx
push 0x25
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x402326
push 0x13
push str.C:WindowsSystem32
mov ecx, esi
call fcn.00401b70
jmp 0x402339
lea edx, [esp + 0x14]
push edx
push 0x434b60
push esi
call fcn.00401e50
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0041fb01
add esp, 0x218
ret 4
Function at 0x402370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x431e00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4425ac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebp
call fcn.0040dfb3
mov edi, dword [eax + 8]
push 0x434b78
lea ecx, [esp + 0x1c]
call fcn.004021c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
call fcn.0040f321
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x40], 1
call fcn.00402280
push str.CMBCCertKitAx.dll
push eax
lea ecx, [esp + 0x24]
mov bl, 2
push ecx
mov byte [esp + 0x48], bl
call fcn.00401fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 3
call fcn.00401d90
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40241f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x30]
call fcn.0040f797
test eax, eax
jne 0x402471
push 0x2a
lea ecx, [esi + 0x74]
push 0x434bf0
call fcn.00401b70
jmp 0x40250d
push 0x434bec
push 0x81
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x402499
push 0x10
lea ecx, [esi + 0x74]
push 0x434bd8
call fcn.00401b70
jmp 0x4024fe
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x4024b6
push 0x434bc0
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x4024fe
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4024d1
push 0x434ba8
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x4024fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4024eb
push 0x434b98
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x4024fe
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f057
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x402509
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp edx, dword [0x4366fc]
je 0x402522
lea ecx, [esp + 0x24]
call fcn.0040f2bb
test ebp, ebp
jne 0x40253a
mov eax, dword [esi + 0x74]
mov esi, dword [esi + 0x20]
push ebp
push 0x434b7c
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.0040f429
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x402590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x431e00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4425ac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebp
call fcn.0040dfb3
mov edi, dword [eax + 8]
push 0x434b78
lea ecx, [esp + 0x1c]
call fcn.004021c0
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
call fcn.0040f321
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x40], 1
call fcn.00402280
push str.CFCALicense.dll
push eax
lea ecx, [esp + 0x24]
mov bl, 2
push ecx
mov byte [esp + 0x48], bl
call fcn.00401fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 3
call fcn.00401d90
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40263f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402664
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x30]
call fcn.0040f797
test eax, eax
jne 0x402691
push 0x2e
lea ecx, [esi + 0x74]
push 0x434c94
call fcn.00401b70
jmp 0x40272d
push 0x434bec
push 0x84
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
jne 0x4026b9
push 0x14
lea ecx, [esi + 0x74]
push 0x434c7c
call fcn.00401b70
jmp 0x40271e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
ja 0x4026d6
push 0x434c60
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x40271e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026f1
push 0x434c44
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x40271e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40270b
push 0x434c30
lea ecx, [esi + 0x74]
call fcn.00402180
jmp 0x40271e
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f057
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x402729
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp edx, dword [0x4366fc]
je 0x402742
lea ecx, [esp + 0x24]
call fcn.0040f2bb
test ebp, ebp
jne 0x40275a
mov eax, dword [esi + 0x74]
mov esi, dword [esi + 0x20]
push ebp
push 0x434b7c
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.0040f429
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret