joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10033f30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x10033f6f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x1003408b
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x10033ffc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x10033ff7
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10033fd0
xor eax, eax
jmp 0x10034090
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1001cc40
add esp, 0xc
jmp 0x10033f5d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10032330
add esp, 8
test eax, eax
jne 0x1003401d
xor eax, eax
jmp 0x10034090
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10034054
xor eax, eax
jmp 0x10034090
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1001ccc0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10033f5d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1003a6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d049
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x10064728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x220]
call fcn.100024a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1003a76e
lea ecx, [ebp - 0x21c]
push ecx
push 0x1005ba04
lea edx, [ebp - 0x220]
push edx
call fcn.10002030
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001b60
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.100011a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001c920
mov esp, ebp
pop ebp
ret 4
Function at 0x4010c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x42867c]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x12]
push ecx
xor bl, bl
mov word [esp + 0x14], ax
call fcn.0040cf60
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401138
mov eax, dword [0x6885e0]
mov ecx, dword [eax]
push str._IOCP__::_WSAStartup___Cant_startup_wsa_library
push 0x6885e0
call ecx
add esp, 8
mov al, bl
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0040a0fc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
call fcn.00404090
test al, al
je 0x40114a
cmp al, 1
mov al, 1
je 0x40114c
mov al, bl
mov ecx, dword [esp + 0x19c]
pop ebx
xor ecx, esp
call fcn.0040a0fc
mov esp, ebp
pop ebp
ret 4

Function at 0x4020b0
Capabilities:
Create thread
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x429e80]
cmp eax, 0xffffffff
je 0x4020cf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x429e80], 0xffffffff
push 0
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x429e80], eax
mov eax, 2
push esi
mov dword [0x429e74], esi
mov word [0x42a6bc], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [0x42a6be], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x42a6c0], eax
cmp eax, 0xffffffff
jne 0x402138
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402138
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x42a6c0
call fcn.0040b630
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x402010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x4039a0
Capabilities:
Create directory

Disassembly:
push 0
push 0x423d48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [0x67ecf8]
push 0x100
push 0
push 0x431fb8
mov dword [0x431a54], eax
call fcn.0040cf60
mov eax, dword [0x431a54]
mov cx, word [0x423d48]
mov dl, byte [0x423d4a]
add esp, 0xc
push eax
mov word [0x431fb8], cx
mov byte [0x431fba], dl
mov byte [0x4324b8], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403a1f
mov ecx, dword [0x431a54]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
cmp eax, 1
je 0x403a1f
push esi
mov esi, 0x42a6d8
call fcn.00407be0
call fcn.00407ce0
pop esi
push str.___JoinServer___
push 0x423d60
mov eax, 0x78f0
mov ecx, 0x42a6d8
call fcn.00408050
push str._Log__Log_System_Initialized
push 0xb22222
mov eax, 0x42a6d8
call fcn.00407e40
add esp, 0x10
ret

Function at 0x403a50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.Initializing_Database_connection.
push 0
mov eax, 0x42a6d8
mov byte [ebp - 1], 0
call fcn.00407e40
mov ecx, 0x100
mov esi, str.DataBase
mov edi, 0x688e70
push 0x400
rep movsd dword es:[edi], dword [esi]
call fcn.0040a57c
push 0x400
mov esi, eax
push 0
push esi
call fcn.0040cf60
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x18
push 0x688a70
push 0x400
push esi
push str.null
push str.Pass
push 0x688e70
call edi
push 0x400
call fcn.0040a57c
push 0x400
mov ebx, eax
push 0
push ebx
call fcn.0040cf60
add esp, 0x10
push 0x688a70
push 0x400
push ebx
push str.null
push str.User
push 0x688e70
call edi
push 0x400
call fcn.0040a57c
push 0x400
push 0
push eax
mov dword [ebp - 8], eax
call fcn.0040cf60
mov eax, dword [ebp - 8]
add esp, 0x10
push 0x688a70
push 0x400
push eax
push str.null
push str.ODBCN
push 0x688e70
call edi
push 0x400
call fcn.0040a57c
push 0x400
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.0040cf60
mov ecx, dword [ebp - 0xc]
add esp, 0x10
push 0x688a70
push 0x400
push ecx
push str.null
push str.Host
push 0x688e70
call edi
push 0x688a70
push 0
push str.IsSQL2000
push 0x688e70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 8]
push edx
push eax
mov ecx, ebx
mov ebx, dword [ebp - 0xc]
push 0x67ed00
mov edx, esi
call fcn.00407330
cmp al, 1
jne 0x403bbd
mov bl, al
push str.Initialized_Database_connection.
push 0
mov eax, 0x42a6d8
call fcn.00407e40
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004038a0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.Initializing_IOCP_system_connection.
mov ecx, 0x100
mov esi, 0x423880
mov edi, 0x688e70
push 0
mov eax, 0x42a6d8
rep movsd dword es:[edi], dword [esi]
call fcn.00407e40
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
push 0x688a70
push 0
push str.Port
push 0x688e70
call ebx
push 0x688a70
push 0
push str.UDP_CS_Port
push 0x688e70
mov dword [ebp - 4], eax
call ebx
push 0x400
mov esi, eax
call fcn.0040a57c
push 0x400
mov edi, eax
push 0
push edi
call fcn.0040cf60
add esp, 0x10
push 0x688a70
push 0x400
push edi
push str.null
push str.Server_IP
push 0x688e70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x688a70
push 0
push str.UseMD5
push 0x688e70
call ebx
mov ecx, dword [ebp - 4]
test eax, eax
setne al
push ecx
mov byte [0x433450], al
call fcn.004010c0
mov bl, al
call fcn.004020b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x403ccc
push str.Initialized_IOCP_system_connection.
push 0
mov eax, 0x42a6d8
call fcn.00407e40
push esi
push edi
push str.UDP_Create_Socket_IP_:___s____PORT_:___d_.
push 0x8000
mov eax, 0x42a6d8
call fcn.00407e40
add esp, 0x18
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ce0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebp + 8]
push 0x4299d0
mov dword [0x429a40], 0x65
call fcn.00401850
call fcn.004039a0
push 0
push 0
push 0x403990
call fcn.0040a4a0
add esp, 0xc
call fcn.00403a50
cmp al, 1
jne 0x403d79
call fcn.00403bd0
cmp al, 1
jne 0x403d79
push str.___JoinServer___
push 0x423d60
push 0xffffff
mov eax, 0x78f0
mov ecx, 0x42a6d8
call fcn.004080c0
add esp, 0xc
call esi
sub eax, edi
push eax
push 0x423880
push str._s_Loaded_in__d_msec
push 0xff
mov eax, 0x42a6d8
call fcn.00407e40
add esp, 0x10
cmp byte [0x429e68], 0
jne 0x403ddd
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [0x4299d4]
push 0
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov dword [0x67ecfc], 0x4299d0
call esi
test eax, eax
je 0x403dd3
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
push edx
push 0
push eax
call edi
test eax, eax
jne 0x403dd3
lea ecx, [ebp - 0x1c]
push ecx
call ebx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp byte [0x429e68], 0
je 0x403d95
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ecbb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42867c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [edi], vtable.IOCP.0
lea eax, [edi + 0x10]
xor esi, esi
push eax
mov dword [edi + 8], esi
mov dword [edi + 4], vtable.TSynchroCriticalSection.0
mov dword [edi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], esi
mov edx, dword [edi + 4]
mov eax, dword [edx]
push 0xfa
lea ecx, [edi + 4]
call eax
mov dword [edi + 8], eax
mov esi, 0x67df3c
jmp 0x403f80
push 0x5e2c
mov dword [esi - 4], 0xffffffff
mov dword [esi], 0xffffffff
mov dword [esi + 0x4c], 0
call fcn.0040a57c
mov dword [esi + 0x50], eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push 0x33
mov dword [esi + 0xc], eax
push eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], eax
push ecx
mov dword [esi + 0x14], eax
call fcn.0040cf60
add esi, 0x58
add esp, 0x10
cmp esi, 0x67ecfc
jl 0x403f80
xor eax, eax
mov dword [edi + 0x40], eax
push 0x400
push eax
lea edx, [edi + 0x80]
push edx
mov dword [edi + 0x34], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi + 0x30], eax
mov dword [edi + 0x28], eax
call fcn.0040cf60
mov eax, dword [edi + 4]
mov edx, dword [eax + 0xc]
add esp, 0xc
lea ecx, [edi + 4]
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404020
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
push edi
mov dword [esi], vtable.IOCP.0
cmp dword [esi + 0x30], ebx
jle 0x40404f
lea edi, [esi + 0x40]
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x30]
jl 0x404032
mov edx, dword [esi + 0x34]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x38]
push ecx
call edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea edx, [esi + 0x10]
push edx
mov dword [esi + 4], vtable.TSynchroCriticalSection.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
mov dword [esi + 4], vtable.TSynchroBase.0
pop ebx
ret
Function at 0x404090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea ecx, [ebp - 0x24]
push ecx
mov dword [0x68860c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
lea eax, [edx + edx]
push 0xffffffffffffffff
mov dword [0x688610], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x688618], eax
test eax, eax
jne 0x4040f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IOCP__::_CreateIoCompletionPort_failed_with_error:__d
push 0x688660
call fcn.0040a296
mov ecx, dword [0x6885e0]
mov edx, dword [ecx]
push 0x688660
push 0x6885e0
call edx
add esp, 0x14
call fcn.00404110
mov eax, dword [0x688610]
call fcn.00404190
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], 0
mov bl, 1
call fcn.00404220
cmp al, bl
jne 0x40417e
lea eax, [ebp - 4]
push eax
push 0
push 0x6885e0
push 0x4043d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x688614], eax
test eax, eax
jne 0x40417e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._IOCP__::_CreateThread___failed_with_error__d
push 0x688660
call fcn.0040a296
mov ecx, dword [0x6885e0]
mov edx, dword [ecx]
push 0x688660
push 0x6885e0
call edx
add esp, 0x14
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404190
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov dword [ebp - 4], 0
mov bl, 1
test eax, eax
jle 0x40420f
push esi
push edi
mov edi, 0x688620
mov dword [ebp - 8], eax
mov edi, edi
lea eax, [ebp - 4]
push eax
push 0
push 0x6885e0
push 0x404740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x404203
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str._IOCP__::_CreateThread__d__failed_with_error__d
push 0x688660
call fcn.0040a296
mov edx, dword [0x6885e0]
mov eax, dword [edx]
push 0x688660
push 0x6885e0
call eax
add esp, 0x18
xor bl, bl
mov dword [edi], esi
add edi, 4
dec dword [ebp - 8]
jne 0x4041b0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405280
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 4]
xor ecx, ecx
add esi, 0x2f18
mov dword [ebp - 4], ecx
cmp dword [esi + 0x2f0c], ecx
jle 0x4052a9
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2efc]
mov dword [esi + 0x2f00], ecx
cmp eax, ecx
jle 0x40529f
push edi
push eax
lea eax, [esi + 0x178c]
push eax
lea edi, [esi + 0x1c]
push edi
call fcn.0040b630
mov ecx, dword [esi + 0x2efc]
add esp, 0xc
mov dword [esi + 0x2f00], ecx
mov edx, dword [esi + 0x2f00]
xor ecx, ecx
push ecx
mov dword [esi + 0x18], edi
push esi
mov edi, ebx
push ecx
imul edi, edi, 0x58
mov dword [esi + 0x2efc], ecx
mov dword [esi + 0x2f04], ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x14]
push 1
mov dword [eax], edx
mov dword [esi + 0x2f08], 1
mov edx, dword [edi + 0x67df3c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x405374
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40537d
mov esi, dword [ebp + 8]
lea eax, [edi + 0x67df40]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x2f7
push str._IOCP__::_WSASend__d__failed_with_error__d__s
lea edi, [esi + 0x80]
push edi
call fcn.0040a296
mov ecx, dword [esi]
mov edx, dword [ecx]
push edi
push esi
call edx
mov eax, ebx
add esp, 0x1c
mov ebx, esi
call fcn.00405550
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x5e28]
pop edi
mov dword [esi + 0x2f0c], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4053a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 4]
add esi, 0x2f18
cmp dword [esi + 0x2f0c], 0
mov dword [ebp - 4], 0
jle 0x4053cc
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2f04]
mov ecx, dword [esi + 0x2f00]
sub ecx, eax
js 0x4053c2
push edi
push 0
lea eax, [eax + esi + 0x1c]
mov edi, ebx
push esi
imul edi, edi, 0x58
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push 0
mov dword [eax], ecx
lea ecx, [ebp - 4]
push ecx
push 1
mov dword [esi + 0x2f08], 1
mov edx, dword [edi + 0x67df3c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x405469
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x405472
mov esi, dword [ebp + 8]
lea eax, [edi + 0x67df40]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x323
push str._IOCP__::_WSASend__d__failed_with_error__d__s
lea edi, [esi + 0x80]
push edi
call fcn.0040a296
mov ecx, dword [esi]
mov edx, dword [ecx]
push edi
push esi
call edx
mov eax, ebx
add esp, 0x1c
mov ebx, esi
call fcn.00405550
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x5e28]
pop edi
mov dword [esi + 0x2f0c], 1
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405d50
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ecx, 0xff
ja 0x405e0f
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405d70
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x4244e8]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x4244ec]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x4244f0]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x4244f4]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.00405ea0
mov ecx, esi
call fcn.00405fd0
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov dword [edi], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esi + 0x9c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x408160
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [esi + 0x77e0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408170
sub eax, edx
cmp eax, 1
jb 0x4081e1
push ebx
push edi
push 0
lea edi, [esi + 0x78e0]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esi + 0x77e0]
push eax
push edi
lea ebx, [esi + 0x79e0]
push str._s_s
push ebx
call fcn.0040a296
push 0x42578c
push ebx
call fcn.0040afd7
add esp, 0x18
pop edi
mov dword [esi + 0x7de8], eax
pop ebx
test eax, eax
je 0x4081e1
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push 1
push eax
push ecx
call fcn.0040b2aa
mov edx, dword [esi + 0x7de8]
push edx
call fcn.0040aea7
add esp, 0x14
pop ebp
ret 8

Function at 0x408230
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push 0
push eax
mov dword [esi], vtable.WzUdp.0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x408269
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov edx, dword [esi + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test byte [ebp + 8], 1
je 0x40828b
push esi
call fcn.0040a571
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x40a0fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42867c]
jne 0x40a106
repz ret
jmp fcn.0040efcf
Function at 0x4115a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42867c]
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.00410711
and dword [ebp - 0x14], 0
cmp dword [0x4330a0], 0
mov dword [ebp - 0x18], eax
jne 0x41165b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411703
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411703
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4330a0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4330a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4330a8], eax
call edi
push eax
call esi
mov dword [0x4330b0], eax
test eax, eax
je 0x41165b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4330ac], eax
mov eax, dword [0x4330ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4116b4
cmp dword [0x4330b0], ecx
je 0x4116b4
push eax
call esi
push dword [0x4330b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4116b4
test ebx, ebx
je 0x4116b4
call edi
test eax, eax
je 0x4116ab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4116ab
test byte [ebp - 8], 1
jne 0x4116b4
or dword [ebp + 0x10], 0x200000
jmp 0x4116e7
mov eax, dword [0x4330a4]
cmp eax, dword [ebp - 0x18]
je 0x4116e7
push eax
call esi
test eax, eax
je 0x4116e7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4116e7
mov eax, dword [0x4330a8]
cmp eax, dword [ebp - 0x18]
je 0x4116e7
push eax
call esi
test eax, eax
je 0x4116e7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4330a0]
call esi
test eax, eax
je 0x411703
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411705
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a0fc
leave
ret