joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427cd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x427d00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x427eb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x427ed4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x427f24
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6a4a24]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x427f6c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x427f6c
cmp dword [ebp - 8], 0x100000
jge 0x427f40
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x6a4a24]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x427f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x427ff0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x42802e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x42802e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x428030
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x428070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4284a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x699894]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x42ca80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42cbe1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42cadf
test ebx, ebx
jle 0x42cadf
push edi
lea eax, [esp + 0x10]
push eax
push ebx
push dword [0x6a521c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42cadf
cmp dword [esp + 0xc], ebx
jne 0x42cadf
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42cbe0
mov edx, dword [0x6a521c]
mov ecx, edx
cmp dword [ecx], 0x50555245
jne 0x42cbe0
mov eax, dword [ecx + 8]
add ecx, 0xc
add eax, 0xadbaaccf
mov dword [esp + 0x10], eax
cmp eax, 8
ja 0x42cbe0
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x42cbe0
push ebp
jmp 0x42cb30
cmp dword [ecx], 0x434e5354
lea ebp, [ecx + 8]
mov edi, dword [ecx + 4]
jne 0x42cbca
test edi, edi
jle 0x42cbca
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x69f73c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42cbca
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x18]
push edi
push ebp
push ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
movzx eax, byte [eax + 0x42cbf4]
jmp dword [eax*4 + 0x42cbe8]
mov eax, dword [0x6a521c]
lea ecx, [edi + ebp]
add eax, 0xfffffff8
add eax, ebx
cmp ecx, eax
jb 0x42cb30
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x42f650
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x6a4a28]
call fcn.00427092
cmp dword [0x587018], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x42f753
cmp dword [0x6a13d8], 0
jne 0x42f753
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x6a13e4
call esi
cmp dword [0x6a0bd8], 0
je 0x42f6a9
push 0x6a5228
call esi
push 0x6b1284
call esi
push 0x6a4a34
call esi
push ebp
push 0
push 0
push 0
push dword [0x6b1280]
mov dword [0x6a4a2c], ebx
mov dword [0x6a13d8], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x6a13e0]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x42f726
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42f6f0
cmp esi, dword [esp + 0x10]
je 0x42f71f
cmp dword [esi + 0x2c], 0
jne 0x42f71f
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x42f710
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x42f700
cmp dword [esi + 0x2c], 0
jne 0x42f71f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x42f6f0
pop edi
cmp dword [0x6a0bd8], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x42f74b
push 0x6a4a34
call esi
push 0x6b1284
call esi
push 0x6a5228
call esi
push 0x6a13e4
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4336a0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.00433510
call fcn.0042f650
lea ecx, [ecx]
push 0
call fcn.00433900
test eax, eax
jne 0x4336b0
mov ecx, dword [0x6a0bf0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
je 0x433787
cmp dword [0x6a0bf4], eax
je 0x433787
mov eax, dword [0x6a0bec]
shl eax, 2
cmp dword [0x6a1400], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x43377c
push eax
push ecx
push dword [0x6a521c]
call sub.MSVCRT.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [0x6a0bec], esi
jle 0x43374a
jmp 0x433720
mov eax, dword [0x6a521c]
mov cl, byte [eax + esi*4]
lea edx, [eax + esi*4]
movzx eax, byte [edx + 3]
inc esi
mov byte [edx], al
movzx eax, byte [edx + 2]
mov byte [edx + 3], cl
mov cl, byte [edx + 1]
mov byte [edx + 1], al
mov byte [edx + 2], cl
cmp esi, dword [0x6a0bec]
jl 0x433720
mov esi, dword [0x6a521c]
call fcn.00441b70
push 0x6b1284
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x6a141c]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x6b1284
call ebx
jmp 0x433787
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00433e20
mov dword [esp + 0xc], 1
call fcn.00441b70
push 0x6b1284
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x6a141c]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x6b1284
call ebx
mov eax, dword [0x6a141c]
mov eax, dword [eax + 0x14]
call eax
push 0x6a4a34
call edi
push 0x6b1284
call edi
push 0x6a5228
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x6a1414]
call edi
push dword [0x6a1414]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x6a1418]
call edi
push dword [0x6a1418]
call esi
push 0x6a4a34
call ebx
push 0x6b1284
call ebx
push 0x6a5228
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x6a4a34
call esi
push 0x6b1284
call esi
push 0x6a5228
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x437300
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xcc
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0xd8]
xor esi, esi
push eax
push edi
call fcn.00437850
add esp, 8
test eax, eax
je 0x4373d8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xe0]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x4373d8
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xe4]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x4373d8
push ebx
push eax
push eax
push 3
push eax
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4373cc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4373c5
test edi, edi
jle 0x4373c5
lea eax, [edi + 1]
push ebp
push eax
call sub.MSVCRT.dll_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4373c4
push esi
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4373c4
cmp dword [esp + 0x10], edi
jne 0x4373c4
push ebp
mov byte [edi + ebp], 0
call fcn.00437730
add esp, 4
mov esi, eax
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
pop edi
mov eax, esi
pop esi
add esp, 0xcc
ret
Function at 0x4379a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp - 0x244]
sub esp, 0x244
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4379b3
push ebp
push esi
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4379c8
mov ax, word [0x560bc0]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4379e2
sub ecx, edx
lea esi, [esp + 0xc]
add esi, ecx
mov eax, 0x2a
mov word [esi], ax
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x437b25
mov edi, dword [esp + 0x25c]
lea eax, [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x25c]
sub esi, eax
nop
lea eax, [esp + 0x140]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x437a37
test byte [esp + 0x114], 0x10
je 0x437acc
mov ecx, 0x560bc4
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x437a80
test dl, dl
je 0x437a7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x437a80
add eax, 2
add ecx, 2
test dl, dl
jne 0x437a60
xor eax, eax
jmp 0x437a85
sbb eax, eax
or eax, 1
test eax, eax
je 0x437adf
mov ecx, 0x56081c
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x437ab5
test dl, dl
je 0x437ab1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x437ab5
add eax, 2
add ecx, 2
test dl, dl
jne 0x437a95
xor eax, eax
jmp 0x437aba
sbb eax, eax
or eax, 1
test eax, eax
je 0x437adf
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004379a0
jmp 0x437ad8
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00437300
add esp, 0xc
test eax, eax
jne 0x437b0c
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x437a30
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x244
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
Function at 0x43cdf0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push str.PureBasic_Console_Debugger__press_CtrlC_to_stop_program_
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 4]
push eax
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, 0x1f4
mov word [esp + 6], ax
push dword [esp + 4]
push 0xfffffffffffffff5
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0x560b94
push 0x4000
push 0xfffffffffffffff6
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x6a184c], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x563600
push 0x4000
push 0xfffffffffffffff5
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x6a1850], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x563600
push 0x4000
push 0xfffffffffffffff4
call esi
push eax
call sub.MSVCRT.dll__open_osfhandle
add esp, 8
push eax
call sub.MSVCRT.dll__fdopen
push 0
push 4
push 0
push eax
mov dword [0x6a1854], eax
call sub.MSVCRT.dll_setvbuf
mov eax, dword [0x6a1850]
add esp, 0x18
mov dword [0x6b0dc4], eax
call fcn.00439c60
pop esi
add esp, 0x18
ret
Function at 0x4430b0
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
lea eax, [esp + 0x20]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x443100
push esi
lea eax, [esp + 4]
push eax
push 0x20
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
neg esi
push 0
push dword [esp + 0x28]
sbb esi, esi
not esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and esi, 1
pop esi
je 0x44317e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
call fcn.00441b70
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, dword [0x6a3880]
mov dword [esp + 8], eax
mov eax, dword [0x69a208]
mov dword [esp + 0x10], eax
mov eax, dword [0x69a20c]
mov dword [esp + 0x14], eax
mov eax, dword [0x69a210]
mov dword [esp + 0x18], eax
mov eax, dword [0x69a214]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + ecx]
xor byte [esp + ecx + 1], al
movzx eax, byte [esp + ecx + 1]
xor byte [esp + ecx + 2], al
movzx eax, byte [esp + ecx + 2]
xor byte [esp + ecx + 3], al
movzx eax, byte [esp + ecx + 3]
xor byte [esp + ecx + 4], al
movzx eax, byte [esp + ecx + 4]
xor byte [esp + ecx + 5], al
movzx eax, byte [esp + ecx + 5]
xor byte [esp + ecx + 6], al
add ecx, 6
cmp ecx, 0x1e
jl 0x443141
lea eax, [esp + 0x34]
push eax
call fcn.00547cb2
push 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005483f4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00547c4c
add esp, 0x18
xor edx, edx
lea ecx, [ecx]
movzx ecx, byte [esp + edx + 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x6a3aa8], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x6a3aa9], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x6a3aaa], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x6a3aab], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x6a3aac], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x6a3aad], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x6a3aae], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x6a3aaf], al
add edx, 4
cmp edx, 0x10
jl 0x4431b0
push 0x20
push 0x6a3b2c
lea eax, [esp + 8]
push eax
push 0x6a38c0
call fcn.00549be0
add esp, 0x9c
ret
Function at 0x443990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x4439e9
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x6a3894]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4439e3
call ebp
cmp eax, 0x2745
je 0x4439f3
cmp eax, 0x2746
je 0x4439f3
cmp eax, 0x2749
je 0x4439f3
cmp eax, 0x274a
je 0x4439f3
add esi, ebx
cmp esi, edi
jl 0x4439a4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x443b29
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x6a3894]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x443b23
call ebp
cmp eax, 0x2745
je 0x443b33
cmp eax, 0x2746
je 0x443b33
cmp eax, 0x2749
je 0x443b33
cmp eax, 0x274a
je 0x443b33
add esi, ebx
cmp esi, edi
jl 0x443ae4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

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

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x587020]
push str.ERROR__i__s_n__Message:__s_n_n
push dword [0x6a521c]
call sub.MSVCRT.dll_sprintf
mov edx, dword [0x6a521c]
add esp, 0x14
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x443b70
sub eax, esi
pop esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
jmp fcn.00443ad0
Function at 0x4448f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, edx
mov edx, dword [esp + 0x18]
push ebp
push esi
push edi
movzx esi, word [edx]
mov ebp, ecx
mov edi, dword [esp + 0x28]
mov eax, esi
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x28], eax
movzx eax, word [edx + 0x10]
mov esi, dword [esp + 0x28]
shr eax, 4
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x44498a
lea ebx, [ebp + 4]
mov esi, edx
mov ebp, dword [esp + 0x14]
lea ebx, [ebx]
push edi
push ebx
push ecx
push esi
call fcn.00448660
push edi
lea eax, [ebx + 0x20]
push eax
push dword [esp + 0x30]
lea eax, [esi + 0x10]
push eax
call fcn.00448660
mov ecx, dword [esp + 0x3c]
add esp, 0x20
add ebx, 0x440
add esi, 0x20
dec ebp
jne 0x444950
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov ebx, dword [ebp]
cmp ebx, 0x10
jbe 0x444a60
lea eax, [ebp + 0x44]
add ebx, 0xfffffff1
mov dword [esp + 0x18], eax
movzx eax, word [edx + 0x10]
xor eax, 0x7f0
shr ebx, 1
shr eax, 4
lea ebp, [ebx + 0x180]
add esi, dword [edi + eax*4]
lea ebp, [edx + ebp*2]
mov dword [esp + 0x28], esi
mov edi, edi
dec ebx
lea ebp, [ebp - 2]
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x80]
mov ebx, dword [esp + 0x24]
mov edx, eax
shr eax, 1
and edx, 1
neg edx
shr edx, 4
movzx ecx, word [ebx + eax*2 + 0x200]
and edx, 0x7f
shr ecx, 4
xor ecx, edx
add esi, dword [edi + ecx*4]
cmp eax, 2
jae 0x4449d2
movzx ecx, word [ebp]
mov ebx, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x18]
xor ecx, 0x7f0
shr eax, 4
shr ecx, 4
mov eax, dword [edi + eax*4]
add eax, esi
mov dword [edx + ebx*8], eax
mov eax, dword [edi + ecx*4]
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [edx + ebx*8 + 4], eax
test ebx, ebx
jne 0x4449c0
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
lea ebx, [eax*4 - 0x40]
mov eax, dword [esp + 0x14]
cmp eax, 1
jbe 0x444a60
add esi, 0x484
lea edi, [eax - 1]
push ebx
push edx
push esi
call sub.MSVCRT.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
add esi, 0x440
dec edi
jne 0x444a48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x446d60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
mov esi, 0x100
push edi
mov edi, dword [esp + 0x1c]
or ecx, esi
lea esp, [esp]
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [esp + 0x14]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
add ebx, dword [ebp + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x446d80
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x447d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x400
push edi
mov edi, 0xc
mov dword [esi + 0x2c], 0
lea edx, [esi + 0x1c50]
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x1e18]
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x1c18], 0x4000400
mov dword [esi + 0x1c1c], 0x4000400
mov dword [esi + 0x1c20], 0x4000400
mov dword [esi + 0x1c24], 0x4000400
mov dword [esi + 0x1c28], 0x4000400
mov dword [esi + 0x1c2c], 0x4000400
mov dword [esi + 0x1c30], 0x4000400
mov dword [esi + 0x1c34], 0x4000400
mov edi, edi
mov ecx, 0x10
jmp 0x447e10
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
dec ecx
jne 0x447e10
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
dec edi
jne 0x447e00
mov eax, 0x4000400
lea edi, [esi + 0x1f98]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2198]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x447e7e
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x2298]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2498]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esi + 0x2698]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2898]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbaa0]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
dec ecx
jne 0x447ed0
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
ret