joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430af0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042b2a0
test eax, eax
je 0x430bdf
mov ecx, edi
call fcn.0042b2a0
mov ecx, eax
call fcn.004287f0
test eax, eax
jne 0x430bdf
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x430bdf
mov eax, dword [0x4a9290]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x430b52
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042b2a0
mov ecx, eax
call fcn.00428a20
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x430bdf
cmp ebx, eax
jne 0x430bdf
cmp dword [esp + 0x10], eax
jne 0x430bc5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x433810
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4698f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x433849
inc eax
mov dword [esi + 0x10], eax
jmp 0x43395c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43385d
mov eax, 0xffffffc7
jmp 0x43395e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43386e
cmp dword [esi + 8], eax
jne 0x43385d
cmp dword [esi + 8], eax
jne 0x433887
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433887
mov eax, 0xffffffc7
jmp 0x43395e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43389b
push eax
mov ecx, ebx
call fcn.00433040
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004041e0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4338cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00404200
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004327b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4338ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4726b0
call fcn.004043e0
mov eax, dword [esp + 0x38]
jmp 0x43395e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433670
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433943
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433690
mov esi, eax
test esi, esi
jne 0x433973
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433670
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x433915
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4726b0
call fcn.004043e0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4726b0
call fcn.004043e0
mov eax, esi
jmp 0x43395e

Function at 0x436a70
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436ad0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436ad0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436ad0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436ad0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x436b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43cc30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00462db5
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c5d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00462ce3
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045f5a7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045f5a7
push 1
push 0
push 0
mov ecx, esi
call fcn.0045f54f
push 1
push 0
push 1
mov ecx, esi
call fcn.0045f54f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462e27
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43cdb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00462db5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c5d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00462ce3
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ce74
cmp dword [esp + 0x40], 1
jne 0x43ce72
cmp ecx, eax
jge 0x43ce74
mov eax, ecx
cmp eax, 0xc8
jge 0x43ce80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cc30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462e27
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d5f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d9c4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046305d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464579
test eax, eax
je 0x43d70c
mov ecx, dword [esp + 0x3c]
call fcn.0046308a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d6d0
push edi
mov ecx, esi
call fcn.004606f7
mov ecx, esi
call fcn.0043d870
cmp dword [esp + 0x38], 1
jne 0x43d705
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00460832
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440120
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440153
push esi
call fcn.00443230
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44014c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4401d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4401c2
mov eax, dword [esi + 8]
test eax, eax
je 0x440177
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4401be
cmp eax, 2
je 0x4401c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44016a
cmp eax, 3
je 0x44019d
cmp eax, 1
jne 0x44016a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44016a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44016a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440200
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4401e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440200
add esp, 4
pop esi
ret

Function at 0x45e7ba
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e7f2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c871
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c849
jmp 0x45e7fe
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45feaf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45fef1
call fcn.0046595f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45fef1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45fee8
xor eax, eax
jmp 0x45fef9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045feff
pop edi
pop esi
pop ebx
ret 4

Function at 0x465e8f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x465ebd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465edb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465df5
jmp 0x465edb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465edb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465df5
test edi, edi
mov eax, edi
jne 0x465ec5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x46b382
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
push eax
push 0x18b
call fcn.0046d918
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
push 2
call dword [sym.imp.wsock32.dll_WSAStartup]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46b437
push 6
call fcn.0046d91e
add esp, 4
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov edi, dword [ebp - 0x10]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0046dcd0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x46b484
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x46b482
imul eax, dword [edi]
jmp 0x46b477
mov ecx, eax
cmp ecx, 0x101
jle 0x46b491
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0046dcd0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x46b4cf
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x46b4cd
imul eax, dword [edi]
jmp 0x46b4c2
mov ecx, eax
cmp ecx, 0x81
jle 0x46b4dc
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
call fcn.0046d930
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esp
mov ebx, dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x46b541
push 6
call fcn.0046d91e
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x46da00
Capabilities:
Get common file path
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, str.lpk.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [0x48c740], eax
je 0x46db64
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.LpkInitialize
push eax
call esi
mov ecx, dword [0x48c740]
push str.LpkTabbedTextOut
push ecx
mov dword [0x48c72c], eax
call esi
mov edx, dword [0x48c740]
push str.LpkDllInitialize
push edx
mov dword [0x48c730], eax
call esi
mov dword [0x48c738], eax
mov eax, dword [0x48c740]
push str.LpkDrawTextEx
push eax
call esi
mov ecx, dword [0x48c740]
push str.LpkExtTextOut
push ecx
mov dword [0x48c720], eax
call esi
mov edx, dword [0x48c740]
push str.LpkGetCharacterPlacement
push edx
mov dword [0x48c724], eax
call esi
mov dword [0x48c73c], eax
mov eax, dword [0x48c740]
push str.LpkEditControl
push eax
call esi
mov ecx, dword [0x48c740]
push str.LpkGetTextExtentExPoint
push ecx
mov dword [0x48c728], eax
call esi
mov edx, dword [0x48c740]
push str.LpkPSMTextOut
push edx
mov dword [0x48c714], eax
call esi
mov dword [0x48c71c], eax
mov eax, dword [0x48c740]
push str.LpkUseGDIWidthCache
push eax
call esi
mov ecx, dword [0x48c740]
push str.ftsWordBreak
push ecx
mov dword [0x48c734], eax
call esi
mov edx, dword [0x48c728]
mov edi, 0x46d9c0
sub edi, 4
mov ecx, 0x11
lea esi, [edx - 4]
mov dword [0x48c718], eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x401400
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push 0x3f6
push dword ds:[ebp + 8]
call sub.user32.dll_GetDlgItem
mov dword ds:[ebp - 0x10], eax
push 0
push 0x3f6
push dword ds:[ebp + 8]
call sub.user32.dll_SetDlgItemTextA
push 0
push 0x4033e0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
or eax, eax
jne 0x40144d
mov eax, 0x18
jmp 0x40155f
mov dword [0x403bb0], 0x44
push 0x403bb0
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword ds:[ebp - 8]
mov dword [0x403bec], eax
mov dword [0x403bf0], eax
mov dword [0x403bdc], 0x101
mov dword [0x403be0], 0
push 0x403bf4
push 0x403bb0
push 0
push 0
push 0x80
push 1
push 0
push 0
push dword ds:[ebp + 0xc]
push 0
call sub.kernel32.dll_CreateProcessA
or eax, eax
jne 0x4014b2
mov eax, 0x1a
jmp 0x40152c
push dword [0x403bf8]
call sub.kernel32.dll_CloseHandle
push dword [0x403bf4]
call sub.kernel32.dll_CloseHandle
push dword ds:[ebp - 8]
call sub.kernel32.dll_CloseHandle
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0
lea eax, [ebp - 0xc]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push dword ds:[ebp - 4]
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x40152c
push 0
push 0xffffffffffffffff
push 0xb1
push dword ds:[ebp - 0x10]
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x410]
push eax
push 0
push 0xc2
push dword ds:[ebp - 0x10]
call sub.user32.dll_SendMessageA
jmp 0x4014d1
push dword ds:[ebp - 4]
call sub.kernel32.dll_CloseHandle
push 0x104
lea eax, [ebp - 0x410]
push eax
push 0x3f6
push dword ds:[ebp + 8]
call sub.user32.dll_GetDlgItemTextA
or eax, eax
jne 0x40155a
mov eax, 0x1e
jmp 0x40155f
mov eax, 0x28
leave
ret 8

Function at 0x4016c0
Capabilities:
Accept command line arguments

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403c20], eax
push 0x403a25
call sub.comctl32.dll_InitCommonControlsEx
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403c24], eax
inc eax
push eax
push eax
call sub.kernel32.dll_lstrlenA
std
pop edi
push edi
add edi, eax
xchg ecx, eax
mov al, 0x5c
repne scasb al, byte es:[edi]
pop edi
add ecx, 3
cld
push ecx
push edi
push 0x40381d
call sub.kernel32.dll_lstrcpynA
push 0xa
push dword [0x403c24]
push 0
push dword [0x403c20]
call fcn.00401720
push 0
call sub.kernel32.dll_ExitProcess
ret
Function at 0x402975
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x402a28
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x40422a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00402975
test eax, eax
je 0x40426d
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40426d
cmp word [eax], 0x5a4d
jne 0x40426d
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40426d
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00402a47
mov eax, dword [ebp + 8]
jmp 0x404286
mov esp, ebp
pop ebp
ret 4
Function at 0x40906e
Capabilities:
Check for trap flag exception

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
pushfd
or dword [esp], 0x100
popfd
clc
call fcn.00409093
Function at 0x4171ce
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x4171f0
mov eax, 0xfffffffd
jmp 0x4172d0
mov ebx, dword [0x71e768]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x41729e
mov ebx, dword [0x71e768]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x41723f
mov ebx, dword [0x71e768]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x41723f
mov eax, 1
jmp 0x417244
mov eax, 0
test eax, eax
je 0x417270
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x417259
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x71e768]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x4172c6
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x4172d0
mov esp, ebp
pop ebp
ret 4
Function at 0x42d137
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042d2e7
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42d235
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42d1d8
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42d21b
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42d1ef
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42d20a
test al, 0x40
je 0x42d201
mov ecx, dword [edi + 0x20]
jmp 0x42d208
test al, 0x80
je 0x42d21b
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42d21b
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42d1a7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret