joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e750
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x44e951
cmp dword [esp + 0x2f8], 0
je 0x44e951
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00450680
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4b96fc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e918
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x44e90b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44e8d9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4c6014
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44e8ce
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00450680
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0044e640
add esp, 0x14
test eax, eax
je 0x44e8ce
cmp byte [esp + 0x24], 0
je 0x44e892
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x44e8ce
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x44e8c1
mov cl, byte [esi + eax]
test cl, cl
je 0x44e8c1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x44e8a6
jmp 0x44e8c5
test edx, edx
jne 0x44e8c6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x44e7f0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x44e951
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00427280
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004513b1
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004513b1
add esp, 0x2ec
ret
Function at 0x44ecf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x44ee6d
cmp ebp, 0x20
jb 0x44ee6d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00450680
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4b976c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x44ee6d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ed80
sub eax, edx
cmp eax, 0x40
jne 0x44ee6d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x44edbe
mov cl, byte [esi + eax]
test cl, cl
je 0x44edbe
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x44eda6
jmp 0x44edc2
test edx, edx
jne 0x44edc3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x44edfb
mov cl, byte [edx + eax]
test cl, cl
je 0x44edfb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x44ede0
jmp 0x44edff
test esi, esi
jne 0x44ee00
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00450680
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0044dd70
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x44ee6d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00427280
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004513b1
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004513b1
add esp, 0x50c
ret
Function at 0x44eea0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00450680
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.0044dd70
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x44ef0b
mov cl, byte [edx + eax]
test cl, cl
je 0x44ef0b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x44eef0
jmp 0x44ef0f
test esi, esi
jne 0x44ef10
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.0042ba10
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.00450680
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4b976c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x44efeb
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x44efb3
test dl, dl
je 0x44efaf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x44efb3
add eax, 2
add ecx, 2
test dl, dl
jne 0x44ef93
xor eax, eax
jmp 0x44efb8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44efeb
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44efc6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44eff5
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x4b976c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.004513b1
add esp, 0x290
ret

Function at 0x4513b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d0b80]
jne 0x4513bb
repz ret
jmp fcn.0045975c
Function at 0x475fc1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00457ea9
and dword [ebp - 4], 0
cmp dword [0x4d4c08], 0
mov ebx, eax
jne 0x476072
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x476123
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x476123
push eax
call fcn.00457e37
mov dword [esp], 0x4bbf9c
push edi
mov dword [0x4d4c08], eax
call esi
push eax
call fcn.00457e37
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d4c0c], eax
call esi
push eax
call fcn.00457e37
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d4c10], eax
call esi
push eax
call fcn.00457e37
pop ecx
mov dword [0x4d4c18], eax
test eax, eax
je 0x476072
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457e37
pop ecx
mov dword [0x4d4c14], eax
mov eax, dword [0x4d4c14]
cmp eax, ebx
je 0x4760ca
cmp dword [0x4d4c18], ebx
je 0x4760ca
push eax
call fcn.00457eb2
push dword [0x4d4c18]
mov esi, eax
call fcn.00457eb2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4760ca
test edi, edi
je 0x4760ca
call esi
test eax, eax
je 0x4760c1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4760c1
test byte [ebp - 0xc], 1
jne 0x4760ca
or dword [ebp + 0x10], 0x200000
jmp 0x476103
mov eax, dword [0x4d4c0c]
cmp eax, ebx
je 0x476103
push eax
call fcn.00457eb2
pop ecx
test eax, eax
je 0x476103
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x476103
mov eax, dword [0x4d4c10]
cmp eax, ebx
je 0x476103
push eax
call fcn.00457eb2
pop ecx
test eax, eax
je 0x476103
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d4c08]
call fcn.00457eb2
pop ecx
test eax, eax
je 0x476123
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x476125
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47ed20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47ed75
mov eax, dword [esp]
cmp al, 2
jne 0x47ed6f
shr eax, 8
cmp al, 2
jne 0x47ed6f
call fcn.00482ce0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004513b1
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004513b1
add esp, 0x194
ret
Function at 0x48e6c0
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 0x48e6f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x48e820
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x1e0], edi
je 0x48e869
push 1
push esi
call fcn.0048c310
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1e0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.0048c310
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x48e8a9
cmp eax, 2
jg 0x48e8a9
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x4bd1bc]
push 2
push eax
call fcn.004af08d
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004af08d
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x48ee1f
cmp dword [ebx + eax*4 + 0x1c0], 0x48eaf0
jne 0x48ee1f
cmp dword [esi], 0
je 0x48edba
test edi, edi
je 0x48ee1f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00483000
add esp, 0x14
cmp eax, 0xffffffff
je 0x48ee1f
test al, 1
je 0x48ee1f
cmp dword [esi], 0
jne 0x48ee01
mov edx, dword [ebx]
mov eax, dword [edx + 0x508]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4d2020]
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 0x48ee1c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x48ee1f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x48ee30
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.0048ed80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x48eeb2
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x48ee89
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.004a7010
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.0048e940
mov eax, dword [ebx]
mov dword [eax + 0x998], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x491820
Capabilities:
Encode data using xor
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 0x491810
movzx eax, byte [esi]
push eax
call fcn.00494920
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x4917f1
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x49184f
mov ecx, esi
call fcn.00491670
test eax, eax
jne 0x49184f
lea eax, [esp + 4]
push eax
call fcn.00491780
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x4917e0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x493200
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x708], 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
jge 0x49323e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0048e8b0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x70c]
push edx
mov dword [esp + 0xc], 1
call fcn.00491490
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x710]
push eax
call fcn.00491490
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 0x4932b7
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.0048e8b0
add esp, 0x10
add esp, 0x14
ret
Function at 0x493940
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x90], 2
push ebp
mov ebp, dword [ebx]
je 0x493acf
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x493ac4
cmp dword [ebx + 0x314], 0
jne 0x493ac4
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4939d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004a7010
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0048e940
add esp, 0x18
jmp 0x493acd
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call fcn.00450680
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x493a21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004a7010
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0048e940
add esp, 0x18
jmp 0x493acd
lea edx, [ebx + 0x134]
push edx
lea esi, [ebx + 0x106]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.004938e0
add esp, 0xc
test eax, eax
jne 0x493a6e
call fcn.004543a7
mov esi, eax
call fcn.004543a7
mov ecx, dword [esi]
push ecx
push ebx
mov edi, eax
call fcn.004a7010
mov edx, dword [edi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0048e940
add esp, 0x18
jmp 0x493acd
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x168]
push eax
lea ecx, [ebx + 0x138]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.004938e0
add esp, 0xc
test eax, eax
jne 0x493ac4
call fcn.004543a7
mov esi, eax
call fcn.004543a7
mov edi, eax
mov eax, dword [esi]
push eax
push ebx
call fcn.004a7010
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0048e940
add esp, 0x18
jmp 0x493acd
push ebx
call fcn.00493860
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004513b1
add esp, 0x108
ret

Function at 0x493af0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x493b39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a7010
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0048e8b0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0048e8b0
add esp, 8
pop edi
pop esi
ret
Function at 0x495380
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x4bdd6c
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x49539a
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 0x4bdd58
push ebx
mov dword [esp + 0x18], edi
call fcn.004b01b9
add esp, 8
test eax, eax
je 0x4953e6
test edi, edi
je 0x4953d7
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 0x49540c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49540c
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 0x4954c0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495425
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4d2020]
mov esi, eax
add esp, 4
test esi, esi
je 0x4954b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4954b6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495453
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 0x495470
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 0x495480
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4954ad
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x4d2024]
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 [0x4d2024]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x496f90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00452371
add esp, 0x18
test eax, eax
je 0x496fb3
cmp eax, 0xffffffff
jne 0x496fb5
xor eax, eax
ret
Function at 0x4998e0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.00450680
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4999c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4999a1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4999a1
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4999a0
cmp esi, dword [esp + 0xc]
jb 0x4999a0
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4999af
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4999c0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x49bda0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0047de12
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x49be05
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x49be05
lea edx, [esp]
push edx
call dword [0x4d202c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004513b1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004513b1
add esp, 0x108
ret
jmp 0x49bda0

Function at 0x49be20
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d0b80]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0047de12
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x49be05
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x49be05
lea edx, [esp]
push edx
call dword [0x4d202c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004513b1
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004513b1
add esp, 0x108
ret
jmp 0x49bda0
Function at 0x4a5010
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4a504f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret
Function at 0x4b3872
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4b38a3
call fcn.004543ba
mov dword [eax], esi
call fcn.004543a7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00450ef1
add esp, 0x14
push 0x16
pop eax
jmp 0x4b38f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x4b387f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b38d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004543cd
pop ecx
call fcn.004543a7
mov eax, dword [eax]
jmp 0x4b38f8
test al, 0x10
jne 0x4b38f6
test al, 1
je 0x4b38f6
test byte [ebp + 0xc], 2
je 0x4b38f6
call fcn.004543ba
mov dword [eax], 5
call fcn.004543a7
mov dword [eax], 0xd
jmp 0x4b38c7
xor eax, eax
pop esi
pop ebp
ret