joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b4d5
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 0x44b5ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44b5ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045ff1a
mov esi, eax
test esi, esi
je 0x44b5ed
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 0x44b5ed
mov ecx, esi
call fcn.0044b440
cmp edi, eax
jge 0x44b5ed
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 0x44b573
mov dword [esp + 0x34], 1
jmp 0x44b5ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44b5ed
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.0044aa40
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 0x4608bd
Capabilities:
Get graphical window text

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

Function at 0x461fb2
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 0x461ff4
call fcn.00467a67
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461ff4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461feb
xor eax, eax
jmp 0x461ffc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462002
pop edi
pop esi
pop ebx
ret 4
Function at 0x467f97
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 0x467fc5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467fe3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467efd
jmp 0x467fe3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467fe3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467efd
test edi, edi
mov eax, edi
jne 0x467fcd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4a21cd
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
add eax, ecx
xor edi, edi
cmp ecx, eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov esi, ecx
jae 0x4a2224
mov bl, byte [esi]
movsx edx, bl
cmp edx, 0x100
ja 0x4a2207
cmp byte [edx + 0x1001688], 0x3f
ja 0x4a2207
inc edi
mov dword [ebp - 4], edi
jmp 0x4a221f
cmp bl, 0x20
je 0x4a221f
cmp bl, 9
je 0x4a221f
cmp bl, 0xd
je 0x4a221f
cmp bl, 0xa
jne 0x4a22f9
inc esi
cmp esi, eax
jb 0x4a21eb
mov esi, dword [ebp + 0x10]
lea eax, [edi + 3]
shr eax, 2
test esi, esi
lea eax, [eax + eax*2]
jne 0x4a223b
mov esi, eax
jmp 0x4a22e7
test edi, edi
jbe 0x4a22e7
xor eax, eax
lea edi, [ebp + 8]
stosd dword es:[edi], eax
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, 4
jbe 0x4a2256
push 4
pop eax
cmp edi, eax
jae 0x4a2280
movsx eax, byte [ecx]
mov edx, 0x100
cmp eax, edx
jae 0x4a2276
cmp byte [eax + 0x1001688], 0x3f
jbe 0x4a2276
movsx eax, byte [ecx + 1]
inc ecx
jmp 0x4a2262
mov al, byte [ecx]
inc ecx
mov byte [ebp + edi + 8], al
inc edi
jmp 0x4a224b
movzx eax, byte [ebp + 9]
movzx edx, byte [ebp + 8]
mov bl, byte [eax + 0x1001688]
mov dl, byte [edx + 0x1001688]
shl dl, 2
shr bl, 4
or dl, bl
mov byte [esi], dl
inc esi
cmp edi, 2
jbe 0x4a22bf
movzx edx, byte [ebp + 0xa]
mov al, byte [eax + 0x1001688]
mov dl, byte [edx + 0x1001688]
shr dl, 2
shl al, 4
or dl, al
mov byte [esi], dl
inc esi
cmp edi, 3
jbe 0x4a22de
movzx eax, byte [ebp + 0xa]
movzx edx, byte [ebp + 0xb]
mov al, byte [eax + 0x1001688]
shl al, 6
or al, byte [edx + 0x1001688]
mov byte [esi], al
inc esi
sub dword [ebp - 4], edi
jne 0x4a2243
sub esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
test edi, edi
je 0x4a2316
mov eax, edi
and eax, 3
je 0x4a2224
cmp byte [esi], 0x3d
jne 0x4a2316
cmp eax, 1
jne 0x4a2224
mov dword [ebp - 8], 0xd
jmp 0x4a22ef

Function at 0x83967f
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
jmp 0x839696
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
mov dh, 0x70
add dword [edi], ecx
mov dh, 0x78
add eax, 0x3308e2c1
salc

Function at 0x846cc6
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 6]
lea esp, [esp]
call fcn.00846cf0
clc
ja 0x846cbc
xor byte [ecx - 0x36], 0xea
add eax, 0x34ffa7b4
push dword [esp]
jbe 0x846cb0

Function at 0x846cdc
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x30], ebp
push edx
jmp 0x846ce7
push edx
mov byte [esp + 1], dh
jmp 0x846ceb
push dword [esp]
jbe 0x846cb0
mov dword [esp + 0x30], ebp
jmp 0x846cbb
mov byte [esp + 1], dh
call int.00846cc6
Function at 0x846cf0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf0838110
jmp 0x846d2d
mov dword [esp], edx
lea esp, [esp + 2]
jmp 0x846d67
rdtsc
jmp 0x846d45
jmp 0x846d17
lea esi, [esp]
bt ebp, eax
jo 0x846d90
cmc
jmp 0x846d7a
mov edi, dword [esp + 0x2c]
mov al, ah
rdtsc
seto al
jmp 0x846d2f
mov dword [esp + 0x30], esi
push ecx
mov dword [esp + 0x30], edi
lea esp, [esp + 0x30]
pushfd
jmp 0x846c09
dec bx
jmp 0x846d93
cmc
dec bx
sub esp, 0xc0
mov ebp, esp
mov ax, word [esp]
jmp 0x847709
or ecx, eax
ja fcn.00847317
jbe fcn.00847317
mov cx, 0x6a4d
mov bx, 0xcf03
xor dl, 0xf7
xor ecx, 0xbdad80dd
jmp 0x847742
jb 0x84776b
xchg cl, bh
neg ebx
jmp 0x84774e
mov cx, word [esp]
neg ecx
mov cx, word [esp]
jmp 0x847779
xchg cl, bh
neg ebx
mov cx, word [esp]
neg ecx
mov cx, word [esp]
shl bx, cl
call 0x847782
inc esi
sub ecx, edi
or bh, al
stc
setns ch
lea ebx, reloc.MSVCRT.dll_strncpy
jmp 0x84781b
lea ecx, [ecx*4]
lea ecx, [esp + ebp]
lea ebx, [ebx + 0x17]
jmp 0x847871
xchg dword [esp], ebx
lea ecx, [ebx*4]
mov ecx, esp
mov cx, bp
jmp 0x847805
lea esp, [esp + 3]
push dword [esp + 0x14]
ret 0x18
xchg dword [esp], ebx
mov ebx, dword [esp]
lea ecx, [esp + esi]
sub esp, 0x17
mov ecx, 0x3b3cfc00
mov byte [esp + 0xc], ch
jmp 0x84783a
lea ecx, [ebx*4]
mov cl, dh
pushfd
pop cx
mov cx, word [esp + 1]
lea esp, [esp + 2]
jmp 0x847850

Function at 0x84e6c6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebx, dword [esp]
jmp 0x84e5ff
lea edx, [ebp + 0xa6]
jmp 0x84e670
mov ax, 0xa225
mov dl, 0x53
stc
jae 0x84e5f6
mov ebx, dword [esp]
lea edx, [ebp + 0xa6]
jmp 0x84e670
ror esi, 0
lea edx, [eax*4]
mov eax, dword [esp]
mov ah, byte [esp]
jmp 0x84e65a
xchg dword [esp], eax
mov word [esp + 1], si
lea esp, [esp + 2]
lea esp, [esp + 4]
sub esi, 0x250a5c98
jmp 0x84e615
mov ebx, 0xf6dbbaf1
mov dl, cl
mov bx, 0x6272
jmp 0x84e697
neg esi
setg al
lea edx, reloc.MSVCRT.dll_strncpy
xchg bh, dh
rdtsc
jmp 0x84e629
xor esi, 0x817c908
sub esp, 0x1e
jmp 0x84e78b
lea ebx, [ebx - 0x94]
ror edx, cl
jge 0x84e681
jl 0x84e681
mov byte [esp + 0x13], bl
mov word [esp + 0x1a], ax
rol bx, cl
push dword [esp + 0x1c]
rdtsc
mov ax, word [esp + 0x10]
jmp 0x84e6e1
jmp 0x84e642
clc
jle 0x84e6f2
mov dl, 0x32
call fcn.0084e75f
push ebx
int 0x5d
and al, 0xd7
fsubr qword [edi]
and dword ss:[eax - 0x5d], esp
xchg dx, bx
mov dl, byte [esp]
lea esp, [esp + 2]
rol esi, 0
rdtsc
jmp 0x84e6cb
mov dl, 0x32
jmp 0x84e7b2
shl edx, 0x17
push di
jmp 0x84e79c
push di
cmp ax, 0x8cd4
lea esp, [esp + 2]
jmp fcn.0084e7db
rol bx, cl
push dword [esp + 0x1c]
rdtsc
jmp 0x84e6b5
ja 0x84e6a3
mov byte [esp + 0x13], bl
mov word [esp + 0x1a], ax
jmp 0x84e71d
cmp ax, 0x8cd4
lea esp, [esp + 2]
jmp fcn.0084e7db
add esi, dword [ebp]
neg al
jnp 0x84e6f9
shl edx, 0x17
jmp 0x84e704
Function at 0x8545d8
Capabilities:
Encode data using xor

Disassembly:
call 0x85341b
jmp 0x854450
jmp 0x8545b9
mov dword [esp + 0x24], eax
jmp 0x854615
pushal
jmp 0x853416
pushfd
lea esp, [esp + 4]
cmp dword [esp + 4], 0
jne 0x854476
je 0x85442c
mov eax, dword [esp]
mov eax, dword [esp]
push ebx
lea esp, [esp + 8]
sub eax, 0x3aa69db0
jmp 0x8544f9
inc dword [esp + 8]
jmp 0x85450d
call 0x85450b
inc ecx
inc esp
push esi
inc ecx
push eax
dec ecx
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add bl, ch
mov al, 0x9d
popfd
ret
in al, 0x7a
sbb eax, 0x10912eec
xchg ebx, eax
or ah, byte [ebp + 0x24648dd4]
lea esp, [esp + 4]
push 0
pushfd
jmp 0x854442
pop eax
sub eax, 0x7709f0ec
jmp 0x8545c6
call 0x8545d8
dec ebx
inc ebp
push edx
dec esi
inc ebp
dec esp
xor esi, dword [edx]
insb byte es:[edi], dx
insb byte es:[edi], dx
add cl, ch
dec esi
add dword [eax], eax
add byte [edx], bl
jne 0x8545cb
dec edx
outsd dx, dword [esi]
out 0x74, al
adc ebp, esi
pop ebx
wait
sbb ecx, dword [ebx - 0xc54e212]
jl 0x854602
jne 0x854576
inc edi
leave
push 0xb68df18b
xchg edi, eax
les eax, [ecx]
adc byte [ecx + 0x45eb5e06], cl
mov esi, ecx
lea esi, reloc.MSVCRT.dll_strncpy
mov dword [esi], eax
pop esi
jmp 0x854647
test dword [edi], ecx
lahf
cli
or dword [esi + reloc.MSVCRT.dll_strncpy], esp
sub ecx, 0x1001b39e
push esi
jmp 0x8545f5
popal
jmp 0x854661
cmp ebx, 0x1b054e09
jmp 0x85467d
movzx ebx, byte [eax]
add ebx, 0x1b054d3d
jmp 0x854631
inc dword [esp + 8]
popfd
ret
je 0x854695
jne 0x8534c3
sbb dword [ecx + 0x44837011], eax
fld dword [edx - 0x30]
mov bh, 0x42
invalid
add dword [edi - reloc.MSVCRT.dll_strncpy], edi
adc byte [eax], al
add byte [eax], al
inc esp
jbe 0x85470c
arpl word [ebp + 0x49], sp
outsd dx, dword [esi]
inc ebx
outsd dx, dword [esi]
outsb dx, byte [esi]
je 0x85471e
outsd dx, dword [esi]
insb byte es:[edi], dx
add byte [eax - 0x18], dl
aas
jnp 0x8546b2
invalid
add byte [eax], al
dec ebp
push ebx
push esi
inc ebx
push edx
push esp
insb byte es:[edi], dx
insb byte es:[edi], dx
invalid
Function at 0x407880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43bf9c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x40798a
cmp eax, 2
jge 0x40798a
imul edi, eax, 0x214
inc eax
push ecx
push pe_nt_image_headers32
mov dword [0x43bf9c], eax
add edi, 0x43bb74
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.00410ff3
add esp, 0xc
cmp dword [edi], 0
je 0x40798a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x407966
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40798a
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret 8
Function at 0x4079a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x407b8a
cmp eax, dword [ecx + 0x42c]
jge 0x407b8a
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x407b8a
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x407a1f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x407a1f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x407ade
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x407aa9
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407ade
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0040e150
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.00407bb0
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0040e150
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407b64
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c2a3
mov esp, ebp
pop ebp
ret
Function at 0x407c40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push pe_nt_image_headers32
lea ebx, [esi + 0xc]
push ebx
call fcn.00410ff3
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407c98
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x407cbb
push eax
call fcn.0040c2e2
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040c568
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407d0b
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x409290
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4092b6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4092c7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004087c0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x4092f5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4092d8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x409321
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x409327
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x409338
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40934e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x409570
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5059d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x4096dd
cmp edi, 0x190
jge 0x4096dd
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x508f6c]
test eax, eax
js 0x4096dd
cmp eax, 0x190
jge 0x4096dd
cmp dword [ecx + 0x508f70], 0
je 0x4096dd
cmp dword [ecx + 0x508f84], 0xffffffff
je 0x4096dd
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x4095f4
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0040a1b0
add esp, 0x10
jmp 0x4096dd
mov ebx, dword [ecx + 0x508f8c]
cmp dword [ebx + 0x20], 0
jle 0x40965b
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x409627
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0040a1b0
add esp, 0x10
jmp 0x4096d2
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.0040dbb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x5059d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.0040dbb0
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x508f84]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x409645
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409645
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a1b0
add esp, 0xc
push edi
mov ecx, 0x505960
call fcn.00409700
push 0x5059d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4098e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x409a72
cmp ebx, 0x190
jge 0x409a72
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40991d
mov ecx, esi
jmp 0x409a6c
mov esi, dword [ebp + 0x10]
imul eax, ebx, 0x70
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x409a0b
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x409960
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x4099d5
push 0x2000
push edx
push ecx
call fcn.0040dbb0
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call fcn.0040dbb0
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x12028], 0x2000
jmp 0x409a21
push eax
push edx
push ecx
call fcn.0040dbb0
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x12028], 0
jmp 0x409a1a
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x508f84]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x409a72
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409a72
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a1b0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00409700
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a0f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x40a11c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40a132
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x40a146
push 0x2024
push esi
call fcn.0040c2b1
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4