joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016d0
Capabilities:
Get system information on windows
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
cmp dword [0xc27b30], 0x400
push esi
push edi
jne 0x40172b
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.voyapamujopemopubefetexo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
lea eax, [ebp - 0x24]
call fcn.004017f0
lea esi, [ebp - 0x24]
call fcn.00401810
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2a3
jle 0x401749
cmp ebx, 0x78abdb45
jne 0x401752
inc esi
cmp esi, 0x1c5d
jl 0x401737
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40177d
inc esi
cmp esi, 0x4f6a4
jl 0x401760
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40179c
cmp ebx, 0x785074d5
jne 0x4017a5
inc esi
cmp esi, 0x11915
jl 0x401788
mov edx, dword [0x809694]
mov dword [0xc27b30], edx
call fcn.00401450
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0xc27b30], 0x51f
jne 0x4017d4
lea eax, [ebp - 0x2c]
push eax
call esi
sub edi, 1
jne 0x4017c2
mov eax, dword [0xc26a80]
mov dword [0xc270c4], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4033d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8081f8]
jne 0x4033da
repz ret
jmp fcn.0040770e
Function at 0x40733b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040413a
and dword [ebp - 4], 0
cmp dword [0x80a0ac], 0
mov ebx, eax
jne 0x4073ec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40749d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40749d
push eax
call fcn.004040c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80a0ac], eax
call esi
push eax
call fcn.004040c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80a0b0], eax
call esi
push eax
call fcn.004040c8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80a0b4], eax
call esi
push eax
call fcn.004040c8
pop ecx
mov dword [0x80a0bc], eax
test eax, eax
je 0x4073ec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004040c8
pop ecx
mov dword [0x80a0b8], eax
mov eax, dword [0x80a0b8]
cmp eax, ebx
je 0x407444
cmp dword [0x80a0bc], ebx
je 0x407444
push eax
call fcn.00404143
push dword [0x80a0bc]
mov esi, eax
call fcn.00404143
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407444
test edi, edi
je 0x407444
call esi
test eax, eax
je 0x40743b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40743b
test byte [ebp - 0xc], 1
jne 0x407444
or dword [ebp + 0x10], 0x200000
jmp 0x40747d
mov eax, dword [0x80a0b0]
cmp eax, ebx
je 0x40747d
push eax
call fcn.00404143
pop ecx
test eax, eax
je 0x40747d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40747d
mov eax, dword [0x80a0b4]
cmp eax, ebx
je 0x40747d
push eax
call fcn.00404143
pop ecx
test eax, eax
je 0x40747d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80a0ac]
call fcn.00404143
pop ecx
test eax, eax
je 0x40749d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40749f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb42058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb421a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb4207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4206a
add dl, dl
jne 0xb42089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb420dc
xor eax, eax
add dl, dl
jne 0xb42096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb4217d
add dl, dl
jne 0xb420a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb420b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb420bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb420c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb420d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb42075
mov eax, 1
add dl, dl
jne 0xb420ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb420f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb420e1
sub eax, ebx
mov ebx, 1
jne 0xb42128
mov ecx, 1
add dl, dl
jne 0xb4210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb42119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb42105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb42075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb4213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb4214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb42136
cmp eax, 0x7d00
jae 0xb4216d
cmp eax, 0x500
jb 0xb42168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb42075
cmp eax, 0x7f
ja 0xb42170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb42075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb4219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb42075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x715712b0
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5f7f1839
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4036d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4036e5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403726
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403722
nop word [eax + eax]
cmp esi, edx
jae 0x403726
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403710
cmp esi, edx
jb 0x40372b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405440
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
xor eax, eax
nop dword [eax + eax]
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x405450
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov ebx, 0xff
movzx eax, dl
xor esi, esi
mov dword [ebp - 8], ebx
push edi
xor cl, cl
mov dword [ebp - 0x10], eax
nop dword [eax]
nop word [eax + eax]
mov edi, 1
mov dword [ebp - 0xc], 0
cmp ebx, edi
jbe 0x4054a3
lea edi, [edi*2 + 1]
cmp edi, ebx
jb 0x405490
jmp 0x4054a3
mov edx, dword [ebp + 0xc]
movzx eax, cl
mov ecx, dword [ebp - 4]
mov cl, byte [eax + ecx]
mov eax, dword [ebp + 8]
add cl, byte [esi + eax]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x4054bc
xor esi, esi
add cl, dl
mov eax, dword [ebp - 0xc]
movzx edx, cl
inc eax
and edx, edi
mov dword [ebp - 0xc], eax
cmp eax, 0xb
jbe 0x4054d3
mov eax, edx
xor edx, edx
div ebx
cmp edx, ebx
ja 0x4054a0
mov edi, dword [ebp - 4]
movzx edx, dl
add edx, edi
mov dword [ebp - 0xc], edx
mov bl, byte [ebx + edi]
mov edi, dword [ebp - 8]
mov al, byte [edx]
mov edx, dword [ebp - 4]
mov byte [edi + edx], al
mov edx, dword [ebp - 0xc]
mov byte [edx], bl
mov ebx, edi
mov edx, dword [ebp + 0xc]
sub ebx, 1
mov dword [ebp - 8], ebx
jne 0x405480
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
movzx eax, byte [edx + 1]
mov byte [edx + 0x100], al
movzx eax, byte [edx + 3]
mov byte [edx + 0x101], al
movzx eax, byte [edx + 5]
mov byte [edx + 0x102], al
movzx eax, byte [edx + 7]
mov byte [edx + 0x103], al
movzx eax, cl
movzx eax, byte [eax + edx]
mov byte [edx + 0x104], al
mov eax, edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40abe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045d70f

Function at 0x40db70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40db85
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db90
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40e140
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648f88
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x6cd05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x40e17a
xor bl, bl
jmp 0x40e1f3
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e19c
shr eax, 4
and al, 1
je 0x40e19c
mov bl, 1
jmp 0x40e1f3
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call fcn.0058f548
add esp, 8
cmp eax, 0xffffffff
je 0x40e1bb
xor bl, bl
jmp 0x40e1f3
sub esp, 0x18
lea ecx, [ebp + 8]
mov eax, esp
push ecx
push eax
call fcn.0040e040
mov ecx, esi
call fcn.0040e140
test al, al
jne 0x40e1d9
xor bl, bl
jmp 0x40e1f3
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x40e205
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00404ab0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40eac0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40eae8
cmp dword [sym.imp.KERNEL32.dll_GetLastError], 0
je 0x40eae8
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
xor eax, eax
add eax, ecx
adc edx, 0
mov esp, ebp
pop ebp
ret

Function at 0x40f680
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6cd05c]
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 0x40f6d5
mov eax, dword [esp]
cmp al, 2
jne 0x40f6cf
shr eax, 8
cmp al, 2
jne 0x40f6cf
call fcn.0041a160
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00583e60
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.00583e60
add esp, 0x194
ret
Function at 0x417a30
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x417a4c
cmp dword [esi + 0x6c], 0
je 0x417a4c
push 2
push 3
push esi
call fcn.00424010
add esp, 0xc
push dword [esp + 0xc]
call fcn.00426eb0
add esp, 4
test esi, esi
je 0x417a6d
cmp dword [esi + 0x6c], 0
je 0x417a6d
push 3
push esi
call fcn.00424050
add esp, 8
pop esi
ret

Function at 0x418360
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
je fcn.00418310
mov al, 1
ret
Function at 0x4212e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x6cd05c]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x500], 0
jne 0x421312
cmp dword [edi + 0x160], 0
je 0x4213c9
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.0042dbd0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x421340
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x421375
cmp byte [edi + 0x48c0], al
jne 0x421375
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x421360
mov byte [edi + 0x48c0], 1
cmp byte [edi + 0x500], 0
je 0x4213c8
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x421420
cmp dword [edi + 0x1d0], 0
mov byte [esp + esi + 8], 0
je 0x4213df
push 1
push edi
call fcn.00412c30
push dword [edi + 0x15c]
lea eax, [esp + 0x14]
push esi
push eax
mov eax, dword [edi + 0x1d0]
push 0
push edi
call eax
push 0
push edi
call fcn.00412c30
add esp, 0x24
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00583e60
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x65b63c
call fcn.0058fd79
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0058fd79
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00583e60
add esp, 0x108
ret
call fcn.0058421f
int3

Function at 0x421430
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x6cd05c]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x42150e
cmp byte [edi + 0x500], 0
je 0x42150e
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.0042dbd0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x421490
sub esi, ecx
cmp dword [edi + 0x1d0], 0
je 0x4214e3
push 1
push edi
call fcn.00412c30
push dword [edi + 0x15c]
lea eax, [esp + 0x14]
push esi
push eax
mov eax, dword [edi + 0x1d0]
push 0
push edi
call eax
push 0
push edi
call fcn.00412c30
add esp, 0x24
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00583e60
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x65b63c
call fcn.0058fd79
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.0058fd79
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00583e60
add esp, 0x808
ret
Function at 0x421770
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 + 0x1a8]
call fcn.00421d80
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 0x4217f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4217ce
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.00430580
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004212e0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48c4], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x421e38
cmp dword [ebx + ecx*4 + 0x1bc], 0x4216d0
jne 0x421e38
cmp dword [esi], 0
je 0x421dcc
test edi, edi
je 0x421e38
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00420db0
add esp, 0x14
cmp eax, 0xffffffff
je 0x421e38
test al, 1
je 0x421e38
cmp dword [esi], 0
jne 0x421e21
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
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 0x421e21
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x421e38
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x421e40
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x1d0], 0
je 0x421e84
push esi
push 1
push edi
call fcn.00412c30
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00412c30
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x421ebd
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x65b63c
push 2
push eax
call fcn.0058fd79
push dword [edi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0058fd79
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x421fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x421fbd
push eax
call fcn.0041ab20
add esp, 4
test eax, eax
jne 0x421fdf
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x421fba
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x421fdf
xor al, al
ret
mov al, 1
ret

Function at 0x4229a0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4229e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00430580
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00421430
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00421430
add esp, 8
pop edi
pop esi
ret