joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48f2a8
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 0x437fc9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4380dc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x437fdd
mov eax, 0xffffffc7
jmp 0x4380de
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x437fee
cmp dword [esi + 8], eax
jne 0x437fdd
cmp dword [esi + 8], eax
jne 0x438007
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x438007
mov eax, 0xffffffc7
jmp 0x4380de
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43801b
push eax
mov ecx, ebx
call fcn.004377c0
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.00405e10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43804c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00405e30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00436f30
test eax, eax
mov dword [esp + 0x38], eax
je 0x43807f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4984f0
call fcn.00406010
mov eax, dword [esp + 0x38]
jmp 0x4380de
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00437df0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4380c3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00437e10
mov esi, eax
test esi, esi
jne 0x4380f3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00437df0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x438095
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4984f0
call fcn.00406010
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], 0x4984f0
call fcn.00406010
mov eax, esi
jmp 0x4380de

Function at 0x43c930
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43c990
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43c990
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43c990
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43c990
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 0x43c9d0
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 0x448690
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f898
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.00472747
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00447ff0
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.00472675
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.0046ef3e
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.0046ef3e
push 1
push 0
push 0
mov ecx, esi
call fcn.0046eee6
push 1
push 0
push 1
mov ecx, esi
call fcn.0046eee6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004727b9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x448810
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f898
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.00472747
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00447ff0
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.00472675
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 0x4488d4
cmp dword [esp + 0x40], 1
jne 0x4488d2
cmp ecx, eax
jge 0x4488d4
mov eax, ecx
cmp eax, 0xc8
jge 0x4488e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00448690
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.004727b9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4490a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48f903
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.0046d35f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004729ef
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473fce
test eax, eax
je 0x4491bc
mov ecx, dword [esp + 0x3c]
call fcn.00472a1c
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 0x449180
push edi
mov ecx, esi
call fcn.00470088
mov ecx, esi
call fcn.00449360
cmp dword [esp + 0x38], 1
jne 0x4491b5
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.004701c3
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 0x44b2d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44b303
push esi
call fcn.00459600
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44b2fc
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 0x44b389
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44b372
mov eax, dword [esi + 8]
test eax, eax
je 0x44b327
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 0x44b36e
cmp eax, 2
je 0x44b372
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44b31a
cmp eax, 3
je 0x44b34d
cmp eax, 1
jne 0x44b31a
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 0x44b31a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44b31a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044b3b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44b398
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044b3b0
add esp, 4
pop esi
ret

Function at 0x44bc20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44bc41
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44bc41
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44bc41
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x44c090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44c09b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x44c19e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x49a1c0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49a1c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49a1c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49a1c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49a1c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49a1c0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49a1c0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49a1c0]
xor eax, edx
inc ecx
dec edi
jne 0x44c0b6
pop edi
test esi, esi
je 0x44c1c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49a1c0]
xor eax, edx
inc ecx
dec esi
jne 0x44c1a2
pop esi
pop ebx
not eax
ret
Function at 0x4668f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x466993
test eax, eax
jbe 0x466993
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x466993
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46693e
xor esi, esi
jmp 0x466944
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46696f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004687a0
add esi, eax
push esi
mov ebx, esi
call fcn.004687a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x466950
pop ebp
test edi, edi
pop edi
jne 0x466993
test ebx, ebx
je 0x466993
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00478770
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x466ab0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x466bcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x466bcd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d7b1
mov esi, eax
test esi, esi
je 0x466bcd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x466bcd
mov ecx, esi
call fcn.00466a40
cmp edi, eax
jge 0x466bcd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x466b53
mov dword [esp + 0x34], 1
jmp 0x466bae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x466bcd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00466040
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46e154
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46e18c
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.0046c20c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046c1e4
jmp 0x46e198
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f842
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 0x46f884
call fcn.00475396
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x46f884
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x46f87b
xor eax, eax
jmp 0x46f88c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f892
pop edi
pop esi
pop ebx
ret 4
Function at 0x488f48
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4be984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047dfb4
mov dword [ebp - 0x14], eax
cmp dword [0x4dad64], esi
jne 0x48903b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x488fc8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x48911b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x48911b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x48911b
push eax
call ebx
push 0x4a3f3c
push edi
mov dword [0x4dad64], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x4a3f4c
push edi
mov dword [0x4dad68], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4dad6c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4dad74], eax
test eax, eax
je 0x489038
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4dad70], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x489060
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x489053
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x489075
push 4
pop eax
jmp 0x48911d
cmp dword [ebp - 0x14], esi
je 0x489075
push dword [0x4dad64]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x48905a
mov eax, dword [0x4dad70]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x4890d3
cmp dword [0x4dad74], edi
je 0x4890d3
push eax
call ebx
push dword [0x4dad74]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4890d3
test eax, eax
je 0x4890d3
call ecx
test eax, eax
je 0x4890c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4890c8
test byte [ebp - 8], 1
jne 0x4890d3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x489103
mov eax, dword [0x4dad68]
cmp eax, edi
je 0x489100
push eax
call ebx
test eax, eax
je 0x489100
call eax
mov esi, eax
test esi, esi
je 0x489100
mov eax, dword [0x4dad6c]
cmp eax, edi
je 0x489100
push eax
call ebx
test eax, eax
je 0x489100
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4dad64]
call ebx
test eax, eax
je 0x48911b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x48911d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00481539
mov esp, ebp
pop ebp
ret
Function at 0x401203
Capabilities:
Create thread

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x401218
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
xor ecx, ecx
lea edx, [esp + 0xc]
mov cl, byte [eax + 0x408]
push ecx
push str.COM_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0xc]
push edi
push 0x40000080
push 3
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 4]
mov dword [ecx + 0x404], eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x404]
cmp eax, 0xffffffff
jne 0x40126d
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov eax, dword [esi + 4]
push 0x400
push 0x400
mov ecx, dword [eax + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov edx, dword [esi + 4]
push 0xf
mov eax, dword [edx + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esi + 4]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov eax, dword [edx + 0x404]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov edx, dword [esi + 4]
mov dword [esp + 0x34], 0x1c
lea ecx, [esp + 0x34]
mov eax, dword [edx + 0x404]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x414]
mov dword [esp + 0x38], ecx
mov dl, byte [eax + 0x410]
mov byte [esp + 0x46], dl
mov cl, byte [eax + 0x411]
mov byte [esp + 0x47], cl
mov ecx, dword [esp + 0x3c]
mov dl, byte [eax + 0x412]
and ecx, 0xffffdcd3
or ecx, 0x1013
mov byte [esp + 0x48], dl
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0x404]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov ecx, dword [esi + 4]
mov ebx, eax
cmp ebx, edi
je 0x4013be
lea edx, [esp + 0xc]
mov dword [ecx + 0x40c], 1
mov eax, dword [esi + 4]
push edx
push edi
push eax
push 0x401630
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 4]
cmp eax, edi
jne 0x401390
mov dword [ecx + 0x40c], edi
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x44
ret
mov edx, dword [esp + 0xc]
push 5
mov dword [ecx + 0x428], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 0x41c], eax
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x44
ret
mov dword [ecx + 0x40c], edi
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x44
ret
Function at 0x401470
Capabilities:
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x401483
xor eax, eax
pop esi
add esp, 0x10
ret
mov edx, dword [esi + 0x404]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ClearCommError]
push ebp
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jb 0x4014ad
mov eax, ecx
test eax, eax
mov dword [esp + 0x24], eax
jbe 0x40154f
mov edx, dword [esp + 0x28]
lea edi, [esi + 0x440]
lea ecx, [esp + 0x24]
push edi
push ecx
push eax
mov eax, dword [esi + 0x404]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40154f
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x401534
push str._n_rIO_Pending
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 0x404]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x24]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x40154f
call ebp
mov ecx, dword [esi + 0x404]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x401511
mov eax, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
mov ecx, dword [esi + 0x404]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x24]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x40e6fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4314b8
cmp edx, dword [eax]
je 0x40e71f
add eax, 8
inc ecx
cmp eax, 0x431548
jl 0x40e710
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4314b8]
jne 0x40e84d
mov eax, dword [0x43444c]
cmp eax, 1
je 0x40e827
test eax, eax
jne 0x40e750
cmp dword [0x431094], 1
je 0x40e827
cmp edx, 0xfc
je 0x40e84d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e787
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f540
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e7ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429368
push edi
call fcn.004115d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f540
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f550
lea eax, [ebp - 0xa0]
push 0x429348
push eax
call fcn.0040f550
push dword [esi + 0x4314bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f550
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411539
add esp, 0x2c
pop edi
jmp 0x40e84d
lea eax, [ebp + 8]
lea esi, [esi + 0x4314bc]
push 0
push eax
push dword [esi]
call fcn.0040f630
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret