joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5547541
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x552e1b0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push ebx
push ebx
mov dword [0x54cab4c], eax
call esi
push eax
push ebx
push ebx
push 0x81
push 0x190
push ebx
push bind
push 0xca0000
push 0x552e1dc
push 0x552e1f8
push ebx
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
call ebx
push 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
pop edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x4020
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x552e214
push 2
push 5
xor eax, eax
push eax
push edi
push 1
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0
mov edi, eax
push 0
mov dword [ebp - 8], edi
call esi
push eax
push 0
push dword [ebp - 4]
push 0x19
push 0x16d
push 0xf
push 0xf
push 0x50000000
push 0x552e224
push 0x552e234
push 0x20
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
push 0x30
push eax
mov dword [ebp - 0xc], eax
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push dword [ebp - 4]
push 0x19
push 0x4b
push 0x40
push 0x131
push 0x50000000
push 0x552e244
push 0x552e254
push 0
call ebx
push 0
push edi
mov ebx, eax
push 0x30
push ebx
call esi
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push edi
push dword [ebp - 4]
push 0xf
push 0x16d
push 0x28
push 0xf
push 0x50000000
push edi
push 0x552e264
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x2710
push 0
mov edi, eax
push 0x406
push edi
call esi
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push esi
push dword [ebp - 4]
push 0x19
push 0x10e
push 0x40
push 0xf
push 0x50000000
push 0x552e288
push 0x552e234
push 0x20
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push dword [ebp - 8]
mov esi, eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
mov dword [0x54cab3c], eax
mov eax, dword [ebp - 4]
mov dword [0x54cab48], ebx
mov dword [0x54cab44], edi
mov dword [0x54cab40], esi
mov dword [0x54cab38], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 0xc], eax
call esi
push edi
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
mov ebx, dword [ebp - 4]
push 0x14
push 0
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
push 1
push 0x82
lea eax, [esi - 0x81]
cdq
sub eax, edx
sar eax, 1
push 0x191
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffe70
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x554775a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x5547798
jne 0x55477b1
cmp dword [ebp - 0x110], 1
jb 0x55477b1
push 0x54cab54
push 0x552e298
push 1
push 0
push 0x552e2d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
call fcn.055477da
call fcn.05547541
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0557c24c
leave
ret

Function at 0x55479ff
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0558beb0
lea ecx, [ebp - 0x108]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5547a37
sub ecx, edx
xor ebx, ebx
cmp byte [ebp + ecx - 0x109], 0x2f
jne 0x5547a58
dec ecx
cmp ecx, esi
jae 0x5547ac8
mov byte [ebp + ecx - 0x108], bl
mov al, byte [ebp - 0x108]
lea esi, [ebp - 0x108]
jmp 0x5547a96
cmp al, 0x2f
je 0x5547a6e
cmp al, 0x5c
jne 0x5547a93
lea eax, [ebp - 0x108]
mov byte [esi], bl
push ebx
push eax
call fcn.0558bf27
pop ecx
pop ecx
test eax, eax
je 0x5547a90
lea eax, [ebp - 0x108]
push eax
call fcn.0558bebb
pop ecx
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x5547a66
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0558bf27
pop ecx
pop ecx
pop esi
pop ebx
test eax, eax
je 0x5547abc
lea eax, [ebp - 0x108]
push eax
call fcn.0558bebb
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0557c24c
leave
ret
call fcn.0557cbd0
int3
Function at 0x5547d32
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x158], esi
mov edi, ebx
lea edx, [esi + 0x1f]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + edi*4 - 0x144], ecx
inc edi
cmp edi, 0x10
jl 0x5547d58
push 0x40
lea ecx, [ebp - 0x13c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x5547d8f
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 8]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x154], eax
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x154]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x148]
mov ecx, esi
not ecx
rol edx, 5
and ecx, eax
mov eax, edi
and eax, esi
or ecx, eax
mov eax, dword [ebp - 0x150]
add edx, ecx
add eax, 0x5a827999
add edx, dword [ebp + ebx*4 - 0x144]
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, esi
mov dword [ebp - 0x14c], eax
mov esi, dword [ebp - 0x148]
ror edi, 2
inc ebx
push 0x14
pop ecx
mov dword [ebp - 0x148], edx
cmp ebx, ecx
jl 0x5547dd3
mov dword [ebp - 0x154], esi
mov ebx, esi
xor eax, edi
rol edx, 5
xor eax, ebx
add edx, eax
mov eax, dword [ebp - 0x150]
add edx, dword [ebp + ecx*4 - 0x144]
add eax, 0x6ed9eba1
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x14c], eax
mov ebx, dword [ebp - 0x148]
ror edi, 2
inc ecx
mov dword [ebp - 0x148], edx
cmp ecx, 0x28
jl 0x5547e33
push 0x28
pop esi
mov ecx, edi
rol edx, 5
or ecx, ebx
add edx, 0x8f1bbcdc
add edx, dword [ebp - 0x150]
and ecx, eax
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, dword [ebp + esi*4 - 0x144]
mov dword [ebp - 0x150], eax
add edx, ecx
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0x148]
ror edi, 2
inc esi
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edx
cmp esi, 0x3c
jl 0x5547e7e
mov esi, dword [ebp - 0x158]
push 0x3c
pop ecx
xor eax, edi
rol edx, 5
add edx, dword [ebp - 0x150]
xor eax, ebx
add eax, 0xca62c1d6
add eax, dword [ebp + ecx*4 - 0x144]
add edx, eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x14c], eax
mov ebx, dword [ebp - 0x148]
ror edi, 2
inc ecx
mov dword [ebp - 0x148], edx
cmp ecx, 0x50
jl 0x5547ed6
add dword [esi + 0xc], eax
mov eax, dword [ebp - 0x150]
add dword [esi + 0x10], eax
xor eax, eax
add dword [esi + 8], edi
add dword [esi + 4], ebx
add dword [esi], edx
mov ecx, dword [ebp - 4]
pop edi
mov word [esi + 0x1c], ax
xor ecx, ebp
pop esi
pop ebx
call fcn.0557c24c
leave
ret
Function at 0x5547f45
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x5547f52
inc eax
pop ebp
ret
xor edx, edx
mov dword [eax], 0x67452301
xor ecx, ecx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov word [eax + 0x1c], cx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
xor eax, eax
pop ebp
ret

Function at 0x5548262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
push edi
cmp word [esi], ax
jne 0x554831b
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x554831b
push ebx
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov edx, 0x400000
xor eax, eax
mov dword [ebx + 4], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov ecx, dword [edi + 0x54]
add ecx, dword [esi + 0x3c]
push ecx
push esi
push edx
call fcn.0557da80
mov eax, dword [esi + 0x3c]
add eax, 0x400000
push ebx
push edi
mov dword [ebx], eax
push esi
mov dword [eax + 0x34], 0x400000
call fcn.055481d2
push ebx
call fcn.05547ffc
add esp, 0x1c
mov eax, 0x9090
cmp byte [0x53f4cf4], 0
je 0x55482fd
mov byte [0x9d377a], 0xcc
mov word [0x9d2ac2], ax
jmp 0x554830a
mov byte [0x96da6b], 0xcc
mov word [0x96cea6], ax
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add eax, 0x400000
call eax
mov eax, ebx
pop ebx
jmp 0x554831d
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x5550b31
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5550b98
push esi
call fcn.05550e12
pop ecx
test al, al
jne 0x5550b98
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.05550db1
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x5550b91
mov al, byte [esi]
push eax
call fcn.0555adb7
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x5550b74
pop edi
movzx eax, bl
pop ebx
jmp 0x5550b9a
xor eax, eax
pop esi
pop ebp
ret
Function at 0x55588fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x555893c
push 1
push esi
call fcn.0554d82f
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.0554d82f
add esp, 0x24
jmp 0x5558972
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x5558972
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x552fb08
push eax
call fcn.05587cbe
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.05587cbe
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.05559087
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x5558d3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x5558d05
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x5558d3b
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0556de4c
push eax
push 0x552fb2c
push dword [ebx]
call fcn.05558978
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0557c24c
leave
ret
Function at 0x5559087
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x555916e
cmp dword [esi + ecx*4 + 0x1bc], 0x5558bcd
jne 0x555916e
xor edx, edx
cmp dword [esi + edi*8 + 0x1cc], edx
je 0x55590d9
test ebx, ebx
je 0x555916e
mov eax, dword [esi + ecx*4 + 0x1a8]
push edx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.055584fc
add esp, 0x14
cmp eax, 0xffffffff
je 0x555916e
test al, 1
je 0x555916e
mov ecx, dword [esi + edi*8 + 0x1cc]
test ecx, ecx
jne 0x5559143
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x53f4068]
and dword [esi + edi*8 + 0x1d4], 0
and dword [esi + edi*8 + 0x1d8], 0
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
mov ecx, eax
mov dword [esi + edi*8 + 0x1cc], ecx
test ecx, ecx
je 0x5559166
mov eax, dword [esi + edi*8 + 0x1d4]
push 0
push ebx
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x555916e
add dword [esi + edi*8 + 0x1d4], eax
jmp 0x555916e
and dword [esi + edi*8 + 0x1d0], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x55598b5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x552b450]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x55598fc
push 3
push esi
push eax
push 6
call fcn.0555ab17
add esp, 0x10
test al, al
je 0x55598f4
mov dword [0x552b450], esi
jmp 0x555993c
xor eax, eax
inc eax
mov dword [0x552b450], eax
cmp eax, esi
je 0x555993c
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x555992a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x555993b
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret
Function at 0x5559b32
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x18c], edi
je 0x5559cc9
test dword [ebx + 0x284], 0x8000002
push esi
jne 0x5559cc1
lea eax, [ebp - 0x188]
mov esi, 0x80
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5559bb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0556de4c
push eax
push esi
push 0x552fd50
jmp 0x5559c0d
push esi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], esi
push 0
push eax
call fcn.0557d7e0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5559c13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0556de4c
push eax
push esi
push 0x552fcc8
push edi
jmp 0x5559cb7
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.0555a1a3
add esp, 0xc
test al, al
jne 0x5559c5e
call fcn.0558cd1d
mov esi, dword [eax]
call fcn.0558cd1d
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0556de4c
push eax
push dword [edi]
push 0x552fd78
jmp 0x5559cb1
push 0xb
pop ecx
lea edi, [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x104]
movsw word es:[edi], word [esi]
push eax
call fcn.0555a1a3
add esp, 0xc
test al, al
jne 0x5559cc1
call fcn.0558cd1d
mov esi, dword [eax]
call fcn.0558cd1d
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.0556de4c
push eax
push dword [edi]
push 0x552fda4
push dword [ebp - 0x18c]
call fcn.05558978
add esp, 0x1c
jmp 0x5559cc8
push ebx
call fcn.05559842
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0557c24c
leave
ret
Function at 0x555a550
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xc
and eax, 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x555a5a0
push dword [ebp + 0xc]
push 0x552fbd0
push esi
call fcn.05558a4c
add esp, 0xc
jmp 0x555a611
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.0555a7c9
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0555a7c9
pop ecx
pop ecx
imul eax, eax, 0x3e8
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x555a611
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push 0x552fbf8
push esi
call fcn.05558a4c
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0557c24c
leave
ret

