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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x445735
mov ecx, dword [esi]
xor eax, eax
push ebx
push ebp
push edi
mov byte [ecx + 0x16], al
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx + 0x17], al
mov ecx, dword [esi]
mov byte [ecx + 0x18], al
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x4456eb
mov ebp, dword [esi]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a41b8]
cmp edi, ebx
jl 0x4456d1
mov ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x445711
mov ebp, dword [esi + 8]
movzx edx, byte [edi + ebp]
mov ecx, eax
shr ecx, 0x18
inc edi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x4a41b8]
cmp edi, ebx
jl 0x4456f7
mov ecx, dword [esi]
mov edx, eax
shr edx, 8
pop edi
pop ebp
mov byte [ecx + 0x16], al
mov ecx, dword [esi]
pop ebx
mov byte [ecx + 0x17], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
shr eax, 0x18
mov byte [ecx + 0x18], dl
mov ecx, dword [esi]
mov byte [ecx + 0x19], al
pop esi
ret

Function at 0x44e140
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44e160
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44e160
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44e160
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45eac0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x45eaef
push esi
call fcn.0045eca0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x45eae8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x45eb72
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x45eb5d
mov eax, dword [esi + 8]
test eax, eax
je 0x45eb15
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x45eb58
cmp eax, 2
je 0x45eb5d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45eb06
cmp eax, 3
je 0x45eb3d
cmp eax, 1
jne 0x45eb06
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x45eb06
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x45eb06
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0045eba0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x45eb94
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0045eba0
add esp, 4
pop edi
pop esi
ret
Function at 0x45eba0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x45ebcc
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x45ec52
lea ebx, [esi + 0x78]
jmp 0x45ebe0
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x45ec26
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45ec05
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x45ec68
cmp eax, dword [esi + 0x60]
jb 0x45ebe7
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x45ebe0
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x45fc70
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0046b490
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0046b470
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45fcb7
push edi
call fcn.0046b4a0
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0045f900
mov dword [esi + 4], fcn.0045f790
mov dword [esi + 8], fcn.0045f860
mov dword [esi + 0xc], fcn.0045f6e0
mov dword [esi + 0x10], 0x45ffd0
mov dword [esi + 0x14], 0x45ff60
mov dword [esi + 0x18], 0x45fdc0
mov dword [esi + 0x1c], 0x45f590
mov dword [esi + 0x20], 0x45f440
mov dword [esi + 0x24], 0x45fb70
mov dword [esi + 0x28], 0x460040
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x45fd9a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x45fd9a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x45fd89
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x45fd91
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x463020
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1b8]
mov dword [esp + 0x1c], ebx
jne 0x463045
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x46304b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x463160
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x46309d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x4630f6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x4630e0
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x4630c0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x463141
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x463120
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x463120
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x463080
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4776b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x4776e9
mov eax, dword [esp]
cmp al, 2
jne 0x4776e3
shr eax, 8
cmp al, 2
jne 0x4776e3
call fcn.00485180
add esp, 0x190
ret
call dword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x4806f0
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 + 0x4c4]
push 0x4000
push ebp
call fcn.0048ffd0
mov eax, dword [ebx + 0xfc]
add esp, 0x10
test eax, eax
je 0x480741
cmp byte [ebx + 0x84ec], 0
jne 0x480741
push ebp
push 0x4a9f88
push 0x100
push eax
call fcn.0048fee0
add esp, 0x10
mov byte [ebx + 0x84ec], 1
cmp byte [ebx + 0x284], 0
je 0x4807b8
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x480750
sub edi, ecx
cmp edi, 0x3fff
jae 0x480771
mov byte [edi + ebx + 0x4c4], 0xa
inc edi
mov byte [edi + ebx + 0x4c4], al
mov eax, dword [ebx + 0x164]
test eax, eax
je 0x48078f
push dword [ebx + 0xf8]
push edi
push ebp
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebp
pop ebx
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4a9f70
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
push 1
push edi
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebp
pop ebx
ret

