joyce8/EMBER2024-capa huggingface dataset:
Function at 0x88df37
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp]
mov cl, 0x5a
mov ch, byte [esp]
jmp 0x88dfd3
mov ecx, 0xefda2252
lea edx, [edi*4]
bswap ecx
lea esp, [esp + 2]
lea eax, [ecx + esi]
mov edx, esi
dec eax
jns 0x88df97
js 0x88df6e
mov ax, 0x2aac
setg al
mov al, ch
mov dh, 0xb6
mov eax, ecx
lea esi, [esi + 1]
jmp 0x88e008
sub esp, 0x19
mov ax, word [esp + 0x13]
xchg edx, eax
pop cx
dec edx
lea esp, [esp + 3]
jmp 0x88e096
push dword [esp + 0x14]
ret 0x18
xchg dword [esp + 0x14], esi
xchg cx, dx
btc eax, ecx
mov cx, di
mov dh, byte [esp]
rcl cx, cl
jmp 0x88e047
Function at 0x8d2331
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.008d2333
lea esp, [esp + 4]
test ecx, ecx
jne 0x882241
je 0x8d236c
jmp 0x8d230d

Function at 0x8d2333
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, 0x5a4d
lea esp, [esp + 4]
cmp word [ecx], ax
jmp 0x8d2350
pop eax
jmp 0x8d2349
mov word [esp], cx
mov byte [esp + 2], cl
jmp 0x882246
xor eax, eax
lea esp, [esp + 0x18]
ret
jne 0x8d236c
inc eax
push ebx
pushal
jmp 0x8d238c
bt eax, ebx
sub esp, 0x1c
jmp 0x8d231b
lea esp, [esp + 2]
lea esp, [esp + 0x1c]
popal
jmp 0x8d23a3
btr ax, sp
lea edi, reloc.iphlpapi.dll_GetAdaptersInfo
rdtsc
rdtsc
mov dword [esp + 0x10], ecx
sub esp, 0x1e
jmp 0x8d2374
add ebx, 0x3c
mov eax, dword [ebx]
pop ebx
call 0x8d23af
pop ds
add eax, ecx
jmp 0x8d23f4
lea esp, [esp + 4]
ret

Function at 0x9e75d7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 4], ah
xchg dl, bh
xchg word [esp + 3], bx
cpuid
mov byte [esp], al
lea ecx, reloc.iphlpapi.dll_GetAdaptersInfo
jmp 0x9e7531
cpuid
pop dword [esp + 1]
mov dword [esp + 3], esi
mov dx, bx
pop bx
pop si
jmp 0x9e74de
bswap eax
mov di, bx
mov al, byte [esp]
mov esi, dword [esp + 5]
mov ebx, dword [esp]
jmp 0x9e755c
mov dword [esp], edx
rdtsc
pop si
push word [esp + 2]
xchg word [esp + 3], di
rdtsc
jmp 0x9e751b
mov edi, 0xc26da3d3
lea ecx, [ebx*4]
not ah
jmp 0x9e7570
mov esi, ebp
mov bl, byte [esp + 3]
mov ch, byte [esp + 4]
xchg al, dh
mov ax, 0xcfca
rdtsc
jmp 0x9e7546
mov ebx, 0x4553deb5
cpuid
xchg byte [esp + 4], bl
lea ebx, [esi + ebp]
lea esp, [esp + 2]
lea esp, [esp + 4]
jmp 0x9e75bc
mov edi, dword [esp + 0xc]
mov al, 0xf4
mov ebx, ebp
xchg si, ax
xchg word [esp + 2], di
mov word [esp + 1], cx
jmp 0x9e7508
popal
call fcn.009e75a6
ja 0x9e7625
jbe 0x9e762b
dec edi
jne 0x9e763d
push eax
jb 0x9e7631
jo 0x9e762f
jb 0x9e7635
dec eax
popal
jb fcn.009e75d7
cpuid
setnp bh
push word [esp + 0xb]
jmp 0x9e758d
push ebp
outsb dx, byte [esi]
jo 0x9e769b
jo 0x9e768d
popal
jb 0x9e7693
dec eax
popal
jb 0x9e7635
inc edi
insb byte es:[edi], dx
outsd dx, dword [esi]
bound esp, qword [ecx + 0x6c]
inc edi
je 0x9e7680
je 0x9e7680
je 0x9e76b0
insd dword es:[edi], dx
dec esi
popal
insd dword es:[edi], dx
inc ecx
invalid
Function at 0x9eb90c
Capabilities:
Parse pe header

Disassembly:
movzx ebx, word [eax + 0x3c]
jmp 0x9eb927
call 0x9eb8e0
sub eax, 0x10000
jmp 0x9eb974
add ebx, eax
cmp word [ebx], 0x4550
je 0x9e5fbf
jne 0x9eb911
or ebx, dword [edi + reloc.iphlpapi.dll_GetAdaptersInfo]
arpl ax, si
add ax, si
sbb dword [eax + 0x29], ebp
jbe 0x9eb968
add bl, byte [esi]
outsb dx, byte [esi]
invalid
das
or eax, 0x77c45512
pop esi
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x9ea716
jne 0x9eb911
stosd dword es:[edi], eax
in eax, dx
mov dl, 0xfe
fdivp st(2)
fisttp qword [edx - 0x28]
mov edi, 0x2b68e34a
je 0x9eb9cd
sbb al, 0x1f
xchg esp, eax
add byte [esi + 0x39b400f1], dl
jns 0x9eb9c2
cmp dword [ecx + 0x26], edi
adc dh, byte [edx]
sub eax, 0x7b1c8e1b
xchg esi, eax
aas
lcall 0xe0c8, 0xd0f0b8e7
mov al, byte [0xeb99bbf1]
adc dword [ebp + 0xa], edx
inc esi
inc cx
xchg ecx, eax
salc
mov eax, ecx
out 0xf8, eax
adc dword [ebx + 0xc], edx
inc esp
dec esp
dec esp
xchg edx, eax
or byte [esi + 0x26b808f9], bl
popal
jp 0x9eba28
pop edx
inc ebp
dec ebp
salc
inc esp
and ebx, esi
ja 0x9eb999
invalid
push dword [ebp - 0x64f41665]
or ebp, dword [esi - 0x63]
sbb al, 0x7e
cld
xchg edx, eax
cmc
add al, 0xd0
dec ecx
or eax, 0x193e1e52
jmp 0xa058adf1
Function at 0xfe9d6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfe9d76
pushal
call 0xfe9d7c
pop ebp
sub ebp, 0x10
sub ebp, 0xbe9d6c
jmp 0xfe9d92
mov eax, 0xbe9d6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cf
mov edx, 0x661c90c3
xor byte [eax], dl
inc eax
dec ecx
jne 0xfe9da9
jmp 0xfe9dbc
dec eax
push cs
dec eax
dec edx
inc ebx
ret
Function at 0x51dea0
Capabilities:
Terminate process

Disassembly:
test byte [0x5cc2e8], 0x20
jne 0x51debe
vmovq xmm0, xmm0
vcvttpd2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
mov ecx, esp
add esp, 0xfffffff8
and esp, 0xfffffff8
movsd qword [esp], xmm0
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov esp, ecx
btr edx, 0x1f
sbb ecx, ecx
cmp edx, 0x41e00000
jae 0x51df1e
cvttsd2si eax, xmm0
cdq
ret
mov ecx, edx
bts edx, 0x14
shr ecx, 0x14
and edx, 0x1fffff
sub ecx, 0x433
jge 0x51df18
neg ecx
push ebx
xor ebx, ebx
shrd ebx, eax, cl
je 0x51df11
cvttss2si ebx, dword [0x532bec]
pop ebx
shrd eax, edx, cl
shr edx, cl
ret
shld edx, eax, cl
shl eax, cl
ret
cmp edx, 0x43e00000
jae 0x51df37
test ecx, ecx
je 0x51dee8
call 0x51dee8
neg eax
adc edx, 0
neg edx
ret
jecxz 0x51df3f
ja 0x51df3f
test eax, eax
je 0x51df47
cvttss2si ecx, dword [0x532be8]
mov edx, SysReAllocStringLen
xor eax, eax
ret

Function at 0x51e623
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x51e662
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x51e662
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x51e662
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x51e662
cmp dword [ecx + 0x74], 0xe
jbe 0x51e662
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x52adc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x52aded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x52aded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c83
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
and esi, ebx
and ebx, esi
push 0xbdef48d6
pop ebx
call fcn.00438cc0
sub ebx, 1
sub ebx, esi
add esi, esi
xor dword [ecx], edx
add ebx, 1
inc ecx
sub esi, ebx
cmp ecx, eax
jne fcn.00438c83
mov esi, 0x7c060d07
ret
Function at 0x4777d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x4777f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x477868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x47782a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x47785d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47785b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x477821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4777ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x415840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x100], 0x20
jle 0x415883
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x100]
push edx
call fcn.00434035
add esp, 4
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x415883
mov ecx, dword [ebp - 8]
call sub.MFC42.DLL_CWnd::SetFocus
jmp 0x4158f1
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0xec
call fcn.004020c0
push eax
mov ecx, dword [ebp - 4]
call fcn.00415940
mov dword [ebp - 0x10], eax
push 5
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x100], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 4]
cmp dword [eax + 0xfc], 0
je 0x4158f1
push 0
push 0
push 0x10
call fcn.00415900
mov ecx, eax
call fcn.00417630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415f80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0
push 0xf
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x449830]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x449838]
cmp dword [edx + 0x40], 0
jne 0x416047
mov eax, dword [0x449838]
mov ecx, dword [eax + 0x84]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
call sub.WINDCS32.dll_Ordinal_81
test eax, eax
je 0x415ff8
mov ecx, dword [0x449838]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x88]
jl 0x415ff8
mov eax, dword [0x449838]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x8c]
jg 0x415ff8
mov dword [ebp - 0x18], 1
mov edx, dword [0x449838]
movsx eax, word [edx + 0x64]
cmp eax, 1
jne 0x416045
fild dword [ebp - 0x14]
fstp dword [ebp - 0x1c]
mov ecx, dword [0x449838]
fild dword [ecx + 0x84]
sub esp, 8
fstp qword [esp]
push 0x40240000
push 0
call sub.MSVCRT.dll_pow
add esp, 0x10
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fdivr dword [ebp - 0x1c]
fstp dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jmp 0x41607b
lea eax, [ebp - 0x10]
push eax
call sub.WINDCS32.dll_Ordinal_80
mov dword [ebp - 0x14], eax
mov ecx, dword [0x449838]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x88]
jb 0x41607b
mov eax, dword [0x449838]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x8c]
ja 0x41607b
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
je 0x416144
mov edx, dword [0x449838]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x44]
je 0x416144
mov ecx, dword [0x449838]
call fcn.00404480
mov ecx, eax
call fcn.00417870
mov dword [ebp - 0x20], eax
mov ecx, dword [0x449838]
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov dword [ebp - 0x24], eax
mov ecx, dword [0x449838]
cmp dword [ecx + 0x50], 0
jne 0x41612b
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xd
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + eax + 0x1134]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xd
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx + eax + 0x1139]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xd
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx + eax + 0x1137]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xd
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + eax + 0x1136]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0xd
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + eax + 0x1135]
push edx
call fcn.00418330
add esp, 0x18
jmp 0x416144
mov eax, dword [0x449838]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x44], ecx
push 1
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.0041aaf0
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x449a9c
call fcn.004020c0
push eax
push 8
push str.FontSize
push str.InfoText
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x120], ax
mov ecx, 0x449a9c
call fcn.004020c0
push eax
push 0x80
lea edx, [ebp - 0x84]
push edx
push str.Arial
push str.FontName
push str.InfoText
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x124
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x449a9c
call fcn.004020c0
push eax
push 0
push str.FontAttributes
push str.InfoText
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x11c], eax
mov ecx, 0x449a9c
call fcn.004020c0
push eax
push 1
push str.DrawLines
push str.InfoText
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x899c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c3c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x174
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x34c], 0
je 0x42f33f
mov ecx, dword [ebp - 0x14]
call fcn.0042f510
lea ecx, [ebp - 0x120]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push str._sVarError.txt
mov eax, dword [ebp - 0x14]
add eax, 0x1c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x14
call fcn.00403990
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x12c], 0
je 0x42f3ce
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.004020c0
mov dword [ebp - 0x13c], eax
push 0x1001
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x12c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
jmp 0x42f3d8
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x128]
mov dword [edx + 0x34c], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
cmp dword [ecx + 0x34c], 0
setne dl
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041a000
mov eax, dword [ebp - 0x130]
jmp 0x42f451
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ff80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
push str.PCU_SERV
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x42ffa7
push 5
push str.PCU_SERV.EXE
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ffb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42ffd2
mov eax, dword [ebp - 4]
jmp 0x430039
mov word [ebp - 0x14], 2
push 0x3ffe
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x430005
mov eax, dword [ebp - 4]
jmp 0x430039
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov eax, dword [ebp - 4]
push eax
push str.WMC____4.4X___wmc_Connect:_ConnectOneHost_FAILED_with__d___n
push 0x44a1e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x44a1e0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
push ecx
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431180
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
cmp dword [0x449d8e], 0
jne 0x43119c
xor eax, eax
jmp 0x431334
call fcn.00432400
mov dword [ebp - 0xc], 0
jmp 0x4311b3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x449d96]
jge 0x4311df
mov edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 0x449d9a]
cmp edx, ecx
jne 0x4311dd
xor eax, eax
jmp 0x431334
jmp 0x4311aa
mov edx, dword [0x449dde]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x4311f5
xor eax, eax
jmp 0x431334
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x449d8e]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ecx], 0x10
mov edx, dword [ebp - 8]
mov al, byte [ebp + 8]
mov byte [edx + 1], al
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
add ecx, 0x1e
mov edx, dword [ebp - 8]
mov byte [edx + 2], cl
mov eax, dword [ebp - 8]
mov cx, word [ebp + 0x10]
mov word [eax + 3], cx
mov edx, dword [ebp - 8]
mov word [edx + 5], 0x8000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xf], ecx
push 0x20
push 0
mov edx, dword [0x449d8e]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [0x449d8e]
mov ecx, dword [0x449d7c]
mov dword [eax], ecx
mov edx, dword [0x449d8e]
mov dword [edx + 4], 0x7d04
mov eax, dword [0x449d8e]
mov word [eax + 8], 1
mov ecx, dword [0x449d8e]
mov dx, word [ebp + 0x18]
mov word [ecx + 0xa], dx
mov eax, dword [0x449d8e]
mov word [eax + 0xc], 0x33
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x7a120
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0x40
jae 0x4312e3
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp + ecx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
test edx, edx
jne 0x4312b8
lea eax, [ebp - 0x118]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
call sub.WSOCK32.dll_select
push 0
mov edx, dword [0x449d8e]
xor eax, eax
mov ax, word [edx + 0xc]
push eax
mov ecx, dword [0x449d8e]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_send
push 0x44a1a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
cmp dword [0x449df0], 0
je 0x43241a
jmp 0x4324fc
mov dword [0x449df0], 1
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sSYSPCU_SERV.INI
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
push 0x80
lea edx, [ebp - 0xd0]
push edx
push 0x43dea0
push str.NoWrite
push str.TRANS_NT
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0xd0]
test eax, eax
jne 0x432475
jmp 0x4324fc
mov dword [ebp - 0xd8], 0
push 0x441e88
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x4324f1
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov byte [ecx + 0x449d9a], al
push 0x441e88
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd8]
add edx, 1
mov dword [ebp - 0xd8], edx
cmp dword [ebp - 0xd8], 0x40
jne 0x4324ef
jmp 0x4324f1
jmp 0x43249a
mov eax, dword [ebp - 0xd8]
mov dword [0x449d96], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret