joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41158c
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x411642
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x411622
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x4115fd
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x411637
add edi, dword [esp + 0x14]
jmp 0x41163b
add edi, dword [esp + 0x24]
test edx, edx
jne 0x4115db
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x41194d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x411a27
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x4119fd
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x4119c5
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x411a14
add edi, ecx
jmp 0x411a18
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x41199b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x412047
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x4120fc
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x4120dd
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x4120b8
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x4120f2
add edx, dword [esp + 0x14]
jmp 0x4120f6
add edx, dword [esp + 0x24]
test esi, esi
jne 0x412096
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x414fd7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x44ef2c], eax
test eax, eax
je 0x415005
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x44ef28], eax
lea eax, [ebp - 0x114]
mov dword [0x44ef30], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415067
cmp dword [ebp - 0x104], 1
jne 0x41503c
and dword [0x44ef30], 0
jmp 0x41507f
cmp dword [ebp - 0x104], 2
jne 0x415067
cmp dword [ebp - 0x110], 5
jb 0x415033
jne 0x415067
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x44ef30]
mov dword [0x44ef30], eax
jmp 0x41506c
mov eax, dword [0x44ef30]
test eax, eax
je 0x41507f
call fcn.00414cf1
neg eax
sbb eax, eax
and dword [0x44ef30], eax
mov esp, ebp
pop ebp
ret

Function at 0x4160e0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x416112
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41610d
cmp dword [esp + 0xc], esi
je 0x416129
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x41d4e0
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 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d632
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d53f
test ebx, ebx
jle 0x41d53f
push edi
lea eax, [esp + 0x10]
push eax
push ebx
push dword [0x453588]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d53f
cmp dword [esp + 0xc], ebx
jne 0x41d53f
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41d631
mov edx, dword [0x453588]
mov ecx, edx
cmp dword [ecx], 0x50555245
jne 0x41d631
mov eax, dword [ecx + 8]
add ecx, 0xc
add eax, 0xadbaaccf
mov dword [esp + 0x10], eax
cmp eax, 7
ja 0x41d631
lea eax, [edx - 8]
add eax, ebx
cmp ecx, eax
jae 0x41d631
push ebp
jmp 0x41d590
cmp dword [ecx], 0x434e5354
lea ebp, [ecx + 8]
mov edi, dword [ecx + 4]
jne 0x41d61b
test edi, edi
jle 0x41d61b
lea eax, [edi + 0x18]
push eax
push 0
push dword [0x44e798]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41d61b
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
jmp dword [eax*4 + 0x41d638]
mov eax, dword [0x453588]
lea ecx, [edi + ebp]
add eax, 0xfffffff8
add eax, ebx
cmp ecx, eax
jb 0x41d590
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x4200b0
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push dword [0x452d94]
call fcn.004184ad
cmp dword [0x44b019], 0
mov ebx, dword [eax]
mov dword [esp + 4], ebx
je 0x4201b3
cmp dword [0x44f800], 0
jne 0x4201b3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44f80c
call esi
cmp dword [0x44f004], 0
je 0x420109
push 0x453590
call esi
push 0x45f5ec
call esi
push 0x452da0
call esi
push ebp
push 0
push 0
push 0
push dword [0x45f5e8]
mov dword [0x452d98], ebx
mov dword [0x44f800], 1
call dword [sym.imp.USER32.DLL_PostThreadMessageA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [0x44f808]
lea ebx, [eax + 0xc8]
test esi, esi
je 0x420186
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x420150
cmp esi, dword [esp + 0x10]
je 0x42017f
cmp dword [esi + 0x2c], 0
jne 0x42017f
lea esp, [esp]
call ebp
cmp eax, ebx
jae 0x420170
push 1
call edi
cmp dword [esi + 0x2c], 0
je 0x420160
cmp dword [esi + 0x2c], 0
jne 0x42017f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, dword [esi]
test esi, esi
jne 0x420150
pop edi
cmp dword [0x44f004], 0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
je 0x4201ab
push 0x452da0
call esi
push 0x45f5ec
call esi
push 0x453590
call esi
push 0x44f80c
call esi
pop esi
pop ebx
pop ecx
ret
Function at 0x424100
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
call fcn.00423f70
call fcn.004200b0
lea ecx, [ecx]
push 0
call fcn.00424360
test eax, eax
jne 0x424110
mov ecx, dword [0x44f01c]
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 0x4241e7
cmp dword [0x44f020], eax
je 0x4241e7
mov eax, dword [0x44f018]
shl eax, 2
cmp dword [0x44f828], 0
mov dword [esp + 0xc], 0x23
mov dword [esp + 0x10], eax
je 0x4241dc
push eax
push ecx
push dword [0x453588]
call sub.MSVCRT.dll_memcpy
xor esi, esi
add esp, 0xc
cmp dword [0x44f018], esi
jle 0x4241aa
jmp 0x424180
mov eax, dword [0x453588]
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 [0x44f018]
jl 0x424180
mov esi, dword [0x453588]
call fcn.004325a0
push 0x45f5ec
mov dword [esp + 0x20], eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
mov eax, dword [0x44f844]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x45f5ec
call ebx
jmp 0x4241e7
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00424880
mov dword [esp + 0xc], 1
call fcn.004325a0
push 0x45f5ec
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call edi
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [0x44f844]
mov eax, dword [eax + 0xc]
call eax
add esp, 8
push 0x45f5ec
call ebx
mov eax, dword [0x44f844]
mov eax, dword [eax + 0x14]
call eax
push 0x452da0
call edi
push 0x45f5ec
call edi
push 0x453590
call edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x44f83c]
call edi
push dword [0x44f83c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0
push dword [0x44f840]
call edi
push dword [0x44f840]
call esi
push 0x452da0
call ebx
push 0x45f5ec
call ebx
push 0x453590
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x452da0
call esi
push 0x45f5ec
call esi
push 0x453590
call esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x427d60
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.004282b0
add esp, 8
test eax, eax
je 0x427e38
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xe0]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x427e38
lea eax, [esp + 0x70]
push eax
push dword [esp + 0xe4]
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x427e38
push ebx
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427e2c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x427e25
test edi, edi
jle 0x427e25
lea eax, [edi + 1]
push ebp
push eax
call sub.MSVCRT.dll_malloc
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x427e24
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 0x427e24
cmp dword [esp + 0x10], edi
jne 0x427e24
push ebp
mov byte [edi + ebp], 0
call fcn.00428190
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 0x428400
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 0x428413
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 0x428428
mov ax, word [0x441e30]
lea ecx, [esp + 0xc]
mov word [edi], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x428442
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 0x428585
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 0x428497
test byte [esp + 0x114], 0x10
je 0x42852c
mov ecx, 0x441e34
lea eax, [esp + 0x140]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4284e0
test dl, dl
je 0x4284dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4284e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4284c0
xor eax, eax
jmp 0x4284e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x42853f
mov ecx, 0x441a7c
lea eax, [esp + 0x140]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x428515
test dl, dl
je 0x428511
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x428515
add eax, 2
add ecx, 2
test dl, dl
jne 0x4284f5
xor eax, eax
jmp 0x42851a
sbb eax, eax
or eax, 1
test eax, eax
je 0x42853f
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00428400
jmp 0x428538
push edi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00427d60
add esp, 0xc
test eax, eax
jne 0x42856c
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x428490
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 0x42d850
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 0x441e04
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 [0x44fc74], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x444870
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 [0x44fc78], eax
call sub.MSVCRT.dll_setvbuf
add esp, 0x18
push 0x444870
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 [0x44fc7c], eax
call sub.MSVCRT.dll_setvbuf
mov eax, dword [0x44fc78]
add esp, 0x18
mov dword [0x45f12c], eax
call fcn.0042a6c0
pop esi
add esp, 0x18
ret
Function at 0x433ae0
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 0x433b30
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 0x433bae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
call fcn.004325a0
mov dword [esp + 4], eax
xor ecx, ecx
mov eax, dword [0x451ca8]
mov dword [esp + 8], eax
mov eax, dword [0x44cae0]
mov dword [esp + 0x10], eax
mov eax, dword [0x44cae4]
mov dword [esp + 0x14], eax
mov eax, dword [0x44cae8]
mov dword [esp + 0x18], eax
mov eax, dword [0x44caec]
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 0x433b71
lea eax, [esp + 0x34]
push eax
call fcn.00435bf2
push 0x20
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00436334
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00435b8c
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 + 0x451ed0], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x25]
mov byte [edx*2 + 0x451ed1], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x451ed2], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x26]
mov byte [edx*2 + 0x451ed3], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x451ed4], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
movzx ecx, byte [esp + edx + 0x27]
mov byte [edx*2 + 0x451ed5], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x451ed6], al
movzx eax, byte [ecx + str.0123456789abcdef0123456789abcdefNetworkServer]
mov byte [edx*2 + 0x451ed7], al
add edx, 4
cmp edx, 0x10
jl 0x433be0
push 0x20
push 0x451f54
lea eax, [esp + 8]
push eax
push 0x451ce8
call fcn.00437b20
add esp, 0x9c
ret
Function at 0x4343c0
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 0x434419
mov ebp, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x451cbc]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434413
call ebp
cmp eax, 0x2745
je 0x434423
cmp eax, 0x2746
je 0x434423
cmp eax, 0x2749
je 0x434423
cmp eax, 0x274a
je 0x434423
add esi, ebx
cmp esi, edi
jl 0x4343d4
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 0x434500
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 0x434559
mov ebp, dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [esp + 0x1c]
add eax, esi
push eax
push dword [0x451cbc]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434553
call ebp
cmp eax, 0x2745
je 0x434563
cmp eax, 0x2746
je 0x434563
cmp eax, 0x2749
je 0x434563
cmp eax, 0x274a
je 0x434563
add esi, ebx
cmp esi, edi
jl 0x434514
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 0x434570
Capabilities:
Send data
Send data on socket

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

Function at 0x435bf2
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
Function at 0x436ff0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.004371d0
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x437069
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x437025
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x4371c9
add esi, 2
lea edi, [ebp - 1]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x4490f8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4498f8]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4494f8]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x449cf8]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x4490f8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4498f8]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4494f8]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x449cf8]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x4490f8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4498f8]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4494f8]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x449cf8]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x4490f8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4498f8]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x4494f8]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x449cf8]
mov dword [esi + 0xa], ecx
dec edi
jne 0x437078
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret