joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2b257be
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x757c528f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4052b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40531e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405308
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405325
lea eax, [ebp - 0x10]
call fcn.004038f8
ret

Function at 0x4094e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40951d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039e8
jmp 0x409526
mov eax, ebx
mov edx, esi
call fcn.0040394c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409530
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x409551
mov al, byte [esp]
jmp 0x409553
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a938
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a99c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403b68
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00406a58
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9a3
lea eax, [ebp - 0xc]
call fcn.004038f8
ret
Function at 0x4123d4
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov eax, 0x412344
call fcn.00405518
mov dl, 1
mov eax, dword [0x411f68]
call fcn.0041200c
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004120ac
xor ecx, ecx
mov edx, 0x412538
mov eax, ebx
call fcn.00412110
test al, al
je 0x41246c
mov edx, 0x412570
mov eax, ebx
call fcn.004122a4
test al, al
je 0x41242d
mov edx, 0x412570
mov eax, ebx
call fcn.00412234
mov edx, 0x41258c
mov eax, ebx
call fcn.004122a4
test al, al
je 0x412449
mov edx, 0x41258c
mov eax, ebx
call fcn.00412234
mov edx, 0x4125b0
mov eax, ebx
call fcn.004122a4
test al, al
je 0x412465
mov edx, 0x4125b0
mov eax, ebx
call fcn.00412234
mov eax, ebx
call fcn.0041207c
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
push 0x4125c8
call sub.user32.dll_RegisterWindowMessageA
mov ebx, eax
push 0x4125d4
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x4124a9
push 0
push 0x402
push ebx
push eax
call sub.user32.dll_PostMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
push 0x4125f0
call sub.user32.dll_RegisterWindowMessageA
mov ebx, eax
push 0x412604
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x4124dd
push 0
push 0x403
push ebx
push eax
call sub.user32.dll_PostMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
push 0x412620
call sub.user32.dll_RegisterWindowMessageA
mov ebx, eax
push 0x412628
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jbe 0x412511
push 0
push 0x404
push ebx
push eax
call sub.user32.dll_PostMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
push 1
push 0
push 0
push 0x412640
push 0x412688
push 0
call sub.shell32.dll_ShellExecuteA
pop ebx
call fcn.00403808
add byte [eax], al

Function at 0xdce8c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdce8d2
pushal
call 0xdce8d8
pop ebp
sub ebp, 0x10
sub ebp, 0x9ce8c8
jmp 0xdce8ee
mov eax, 0x9ce8c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c7
mov edx, 0xca02be8d
xor byte [eax], dl
inc eax
dec ecx
jne 0xdce905
jmp 0xdce918
push es
inc eax
push es
add al, 0xb1
lea ecx, [ebp + 0x754c0c8d]
lea ecx, [ebp + 0x35408e8d]
mov dword [ebp - 0x5ac87273], ecx
lea ecx, [ebp - 0x71908573]
inc ebp
push es
or al, 0x81
lea ecx, [ebp - 0x22b77173]
fucom st(5)
xchg ecx, eax
imul ebp, dword [ebp + ecx*4 - 0x970de1b], 0xffffff8d
mov word [ecx + 0x20b0e5a9], fs
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x49f51da1
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x50de6f2c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x41eed0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4a04cc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41ef50
arpl word [edx + esi], si
xor byte [eax], 0xdf
pop ecx
sub esp, ebx
adc esp, dword [edx + 0x4d36237a]
insb byte es:[edi], dx
rcl ecx, cl
test al, 0xfb
jns 0x41ef52
add dword [eax - 0x10e7e3ca], ebp
xchg ebx, esi
xor bh, byte [ebx]
mov dl, 0x47
pop eax
mov al, byte [0x70e0846a]
imul dword [ebx]
mov ecx, 0xd6d2c95b
xchg ebx, eax
mov ecx, esi
leave
push cs
sal dword [esi], 1
ror cl, 0xff
clc
push ecx
dec ebx
enter 0xffffffffffffaff1, 0x41
invalid
invalid
inc edx
cmp eax, 0x8315b488
stosd dword es:[edi], eax
mov ah, 0xcd
fisttp word [ecx]
fiadd dword [ebx]
invalid
Function at 0x100027c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e796
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], 0x63
mov dword [ebp - 0x24], 0x41
mov eax, dword [0x1003dbd4]
and eax, 1
jne 0x1000285c
mov ecx, dword [0x1003dbd4]
or ecx, 1
mov dword [0x1003dbd4], ecx
mov dword [ebp - 4], 0
push 0x100340e8
push 0xda2bffff
push 0xd
push 0x10026b9c
lea ecx, [ebp - 0x40]
call fcn.10010990
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
call fcn.10001000
mov dword [0x1003dbd8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10010a30
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1002f0c4]
shl eax, 0x39
mov dword [0x1002f0c4], eax
mov ecx, dword [0x1002f1a4]
shl ecx, 0x16
mov dword [0x1002f1a4], ecx
lea edx, [ebp - 0x28]
push edx
push 0x28
call fcn.10001010
push eax
call fcn.10004ce0
test eax, eax
jne 0x10002894
xor al, al
jmp 0x100029a3
lea eax, [ebp - 0x38]
push eax
push str.SeDebugPrivilege
push 0
call fcn.10004c30
test eax, eax
jne 0x100028b8
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10005060
xor al, al
jmp 0x100029a3
mov dword [ebp - 0x20], 1
mov edx, 0xc
imul eax, edx, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x1c], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp + eax - 0x18], edx
mov eax, dword [0x1002f0c4]
shl eax, 0x27
mov dword [0x1002f0c4], eax
mov ecx, dword [str.6W_X]
shl ecx, 0x26
mov dword [str.6W_X], ecx
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 0x14], 2
mov ecx, dword [ebp - 0x24]
shl ecx, 0x41
mov dword [ebp - 0x24], ecx
mov edx, dword [0x1002f19c]
shl edx, 0x45
mov dword [0x1002f19c], edx
call fcn.10007770
push 0
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10004b80
test eax, eax
jne 0x10002975
mov edx, dword [ebp - 0x28]
push edx
call fcn.10005060
mov eax, dword [ebp - 0x24]
shl eax, 0x34
mov dword [ebp - 0x24], eax
mov ecx, dword [0x1002f1e0]
shl ecx, 0x43
mov dword [0x1002f1e0], ecx
call fcn.10007820
xor al, al
jmp 0x100029a3
mov al, 1
jmp 0x100029a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012db8
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2fd926db
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4dcd3781
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402af0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x402b1e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402b59
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402b57
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x402b15
mov dword [ebp - 8], 0
jmp 0x402b6b
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402b92
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x402b90
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x402b62
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x407020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e638
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5afec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x407053
jmp 0x407104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403290
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004041a0
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00408640
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x40708c
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00403340
lea ecx, [ebp - 0x28]
call fcn.004041a0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], 0
jmp 0x4070a9
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x4c]
jge 0x4070f5
mov ecx, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004054b0
movsx edx, byte [eax]
cmp edx, 0x5c
jne 0x4070f3
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409690
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.004086a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x40]
call fcn.00403300
jmp 0x4070a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535234
mov esp, ebp
pop ebp
ret
Function at 0x4082f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
cmp dword [ebp + 8], 0
je 0x408390
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x10], 0
jle 0x408390
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408345
jmp 0x40830b
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x20000013
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40838b
cmp dword [ebp - 8], 0xc8
jne 0x408382
jmp 0x408390
mov dword [ebp - 4], 0
jmp 0x40830b
jmp 0x40830b
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40ae30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40ae54
xor eax, eax
jmp 0x40aed4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ae6b
xor eax, eax
jmp 0x40aed4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40aeb7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40aeb7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40ae8e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40aec3
xor eax, eax
jmp 0x40aed4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40aed1
xor eax, eax
jmp 0x40aed4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40b820
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54eae8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5afec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x28]
call fcn.00404d60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d7d0
add esp, 8
test eax, eax
jne 0x40b88c
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050f0
mov eax, dword [ebp - 0x40]
jmp 0x40b9b1
lea edx, [ebp - 0x20]
push edx
movzx eax, word [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c140
push eax
push 2
call fcn.0040db70
add esp, 0x10
test eax, eax
jne 0x40b8ca
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050f0
mov eax, dword [ebp - 0x38]
jmp 0x40b9b1
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], 0
je 0x40b93c
push 0x30
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40b93a
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40b92d
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40b924
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40b92d
mov dword [ebp - 0x30], 0
jmp 0x40b934
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x40b999
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40b999
push 0x23
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40b999
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
call eax
cmp eax, 2
je 0x40b999
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x58], 1
mov dword [ebp - 0x2c], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004050f0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00535234
mov esp, ebp
pop ebp
ret 8
Function at 0x40ba10
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0xffffffff
je 0x40baa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x68], 0
jbe 0x40ba4f
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x6c], 0
jbe 0x40ba4f
mov dword [ebp - 8], 1
jmp 0x40ba56
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.0040dae0
add esp, 0x10
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
push 0x5b59f0
call fcn.0040d7a0
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, 1
jmp 0x40baa8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x40c820
push 0
push 0
call fcn.00538d1f
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x40baef
mov dword [ebp - 8], 1
jmp 0x40baf6
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40bb00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.0040d010
test eax, eax
jbe 0x40bc16
mov ecx, dword [ebp + 8]
call fcn.0040d010
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x64]
jge 0x40bb36
mov ecx, dword [ebp + 8]
call fcn.0040d010
mov dword [ebp - 0x10], eax
jmp 0x40bb3f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x64]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b4e0
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40bbc4
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b4e0
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
call eax
mov ecx, dword [ebp + 8]
call fcn.0040d010
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040b4e0
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b4e0
push eax
call fcn.00534bf0
add esp, 0xc
push 0
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040c270
jmp 0x40bc11
cmp dword [ebp - 8], 0xffffffff
jne 0x40bc11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
jne 0x40bbe0
jmp 0x40bc16
mov eax, dword [ebp - 0xc]
push eax
push str.CClientSocket::DoSendData
push 7
mov ecx, dword [ebp - 4]
call fcn.0040c590
mov ecx, dword [ebp - 0xc]
push ecx
push 3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x58]
call eax
xor eax, eax
jmp 0x40bc1b
jmp 0x40bb09
mov eax, 1
mov esp, ebp
pop ebp
ret 4