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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f9a8
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 0x433349
inc eax
mov dword [esi + 0x10], eax
jmp 0x43345c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43335d
mov eax, 0xffffffc7
jmp 0x43345e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43336e
cmp dword [esi + 8], eax
jne 0x43335d
cmp dword [esi + 8], eax
jne 0x433387
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433387
mov eax, 0xffffffc7
jmp 0x43345e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43339b
push eax
mov ecx, ebx
call fcn.00432b40
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.00403ee0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4333cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403f00
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004322b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4333ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476280
call fcn.004040e0
mov eax, dword [esp + 0x38]
jmp 0x43345e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433170
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433443
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433190
mov esi, eax
test esi, esi
jne 0x433473
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433170
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x433415
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476280
call fcn.004040e0
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], 0x476280
call fcn.004040e0
mov eax, esi
jmp 0x43345e

Function at 0x4365a0
Capabilities:
Create thread

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

Disassembly:
push 0xffffffffffffffff
push 0x46ffd8
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.00468eca
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043bef0
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.00468df8
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.004656bc
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.004656bc
push 1
push 0
push 0
mov ecx, esi
call fcn.00465664
push 1
push 0
push 1
mov ecx, esi
call fcn.00465664
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00468f3c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c6d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fff8
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.00468eca
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043bef0
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.00468df8
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 0x43c794
cmp dword [esp + 0x40], 1
jne 0x43c792
cmp ecx, eax
jge 0x43c794
mov eax, ecx
cmp eax, 0xc8
jge 0x43c7a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c550
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.00468f3c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43cf10
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470063
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.00463ad9
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.00469172
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a68e
test eax, eax
je 0x43d02c
mov ecx, dword [esp + 0x3c]
call fcn.0046919f
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 0x43cff0
push edi
mov ecx, esi
call fcn.00466803
mov ecx, esi
call fcn.0043d190
cmp dword [esp + 0x38], 1
jne 0x43d025
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.0046693e
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 0x43fa50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fa83
push esi
call fcn.00442b60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fa7c
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 0x43fb09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43faf2
mov eax, dword [esi + 8]
test eax, eax
je 0x43faa7
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 0x43faee
cmp eax, 2
je 0x43faf2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fa9a
cmp eax, 3
je 0x43facd
cmp eax, 1
jne 0x43fa9a
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 0x43fa9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fa9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fb30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43fb18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fb30
add esp, 4
pop esi
ret

Function at 0x44cb50
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 0x44cbf3
test eax, eax
jbe 0x44cbf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44cbf3
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 0x44cb9e
xor esi, esi
jmp 0x44cba4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44cbcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00404930
add esi, eax
push esi
mov ebx, esi
call fcn.00404930
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44cbb0
pop ebp
test edi, edi
pop edi
jne 0x44cbf3
test ebx, ebx
je 0x44cbf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004530f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44cd35
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 0x44ce4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44ce4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00463f2b
mov esi, eax
test esi, esi
je 0x44ce4d
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 0x44ce4d
mov ecx, esi
call fcn.0044cca0
cmp edi, eax
jge 0x44ce4d
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 0x44cdd3
mov dword [esp + 0x34], 1
jmp 0x44ce2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44ce4d
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.0044b4a0
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 0x4648cf
Capabilities:
Get graphical window text

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

Function at 0x465fc0
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 0x466002
call fcn.0046ba79
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465ff9
xor eax, eax
jmp 0x46600a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466010
pop edi
pop esi
pop ebx
ret 4
Function at 0x46bfa9
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]
cmp dword [esp + 0x10], 0
jne 0x46bfd7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46bff5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046bf0f
jmp 0x46bff5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46bff5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046bf0f
test edi, edi
mov eax, edi
jne 0x46bfdf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040c272
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040c272
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040c272
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040c272
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040c272
mov dword [0x41203c], eax
call fcn.0040c272
test eax, eax
jge 0x402550
push 8
call fcn.0040c272
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040c272
pop ecx
push 1
call fcn.0040c272
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040c272
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040c272
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040c272
jmp 0x402495

Function at 0x40c272
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40c281
pop dword [ebp - 0x4c]
mov eax, 0x40c281
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3991e
push 0
mov eax, 0xc09ac388
sub eax, 0xc059e2b0
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4249dd3f
add ecx, 0xbdb66ad8
mov edx, eax
mov ebx, 0x6771afc0
add ebx, 0x98cf8c04
add ebx, dword [ebp - 0x4c]
mov esi, 0xc0791cc5
sub esi, 0xea5b4916
add dword [ebp - 0x28], 0x2ca4801f
mov edi, dword [ebx]
sub dword [ebp - 0xc], edi
sub edi, esi
mov dword [ebp - 0x2c], 0xa7c91b8b
mov dword [edx], edi
xor dword [ebp - 0x38], 0xca7466ab
add edx, 0x6f578832
add edx, 0x90a877d2
add ebx, 4
loop 0x40c2db
add eax, 0x1132f
mov ebx, eax
add eax, 0x157ba1c5
sub eax, 0x157ba1c0
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0xf045296
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x320f681e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401984
Capabilities:
Hide graphical window

Disassembly:
push ebp
sub esp, 0x40
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
add esp, 0x40
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
loop 0x40199b
push esp
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4040b0], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x4016e2
mov dword [ebp - 4], str.risiliency
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040b0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.ebsement
push str.risiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a36
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a1d
pop ebp
ret 0x10
Function at 0x4010a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x2804
call fcn.00402eb0
mov eax, dword [0x40a898]
test ah, 0xc
je 0x40119c
mov ecx, dword [esp + 0x2808]
lea eax, [esp + 0x280c]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov eax, dword [0x40a898]
test ah, 4
je 0x4010e8
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x40a898]
test ah, 8
je 0x40119c
mov al, byte [0x40a8a0]
test al, al
jne 0x40113f
mov ecx, dword [0x40a5f4]
push 0x104
push 0x40a8a0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40112b
mov ecx, 0x40a8a0
dec ecx
cmp byte [ecx + eax], 0x2e
je 0x401129
dec eax
jne 0x401120
test eax, eax
je 0x40119c
push 0x4071b4
lea edx, [eax + 0x40a8a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x40a8a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40119b
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 4], eax
push 0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x2804
ret

Function at 0x4014b0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0x104
push edi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov dword [esi], eax
jne 0x4014ec
push str.Cant_get_system_folder__n
call fcn.004010a0
add esp, 4
mov eax, 0xb
pop edi
mov dword [0x40a888], eax
pop esi
ret
mov byte [eax + edi], 0x5c
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov esi, eax
push edi
push str.System_folder:_s_n
mov byte [esi + edi], 0
call fcn.004010a0
add esp, 8
pop edi
xor eax, eax
pop esi
ret
Function at 0x402400
Capabilities:
Delete file

Disassembly:
mov al, byte [0x40a780]
sub esp, 0x108
test al, al
jne 0x402425
mov eax, dword [0x40a88c]
or eax, 0x10000004
mov dword [0x40a88c], eax
add esp, 0x108
ret
push 0x40a700
push 0x40a780
push str.PortMonDLL:_s_on___s__port_r_n
call fcn.004010a0
push 0x40a700
call fcn.00401250
mov ecx, dword [0x40a888]
mov edx, ecx
and edx, 0x80000000
add esp, 0x10
cmp edx, 0x80000000
jne 0x402465
mov eax, ecx
add esp, 0x108
ret
test eax, eax
je 0x40248e
mov edx, dword [0x40a898]
mov eax, dword [0x40a88c]
and edx, 0xffffffdf
or eax, 0x10000008
mov dword [0x40a898], edx
mov dword [0x40a88c], eax
add esp, 0x108
ret
mov eax, dword [0x40a034]
test eax, eax
mov eax, str.Windows_NT_x86
jne 0x4024a1
mov eax, str.Windows_4.0
push esi
push edi
push 0x40a700
push eax
push 0
call sub.WINSPOOL.DRV_DeleteMonitorA
test eax, eax
jne 0x40251f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call section..text
push eax
push 0x40a700
push str.Cant_delete_Monitor___s_._Error_code:_s_r_n
call fcn.004010a0
add esp, 0x10
cmp esi, 0xbb8
jne 0x40250c
mov esi, dword [0x40a88c]
push 0x40a700
or esi, 0x10000200
push str.PrinterPortMonitor___s__not_Exist._r_n
mov dword [0x40a88c], esi
call fcn.004010a0
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
mov eax, 0xc
pop edi
mov dword [0x40a888], eax
pop esi
add esp, 0x108
ret
push 0x40a700
push str.PortMonitor___s__was_succesfully_deleted_r_n
call fcn.004010a0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x18], 0
call fcn.004014b0
and eax, 0x80000000
add esp, 0x10
cmp eax, 0x80000000
jne 0x402562
mov eax, dword [0x40a888]
pop edi
pop esi
add esp, 0x108
ret
push 0x40a780
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + 0x40a77f]
cmp eax, 0x40a780
jbe 0x402597
lea ebx, [ebx]
cmp byte [eax], 0x5c
je 0x40258f
dec eax
cmp eax, 0x40a780
ja 0x402580
jmp 0x402597
cmp eax, 0x40a780
jbe 0x402597
inc eax
mov edx, dword [esp + 8]
push eax
lea eax, [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edi, eax
mov eax, 0x40756c
jne 0x4025ca
mov eax, str.Failed
push eax
lea edx, [esp + 0x10]
push edx
push str.Deleting_PortMonDLL__s____s_r_n
call fcn.004010a0
add esp, 0xc
test esi, esi
jne 0x402501
push edi
call section..text
push eax
push str.Deleting_PortMonDLL_failed_error:__s_r_n
call fcn.004010a0
add esp, 0xc
mov eax, 0xd
pop edi
mov dword [0x40a888], eax
pop esi
add esp, 0x108
ret
Function at 0x402b20
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x40a6fc]
sub esp, 0x40
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.PrnInst.inf
lea ecx, [eax + 0x40a4f0]
push ecx
call edi
push 0x40a4f0
push 0x40a2e0
call edi
push 0x40a2e0
push str.Setup_file:_s_r_n
call fcn.004010a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 8
push 0x40a2e0
push 0x104
push 0x40a3e8
push 0x407a9f
push str.DriverName
push str.Strings
call esi
push 0x40a2e0
push 0x20
push 0x40a2c0
push 0x407dd4
push str.DefaultDataType
push str.Strings
call esi
push 0x40a2e0
push 0x80
push 0x40a700
push str.PDF_XChange
push str.Port
push str.Strings
call esi
push str.PortMonDLL
lea edx, [esp + 0xc]
push edx
call edi
mov eax, dword [0x40a034]
mov ecx, dword [eax*4 + 0x40a038]
push ecx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40a2e0
push 0x104
push 0x40a780
push 0x407a9f
lea eax, [esp + 0x18]
push eax
push str.Strings
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x40
ret