joyce8/EMBER2024-capa huggingface dataset:
Function at 0x691a00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7a5698]
xor edx, edx
cmp eax, edx
jne 0x691a26
xor eax, eax
mov byte [eax + 0x7a5598], al
inc eax
cmp eax, 0x100
jl 0x691a0e
mov dword [0x7a5698], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7a5598
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x691ab7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x691a8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x691a58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x691ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x691b13
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x691afa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6984b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6c6a5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00698dd0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x70504c
call fcn.006b7cbe
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x698543
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006b7cbe
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x69853c
push 0
mov ecx, eax
call fcn.0068f640
mov dword [esi + 0xc], eax
jmp 0x698545
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x698545
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x6ba321
Capabilities:
Get graphical window text

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

Function at 0x6bba0f
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 0x6bba51
call fcn.006c1787
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6bba51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6bba48
xor eax, eax
jmp 0x6bba59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006bba5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x6c1cb7
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_1]
cmp dword [esp + 0x10], 0
jne 0x6c1ce5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6c1d03
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006c1c1d
jmp 0x6c1d03
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6c1d03
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006c1c1d
test edi, edi
mov eax, edi
jne 0x6c1ced
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Allocate thread local storage

Disassembly:
push 0xc
push 0
push 0x431e74
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x431e78], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x431e74], eax
call fcn.00403880
push 0
push esp
call fcn.004044d0
add esp, 4
call fcn.00403860
call fcn.004035c0
call fcn.00402959
call fcn.0040286d
call fcn.00402622
push eax
push 0
call fcn.004010d2
push dword [0x43529c]
push 0
push 1
call fcn.004042b0
add esp, 8
pop dword [0x43529c]
push 1
call fcn.004010d2
push 0
call fcn.004010c2
call fcn.00403e00
call fcn.004038d0
push dword [0x431e74]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess

Function at 0x4010d2
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
push esp
push dword [esp + 0x2c]
call fcn.00403b40
add esp, 8
or eax, eax
je 0x4010e7
jmp 0x4010a3
popfd
popal
ret 4

Function at 0x4026b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x431e84], 0
push ebx
push esi
mov esi, 0x431e8c
jne 0x4026dc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x431ea4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x431e84], 1
push dword [0x431ea4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x402779
push 0x14
push 8
push dword [0x431e74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4027a3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x431e88]
test eax, eax
je 0x40271e
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x431e88], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4027a8
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x431ea4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x431e74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4027a3
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x40286d
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x4027bc
push 0x10
push 0x2c
call fcn.00402f60
push 0
push 0
push 8
mov dword [0x431eb0], eax
call fcn.00402ea8
cmp word [0x431ea8], 0
mov dword [0x4352a4], eax
jne 0x402952
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x4028c5
mov word [0x431ea8], di
jmp 0x4028cd
xor eax, eax
mov word [0x431ea8], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x431ec4], eax
test eax, eax
je 0x402951
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x431ec4]
mov dword [0x431eb4], eax
call esi
push str.getnameinfo
push dword [0x431ec4]
mov dword [0x431eb8], eax
call esi
push str.WSAStringToAddressA
push dword [0x431ec4]
mov dword [0x431ebc], eax
call esi
cmp dword [0x431eb4], 0
mov dword [0x431ec0], eax
pop esi
je 0x402951
cmp dword [0x431eb8], 0
je 0x402951
cmp dword [0x431ebc], 0
je 0x402951
test eax, eax
je 0x402951
mov dword [0x431eac], edi
pop edi
add esp, 0x190
ret

Function at 0x404c90
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x4352b8]
call fcn.00402ea1
cmp dword [0x430018], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x404d93
cmp dword [0x431f28], 0
jne 0x404d93
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x431f34
call esi
cmp dword [0x431f04], 0
je 0x404ce9
push 0x435ab8
call esi
push 0x441b18
call esi
push 0x4352c4
call esi
push ebp
push 0
push 0
push 0
push dword [0x441b14]
mov dword [0x4352bc], ebx
mov dword [0x431f28], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x431f30]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x404d66
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404d30
cmp esi, dword [esp + 0x10]
je 0x404d5f
cmp dword [esi + 0x2c], 0
jne 0x404d5f
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x404d50
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x404d40
cmp dword [esi + 0x2c], 0
jne 0x404d5f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x404d30
pop edi
cmp dword [0x431f04], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x404d8b
push 0x4352c4
call esi
push 0x441b18
call esi
push 0x435ab8
call esi
push 0x431f34
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x408ce0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.00408b50
call fcn.00404c90
lea ecx, [ecx]
push 0
call fcn.00408f40
test eax, eax
jne 0x408cf0
mov ecx, dword [0x431f1c]
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 0x408dc7
cmp dword [0x431f20], eax
je 0x408dc7
mov eax, dword [0x431f18]
shl eax, 2
cmp dword [0x431f50], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x408dbc
push eax
push ecx
push dword [0x435aac]
call sub.MSVCRT.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [0x431f18], esi
jle 0x408d8a
jmp 0x408d60
mov eax, dword [0x435aac]
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 [0x431f18]
jl 0x408d60
mov esi, dword [0x435aac]
call fcn.0041b6d0
push 0x441b18
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x431f6c]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x441b18
call ebx
jmp 0x408dc7
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00409460
mov dword [esp + 0xc], 1
call fcn.0041b6d0
push 0x441b18
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x431f6c]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x441b18
call ebx
mov eax, dword [0x431f6c]
mov eax, dword [eax + 0x14]
call eax
push 0x4352c4
call edi
push 0x441b18
call edi
push 0x435ab8
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x431f64]
call edi
push dword [0x431f64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x431f68]
call edi
push dword [0x431f68]
call esi
push 0x4352c4
call ebx
push 0x441b18
call ebx
push 0x435ab8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x4352c4
call esi
push 0x441b18
call esi
push 0x435ab8
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40c940
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.0040ce90
add esp, 8
test eax, eax
je 0x40ca18
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xe0]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x40ca18
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xe4]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x40ca18
push ebx
push eax
push eax
push 3
push eax
push 1
push accept
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ca0c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca05
test edi, edi
jle 0x40ca05
lea eax, [edi + 1]
push ebp
push eax
call sub.MSVCRT.dll_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ca04
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 0x40ca04
cmp dword [esp + 0x10], edi
jne 0x40ca04
push ebp
mov byte [edi + ebp], 0
call fcn.0040cd70
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 0x40cfe0
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 0x40cff3
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 0x40d008
mov ax, word [0x425854]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d022
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 0x40d165
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 0x40d077
test byte [esp + 0x114], 0x10
je 0x40d10c
mov ecx, 0x425858
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d0c0
test dl, dl
je 0x40d0bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d0c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d0a0
xor eax, eax
jmp 0x40d0c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d11f
mov ecx, 0x4253dc
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40d0f5
test dl, dl
je 0x40d0f1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40d0f5
add eax, 2
add ecx, 2
test dl, dl
jne 0x40d0d5
xor eax, eax
jmp 0x40d0fa
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d11f
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040cfe0
jmp 0x40d118
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0040c940
add esp, 0xc
test eax, eax
jne 0x40d14c
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d070
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 0x412430
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 0x425828
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 [0x43239c], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x428290
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 [0x4323a0], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x428290
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 [0x4323a4], eax
call sub.MSVCRT.dll_setvbuf
mov eax, dword [0x4323a0]
add esp, 0x18
mov dword [0x441654], eax
call fcn.0040f2a0
pop esi
add esp, 0x18
ret
Function at 0x418c90
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 accept
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x418df1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418cef
test ebx, ebx
jle 0x418cef
push edi
lea eax, [esp + 0x10]
push eax
push ebx
push dword [0x435aac]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418cef
cmp dword [esp + 0xc], ebx
jne 0x418cef
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x418df0
mov edx, dword [0x435aac]
mov ecx, edx
cmp dword [ecx], 0x50555245
jne 0x418df0
mov eax, dword [ecx + 8]
add ecx, 0xc
add eax, 0xadbaaccf
mov dword [esp + 0x10], eax
cmp eax, 8
ja 0x418df0
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x418df0
push ebp
jmp 0x418d40
cmp dword [ecx], 0x434e5354
lea ebp, [ecx + 8]
mov edi, dword [ecx + 4]
jne 0x418dda
test edi, edi
jle 0x418dda
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x431e74]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x418dda
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 + 0x418e04]
jmp dword [eax*4 + 0x418df8]
mov eax, dword [0x435aac]
lea ecx, [edi + ebp]
add eax, 0xfffffff8
add eax, ebx
cmp ecx, eax
jb 0x418d40
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x41cde0
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 0x41ce30
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 0x41ceae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
call fcn.0041b6d0
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, dword [0x433a30]
mov dword [esp + 8], eax
mov eax, dword [0x430da8]
mov dword [esp + 0x10], eax
mov eax, dword [0x430dac]
mov dword [esp + 0x14], eax
mov eax, dword [0x430db0]
mov dword [esp + 0x18], eax
mov eax, dword [0x430db4]
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 0x41ce71
lea eax, [esp + 0x34]
push eax
call fcn.00421a08
push 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0042214a
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004219a2
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 + 0x433c58], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x433c59], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x433c5a], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x433c5b], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x433c5c], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x433c5d], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x433c5e], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x433c5f], al
add edx, 4
cmp edx, 0x10
jl 0x41cee0
push 0x20
push 0x433cdc
lea eax, [esp + 8]
push eax
push 0x433a70
call fcn.00423930
add esp, 0x9c
ret
Function at 0x41d6c0
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 0x41d719
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 [0x433a44]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d713
call ebp
cmp eax, 0x2745
je 0x41d723
cmp eax, 0x2746
je 0x41d723
cmp eax, 0x2749
je 0x41d723
cmp eax, 0x274a
je 0x41d723
add esi, ebx
cmp esi, edi
jl 0x41d6d4
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 0x41d800
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 0x41d859
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 [0x433a44]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d853
call ebp
cmp eax, 0x2745
je 0x41d863
cmp eax, 0x2746
je 0x41d863
cmp eax, 0x2749
je 0x41d863
cmp eax, 0x274a
je 0x41d863
add esi, ebx
cmp esi, edi
jl 0x41d814
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 0x41d870
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x430020]
push str.ERROR__i__s_n__Message:__s_n_n
push dword [0x435aac]
call sub.MSVCRT.dll_sprintf
mov edx, dword [0x435aac]
add esp, 0x14
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d8a0
sub eax, esi
pop esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
jmp fcn.0041d800

Function at 0x421a08
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret