joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4bf3aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bf3b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3a0
mov eax, 1
add ebx, ebx
jne 0x4bf3c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bf3d4
jne 0x4bf3f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3f3
dec eax
add ebx, ebx
jne 0x4bf3e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4bf3b8
add ebx, ebx
jne 0x4bf3ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bf445
xor ecx, ecx
sub eax, 3
jb 0x4bf40b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bf47a
sar eax, 1
mov ebp, eax
jmp 0x4bf416
add ebx, ebx
jne 0x4bf416
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3e4
inc ecx
add ebx, ebx
jne 0x4bf424
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bf3e4
add ebx, ebx
jne 0x4bf431
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bf426
jne 0x4bf442
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bf426
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bf464
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bf456
jmp 0x4bf3a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bf464
add edi, ecx
jmp 0x4bf3a6
pop esi
mov edi, esi
mov ecx, 0x45dd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bf482
cmp byte [edi], 0xd
jne 0x4bf482
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 0x4bf487
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4bf4ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc2758]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2888]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bf4b4
mov ecx, edi
jns 0x4bf4e3
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 + 0xc2890]
or eax, eax
je 0x4bf4f9
mov dword [ebx], eax
add ebx, 4
jmp 0x4bf4d1
call dword [esi + 0xc288c]
mov ebp, dword [esi + 0xc2894]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4bf533
sub esp, 0xffffff80
jmp 0x465396
Function at 0x4282cd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42e180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80c]
push 0
push 0x404
push eax
call fcn.00428281
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x40af1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.msvcrt.dll__putws]
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429960
leave
ret

Function at 0x429850
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x42dae0
call fcn.0042a138
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x42f050
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x429625
cmp eax, esi
jne 0x429618
xor esi, esi
inc esi
mov edi, esi
jmp 0x429628
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4295fc
xor esi, esi
inc esi
cmp dword [0x42f054], esi
jne 0x42963a
push 0x1f
call fcn.004c5000
pop ecx
jmp 0x429674
cmp dword [0x42f054], ebx
jne 0x42966e
mov dword [0x42f054], esi
push 0x401020
push 0x401014
call fcn.004297ae
pop ecx
pop ecx
test eax, eax
je 0x429674
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42979e
mov dword [0x42ecf0], esi
cmp dword [0x42f054], esi
jne 0x429697
push 0x401010
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42f054], 2
test edi, edi
jne 0x4296a4
xor eax, eax
mov ecx, 0x42f050
xchg dword [ecx], eax
cmp dword [0x42f060], 0
je 0x4296d0
push 0x42f060
call fcn.00429f90
pop ecx
test eax, eax
je 0x4296d0
push ebx
push 2
push ebx
mov esi, dword [0x42f060]
mov ecx, esi
call dword [0x43058c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x42965d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x42973b
test ax, ax
je 0x42970a
test edx, edx
jne 0x42973b
test ax, ax
je 0x42970a
cmp ax, si
ja 0x42970a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x4296f5
test byte [ebp - 0x3c], 1
je 0x429716
movzx eax, word [ebp - 0x38]
jmp 0x429719
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x42ecec], eax
cmp dword [0x42ed04], 0
jne 0x429783
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x42974c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x4296e4
cmp dword [0x42ecf0], 0
jne 0x429797
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42ecec]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0042a085
jmp 0x4295d3
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x402b20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402b70
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x402b6a
shr eax, 8
cmp al, 2
jne 0x402b6a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4062a0
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0054cf60
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x406300
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.0054cf60
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret

Function at 0x406740
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x74
call fcn.0054ddb0
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
test esi, esi
jne 0x40676e
mov esi, 0x5e7c8c
push 0x70
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0054cf60
mov ecx, dword [esp + 0x90]
push ecx
lea edx, [esp + 0x18]
push edi
push edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x8c], 0x20
call fcn.00406360
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00406460
lea ecx, [esp + 0x28]
push 0x70
push ecx
call fcn.004cd710
mov ecx, dword [esp + 0xa0]
add esp, 0x28
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054caf9
add esp, 0x74
ret

Function at 0x40a0c0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00409a80
mov edi, eax
add esp, 4
test edi, edi
jne 0x40a158
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004082a0
push 0x586774
push esi
push 0x586770
push ebx
push str.fopen_
push 5
call fcn.00408560
add esp, 0x2c
call fcn.00551669
cmp dword [eax], 2
jne 0x40a13a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004082a0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004082a0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5dd338
call fcn.004050d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a17a
push edi
call fcn.0054e127
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00404a20
push edi
push 1
push 0x6a
push esi
call fcn.00404e10
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40b180
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.0054ddb0
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x40b1e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x40b1e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0054f1d0
add eax, 0x40
push eax
call fcn.0055245a
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054caf9
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00552393
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40b278
call fcn.0040b040
test eax, eax
jle 0x40b278
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40b262
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.0054caf9
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0054caf9
add esp, 0x108
ret

Function at 0x40b2e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x40b302
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x40b2f6
pop esi
movzx eax, cl
pop edi
ret
Function at 0x40f050
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429e10
Function at 0x41a2c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x41a2f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x41a430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1c0]
push edi
xor edi, edi
test ecx, ecx
je 0x41a456
mov edx, dword [esi + 0x14c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x41a48d
cmp eax, 2
jg 0x41a48d
mov ecx, dword [esi + 0x148]
push ecx
push 1
lea edx, [eax + eax*2 + 0x587b20]
push 2
push edx
call fcn.0054ee5e
mov eax, dword [esi + 0x148]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.0054ee5e
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x348]
mov ecx, dword [ebx + eax*4 + 0x198]
push esi
lea esi, [eax + 0x1c]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
mov dword [ebp - 4], ecx
je 0x41aa9e
cmp dword [ebx + eax*4 + 0x1b0], 0x41a790
jne 0x41aa9e
cmp dword [esi], 0
je 0x41aa34
test edi, edi
je 0x41aa9e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.0040d790
add esp, 0x14
cmp eax, 0xffffffff
je 0x41aa9e
test al, 1
je 0x41aa9e
cmp dword [esi], 0
jne 0x41aa7b
mov eax, dword [ebx]
mov eax, dword [eax + 0x364]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5dd05c]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x41aa9b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41aa9e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41aab0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x198]
push edi
call fcn.0041a9f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x41ab31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x41ab06
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push ebx
call fcn.004293f0
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.0041a600
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x474c], ecx
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ca00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x548], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41ca53
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0041a580
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x54c]
push edx
mov dword [ebp - 0x10], 1
call fcn.0042e6c0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x550]
push eax
call fcn.0042e6c0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x41cac5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0041a580
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x41d160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5e56f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x41d349
cmp dword [esi + 0x2a8], 0
push edi
jne 0x41d33f
cmp dword [esi + 0x318], 0
jne 0x41d33f
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x41d204
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004293f0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.0054cf60
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41d26d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004293f0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10a]
lea ebx, [esi + 0x138]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.0041d120
test eax, eax
jne 0x41d2ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.004293f0
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x16c]
lea edi, [eax + 0x13c]
lea esi, [ebp - 0x84]
call fcn.0041d120
test eax, eax
jne 0x41d339
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.004293f0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0041a600
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.0041d0a0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x41d360
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41d3a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004293f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041a580
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041a580
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x41d3c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5e94f4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x41d411
push 3
push 2
push eax
push 6
call fcn.00448260
add esp, 0x10
test eax, eax
je 0x41d405
mov dword [0x5e94f4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5e94f4], 1
jmp 0x41d416
cmp eax, 2
je 0x41d457
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x41d43f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x41d456
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1e0], 0
je 0x41d520
push eax
call fcn.0040f050
add esp, 4
test eax, eax
jne 0x41d540
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x198]
cmp eax, 0xffffffff
je 0x41d51c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41d540
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x41e460
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0054ddb0
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x160]
push edi
mov dword [esp + 0x18], eax
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x16c], ecx
mov dword [esi + 0x168], ecx
cmp ebx, 0xc
jne 0x41e4d5
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
lea edi, [ebx - 0xb]
jmp 0x41e5a4
mov eax, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
cmp ebx, 0x10
jb 0x41e552
mov ecx, dword [esp + 0x1c]
shr eax, 4
mov edi, ecx
mov dword [esp + 0x20], eax
shl eax, 4
sub edi, esi
add ecx, eax
mov dword [esp + 0x1c], ecx
push ebp
lea ecx, [ecx]
lea ecx, [edi + esi + 2]
mov eax, esi
mov ebp, 4
jmp 0x41e510
movzx edx, byte [edi + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
dec ebp
jne 0x41e510
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x24]
add esp, 8
add edi, 0x10
sub ebx, 0x10
dec dword [esp + 0x24]
jne 0x41e500
mov eax, dword [esp + 0x10]
xor ecx, ecx
pop ebp
cmp ebx, ecx
je 0x41e57b
jbe 0x41e56b
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub ecx, esi
mov edi, ebx
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0x41e562
lea eax, [esi + 0x60]
push eax
push esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, dword [esp + 0x10]
shld ecx, eax, 3
add eax, eax
bswap ecx
xor dword [esi + 8], ecx
add eax, eax
lea ecx, [esi + 0x60]
add eax, eax
push ecx
bswap eax
xor dword [esi + 0xc], eax
push esi
call dword [esp + 0x20]
mov edi, dword [esi + 0xc]
add esp, 8
bswap edi
mov edx, dword [esi + 0x174]
mov ecx, dword [esi + 0x170]
push edx
lea eax, [esi + 0x20]
push eax
push esi
call ecx
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
add esp, 8
ret