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

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0xd000]
push edi
or ebp, 0xffffffff
jmp 0x416f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416f38
mov eax, 1
add ebx, ebx
jne 0x416f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416f50
jne 0x416f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f50
xor ecx, ecx
sub eax, 3
jb 0x416f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416ff2
mov ebp, eax
add ebx, ebx
jne 0x416f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416fbc
inc ecx
add ebx, ebx
jne 0x416fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416f9d
jne 0x416fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416fcd
jmp 0x416f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416fdc
add edi, ecx
jmp 0x416f3e
pop esi
mov edi, esi
mov ecx, 0x712
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416ffa
cmp byte [edi], 0xa
jne 0x416ffa
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 eax, ebx
loop 0x416fff
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x41706e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41702c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1707c]
or eax, eax
je 0x417068
mov dword [ebx], eax
add ebx, 4
jmp 0x417049
call dword [esi + 0x17080]
popal
jmp 0x407cd2

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 0x100019e6
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push esi
xor esi, esi
push esi
push 4
push esi
push 0x100018d3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x10003298], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10001a1d
push dword [0x10003298]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10001a30
push esi
push dword [0x10003298]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x10003298], esi
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
mov ecx, 0x3d6603e4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
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
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0xb52463e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

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 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0xe3f628
Capabilities:
Encode data using xor

Disassembly:
cdq
popal
sbb dword [esp + ecx*8], 0x14
and byte [ebx + 0x8eb7437], 0
jmp 0xe3f632
add byte [esi + 4], bh
jmp 0xe3f632
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
pushal
call 0xe3f638
pop ebp
sub ebp, 0x10
sub ebp, 0xa3f628
jmp 0xe3f64e
mov eax, 0xa3f628
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a1
mov edx, 0xa6f3eb69
mov eax, dword [0xba000005]
imul ebp, ebx, 0x1030a6f3
xor byte [eax], dl
inc eax
dec ecx
jne 0xe3f665
jmp 0xe3f678
loop 0xe3f61e
loop 0xe3f65c
push ebp
imul ebp, dword [ecx + 0x69], 0x6991a8e8
imul ebp, dword [ecx + 0x6a], 0x696dd1a4
imul ebp, dword [ecx - 0x2d], 0x69696941
call 0x6a4d882d
imul ebp, dword [edx - 0x5c], 0x69696dd1
imul edx, ebx, 0x69696941
sahf
mov ebp, dword [edx - 0x5f]
loop 0xe3f680
imul ebp, dword gs:[ecx + 0x69], 0x3939ac6a
add dword [0x169488d], ebx
fnstsw word [eax - 0x15]
imul ebp, dword [eax + 0x45], 0xcaeb014d
pop esi
sbb eax, 0x69696c81
imul eax, dword [eax + 0x6969695f], 0x954d0de4
loopne 0xe3f707
dec ebp
in al, 5
dec ebp
imul esp, edx, 0x696961ec
imul esp, edx, 0x696965fc
imul esp, edx, 0x696979e4
imul ebp, dword [eax + 0x6b586b80], 0x206dabea
in al, dx
popfd
xchg esi, eax
xchg esi, eax
xchg esi, eax
loop 0xe3f72f
dec ebp
in al, 0xd
dec ebp
insd dword es:[edi], dx
stosd dword es:[edi], eax
imul esp, edx, 0x696d4de5
imul ebp, dword [ecx + 1], 0x69488d1d
add ebp, ebx
js 0xe3f6ed
insd dword es:[edi], dx
imul ebp, dword [ecx + 0x69], 0x488d1d01
imul eax, dword [ecx], 0x69eb78dd
push 0x81384d45
insb byte es:[edi], dx
imul ebp, dword [eax + 0x45], 0x6c81384d
sub dword [ecx + ebp*2 + 0x69], 0x6b5a8069
imul ebp, dword [ecx + 0x3c], 0x1c96343d
xchg esi, eax
sbb al, 0x61
or dword [edi], 0xe2696969
aam 0x61
imul ebp, dword [ecx + 0x69], 0x696b5a80
imul edi, dword [edi + 0x651c9634], 0x81611c96
punpckhwd mm5, qword [ecx + 0x69]
loop 0xe3f6f5
popal
imul ebp, dword [ecx + 0x69], 0xbb5aa05a
ljmp 0x27ed
daa
imul ebp, dword [ecx + 0x69], 0x6921e166
imul ebp, dword [ecx + 0xf], 0xe95075e2
xchg edx, eax
and dword [esi - 0x13], 0x69696973
jmp 0xee4a77dd

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 0x4067e0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x548c98
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4067fa
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x548c84
push ebx
mov dword [esp + 0x18], edi
call fcn.0050bf60
add esp, 8
test eax, eax
je 0x406846
test edi, edi
je 0x406837
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x40686c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40686c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x406920
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406885
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x58e0bc]
mov esi, eax
add esp, 4
test esi, esi
je 0x406916
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406916
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068b3
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4068d0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4068e0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40690d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x58e0c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x58e0c0]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x406930
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x406973
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x406967
mov eax, dword [esp]
cmp al, 2
jne 0x406961
shr eax, 8
cmp al, 2
je 0x406973
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.0041aff0
test eax, eax
jne 0x4069cf
push str.iphlpapi.dll
call fcn.004067e0
add esp, 4
mov dword [0x593cb0], eax
test eax, eax
je 0x4069a7
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069a7
mov dword [0x593cb4], eax
push 3
push 2
push 0
push 6
call fcn.0041b1c0
add esp, 0x10
neg eax
sbb eax, eax
neg eax
push 0x596860
mov dword [0x596868], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
Function at 0x40d970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x78]
push edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x40db45
lea eax, [esp + 0x20]
push eax
call fcn.0041add0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov ebp, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
add esp, 4
push 0
push 0x3e8
push eax
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call fcn.0050b400
add ebp, eax
adc dword [esp + 0x14], edx
imul eax, eax, 0x3e8
sub edi, eax
imul edi, edi, 0x3e8
add ebx, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
cmp ebx, 0xf4240
jl 0x40d9fc
add ebp, 1
adc dword [esp + 0x14], 0
sub ebx, 0xf4240
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0xf60]
mov edi, dword [esp + 0x40]
lea ecx, [esi + 0xf60]
test eax, eax
je 0x40da2c
mov edx, dword [eax]
cmp dword [edx + 0x20], edi
je 0x40da20
mov eax, dword [eax + 8]
test eax, eax
jne 0x40da10
jmp 0x40da2c
push 0
push eax
push ecx
call fcn.004372f0
add esp, 0xc
mov ecx, edi
lea eax, [esp + 0x10]
mov edx, esi
call fcn.0040d8c0
mov eax, dword [esi + 0xf28]
or eax, dword [esi + 0xf2c]
jne 0x40da53
cmp dword [esi + 0xf30], eax
je 0x40dadd
mov ecx, dword [esi + 0xf28]
mov edx, dword [esi + 0xf2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
call fcn.0041ae70
add esp, 0x20
test edx, edx
jg 0x40db45
jl 0x40daad
test eax, eax
jne 0x40db45
mov edi, dword [esp + 0x34]
mov edx, dword [edi + 0x5c]
lea eax, [edi + 0x5c]
push eax
lea ecx, [esi + 0xf38]
push ecx
push edx
call fcn.0043dcb0
add esp, 0xc
test eax, eax
je 0x40dae1
push eax
push str.Internal_error_removing_splay_node___d_n
push esi
call fcn.0040ffd0
add esp, 0xc
jmp 0x40dae1
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xf28], ebp
mov dword [esi + 0xf2c], eax
mov dword [esi + 0xf30], ebx
mov dword [esi + 0xf34], ecx
mov dword [esi + 0xf58], esi
mov eax, dword [edi + 0x5c]
mov ecx, dword [esi + 0xf28]
lea edx, [esi + 0xf38]
push edx
mov edx, dword [esi + 0xf2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0xf30]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xf34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0043da90
add esp, 0x18
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40fe70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40feb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x40ff30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbfc], edi
je 0x40ffc5
cmp dword [esi + 0x620], edi
je 0x40ff85
push 1
push esi
call fcn.0040dc70
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.0040dc70
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x40ffc5
cmp eax, 2
jg 0x40ffc5
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x549824]
push 2
push eax
call fcn.00504d0e
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.00504d0e
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4100a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0xbfc], 0
jne 0x4100c4
cmp dword [esi + 0x5b8], 0
je 0x4101a0
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.00419970
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4100f0
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x410127
cmp dword [esi + 0x1230], 0
jne 0x410127
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x410113
mov dword [esi + 0x1230], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0xbfc], 0
je 0x41019f
cmp dword [esi + 0x620], 0
je 0x410173
push 1
push esi
call fcn.0040dc70
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.0040dc70
add esp, 0x24
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x549824
call fcn.00504d0e
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00504d0e
add esp, 0x20
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4104a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [ebx + 0x5f0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
add ecx, ecx
push esi
lea esi, [ebx + ecx*8 + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x410542
cmp dword [ebx + eax*4 + 0x438], 0x4101b0
jne 0x410542
cmp dword [esi], 0
je 0x4104dd
test edi, edi
je 0x410542
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00437840
add esp, 0x14
cmp eax, 0xffffffff
je 0x410542
test al, 1
je 0x410542
cmp dword [esi], 0
jne 0x41052b
mov eax, dword [ebx]
mov eax, dword [eax + 0x97c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x58e0bc]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x410522
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x410542
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push esi
mov esi, dword [ebx + eax*4 + 0x420]
call fcn.004104a0
test eax, eax
je 0x41058c
mov eax, dword [esp + 0x11c]
pop esi
mov dword [eax], 0x1b
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
push 0
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x120]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x410610
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4105e0
pop ebp
xor esi, esi
mov dword [edi], 0x51
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret
push 0x100
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.00405770
mov ecx, dword [ebx]
push eax
push str.Send_failure:__s
push ecx
call fcn.004100a0
mov edx, dword [ebx]
add esp, 0x18
mov dword [edx + 0xec4], ebp
mov dword [edi], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x4142f0
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x41431e
movzx eax, byte [esi]
push eax
call fcn.00418b30
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x414301
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x414330
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
test esi, esi
je 0x41437e
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.0043e9f0
add esp, 0xc
test eax, eax
jne 0x41437e
lea ecx, [esp + 8]
push ecx
push esi
push 0x17
call fcn.0043e9f0
add esp, 0xc
test eax, eax
jne 0x41437e
lea edx, [esp + 4]
push edx
call fcn.00414290
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
jmp fcn.004142f0
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x416440
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xc34], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41647e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0040ffd0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb48]
push edx
mov dword [esp + 0xc], 1
call fcn.004131f0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb4c]
push eax
call fcn.004131f0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4164f7
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.0040ffd0
add esp, 0x10
add esp, 0x14
ret