Function at 0x4807c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
test ebx, ebx
je 0x48086d
cmp byte [ebx + 0x284], 0
je 0x48086d
push edi
lea eax, [esp + 0x818]
push eax
push dword [esp + 0x818]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.0048ffd0
lea edi, [esp + 0x18]
add esp, 0x10
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x480810
mov eax, dword [ebx + 0x164]
sub edi, ecx
test eax, eax
je 0x480840
push dword [ebx + 0xf8]
lea ecx, [esp + 0xc]
push edi
push ecx
push 0
push ebx
call eax
add esp, 0x14
pop edi
pop ebx
add esp, 0x804
ret
push dword [ebx + 0xf4]
push 1
push 2
push 0x4a9f70
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [ebx + 0xf4]
lea eax, [esp + 0x1c]
push 1
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
pop edi
pop ebx
add esp, 0x804
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WSOCK32.DLL_recv]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4809d1
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebp + eax*4 + 0x144]
call dword [sym.imp.WSOCK32.DLL_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x480adb
push esi
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x480ab1
pop esi
pop edi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push esi
push ebp
call fcn.00495050
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.004806f0
mov eax, dword [ebp]
add esp, 0x14
mov dword [eax + 0x84f0], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x480be0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x164]
test eax, eax
je 0x480c09
push dword [edi + 0xf8]
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 0x480c44
push dword [edi + 0xf4]
lea eax, [eax + eax*2]
push 1
add eax, 0x4a9f70
push 2
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push dword [edi + 0xf4]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x483820
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4fe3c8]
mov dword [esp], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x4838a7
push 0x9c
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x9c
mov dword [esp + 0x10], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x48389b
mov dword [0x4fe3c8], 2
add esp, 0xa8
ret
mov dword [0x4fe3c8], 1
jmp 0x4838ac
cmp eax, 2
je 0x4838f8
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x4838da
mov eax, dword [esp + 4]
cmp eax, dword [esp]
jg 0x4838f8
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0xbc]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
add esp, 0xa8
ret
Function at 0x483aa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x483c63
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x483c17
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x483b1b
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495050
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.004806f0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x483b76
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495050
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.004806f0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00484150
add esp, 0xc
test al, al
jne 0x483bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495050
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004806f0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.00484150
add esp, 0xc
test al, al
jne 0x483c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00495050
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.004806f0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4844c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x48450a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004807c0
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.0048f1c0
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.0048f1c0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x484581
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004807c0
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x484590
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x4845db
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.00495050
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004807c0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004807c0
add esp, 8
pop edi
pop esi
ret
Function at 0x48b3c0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [esi]
test bl, bl
je 0x48b471
mov cl, byte [edi]
test cl, cl
je 0x48b471
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48b3ea
jmp dword [eax*4 + 0x48b498]
mov bl, 0x41
jmp case.default.0x48b3ea
mov bl, 0x42
jmp case.default.0x48b3ea
mov bl, 0x43
jmp case.default.0x48b3ea
mov bl, 0x44
jmp case.default.0x48b3ea
mov bl, 0x45
jmp case.default.0x48b3ea
mov bl, 0x46
jmp case.default.0x48b3ea
mov bl, 0x47
jmp case.default.0x48b3ea
mov bl, 0x48
jmp case.default.0x48b3ea
mov bl, 0x49
jmp case.default.0x48b3ea
mov bl, 0x4a
jmp case.default.0x48b3ea
mov bl, 0x4b
jmp case.default.0x48b3ea
mov bl, 0x4c
jmp case.default.0x48b3ea
mov bl, 0x4d
jmp case.default.0x48b3ea
mov bl, 0x4e
jmp case.default.0x48b3ea
mov bl, 0x4f
jmp case.default.0x48b3ea
mov bl, 0x50
jmp case.default.0x48b3ea
mov bl, 0x51
jmp case.default.0x48b3ea
mov bl, 0x52
jmp case.default.0x48b3ea
mov bl, 0x53
jmp case.default.0x48b3ea
mov bl, 0x54
jmp case.default.0x48b3ea
mov bl, 0x55
jmp case.default.0x48b3ea
mov bl, 0x56
jmp case.default.0x48b3ea
mov bl, 0x57
jmp case.default.0x48b3ea
mov bl, 0x58
jmp case.default.0x48b3ea
mov bl, 0x59
jmp case.default.0x48b3ea
mov bl, 0x5a
push ecx
call fcn.0048b670
add esp, 4
cmp bl, al
jne 0x48b471
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x48b3d5
movzx eax, byte [esi]
push eax
call fcn.0048b670
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.0048b670
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x48b500
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
test bl, bl
je 0x48b5c6
lea ebx, [ebx]
mov cl, byte [ebp]
test cl, cl
je 0x48b5c6
test esi, esi
je 0x48b5ca
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48b53e
jmp dword [eax*4 + 0x48b5fc]
mov bl, 0x41
jmp case.default.0x48b53e
mov bl, 0x42
jmp case.default.0x48b53e
mov bl, 0x43
jmp case.default.0x48b53e
mov bl, 0x44
jmp case.default.0x48b53e
mov bl, 0x45
jmp case.default.0x48b53e
mov bl, 0x46
jmp case.default.0x48b53e
mov bl, 0x47
jmp case.default.0x48b53e
mov bl, 0x48
jmp case.default.0x48b53e
mov bl, 0x49
jmp case.default.0x48b53e
mov bl, 0x4a
jmp case.default.0x48b53e
mov bl, 0x4b
jmp case.default.0x48b53e
mov bl, 0x4c
jmp case.default.0x48b53e
mov bl, 0x4d
jmp case.default.0x48b53e
mov bl, 0x4e
jmp case.default.0x48b53e
mov bl, 0x4f
jmp case.default.0x48b53e
mov bl, 0x50
jmp case.default.0x48b53e
mov bl, 0x51
jmp case.default.0x48b53e
mov bl, 0x52
jmp case.default.0x48b53e
mov bl, 0x53
jmp case.default.0x48b53e
mov bl, 0x54
jmp case.default.0x48b53e
mov bl, 0x55
jmp case.default.0x48b53e
mov bl, 0x56
jmp case.default.0x48b53e
mov bl, 0x57
jmp case.default.0x48b53e
mov bl, 0x58
jmp case.default.0x48b53e
mov bl, 0x59
jmp case.default.0x48b53e
mov bl, 0x5a
push ecx
call fcn.0048b670
add esp, 4
cmp bl, al
jne 0x48b5c6
mov bl, byte [edi + 1]
inc edi
dec esi
inc ebp
test bl, bl
jne 0x48b520
test esi, esi
jne 0x48b5d4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
movzx eax, byte [edi]
push eax
call fcn.0048b670
movzx ecx, byte [ebp]
mov bl, al
push ecx
call fcn.0048b670
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x48b670
Capabilities:
Parse pe header

Disassembly:
mov cl, byte [esp + 4]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48b67f
jmp dword [eax*4 + 0x48b6d8]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret
Function at 0x48b740
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0x10]
cmp esi, 1
jb 0x48b7ec
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x48b76d
jmp dword [eax*4 + 0x48b7f0]
mov cl, 0x41
jmp case.default.0x48b76d
mov cl, 0x42
jmp case.default.0x48b76d
mov cl, 0x43
jmp case.default.0x48b76d
mov cl, 0x44
jmp case.default.0x48b76d
mov cl, 0x45
jmp case.default.0x48b76d
mov cl, 0x46
jmp case.default.0x48b76d
mov cl, 0x47
jmp case.default.0x48b76d
mov cl, 0x48
jmp case.default.0x48b76d
mov cl, 0x49
jmp case.default.0x48b76d
mov cl, 0x4a
jmp case.default.0x48b76d
mov cl, 0x4b
jmp case.default.0x48b76d
mov cl, 0x4c
jmp case.default.0x48b76d
mov cl, 0x4d
jmp case.default.0x48b76d
mov cl, 0x4e
jmp case.default.0x48b76d
mov cl, 0x4f
jmp case.default.0x48b76d
mov cl, 0x50
jmp case.default.0x48b76d
mov cl, 0x51
jmp case.default.0x48b76d
mov cl, 0x52
jmp case.default.0x48b76d
mov cl, 0x53
jmp case.default.0x48b76d
mov cl, 0x54
jmp case.default.0x48b76d
mov cl, 0x55
jmp case.default.0x48b76d
mov cl, 0x56
jmp case.default.0x48b76d
mov cl, 0x57
jmp case.default.0x48b76d
mov cl, 0x58
jmp case.default.0x48b76d
mov cl, 0x59
jmp case.default.0x48b76d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x48b7eb
dec esi
jne 0x48b760
pop edi
pop esi
ret
Function at 0x491250
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x491299
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x491299
lea eax, [esp]
push eax
call dword [0x4fa33c]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret