joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx ecx, word [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401092
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401092
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401092
mov edx, dword [ebp + 0x10]
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401092
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ebx
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40108b
cmp dword [ebp + 0xc], esi
jne 0x40108b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4010a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4010c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0x4011fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408010]
jne 0x401207
repz ret
jmp fcn.0040142a
Function at 0x4033eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402345
and dword [ebp - 0x14], 0
cmp dword [0x409764], 0
mov dword [ebp - 0x18], eax
jne 0x40349e
push 0x406cc0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403546
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406cb4
push ebx
call edi
test eax, eax
je 0x403546
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x406ca4
push ebx
mov dword [0x409764], eax
call edi
push eax
call esi
push 0x406c90
push ebx
mov dword [0x409768], eax
call edi
push eax
call esi
push 0x406c74
push ebx
mov dword [0x40976c], eax
call edi
push eax
call esi
mov dword [0x409774], eax
test eax, eax
je 0x40349e
push 0x406c5c
push ebx
call edi
push eax
call esi
mov dword [0x409770], eax
mov eax, dword [0x409770]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4034f7
cmp dword [0x409774], ecx
je 0x4034f7
push eax
call esi
push dword [0x409774]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4034f7
test ebx, ebx
je 0x4034f7
call edi
test eax, eax
je 0x4034ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4034ee
test byte [ebp - 8], 1
jne 0x4034f7
or dword [ebp + 0x10], 0x200000
jmp 0x40352a
mov eax, dword [0x409768]
cmp eax, dword [ebp - 0x18]
je 0x40352a
push eax
call esi
test eax, eax
je 0x40352a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40352a
mov eax, dword [0x40976c]
cmp eax, dword [ebp - 0x18]
je 0x40352a
push eax
call esi
test eax, eax
je 0x40352a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x409764]
call esi
test eax, eax
je 0x403546
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403548
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011fd
leave
ret
Function at 0x4057a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
movq xmm0, qword [ebx + 6]
push esi
push edi
movzx eax, word [ebx + 4]
lea edi, [ebx + 6]
mov word [ebp - 0x3c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x32], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x30], al
xor eax, eax
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 0x40
movq qword [ebp - 0x3a], xmm0
mov byte [ebp - 0x21], 0
mov cl, byte [edi + eax]
cmp cl, 0x20
je 0x405982
cmp cl, 0x22
je 0x405982
cmp cl, 0x27
je 0x405982
inc eax
cmp eax, 0xb
jl 0x4057e1
push 0x40f0f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x40f10c]
push 0x40f0f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x61a80
jl 0x40588a
push 0x40f0f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x40f10c]
push 0x40f0f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [0x40f583]
lea ecx, [eax + eax*2]
movzx eax, byte [0x40f584]
lea eax, [eax + ecx*2]
cmp esi, dword [eax*4 + 0x40b3e0]
jl 0x40588a
push 0x3c
lea eax, [ebp - 0x40]
mov byte [ebp - 0x21], 2
push eax
push dword [ebp - 4]
call fcn.00407840
push str.Account__s_Register_fail__CONNECTION___
push 1
call fcn.00408470
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4db50c], 0
push edi
jne 0x40589b
push str.SELECT_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s_COLLATE_Latin1_General_BIN
jmp 0x4058a0
push str.SELECT_memb__pwd_FROM_MEMB_INFO_WHERE_memb___id_s
push 0x40f5d0
call fcn.00406480
add esp, 0xc
test al, al
je 0x4058f2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4058f2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x3c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call fcn.00407840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x40f5dc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebx + 0x59]
push eax
lea eax, [ebx + 0x27]
push eax
lea eax, [ebx + 0x1c]
push eax
push 0x40b77c
lea ecx, [ebx + 0x11]
push ecx
push edi
push str.INSERT_INTO_dbo.MEMB_INFO_memb___id__memb__pwd__memb_name__sno__numb__mail_addr__phon_numb__mail_chek__bloc_code__ctl1_code__VALUES___s___s___s___s___s___s__1__0__1_
push 0x40f5d0
call fcn.00406480
add esp, 0x20
cmp al, 1
jne 0x40596d
push dword [0x40f5dc]
call esi
push 2
push dword [0x40f5dc]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea eax, [ebx + 0x11]
mov byte [ebp - 0x21], 1
push eax
push edi
push str._AccountInfo__Account_created__Account:__s__Password:__s__
push 1
push 0x40f120
call fcn.00405b50
add esp, 0x14
push 0x3c
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 4]
call fcn.00407840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x40]
mov byte [ebp - 0x21], 2
push eax
push edx
call fcn.00407840
push str.Account__s_Register_fail_Syntax_
push 1
call fcn.00408470
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f54c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x405b3b
cmp eax, 2
jge 0x405b3b
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x40f54c], eax
add edi, 0x40f124
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x405b3b
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 0x405b17
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004085b7
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 0x405b3b
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.004085b7
mov esp, ebp
pop ebp
ret 8
Function at 0x405b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x40f040]
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 0x405d38
cmp eax, dword [ecx + 0x42c]
jge 0x405d38
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x405d38
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x405bcf
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x405bcf
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x405c8e
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 0x405c59
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004085b7
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 0x405c8e
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.004085b7
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.00405d60
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x405d12
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.004085b7
mov esp, ebp
pop ebp
ret
Function at 0x407570
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 0x407596
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 0x4075a7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004068a0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x4075d5
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 0x4075b8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x407601
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 0x407607
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x407618
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40762e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x407840
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 0x4d8f68
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x4079ad
cmp edi, 0x190
jge 0x4079ad
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x4db634]
test eax, eax
js 0x4079ad
cmp eax, 0x190
jge 0x4079ad
cmp dword [ecx + 0x4db638], 0
je 0x4079ad
cmp dword [ecx + 0x4db64c], 0xffffffff
je 0x4079ad
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x4078c4
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00408470
add esp, 0x10
jmp 0x4079ad
mov ebx, dword [ecx + 0x4db654]
cmp dword [ebx + 0x20], 0
jle 0x40792b
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x4078f7
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00408470
add esp, 0x10
jmp 0x4079a2
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x4d8f68
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 sub.VCRUNTIME140.dll_memcpy
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 + 0x4db64c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407915
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407915
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00408470
add esp, 0xc
push edi
mov ecx, 0x4d8ef0
call fcn.004079d0
push 0x4d8f68
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 0x407bb0
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 0x407d42
cmp ebx, 0x190
jge 0x407d42
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x407bed
mov ecx, esi
jmp 0x407d3c
mov esi, dword [ebp + 0x10]
imul ecx, ebx, 0x70
mov edx, dword [esi + 0x20]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x2024]
add ecx, eax
mov dword [esi + 0x2024], ecx
cmp ecx, edx
jl 0x407cdb
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x407c30
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 0x407ca5
push 0x2000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
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 sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x12028], 0x2000
jmp 0x407cf1
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
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 0x407cea
lea eax, [esi + 0x24]
add eax, ecx
sub edx, ecx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], edx
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 + 0x4db64c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407d42
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407d42
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00408470
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.004079d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408380
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 0x4083ac
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 0x4083c2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x4083d6
push 0x2024
push esi
call fcn.00408816
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4083e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x408408
lea eax, [ebp - 0x104]
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.004085a0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408458
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409208
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5d5440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004671b6
mov edi, eax
add esp, 4
test edi, edi
je 0x4083a3
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0043c202
add esp, 4
mov dword [edi + 4], eax
jmp 0x4083a5
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403d00
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x408405
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x408405
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x408429
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x40844b
cmp byte [ebp + 0xc], 0
je 0x408438
push esi
call fcn.0043c763
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x408457
mov esi, str.ios_base::badbit_set
jmp 0x408467
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0040a0a0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404970
push 0x5c3f94
lea eax, [ebp - 0x30]
push eax
call fcn.00552bec
int3
Function at 0x40b920
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586eb2
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5d5440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x62c], esi
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x628]
push eax
mov dword [ebp - 0x634], 1
call fcn.00553b10
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00553b10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00553b10
add esp, 0x24
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40bac0
xor ebx, ebx
lea edi, [ebp - 0x628]
nop dword [eax]
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x420]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40ba58
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40ba16
sub esi, ecx
mov ecx, dword [ebp - 0x630]
sar esi, 1
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x40ba35
mov eax, dword [ecx]
push esi
lea ecx, [ebp - 0x420]
push ecx
push eax
call fcn.005605c4
add esp, 0xc
test eax, eax
je 0x40ba60
add ebx, 4
add edi, 8
cmp ebx, 0x104
jb 0x40b9f0
mov eax, dword [ebp - 0x62c]
jmp 0x40bac2
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x630]
cmp dword [eax + 0x14], 8
jb 0x40ba7c
mov eax, dword [eax]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba96
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
call fcn.00407440
mov eax, dword [ebp - 0x62c]
jmp 0x40bac2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046748e
mov esp, ebp
pop ebp
ret