joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f795
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 0x46f8ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f8ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00486bd0
mov esi, eax
test esi, esi
je 0x46f8ad
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 0x46f8ad
mov ecx, esi
call fcn.0046f720
cmp edi, eax
jge 0x46f8ad
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 0x46f833
mov dword [esp + 0x34], 1
jmp 0x46f88e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46f8ad
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.0046ecc0
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 0x487573
Capabilities:
Get graphical window text

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

Function at 0x488c61
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 0x488ca3
call fcn.0048e71f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x488ca3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x488c9a
xor eax, eax
jmp 0x488cab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00488cb1
pop edi
pop esi
pop ebx
ret 4
Function at 0x48ec4f
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 0x48ec7d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ec9b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048ebb5
jmp 0x48ec9b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ec9b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048ebb5
test edi, edi
mov eax, edi
jne 0x48ec85
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407760
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x43cf9c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x40786a
cmp eax, 2
jge 0x40786a
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x43cf9c], eax
add edi, 0x43cb74
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.004111f3
add esp, 0xc
cmp dword [edi], 0
je 0x40786a
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 0x407846
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c493
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 0x40786a
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.0040c493
mov esp, ebp
pop ebp
ret 8
Function at 0x407880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43c040]
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 0x407a6a
cmp eax, dword [ecx + 0x42c]
jge 0x407a6a
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x407a6a
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x4078ff
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x4078ff
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x4079be
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 0x407989
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c493
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 0x4079be
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.0040c493
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0040e350
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.00407a90
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0040e350
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 0x407a44
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.0040c493
mov esp, ebp
pop ebp
ret
Function at 0x407b20
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 0x100
lea ebx, [esi + 0xc]
push ebx
call fcn.004111f3
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 0x407b78
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 0x407b9b
push eax
call fcn.0040c4d2
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040c758
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 0x407beb
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 0x408b20
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x43cb30
call esi
mov ebx, dword [0x43cb4c]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x43cb30
call edi
push 0x506908
call esi
mov esi, dword [0x506930]
push 0x506908
call edi
push 0x61a80
push ebx
push esi
push str.ATLANS_EMULATOR
push str.1.0.0.1
lea eax, [ebp - 0x108]
push str.__s___s_JoinServer__QueueSize_:__d___AccountCount_:__d__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x108]
push eax
push dword [0x505ef4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00408d90
lea eax, [ebp - 0x118]
push eax
push dword [0x505ef4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [0x505ef4]
mov dword [ebp - 0x114], 0x64
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 1
push ebx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [0x505f08]
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0x506840]
mov esi, 0x1b
mov ecx, dword [sym.imp.GDI32.dll_SetTextColor]
add eax, 0xffffffff
mov ebx, 0x1f9
mov dword [ebp - 0x120], 0x1c
cmovns esi, eax
nop dword [eax + eax]
imul edi, esi, 0x54
mov eax, dword [edi + 0x505f60]
cmp eax, 3
ja case.default.0x408c2e
jmp dword [eax*4 + 0x408d7c]
push 0
jmp 0x408c4c
push 0xef
jmp 0x408c4c
push 0xff00
jmp 0x408c4c
push 0xef9800
push dword [ebp - 0x11c]
call ecx
lea edx, [edi + 0x505f10]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c60
sub eax, edi
mov edi, dword [ebp - 0x11c]
cmp eax, 1
jle 0x408c83
push eax
push edx
push ebx
push 0
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
sub ebx, 0xf
mov ecx, dword [sym.imp.GDI32.dll_SetTextColor]
sub esi, 1
mov eax, 0x1b
cmovns eax, esi
sub dword [ebp - 0x120], 1
mov esi, eax
jne 0x408c20
push edi
push dword [0x505ef4]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x118]
push eax
push dword [0x505ef4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [0x505ef4]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x10c], 0x32
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 1
push esi
mov dword [ebp - 0x11c], esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [0x505ef8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push esi
call edi
push 0xffffff
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [0x505f04]
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.USER32.dll_FillRect]
push 0x25
lea eax, [ebp - 0x118]
push eax
push 0x10
push str.ATLANS_EMULATOR
push dword [ebp - 0x11c]
call dword [sym.imp.USER32.dll_DrawTextA]
push esi
mov esi, dword [ebp - 0x11c]
push esi
call edi
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push esi
push dword [0x505ef4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c493
mov esp, ebp
pop ebp
ret
Function at 0x409500
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 0x409526
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 0x409537
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004086a0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x409565
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 0x409548
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x409591
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 0x409597
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x4095a8
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x4095be
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x4097d0
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 0x506940
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x40993d
cmp edi, 0x190
jge 0x40993d
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x509ed4]
test eax, eax
js 0x40993d
cmp eax, 0x190
jge 0x40993d
cmp dword [ecx + 0x509ed8], 0
je 0x40993d
cmp dword [ecx + 0x509eec], 0xffffffff
je 0x40993d
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x409854
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0040a420
add esp, 0x10
jmp 0x40993d
mov ebx, dword [ecx + 0x509ef4]
cmp dword [ebx + 0x20], 0
jle 0x4098bb
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x409887
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0040a420
add esp, 0x10
jmp 0x409932
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.0040ddb0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x506940
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.0040ddb0
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 + 0x509eec]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4098a5
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4098a5
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a420
add esp, 0xc
push edi
mov ecx, 0x5068c8
call fcn.00409960
push 0x506940
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 0x409b40
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 0x409cd2
cmp ebx, 0x190
jge 0x409cd2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x409b7d
mov ecx, esi
jmp 0x409ccc
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 0x409c6b
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x409bc0
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 0x409c35
push 0x2000
push edx
push ecx
call fcn.0040ddb0
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.0040ddb0
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x12028], 0x2000
jmp 0x409c81
push eax
push edx
push ecx
call fcn.0040ddb0
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 0x409c7a
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 + 0x509eec]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x409cd2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409cd2
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a420
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00409960
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a360
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 0x40a38c
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 0x40a3a2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x40a3b6
push 0x2024
push esi
call fcn.0040c4a1
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40a3c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040e350
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.0040a550
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40b4d1
jl 0x40b4c8
test edi, edi
jne 0x40b4d1
xor eax, eax
xor edx, edx
jmp 0x40b592
cmp dword [ebx + 0x38], 0
je 0x40b4e6
push eax
push edi
push dword [ebp + 8]
call fcn.0040b598
jmp 0x40b592
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b52d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b52d
cmp eax, edi
jb 0x40b507
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ddb0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40b533
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b587
mov ecx, ebx
call fcn.0040ad47
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b572
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411426
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40b587
jmp 0x40b545
test edx, edx
je 0x40b587
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411426
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40d221
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d260
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d260
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d260
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d260
cmp dword [ecx + 0x74], 0xe
jbe 0x40d260
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ca69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5098c8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41caa9
cmp byte [ebx], 0xa
jne 0x41caa9
or byte [edi + eax + 0x28], 4
jmp 0x41caae
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41cbad
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41cb90
inc eax
cmp dl, 0xd
je 0x41cada
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41cb00
cmp eax, ecx
jae 0x41cb0e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41cac2
jmp 0x41cbad
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb8b
cmp dword [ebp - 0x10], 0
je 0x41cb8b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5098c8]
test byte [eax + edi + 0x28], 0x48
je 0x41cb65
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cb50
mov byte [esi], dl
jmp 0x41cb61
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5098c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41cbad
cmp byte [ebp - 1], 0xa
jne 0x41cb74
cmp esi, ebx
jne 0x41cb74
mov byte [esi], 0xa
jmp 0x41cbac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421fc6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41cbad
mov byte [esi], 0xd
jmp 0x41cbac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5098c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41cbaa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41cbad
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret