joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a8e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45aa0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x64
call fcn.00402730
mov ebx, eax
push ebx
push 0x64
call sub.kernel32.dll_GetTempPathA
mov eax, 0x49cc08
mov edx, ebx
call fcn.00404580
mov eax, ebx
call fcn.00402750
xor eax, eax
push ebp
push 0x45a9c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
lea edx, [ebp - 8]
mov eax, dword [0x49bdf0]
mov eax, dword [eax]
call fcn.004599e0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4130c0]
call fcn.00416f80
mov dword [0x49cc00], eax
push 0
push 0x50
mov eax, dword [0x49cc00]
call fcn.00416aec
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [0x49cc00]
call fcn.00416cf8
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov eax, dword [0x49cc00]
call fcn.00416aec
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [0x49cc00]
call fcn.00416cf8
cmp dword [ebp - 4], 0x22322
sete byte [0x49cc04]
cmp dword [ebp - 4], 0x111111
jne 0x45a9bb
mov bl, 1
jmp 0x45a9bd
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a9f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aa11
lea eax, [ebp - 8]
call fcn.00404388
ret

Function at 0x46169c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x49ce10], 0
je 0x4616b5
mov eax, 6
jmp 0x461771
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x46176c
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x461721
dec ecx
jne 0x461765
cmp eax, 4
jg 0x4616ef
mov eax, 4
jmp 0x461771
cmp eax, 5
jne 0x4616ff
test edx, edx
jne 0x4616ff
mov eax, 5
jmp 0x461771
cmp eax, 5
jne 0x46170e
dec edx
jne 0x46170e
mov eax, 6
jmp 0x461771
cmp eax, 5
jle 0x46171a
mov eax, 7
jmp 0x461771
mov eax, 0xf423f
jmp 0x461771
cmp eax, 4
jne 0x46172e
test edx, edx
jne 0x46172e
xor eax, eax
jmp 0x461771
cmp eax, 4
jne 0x46174d
cmp edx, 0xa
jne 0x46174d
cmp byte [esp + 0x15], 0x41
jne 0x461746
mov eax, 2
jmp 0x461771
mov eax, 1
jmp 0x461771
cmp eax, 4
jne 0x46175e
cmp edx, 0x5a
jne 0x46175e
mov eax, 3
jmp 0x461771
mov eax, 0xf423f
jmp 0x461771
mov eax, 0xf423f
jmp 0x461771
mov eax, 0xf423f
add esp, 0x94
ret

Function at 0x479f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, eax
cmp ebx, 0xff
jle 0x479f42
push ebx
call sub.user32.dll_GetAsyncKeyState
movzx eax, ax
shr eax, 0xf
and eax, 1
cmp eax, 1
sete al
pop ebx
ret
cmp byte [ebx + 0x49cfa0], 0
jne 0x479f82
push ebx
call sub.user32.dll_GetAsyncKeyState
movsx eax, ax
mov edx, eax
and edx, 1
cmp edx, 1
jne 0x479f67
mov byte [ebx + 0x49cfa0], 1
jmp 0x479f82
shr eax, 0xf
and eax, 1
cmp eax, 1
jne 0x479f7b
mov byte [ebx + 0x49cfa0], 1
jmp 0x479f82
mov byte [ebx + 0x49cfa0], 2
cmp byte [ebx + 0x49cfa0], 1
sete al
pop ebx
ret
Function at 0x479f90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov eax, 0x49cfa0
mov edx, pe_nt_image_headers32
call fcn.004070e0
xor ebx, ebx
push ebx
call sub.user32.dll_GetAsyncKeyState
inc ebx
cmp ebx, 0x100
jne 0x479fa2
pop ebx
ret

Function at 0x47d19c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d1ca
mov eax, ebx
call fcn.0047dc50
cmp dword [ebx + 0x40], 0
je 0x47d1c3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d23b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d22d
cmp dword [ebx + 8], 0
je 0x47d1ec
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d1fe
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d22d
cmp dword [ebx + 8], 0
je 0x47d1df
cmp eax, 3
je 0x47d211
dec eax
jne 0x47d1df
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 0x47d1df
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d1df
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d259
cmp dword [ebx + 0x14], 0xcc
je 0x47d259
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047d264
pop ebx
ret
Function at 0x48da48
Capabilities:
Create thread

Disassembly:
ret
call fcn.0048db37
pop eax
pop edx
pop dword [0x49f220]
pop ecx
test edx, edx
push eax
je 0x48da47
push ebx
push esi
push edi
push ebp
mov ebx, 0x49d210
mov ebp, 0x49f234
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x48d854
jne 0x48da83
test cl, 2
lea esi, [esi + 0xc]
jne 0x48da83
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x48daa2
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x48d83c
push 0xffffffffffffffff
push ebx
call sub.winmm.dll_waveOutOpen
call sub.kernel32.dll_HeapCreate
test eax, eax
mov dword [ebx - 8], eax
je 0x48dacf
mov dword [ebp - 0xc], esi
call fcn.0048e2c4
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x48db3b
mov esi, 0x4af244
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x49f244
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutPrepareHeader
xor edi, edi
call fcn.0048dbf8
cmp dword [ebx + 4], edi
jne 0x48daf8
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutWrite
test eax, eax
jne 0x48db3b
push ebp
push edi
push edi
push 0x48dba4
push edi
push edi
call sub.kernel32.dll_CreateThread_2
test eax, eax
mov dword [ebx - 4], eax
je 0x48db3b
push 0xf
push eax
call sub.kernel32.dll_SetThreadPriority_1
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x49d20c
mov eax, dword [ebp]
test eax, eax
je 0x48db57
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call sub.kernel32.dll_WaitForSingleObject_1
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x48db82
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x4af244
push edi
push edi
call sub.winmm.dll_waveOutReset
call sub.winmm.dll_waveOutUnprepareHeader
call sub.winmm.dll_waveOutClose
mov eax, dword [ebp - 4]
test eax, eax
je 0x48db9f
mov dword [ebp - 4], ebx
push eax
call sub.kernel32.dll_HeapDestroy
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x4af264
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401dd0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x10]
call fcn.0040fef8
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x401e25
push 0x74
call ebx
test ax, ax
jge 0x401e25
cmp dword [esp + 0x10], 0
je 0x401e1a
mov edx, dword [esp + 0xc]
push edx
push 0
call fcn.0040f5c8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401e9d
cmp dword [esi + 4], edi
jne 0x401e9d
push 0x4f
call ebx
test ax, ax
jl 0x401e07
cmp dword [esi + 4], edi
jne 0x401e9d
push 0x50
call ebx
test ax, ax
jge 0x401e71
cmp dword [esp + 0x10], 0
je 0x401e66
mov eax, dword [esp + 0xc]
push eax
push 0
call fcn.0040f5c8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], edi
jne 0x401e9d
push 0x4e
call ebx
test ax, ax
jge 0x401e9d
cmp dword [esp + 0x10], 0
je 0x401e92
mov ecx, dword [esp + 0xc]
push ecx
push 0
call fcn.0040f5c8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esp + 0x10], 0
je 0x401eb0
mov edx, dword [esp + 0xc]
push edx
push 0
call fcn.0040f5c8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x10
Function at 0x4038c0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
push esi
call fcn.0040feac
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 0x44]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4038f0
lea eax, [esi + 1]
pop esi
pop ebp
ret 0xc
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x403909
lea eax, [ebx + 2]
pop ebx
pop esi
pop ebp
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403921
pop ebx
pop esi
mov eax, 3
pop ebp
ret 0xc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x403939
lea eax, [edi + 4]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403988
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 0xc
pop edi
pop ebx
pop esi
mov eax, 5
pop ebp
ret 0xc
Function at 0x405150
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x438ae8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44b418]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.004101aa
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40518d
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x10]
push 0x43fe88
push edx
mov dword [esp + 0x24], 0
call fcn.004020b0
mov eax, dword [ebx + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, dword [esp + 0xc]
test eax, eax
je 0x405223
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [edi - 0xc]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4051f3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0
push 0
push 0x43fec0
mov ecx, ebx
call fcn.00418069
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405247
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x405be0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004151b0
Function at 0x406230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x438a93
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b418]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.0041610e
xor edi, edi
mov dword [esp + 0x30], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x30], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
mov dword [esi + 0x30], eax
cmp eax, edi
je 0x40637c
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004165b6
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_EqualRect]
lea edi, [esi + 0x20]
test eax, eax
je 0x4062e2
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x4062fd
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [edi], ecx
mov ecx, dword [esp + 0x48]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
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.00416888
test ebp, ebp
je 0x406323
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.00416917
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0041622a
cmp dword [esp + 0x4c], 0
je 0x40638e
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov ebp, dword [esi + 0x1c]
sub eax, dword [edi + 4]
mov edx, dword [esi + 0x24]
sub ecx, ebx
test ebp, ebp
je 0x406364
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40638e
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18
Function at 0x406520
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 0x406539
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406574
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406570
lea ebx, [ebx]
cmp esi, eax
jae 0x406574
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406560
cmp esi, eax
jb 0x40657a
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 0x4076b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esi + 4]
push ebp
xor ebp, ebp
push edi
cmp ecx, ebp
je 0x4076c3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
mov dword [esi + 4], ebp
cmp eax, ebp
je 0x4076e1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
jne 0x4076ff
pop edi
xor al, al
pop ebp
ret 8
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, ebp
je 0x4077cb
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
je 0x4077cb
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 8], eax
cmp eax, ebp
je 0x4077cb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x4077be
push ebx
push edi
push eax
call fcn.00429500
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ebp
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4077b4
mov edx, dword [esp + 0x14]
push edx
call fcn.00408eb0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4077b4
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebp
cmp ecx, ebp
jne 0x4077a2
pop ebx
pop edi
mov al, 1
pop ebp
ret 8
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x4077b1
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
pop ebx
pop edi
xor al, al
pop ebp
ret 8
Function at 0x413cc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x413d0a
call fcn.0040feac
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413d0a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x413d4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x413d36
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x413d36
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413d4a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41bec7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41bf0e
call fcn.0040feac
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bf0e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41bf2a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041ba41
mov esi, eax
test edi, edi
je 0x41bf28
test ebx, ebx
je 0x41bf28
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41c762
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x437990
call fcn.0042753a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41c787
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41c7cd
lea ecx, [ebp - 0x10]
call fcn.004024e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004104a3
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004024c0
mov eax, esi
call fcn.00427612
ret 8
Function at 0x425cbd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b418]
jne 0x425cc7
repz ret
jmp fcn.004293ee

Function at 0x432d1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042a95c
and dword [ebp - 4], 0
cmp dword [0x44f5c0], 0
mov ebx, eax
jne 0x432dcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432e7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f2ac
push edi
call esi
test eax, eax
je 0x432e7c
push eax
call fcn.0042a8ea
mov dword [esp], 0x43f29c
push edi
mov dword [0x44f5c0], eax
call esi
push eax
call fcn.0042a8ea
mov dword [esp], 0x43f288
push edi
mov dword [0x44f5c4], eax
call esi
push eax
call fcn.0042a8ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f5c8], eax
call esi
push eax
call fcn.0042a8ea
pop ecx
mov dword [0x44f5d0], eax
test eax, eax
je 0x432dcb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a8ea
pop ecx
mov dword [0x44f5cc], eax
mov eax, dword [0x44f5cc]
cmp eax, ebx
je 0x432e23
cmp dword [0x44f5d0], ebx
je 0x432e23
push eax
call fcn.0042a965
push dword [0x44f5d0]
mov esi, eax
call fcn.0042a965
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x432e23
test edi, edi
je 0x432e23
call esi
test eax, eax
je 0x432e1a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432e1a
test byte [ebp - 0xc], 1
jne 0x432e23
or dword [ebp + 0x10], 0x200000
jmp 0x432e5c
mov eax, dword [0x44f5c4]
cmp eax, ebx
je 0x432e5c
push eax
call fcn.0042a965
pop ecx
test eax, eax
je 0x432e5c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432e5c
mov eax, dword [0x44f5c8]
cmp eax, ebx
je 0x432e5c
push eax
call fcn.0042a965
pop ecx
test eax, eax
je 0x432e5c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f5c0]
call fcn.0042a965
pop ecx
test eax, eax
je 0x432e7c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432e7e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42808d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42808d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000187e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1004f010]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100018c3
cmp dword [ebp - 0x108], 2
jne 0x100018c3
cmp dword [ebp - 0x114], 6
jb 0x100018c3
xor eax, eax
inc eax
jmp 0x100018c5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002910
leave
ret