joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b551
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041b510
mov bl, byte [ebp + 0x10]
mov eax, dword [ebp + 8]
mov cl, bl
xor edi, edi
mov eax, dword [eax]
push edi
neg cl
sbb ecx, ecx
push 0x80
and ecx, 0x40000000
push 3
push edi
or ecx, 0x80000000
push 1
push ecx
push eax
call dword [0x4912b4]
push edi
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41b5ed
cmp dword [ebp + 0x10], 0xffffffff
je 0x41b5ed
mov cl, bl
push edi
neg cl
sbb ecx, ecx
push edi
and ecx, 2
push edi
inc ecx
inc ecx
push ecx
push edi
push eax
call dword [0x4912b0]
cmp eax, edi
mov dword [esi + 8], eax
je 0x41b5ed
neg bl
sbb ebx, ebx
push edi
and ebx, 0xfffffffe
push edi
add ebx, 4
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x41b5ed
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
jmp 0x41b5ef
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41cbe8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46da36
call fcn.00446d84
push ecx
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x14]
call fcn.0041b4cf
mov cl, byte [ebp - 0xd]
xor eax, eax
mov dword [ebp - 4], eax
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [esi], 0x47232c
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
call fcn.0041cc3c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41cf49
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41cf84
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41cf6b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41cf7c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41cf86
inc edi
add eax, 0x28
cmp edi, esi
jb 0x41cf61
xor eax, eax
pop edi
pop esi
ret
Function at 0x427966
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x46ea8c
call fcn.00446d84
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00416d67
xor ebx, ebx
lea edi, [esi + 0x34]
push ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0044634e
mov dword [edi], 0x472cdc
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x64
mov dword [esi], 0x472cd8
pop ecx
mov byte [esi + 0x19], bl
mov eax, ecx
mov byte [esi + 0x1b], bl
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], bl
mov byte [esi + 0x18], bl
mov byte [esi + 0x1a], bl
mov dword [esi + 0x30], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42a1ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0xc]
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push str.open
push ecx
call dword [0x491394]
cmp eax, 0x20
mov dword [ebp + 8], eax
ja 0x42a2fa
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
mov edi, SysReAllocStringLen
push str..htm
push edi
call fcn.0042a18a
test eax, eax
jne 0x42a2fa
mov esi, dword [0x491364]
lea eax, [ebp - 0x414]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0042a18a
test eax, eax
jne 0x42a2fa
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.0044867d
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x42a2bb
lea eax, [ebp - 0x414]
push 0x48c288
push eax
call fcn.0044867d
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x42a2bb
lea eax, [ebp - 0x414]
push eax
call dword [0x491378]
lea edi, [ebp + eax*2 - 0x416]
jmp 0x42a2bf
and word [edi], 0
push 0x48bf28
push edi
call esi
push dword [ebx]
push edi
call esi
lea eax, [ebp - 0x414]
push 0x400
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00447b54
add esp, 0xc
lea eax, [ebp - 0x814]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42b387
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x42b3ed
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x42b3ed
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42b3ed
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 8]
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi]
push eax
call fcn.00447b2f
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x42d183
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x46f180
call fcn.00446d84
push ecx
and byte [ebp - 0xd], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [esi], 0
call fcn.00467ab0
mov edi, dword [eax + 0xc]
push str.ZLIB_DLL
movzx eax, word [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x42d260
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0x10], eax
je 0x42d260
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [ebp + 0xc]
mov dword [esi], eax
test eax, eax
je 0x42d20f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x42d20f
push dword [esi]
call fcn.0045fc3f
test eax, eax
pop ecx
mov dword [edi], eax
je 0x42d20f
push dword [esi]
push ebx
push eax
call fcn.00447280
add esp, 0xc
mov byte [ebp - 0xd], 1
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [ebp - 0xd], 0
je 0x42d260
mov dword [ebp + 0x10], 0x471d70
push dword [esi]
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0x10]
push dword [edi]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042e65e
test al, al
jne 0x42d24e
push dword [edi]
and byte [ebp - 0xd], al
call fcn.0045fc68
pop ecx
jmp 0x42d260
push dword [edi]
call fcn.0045fc68
mov eax, dword [ebp + 8]
pop ecx
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42e6c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00467ab0
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 0x14]
push dword [eax]
movzx eax, word [ebp + 8]
push eax
push esi
call dword [0x4912c8]
mov edi, eax
xor bl, bl
test edi, edi
je 0x42e760
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 0x14], eax
je 0x42e760
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x42e760
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42e760
mov eax, dword [esi]
cmp eax, 0x1800000
jae 0x42e755
mov ebx, dword [ebp + 0x10]
push eax
mov dword [ebx], eax
call fcn.0045fc3f
pop ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x42e755
add edi, 0xfffffffc
add esi, 4
push edi
push esi
push ebx
push eax
call fcn.0042fe50
mov ebx, eax
add esp, 0x10
neg ebx
sbb bl, bl
inc bl
jmp 0x42e757
xor bl, bl
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
mov al, bl
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x430812
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x43089a
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00447280
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x43085d
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x43087f
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4308f5
mov ecx, dword [esi + 0x6c]
push ebx
add ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x30]
push ecx
push eax
call fcn.004308fa
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x4308e1
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x4308f5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x43081e
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x435120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46f3d1
push eax
mov eax, 0x1038
mov dword fs:[0], esp
call fcn.004471c0
mov eax, dword [esp + 0x1048]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x1c]
mov ebp, dword [0x491460]
xor ebx, ebx
push ebx
push ebx
push 0x31
push edx
call ebp
push eax
call fcn.0046255f
mov edi, eax
cmp edi, ebx
je 0x4351b3
cmp dword [edi + 4], ebx
je 0x4351b3
mov eax, dword [0x48d2d4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], ebx
push ecx
mov ecx, esi
call fcn.0045c82d
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebx
jne 0x4351d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
call fcn.0045f650
xor al, al
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1044
ret 4
push esi
lea ecx, [esp + 0x1c]
call fcn.00462380
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1054], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], eax
call dword [edx + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1c]
push ebx
push ebx
push 0xba
push eax
mov byte [esp + 0x1060], 2
call ebp
xor ebp, ebp
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x43529f
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x48]
push ecx
push edi
push 0xc4
push edx
mov word [esp + 0x58], 0x1000
call dword [0x491460]
cmp eax, 0x1000
jge 0x435251
mov word [esp + eax*2 + 0x48], 0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0045f7e7
push 0x48cfcc
lea ecx, [esp + 0x14]
call fcn.0045fa41
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [0x491290]
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jle 0x435290
mov ebp, eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
add ebx, edx
inc edi
cmp edi, eax
jl 0x435227
mov eax, dword [esp + 0x1058]
mov ecx, dword [esi + 0x78]
mov edi, dword [esi + 0x74]
mov byte [esp + 0x1050], 1
mov edx, dword [eax]
add ecx, edi
add ecx, edx
lea edx, [ecx + ebp + 5]
mov ecx, dword [eax + 4]
mov dword [eax + 8], edx
lea edx, [ecx + ebx + 5]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4352e6
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4352e6
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call dword [eax + 0x28]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1050], 0
call fcn.004623f2
lea ecx, [esp + 0x10]
mov dword [esp + 0x1050], 0xffffffff
call fcn.0045f650
mov al, 1
jmp 0x4351b5
Function at 0x435560
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f428
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov ebp, ecx
push edi
mov eax, dword [esi + 0x38]
lea ecx, [eax*4 + 0x28]
push ecx
call fcn.0045fc3f
mov ebx, eax
add esi, 0x18
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 8]
mov edi, dword [esp + 0x38]
mov dword [ebx + 4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x14], ecx
mov eax, dword [edi + 0x38]
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [ebp + 0x1c], eax
jbe 0x43563a
lea ecx, [esp + 0x10]
call fcn.00461b06
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call fcn.00461bbd
mov edx, dword [esp + 0x30]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edx + 4]
cmp eax, esi
je 0x4355fe
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
mov esi, eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [ebx + 0x28]
neg eax
push ecx
mov ecx, dword [edi + 0x38]
sbb eax, eax
push ecx
and eax, edx
push 0
push eax
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
test esi, esi
je 0x435629
mov edx, dword [esp + 0x14]
push esi
push edx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00461c25
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x436360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x10]
push eax
call fcn.0045fc3f
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
setne byte [esp + 0x30]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 4]
push esi
push eax
push ecx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov edi, dword [edi + 0xc]
xor edx, edx
div edi
cmp edi, ebx
mov dword [esp + 0x18], eax
mov eax, esi
mov dword [esp + 0x14], eax
jbe 0x436536
push ebp
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov edi, eax
xor eax, eax
xor esi, esi
mov ecx, dword [edx + 8]
test ecx, ecx
jbe 0x436515
mov cl, byte [edi]
mov dl, byte [edi + 1]
inc edi
mov byte [esp + 0x13], cl
inc edi
mov byte [esp + 0x4c], dl
mov dl, byte [esp + 0x50]
mov cl, byte [edi]
inc edi
cmp cl, dl
jne 0x43641b
mov cl, byte [esp + 0x54]
mov dl, byte [esp + 0x4c]
cmp dl, cl
jne 0x43641b
mov dl, byte [esp + 0x58]
mov cl, byte [esp + 0x13]
cmp cl, dl
jne 0x43641b
inc eax
jmp 0x436493
test eax, eax
je 0x436491
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CRgn.0
lea ecx, [ebx + 1]
mov edx, esi
push ecx
push esi
sub edx, eax
push ebx
push edx
mov byte [esp + 0x54], 1
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x28]
call fcn.00462574
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
neg eax
sbb eax, eax
and eax, edx
test ebp, ebp
jne 0x436465
xor ecx, ecx
jmp 0x436468
mov ecx, dword [ebp + 4]
push 3
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.004625cb
mov byte [esp + 0x44], 0
xor eax, eax
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, dword [ecx + 8]
jb 0x4363e6
test eax, eax
je 0x436515
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CRgn.0
lea edx, [ebx + 1]
mov byte [esp + 0x44], 3
push edx
push esi
sub esi, eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x30]
call fcn.00462574
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
test ebp, ebp
jne 0x4364e9
xor ecx, ecx
jmp 0x4364ec
mov ecx, dword [ebp + 4]
push 3
push eax
mov eax, dword [ebp + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 4
call fcn.004625cb
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, edi
inc ebx
mov dword [esp + 0x18], eax
cmp ebx, dword [ecx + 0xc]
jb 0x4363d1
mov esi, dword [esp + 0x20]
pop ebp
mov al, byte [esp + 0x30]
test al, al
je 0x436547
push esi
call fcn.0045fc68
add esp, 4
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x10
Function at 0x437890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46f623
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00461b06
lea ebx, [esi + 0x10]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x2c], ebp
call fcn.00422cf2
mov dword [ebx], 0x471704
mov edi, dword [esp + 0x34]
mov dword [esi], method.CDC.virtual_0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ebp
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x38]
cmp eax, ebp
push ecx
sete al
mov byte [esp + 0x30], 1
mov byte [esi + 0x30], al
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
lea ebp, [esi + 0x20]
je 0x437909
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x50]
jmp 0x437926
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov al, byte [esi + 0x30]
test al, al
je 0x437a0f
test edi, edi
jne 0x437939
xor eax, eax
jmp 0x43793c
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00461bbd
mov eax, dword [edi + 8]
push 2
push ebp
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
sub eax, ecx
mov ecx, dword [ebp + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call fcn.00462574
test ebx, ebx
je 0x437983
mov ebx, dword [ebx + 4]
mov edx, dword [esi + 4]
push ebx
push edx
call fcn.00461ce8
mov dword [esi + 0x18], eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.00461e0d
mov edx, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [edi + 8]
push 2
push ebp
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esi + 0x24]
mov eax, dword [ebp]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00461f77
jmp 0x437a21
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push ebp
mov ecx, esi
call fcn.00465275
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x437f10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46f67c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
mov eax, dword [0x48d2d4]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x10]
mov dword [ebp], eax
lea edi, [esi + 0x20]
xor ebx, ebx
mov dword [esp + 0x210], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CFont.0
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebx
push 0x29
mov byte [esp + 0x220], 1
mov dword [esi], 0x4773d8
mov dword [esp + 0x24], 0x1f4
call dword [0x491484]
lea edx, [esp + 0x150]
push edx
call dword [0x491270]
push eax
mov ecx, edi
call fcn.00462574
mov ecx, ebp
call fcn.0045f5d8
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x208]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], 0xb43c3c
mov dword [esi + 0x1c], 0x34
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x204
ret
Function at 0x43b060
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46fab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor bl, bl
push edi
mov byte [esp + 0x13], bl
mov dword [ebp], 0
call fcn.00467ab0
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [0x4912c8]
mov edi, eax
test edi, edi
je 0x43b1b4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x43b1b4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [esp + 0x28]
mov dword [ebp], eax
test eax, eax
je 0x43b118
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43b118
mov eax, dword [ebp]
push eax
call fcn.0045fc3f
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x43b118
mov ecx, dword [ebp]
mov edi, eax
mov edx, ecx
mov byte [esp + 0x13], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, byte [esp + 0x13]
test al, al
je 0x43b1b6
mov cl, byte [esp + 0x34]
test cl, cl
je 0x43b1b6
mov dword [esp + 0x34], 0x471d70
mov ecx, dword [ebp]
mov edx, dword [ebx]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0
call fcn.0042e65e
test al, al
jne 0x43b185
mov edx, dword [ebx]
push edx
call fcn.0045fc68
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [ebx]
push eax
call fcn.0045fc68
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x17]
add esp, 4
mov dword [ebx], ecx
mov dword [ebp], edx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov al, bl
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret