joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf570
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x4cf582
jmp dword [edx*4 + 0x4cf5d8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004cf0b0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004cee60
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004cf780
push str.TFTP_finished
push 0x5de550
push eax
call fcn.004ae6d0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x641094
push eax
call fcn.004ae630
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4d0f80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x663a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.005bc027
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4d0fe4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x4d0fe4
lea eax, [ebp - 0x108]
push eax
call dword [0x65b00c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret

Function at 0x4d1000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0f80
Function at 0x4d3790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d37b0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x5e6f34
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x5e6f44
push esi
mov dword [ebp - 8], ebx
call fcn.005bc2b3
add esp, 8
test eax, eax
je 0x4d37fc
test ebx, ebx
je 0x4d37ec
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4d3825
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d3825
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4d3903
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d3841
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d38f9
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4d38f9
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d3885
sub edx, ecx
mov ecx, 0x636ca8
sar edx, 1
lea edx, [ebx + edx*2]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4d38a0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d38b5
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4d38d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d38f0
push 8
push 0
push ebx
call eax
jmp 0x4d38f7
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x65b004]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4d40a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x4d40c7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4d40b6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x4d4210
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0058a800
mov eax, dword [0x663a90]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4d42af
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4d42af
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00408b30
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005ac7b3
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00589cd3
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00408b30
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005ac7b3
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.004d40d0
test eax, eax
jle 0x4d4343
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4d4357
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00589cd3
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00589cd3
add esp, 0x108
ret
Function at 0x4f1750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0058a800
mov eax, dword [0x663a90]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x4f1795
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.005bb6e9
add esp, 8
test eax, eax
js 0x4f177e
mov eax, 8
call fcn.0058a800
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.004f1490
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x4f177e
push 0x641040
push edi
call fcn.005b61c6
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x4f1871
nop dword [eax]
mov edi, 0x400
test esi, esi
jle 0x4f17fe
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.005b6c82
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4f1852
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.0058a800
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.004f1490
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x4f17f0
sub esi, edi
test esi, esi
jg 0x4f17f0
push dword [esp + 0x40]
call fcn.005b6da8
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.004d3d80
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00589cd3
mov esp, ebp
pop ebp
ret

Function at 0x4f54b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4f54e3
push 0x2e
push edi
call fcn.005a2b60
add esp, 8
test eax, eax
je 0x4f54e1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4fc210
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0058a800
mov eax, dword [0x663a90]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x4fc276
cmp edi, dword [esi]
je 0x4fc26d
test ebp, ebp
je 0x4fc2f0
test ebx, ebx
js 0x4fc2f0
mov eax, 1
mov dword [esi], edi
jmp 0x4fc27c
mov edi, dword [esi]
test edi, edi
je 0x4fc2f0
test ebp, ebp
je 0x4fc40b
push edi
call fcn.004b0f90
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4fc2b0
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004d4370
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4fc30b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.004b06f0
add esp, 0xc
test eax, eax
je 0x4fc2f0
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.004b08a0
add esp, 0xc
test eax, eax
je 0x4fc2f0
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004b0650
add esp, 0xc
test eax, eax
jne 0x4fc327
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00589cd3
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4fc2f0
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.005a3320
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4fc34a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.005a2d80
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4fc350
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.004b06f0
add esp, 0xc
test eax, eax
je 0x4fc2f0
push edi
call fcn.004b0f90
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004b08a0
add esp, 0x10
test eax, eax
je 0x4fc2f0
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4fc3a0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.004b06f0
add esp, 0xc
test eax, eax
je 0x4fc2f0
push edi
call fcn.004b0f90
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004b08a0
add esp, 0x10
test eax, eax
je 0x4fc2f0
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.004b0970
add esp, 8
test eax, eax
je 0x4fc2f0
mov eax, 1
jmp 0x4fc2f2
test eax, eax
je 0x4fc3e9
jmp 0x4fc34e
Function at 0x51d470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.0058a800
mov eax, dword [0x663a90]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.004b0b10
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.004b0970
add esp, 0xc
test eax, eax
je 0x51d572
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004b0650
add esp, 0xc
test eax, eax
je 0x51d572
lea eax, [esp + 0x20]
push eax
call fcn.004b08b0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x51d590
push edi
call fcn.004e0810
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.004d5a50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x51d572
push esi
call fcn.0051ddd0
add esp, 4
test eax, eax
jle 0x51d572
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.004d5800
add esp, 0x18
test eax, eax
jle 0x51d572
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.0051dcf0
add esp, 0x14
test eax, eax
jle 0x51d572
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.004d59f0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00589cd3
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x51d5a8
cmp dword [edi], edx
je 0x51d5d2
inc eax
add ecx, 4
cmp eax, 4
jl 0x51d595
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.004d53f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00589cd3
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x51d606
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.004d53f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00589cd3
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00589cd3
add esp, 0x6c
ret
Function at 0x52d070
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x52d09d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x52d0e4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x52d0ea
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x52d14b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x52d110
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x52d177
mov eax, dword [esi + 4]
push 1
push 0x60a44f
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x60a450
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x52d150
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x54bab0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.0054bf70
mov edi, eax
add esp, 8
test edi, edi
jns 0x54baeb
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004d53f0
add esp, 0x14
jmp 0x54bbac
call fcn.0054bea0
cmp eax, 1
jne 0x54bbbc
test edi, edi
jle 0x54bb04
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004d4030
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x54bb41
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004d53f0
add esp, 0x14
jmp 0x54bb92
cmp word [ecx + 8], 2
je 0x54bb62
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004d53f0
add esp, 0x14
jmp 0x54bb92
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004d4030
add esp, 0x10
test ebp, ebp
je 0x54bbc3
push esi
push str.host
push 2
call fcn.004d4a30
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x54bf20
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x54bf60
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004d53f0
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x575c80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x575c97
mov edi, ecx
jmp 0x575c9b
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x575cab
mov eax, ebx
jmp 0x575cb5
push eax
push ebx
call fcn.004ddb40
add esp, 8
test eax, eax
jne 0x575cbd
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x575cdb
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x575cc5
cmp esi, dword [edi + 4]
jge 0x575cf0
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x575ce0
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x575d14
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x575d11
dec ecx
test ecx, ecx
jg 0x575d03
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x58d205
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5c694d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c67cc

Function at 0x5cb784
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005cb444
Function at 0x40172b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x486ba4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401771
mov eax, dword [esp]
cmp al, 2
jne 0x40176b
shr eax, 8
cmp al, 2
jne 0x40176b
xor eax, eax
inc eax
jmp 0x401773
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0044bafb
mov esp, ebp
pop ebp
ret

Function at 0x4017ae
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push 0x16c
mov eax, 0x46bfa0
call fcn.00450f2e
mov esi, ecx
mov dword [ebp - 0x30], esi
call fcn.00401926
push 6
xor edi, edi
inc edi
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4017e3
xor eax, eax
jmp 0x40191e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x401810
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4017dc
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edi, edi
cmp dword [ebp - 0x24], edi
jge 0x401857
cmp eax, 0x2733
jne 0x4017dc
push 5
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x178]
push eax
push edi
push edi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x178], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x401890
dec dword [ebp - 0x24]
jne 0x401863
cmp dword [ebp - 0x178], edi
je 0x401807
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x401807
mov eax, dword [ebp + 8]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
mov dword [esi + 4], ebx
mov dword [esi + 0x40], eax
mov dword [esi + 0xc], 1
call fcn.00401685
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.00416bad
pop ecx
push 0xffffffffffffffff
add esi, 0x24
push esi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401df6
push edi
push 1
lea esi, [ebp - 0x70]
call fcn.00401e7e
push edi
push 1
lea ecx, [ebp - 0x54]
call fcn.0040150f
mov eax, dword [ebp - 0x30]
mov cx, word [ebp + 0xc]
mov word [eax + 0x18], cx
mov dword [eax + 0x1c], 5
xor eax, eax
inc eax
call fcn.00450fb1
ret 8