joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10064d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x100ac00]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x100667d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x100ab00]
lea edi, [ecx*4 + 0x100ab00]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x100667d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x100653e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x100654f
push 2
push ebp
push eax
call fcn.010066f0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10066ae
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x10065f9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10065aa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x1006597
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x100657a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100669f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x10065f5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x1006576
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100666e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1006642
cmp eax, 5
jne 0x100662b
mov dword [0x100a830], eax
mov dword [0x100a82c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.01006d90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x1006662
cmp byte [ebp], 0x1a
jne 0x1006662
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x100a82c], 0x1c
jmp 0x1006687
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x100a82c], 9
pop edi
pop esi
pop ebp
mov dword [0x100a830], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10065f5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10066df
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x10065f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x10065f9
Function at 0x100d000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x100d031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100d03a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x100d047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.01002c20

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401670
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [sym.imp.MSVCR120.dll_malloc]
push 0x11
mov dword [ebp - 4], 4
call edi
push 0x288
mov dword [ebp - 8], eax
call edi
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x4016b2
push dword [ebp - 4]
call edi
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x401712
movzx eax, byte [esi + 0x199]
mov edi, dword [ebp - 8]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401900
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, ecx
push 0xfffffffffffffff5
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x4019a7
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x4019a7
movsx eax, word [ebp - 0x1c]
push ebx
movsx ebx, word [ebp - 0x1a]
imul ebx, eax
cmp esi, 0xffffffff
jle 0x401960
mov ax, word [0x45ee1c]
mov ebx, esi
mov word [ebp - 0x20], ax
mov eax, dword [0x45ee18]
inc eax
mov word [ebp - 0x1e], ax
jmp 0x401974
mov dword [0x45ee1c], 0
mov dword [0x45ee18], 0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x4019a6
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x4019a6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044998c
mov esp, ebp
pop ebp
ret
Function at 0x402e60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ad1b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x45e054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0xc
lea ecx, [ebp - 0xc8]
push str.chm_client_old.exe
call fcn.00403880
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xbc], 6
jne 0x402ed4
lea ecx, [ebp - 0xc8]
call fcn.00403980
push str.chm_client_old.exe
call dword [sym.imp.MSVCR120.dll_remove]
mov ecx, dword [ebp - 0xc8]
add esp, 4
mov eax, dword [ecx + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb8]
call fcn.004044f0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
mov eax, dword [sym.imp.MSVCP120.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp + ecx - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x402fc0
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x402f80
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4017c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x402c70
push 0
push 0
call esi
push 0
push 0
push 0
push 0x409da0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40a330
push 0
push 0
call esi
cmp byte [0x45ee0a], 0
jne 0x403042
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403030
call fcn.0040eca0
push 0x64
call esi
cmp byte [0x45ee0a], 0
je 0x403030
push 0
call dword [sym.imp.MSVCR120.dll_exit]
int3
Function at 0x404ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44aeb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45e054]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x45e054]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x404c0a
cmp byte [edi + 0x45], 0
je 0x404c0a
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404b10
xor al, al
jmp 0x404c0c
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea esi, [edi + 0x48]
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
push esi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x404b91
dec eax
je 0x404b95
sub eax, 2
je 0x404bf0
xor bl, bl
jmp 0x404bf2
mov byte [edi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub esi, eax
je 0x404bcd
push dword [edi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x404b8d
cmp byte [edi + 0x45], 0
je 0x404bf0
test esi, esi
lea esi, [edi + 0x48]
jne 0x404b50
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.00404ef0
jmp 0x404b47
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x404c06
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x404c0c
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0044998c
mov esp, ebp
pop ebp
ret
Function at 0x4088c0
Capabilities:
Manipulate console buffer
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45e054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
mov byte [ebp - 0x41], bl
sub esp, 0x1c
mov esi, esp
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x45e170
mov byte [ecx], 0
call fcn.004059a0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 0xa
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x45901c
mov byte [ecx], 0
call fcn.00405d00
mov edx, 0xa
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040cdc0
add esp, 0x34
lea ecx, [ebp - 0x40]
xor edx, edx
call fcn.0040f770
add esp, 0x1c
mov dword [ebp - 4], 1
mov ecx, 0x45e0b0
push 0
push 0x458edd
mov byte [0x45ee26], 0
mov byte [0x45ee0b], 0
mov byte [0x45ee24], 0
mov byte [0x45ee08], 0
call fcn.00405d00
push 0
push 0x458edd
mov ecx, 0x45e1b0
call fcn.00405d00
push 0
push 0x458edd
mov ecx, 0x45e130
call fcn.00405d00
push 0
push 0x458edd
mov ecx, 0x45e110
call fcn.00405d00
xor eax, eax
push 0xfffffffffffffff5
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x408a46
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x408a46
movsx eax, word [ebp - 0x28]
movsx ebx, word [ebp - 0x26]
mov esi, dword [ebp - 0x4c]
imul ebx, eax
lea eax, [ebp - 0x48]
push eax
push esi
mov dword [0x45ee1c], 0
mov dword [0x45ee18], 0
push ebx
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x408a43
lea eax, [ebp - 0x48]
push eax
push esi
push ebx
push dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x408a43
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov bl, byte [ebp - 0x41]
call fcn.004019c0
mov eax, dword [0x45ee00]
test eax, eax
je 0x408a6b
test bl, bl
je 0x408a6b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x45ee00], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x408a7d
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044998c
mov esp, ebp
pop ebp
ret
Function at 0x40f350
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bef9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45e054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x40f3a9
test al, 3
jne 0x40f3a2
cmp byte [ebx + eax - 1], 0x3d
jne 0x40f3a9
mov edx, 1
jmp 0x40f3ab
xor edx, edx
lea edi, [eax + 3]
mov dword [esi + 0x14], 0xf
shr edi, 2
sub edi, edx
mov dword [esi + 0x10], 0
push ecx
shl edi, 2
mov ecx, edi
mov dword [ebp - 0x14], edx
shr ecx, 2
mov dword [ebp - 0x20], edi
mov byte [esi], 0
lea eax, [edx + ecx*2]
add eax, ecx
mov ecx, esi
push eax
call fcn.00404de0
xor edx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
test edi, edi
je 0x40f47f
dec edi
inc ebx
shr edi, 2
inc edi
mov dword [ebp - 0x10], edi
movzx eax, byte [ebx - 1]
mov ecx, dword [eax*4 + 0x459440]
movzx eax, byte [ebx]
shl ecx, 6
or ecx, dword [eax*4 + 0x459440]
movzx eax, byte [ebx + 1]
shl ecx, 6
or ecx, dword [eax*4 + 0x459440]
movzx eax, byte [ebx + 2]
shl ecx, 6
or ecx, dword [eax*4 + 0x459440]
cmp dword [esi + 0x14], 0x10
jb 0x40f43f
mov edi, dword [esi]
jmp 0x40f441
mov edi, esi
mov eax, ecx
sar eax, 0x10
mov byte [edi + edx], al
cmp dword [esi + 0x14], 0x10
jb 0x40f453
mov edi, dword [esi]
jmp 0x40f455
mov edi, esi
mov eax, ecx
sar eax, 8
mov byte [edi + edx + 1], al
cmp dword [esi + 0x14], 0x10
jb 0x40f468
mov eax, dword [esi]
jmp 0x40f46a
mov eax, esi
mov byte [eax + edx + 2], cl
add ebx, 4
add edx, 3
dec dword [ebp - 0x10]
jne 0x40f401
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
je 0x40f511
movzx eax, byte [edi + ebx]
movzx ecx, byte [edi + ebx + 1]
mov ebx, dword [esi + 0x10]
mov edx, dword [eax*4 + 0x459440]
shl edx, 6
or edx, dword [ecx*4 + 0x459440]
shl edx, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40f4b3
mov ecx, dword [esi]
jmp 0x40f4b5
mov ecx, esi
mov eax, edx
sar eax, 0x10
mov byte [ecx + ebx - 1], al
lea eax, [edi + 2]
cmp dword [ebp + 8], eax
jbe 0x40f511
mov eax, dword [ebp - 0x18]
mov al, byte [edi + eax + 2]
cmp al, 0x3d
je 0x40f511
mov edi, dword [esi + 0x14]
movzx eax, al
mov eax, dword [eax*4 + 0x459440]
shl eax, 6
or edx, eax
cmp edi, 0x10
jb 0x40f4ec
mov ecx, dword [esi]
jmp 0x40f4ee
mov ecx, esi
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edi, 0x10
jb 0x40f4fc
mov ecx, dword [esi]
jmp 0x40f4fe
mov ecx, esi
test eax, eax
je 0x40f504
sub eax, ecx
sar edx, 8
push edx
push ecx
push eax
mov ecx, esi
call fcn.00410ba0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40f542
push 0x10
sub esi, ecx
call dword [sym.imp.MSVCR120.dll_malloc]
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov edi, ecx
mov edx, eax
mov dword [ebp - 0x1c], ecx
sub edx, ecx
mov dword [ebp - 4], edx
mov edx, 1
sub edx, ecx
lea ebx, [eax + 2]
mov dword [ebp - 8], edx
mov edx, 2
sub edx, ecx
mov dword [ebp - 0xc], edx
mov edx, 3
sub edx, ecx
mov dword [ebp - 0x10], edx
mov edx, 4
sub edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov edx, 0xfffffffe
sub edx, eax
mov dword [ebp - 0x18], edx
nop
lea eax, [edx + ebx]
xor edx, edx
div esi
lea ebx, [ebx + 5]
movzx eax, byte [edx + ecx]
mov edx, dword [ebp - 4]
xor al, byte [edx + edi]
xor edx, edx
mov byte [edi], al
mov eax, dword [ebp - 8]
add eax, edi
div esi
movzx eax, byte [edx + ecx]
xor edx, edx
xor al, byte [ebx - 6]
mov byte [edi + 1], al
mov eax, dword [ebp - 0xc]
add eax, edi
div esi
movzx eax, byte [edx + ecx]
xor edx, edx
xor al, byte [ebx - 5]
mov byte [edi + 2], al
mov eax, dword [ebp - 0x10]
add eax, edi
div esi
movzx eax, byte [edx + ecx]
xor edx, edx
xor al, byte [ebx - 4]
mov byte [edi + 3], al
mov eax, dword [ebp - 0x14]
add eax, edi
div esi
movzx eax, byte [edx + ecx]
xor al, byte [ebx - 3]
mov edx, dword [ebp - 0x18]
mov byte [edi + 4], al
add edi, 5
lea eax, [edx + ebx]
cmp eax, 0xf
jb 0x40f5a0
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
pop edi
pop esi
pop ebx
mov byte [ecx + 0xf], 0
mov esp, ebp
pop ebp
ret
Function at 0x4110a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x45e054]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4110f5
mov eax, dword [esp]
cmp al, 2
jne 0x4110ef
shr eax, 8
cmp al, 2
jne 0x4110ef
call fcn.00415910
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0044998c
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.0044998c
add esp, 0x194
ret

Function at 0x416290
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4162ac
cmp dword [esi + 0x48], 0
je 0x4162ac
push 2
push 3
push esi
call fcn.0042b220
add esp, 0xc
push dword [esp + 0xc]
call fcn.004243d0
add esp, 4
test esi, esi
je 0x4162cd
cmp dword [esi + 0x48], 0
je 0x4162cd
push 3
push esi
call fcn.0042b260
add esp, 8
pop esi
ret
Function at 0x41f0e0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x14]
lea ebp, [ebx + 0x58c]
push 0x4000
push ebp
call fcn.00421390
mov eax, dword [ebx + 0x120]
add esp, 0x10
test eax, eax
je 0x41f131
cmp byte [ebx + 0x85bc], 0
jne 0x41f131
push ebp
push 0x44f650
push 0x100
push eax
call fcn.004212a0
add esp, 0x10
mov byte [ebx + 0x85bc], 1
cmp byte [ebx + 0x2d8], 0
je 0x41f1a8
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x41f140
sub edi, ecx
cmp edi, 0x3fff
jae 0x41f161
mov byte [ebx + edi + 0x58c], 0xa
inc edi
mov byte [ebx + edi + 0x58c], al
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x41f17f
push dword [ebx + 0x11c]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0x118]
push 1
push 2
push 0x44f638
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebx + 0x118]
push 1
push edi
push ebp
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x41f1b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x45e054]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
mov ebx, dword [esp + 0x810]
test ebx, ebx
je 0x41f27b
cmp byte [ebx + 0x2d8], 0
je 0x41f27b
push edi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00421390
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea ebx, [ebx]
mov al, byte [edi]
inc edi
test al, al
jne 0x41f210
mov eax, dword [ebx + 0x190]
sub edi, ecx
test eax, eax
je 0x41f24e
push dword [ebx + 0x11c]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0044998c
add esp, 0x808
ret
push dword [ebx + 0x118]
push 1
push 2
push 0x44f638
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebx + 0x118]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x808]
pop ebx
xor ecx, esp
call fcn.0044998c
add esp, 0x808
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.0041f870
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x41f546
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x41f51e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.0042c120
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041f0e0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85c0], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41f870
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x41f91e
cmp dword [ecx + edx*4 + 0x17c], 0x41f420
jne 0x41f91e
cmp dword [esi], 0
je 0x41f8b7
test edi, edi
je 0x41f91e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0041ea40
add esp, 0x10
cmp eax, 0xffffffff
je 0x41f91e
test al, 1
je 0x41f91e
cmp dword [esi], 0
jne 0x41f907
push 0x8000
mov dword [esi + 4], 0x8000
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x41f907
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41f91e
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x41f930
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x190]
test eax, eax
je 0x41f959
push dword [edi + 0x11c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push edi
call eax
add esp, 0x14
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41f994
push dword [edi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x44f638
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [edi + 0x118]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x41fbc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x580]
test esi, esi
je 0x41fc16
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x41fbdf
cmp dword [edi + 0x40], eax
je 0x41fc16
mov dword [esp + 8], esi
mov byte [esp + 0xc], 0
test eax, eax
jne 0x41fbef
mov eax, dword [edi + 0x40]
push 0x420a40
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.00428f20
add esp, 0xc
cmp byte [esp + 0xc], 0
jne 0x41fc1f
mov dword [edi + 0x580], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41fc29
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x41fc4e
push esi
call fcn.00416db0
add esp, 4
test eax, eax
jne 0x41fc67
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
cmp edi, 0xffffffff
je 0x41fc67
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x41fc16
mov eax, edi
pop edi
pop esi
add esp, 8
ret