Function at 0x555a61e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push 4
inc ecx
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x88], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x555a682
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0556de4c
push eax
push 0x552fe68
push esi
call fcn.05558a4c
add esp, 0x18
jmp 0x555a68f
push 0x552fe88
push esi
call fcn.05558a4c
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0557c24c
leave
ret

Function at 0x555a7c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.05590859
Function at 0x555a9e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x552ff38
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x555ab14
push ebx
push edi
push 0x552ff4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x552ff5c
push edi
mov dword [ebp - 8], ebx
call fcn.0558d864
pop ecx
pop ecx
test eax, eax
je 0x555aa37
test ebx, ebx
je 0x555aa2e
push 8
jmp 0x555aa52
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x555aa56
test ebx, ebx
je 0x555aa5d
push 0x552ff64
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x555aa5d
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x555ab10
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x555ab10
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x555aa77
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x53f4068]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x555ab08
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x555ab08
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x555aab1
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x555aacc
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x555aae1
mov eax, dword [ebp - 8]
test eax, eax
je 0x555aaff
push 8
push esi
push ebx
call eax
jmp 0x555ab06
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x53f406c]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x555ac61
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x555acae
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x555ac95
push 2
pop eax
jmp 0x555ace7
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x555aca6
shr eax, 8
cmp al, 2
je 0x555acae
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x555ac90
call fcn.0556f358
test eax, eax
jne 0x555ace7
push 3
push 2
push eax
push 6
call fcn.0555ab17
add esp, 0x10
test al, al
je 0x555acde
push 0x552c158
mov byte [0x552c154], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x555ace5
mov byte [0x552c154], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0557c24c
leave
ret
Function at 0x555ba27
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x555ba48
cmp dword [esi + 0x8c], 0
je 0x555ba48
push 2
push 3
push esi
call fcn.0555b261
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0555b5f8
pop ecx
test esi, esi
je 0x555ba68
cmp dword [esi + 0x8c], 0
je 0x555ba68
push 3
push esi
call fcn.0555b29c
pop ecx
pop ecx
pop esi
pop ebp
ret