joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9360
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5645c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
push 0x5c6ff0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0054222c
mov ecx, dword [esi + 0x7c]
mov byte [ebp - 4], 2
mov edx, dword [ecx + 4]
cmp edx, ebx
je 0x4d93ea
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4d93ea
mov al, byte [edx + ecx - 1]
cmp al, 0x2f
mov eax, 0x5c6ff0
je 0x4d93d7
mov eax, 0x5a5a48
push eax
push edx
lea edx, [ebp - 0x14]
push 0x5a4b44
push edx
call fcn.0053afda
add esp, 0x10
push str.Get_MDTM..._r_n
mov ecx, esi
call fcn.004cfa50
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x1fe]
test cl, cl
je 0x4d9408
mov eax, dword [ebp - 0x14]
jmp 0x4d9423
push 0x5c6ff0
lea ecx, [ebp - 0x20]
call fcn.0054222c
mov ebx, 1
mov dword [ebp - 0x1c], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x7c]
push 0x5a495c
mov edx, dword [ecx + 8]
push edx
push eax
lea eax, [ebp - 0x18]
push str.MDTM__s_s_s
push eax
call fcn.0053afda
add esp, 0x14
mov dword [ebp - 4], 2
test bl, 1
je 0x4d9455
lea ecx, [ebp - 0x20]
call fcn.005421be
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.send___MDTM
dec ecx
push 0
push ecx
mov ecx, dword [esi + 0x2e7c]
push edx
push ecx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004cfaf0
mov edi, eax
test edi, edi
je 0x4d94be
mov edx, dword [esi + 0x2e8c]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [edx + 0x1d4], edi
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x13
lea ecx, [esi + 0x2e70]
call fcn.004fd5c0
mov ecx, esi
call fcn.004d0590
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 4
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4da830
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.004fd6a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x1e0], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [esi], 0x571f40
mov byte [ebp - 4], 1
mov dword [esi + 0x3c], eax
mov dword [esi + 0x94], eax
call fcn.004fe860
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [esi + 8], edx
mov dword [esi + 0x2a4], eax
call fcn.004da9a0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 0x8d8], eax
jmp 0x4da8cd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4dc5c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esi + 0x29c], 0
mov edx, dword [0x5c74b0]
push 0
push 0
push str.FtpPasive
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4dc609
xor eax, eax
mov dword [esi + 0x29c], eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 8]
mov dword [esi + 0x29c], eax
pop esi
add esp, 8
ret
Function at 0x4e2cb0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5649a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.004fce70
mov eax, dword [esi + 0xa0]
mov ebx, 2
cmp dword [eax + 4], ebx
jne 0x4e2d3c
mov ecx, dword [esi + 0x2f14]
test ecx, ecx
je 0x4e2d12
mov edx, dword [esi + 0x2f18]
test edx, edx
je 0x4e2d3c
lea edx, [esi + 0x2f08]
push 1
push edx
lea edx, [esi + 0x2f18]
push edx
mov edx, dword [eax + 0x118]
push edx
mov edx, dword [eax + 0x114]
push edx
add eax, 8
push ecx
push eax
mov ecx, esi
call fcn.004e6c50
push 0x5c6ff0
lea ecx, [ebp - 0x14]
call fcn.0054222c
mov eax, dword [esi + 0xa0]
mov byte [ebp - 4], bl
cmp dword [eax + 4], 1
jne 0x4e2d74
mov eax, dword [esi + 0x2e94]
test eax, eax
je 0x4e2d74
push eax
lea ecx, [ebp - 0x14]
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov edx, dword [esi + 0xa0]
cmp dword [edx + 4], ebx
jne 0x4e2d97
mov eax, dword [esi + 0x2f08]
lea ecx, [ebp - 0x14]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
mov edx, dword [esi + 0x2ef4]
mov eax, dword [edx - 8]
test eax, eax
je 0x4e2dbb
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x1ff]
test cl, cl
jne 0x4e2dbb
mov eax, dword [esi + 0x2ef8]
test eax, eax
je 0x4e2dd3
mov ecx, dword [esi + 0x2f08]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4e2dda
mov edx, dword [esi + 0xa0]
cmp dword [edx + 4], ebx
jne 0x4e2dda
mov ecx, str.Connection:_Keep_Alive_r_n
jmp 0x4e2ddf
mov ecx, 0x5c6ff0
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x7c]
push edx
push ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x18]
push str.CONNECT__s:_ld_HTTP_1.1_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_5.00__Windows_98__r_n_s_s_r_n
push eax
call fcn.0053afda
add esp, 0x18
mov ecx, esi
mov dword [esi + 0x5c], 0x10
call fcn.004d0590
mov eax, dword [ebp - 0x18]
push str.send___CONNECT
push 0
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esi + 0x2e74]
push eax
push ecx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004cfaf0
mov edi, eax
test edi, edi
jne 0x4e2e74
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e2e74
push edi
mov ecx, esi
call fcn.004e23a0
lea ecx, [ebp - 0x14]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e30b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x24], 2
jne 0x4e314c
cmp dword [esi + 0x5c], 0x10
je 0x4e314c
mov eax, dword [esi + 0x3060]
test eax, eax
je 0x4e30f2
mov edx, dword [esi + 0x2ec4]
mov ecx, dword [esi + 0x3064]
xor eax, eax
cmp eax, edx
jg 0x4e3103
jl 0x4e30f2
cmp ecx, dword [esi + 0x2ec0]
jae 0x4e3103
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x4e3103
cmp eax, 0x2733
jne 0x4e3148
mov edx, dword [esi + 0x2ec4]
mov ecx, dword [esi + 0x3064]
xor eax, eax
cmp eax, edx
jg 0x4e311f
jl 0x4e30cc
cmp ecx, dword [esi + 0x2ec0]
jb 0x4e30cc
mov eax, dword [esi + 0x2ec0]
mov ecx, dword [esi + 0x3064]
sub ecx, eax
mov dword [esi + 0x3064], ecx
mov esi, dword [esi + 0x3060]
add eax, esi
push ecx
push eax
push esi
call fcn.00527c60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x2e74]
push 0x1e
push eax
mov ecx, esi
xor edi, edi
call fcn.004cff00
test eax, eax
jne 0x4e3148
mov ecx, dword [esi + 0x2ea0]
mov edx, dword [esi + 0x2e9c]
mov eax, dword [esi + 0x2e74]
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
mov ecx, eax
test ecx, ecx
jl 0x4e31b9
mov ebx, dword [esi + 0x2ec4]
add edi, ecx
mov eax, edi
cdq
cmp edx, ebx
jg 0x4e3146
jl 0x4e319d
cmp eax, dword [esi + 0x2ec0]
jae 0x4e3146
test ecx, ecx
je 0x4e3146
mov ecx, dword [esi + 0x2e74]
push 0x1e
push ecx
mov ecx, esi
call fcn.004cff00
test eax, eax
je 0x4e3162
pop edi
pop esi
pop ebx
ret
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
ret
Function at 0x4e6390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov edx, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x2e7c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0x64]
push ecx
mov ecx, dword [esi + 0x7c]
push edx
call fcn.00509080
mov eax, dword [esi + 0x2e7c]
mov edi, 1
mov dword [eax + 0x1cc], edi
mov eax, dword [esi + 0x2e7c]
add eax, 0x70
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
je 0x4e6487
mov ecx, dword [0x5c74b0]
lea edx, [ebp + 8]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push 0
push str.bIgnMTCh
push ecx
xor bl, bl
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e642e
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4e642e
mov bl, 1
mov edx, dword [esi + 0x7c]
mov eax, dword [edx + 8]
test eax, eax
je 0x4e6487
test bl, bl
jne 0x4e6487
push 0x3f
push eax
call fcn.00526d60
add esp, 8
test eax, eax
jne 0x4e6487
mov eax, dword [esi + 0x2e7c]
mov ecx, dword [eax + 0x1d0]
test ecx, ecx
jne 0x4e647a
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x5c81a4]
push 0x50044
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x4e6487
mov dword [esi + 0x2ee4], edi
mov byte [esi + 0x2ee8], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e6f60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0xaaaaaaab
push esi
lea ecx, [ebp + 3]
mov esi, dword [esp + 0x14]
mul ecx
shr edx, 1
lea edx, [edx + ebp + 4]
push edx
push esi
call fcn.004e6bf0
add esp, 8
test eax, eax
jne 0x4e6f8d
pop esi
pop ebp
ret 0xc
push esi
call fcn.004e6be0
mov ecx, eax
add esp, 4
xor eax, eax
test ebp, ebp
jbe 0x4e7018
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov esi, dword [esp + 0xc]
push ebx
push edi
mov edi, edx
shr edi, 1
lea eax, [edi + edi*2]
xor edx, edx
xor ebx, ebx
mov dl, byte [esi]
add esi, 3
shr edx, 2
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 3]
mov bl, byte [esi - 2]
and edx, 3
shl edx, 4
shr ebx, 4
or edx, ebx
xor ebx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 2]
mov bl, byte [esi - 1]
and edx, 0xf
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
mov dl, byte [esi - 1]
and edx, 0x3f
inc ecx
dec edi
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Unknown_error_in_HTTPConnection_constructor._n]
mov byte [ecx - 1], dl
jne 0x4e6fb5
pop edi
pop ebx
lea edx, [ebp + 1]
cmp eax, edx
jne 0x4e7030
mov byte [ecx - 1], 0x3d
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc
add ebp, 2
cmp eax, ebp
jne 0x4e703f
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
ret 0xc

Function at 0x4e7640
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x5bda6c
push edi
mov dword [ebx], edi
call fcn.00529450
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x4e7699
mov al, byte [0x5c784c]
test al, al
jne 0x4e7686
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x5c784c
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x5c784c
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
mov byte [eax], 0
mov edx, dword [esi]
inc edx
mov dword [esi], edx
mov esi, edx
mov al, byte [esi]
test al, al
je 0x4e76bc
cmp al, 0x5c
je 0x4e76bc
cmp al, 0x2f
je 0x4e76bc
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4e7b40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
lea ecx, [esi + 0x8ac]
cmp eax, 0xffffffff
mov dword [ecx], eax
je 0x4e7b78
xor eax, eax
mov edx, dword [esi + 0x29c]
add eax, 0x3070
cmp eax, 0x30700
mov dword [edx + eax - 0x2fd4], ecx
jl 0x4e7b5d
pop esi
ret
xor eax, eax
mov ecx, dword [esi + 0x29c]
add eax, 0x3070
cmp eax, 0x30700
mov dword [ecx + eax - 0x2fd4], 0
jl 0x4e7b7a
pop esi
ret
Function at 0x4f6490
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x564c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, 0xf0
push ebx
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
xor eax, eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x2eb8]
lea edx, [esp + 0x14]
push ecx
xor ebx, ebx
push edx
push eax
mov byte [esp + 0x30], 0xef
mov byte [esp + 0x34], 0xff
mov byte [esp + 0x35], 0xff
mov byte [esp + 0x36], 0xff
mov byte [esp + 0x37], 0xff
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0xa0
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 2
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_getsockname
cmp eax, ebx
je 0x4f6555
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [0x5c2a74]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x16]
mov dword [esp + 0x40], ebx
push edx
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x1b]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x21]
push ecx
mov ecx, dword [esp + 0x24]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x24]
push str._d._d._d._d_s_ld
push edx
call fcn.0053afda
mov eax, dword [esp + 0x2c]
add esp, 0x20
lea ecx, [esp + 0x24]
push eax
push 0x14
push ecx
push 2
mov ecx, esi
call fcn.004f5eb0
mov edi, eax
cmp edi, ebx
je 0x4f65f7
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.005421be
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
push 0x18
lea ecx, [esi + 0x2eac]
call fcn.004fd5c0
mov ecx, esi
call fcn.004d0590
lea ecx, [esp + 0xc]
mov dword [esi + 0x5c], 4
mov dword [esp + 0x40], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4f7a50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [ecx + 0x2e80]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x4f7a6d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp ebx, 0x186a0
jbe 0x4f7a7a
mov ebx, 0x186a0
mov eax, dword [ecx + 0x7c]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f7ab7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f7b3d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
push ebx
call fcn.0054276d
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f7ad9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x753b
pop ebx
add esp, 0xc
ret
push ebp
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x4f7b27
cmp dword [esp + 0xc], ebx
jne 0x4f7b27
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.004f7bd0
push esi
mov edi, eax
call fcn.00542796
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push esi
call fcn.00542796
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x4f7b3d
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4fa160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x2e80]
cmp esi, 0x186a0
jbe 0x4fa17c
mov esi, 0x186a0
mov eax, dword [ebp + 0x7c]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fa1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fa26c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push esi
call fcn.0054276d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4fa1e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x753b
pop ebx
add esp, 0xc
ret 4
lea edx, [esp + 0x14]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4fa256
cmp dword [esp + 0x14], esi
jne 0x4fa256
mov edi, dword [ebp + 0x2f04]
mov ecx, esi
mov esi, ebx
xor eax, eax
mov edx, dword [esp + 0x20]
push ebx
repe cmpsb byte [esi], byte es:[edi]
setne cl
mov byte [edx], cl
call fcn.00542796
mov eax, dword [ebp + 0x2f04]
push eax
call fcn.00542796
add esp, 8
mov dword [ebp + 0x2f04], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebx
call fcn.00542796
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4fa26c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4fd000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5650bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0x569200
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov ecx, dword [0x5c2a74]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [eax], ecx
mov edx, dword [0x5c2a74]
lea edi, [esi + 0x1c]
mov dword [edi], edx
mov ecx, dword [0x5c2a74]
lea ebp, [esi + 0x20]
mov dword [ebp], ecx
mov edx, dword [0x5c2a74]
lea ebx, [esi + 0x2c]
mov dword [ebx], edx
mov ecx, dword [0x5c2a74]
mov dword [esi + 0x30], ecx
mov edx, dword [0x5c2a74]
mov dword [esi + 0x34], edx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1c], 6
push ecx
push 0x5a3e24
push eax
mov dword [esi], 0x5723d0
call fcn.0053afda
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4fd0ad
push eax
push 0x5a3e24
push edi
call fcn.0053afda
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4fd0c4
push eax
push 0x5a3e24
push ebp
call fcn.0053afda
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
push 0x5a3e24
push ebx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
call fcn.0053afda
mov edx, dword [esp + 0x48]
add esp, 0xc
test edx, edx
je 0x4fd10d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4fd10d
push edx
lea eax, [esi + 0x30]
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4fd135
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4fd135
push edx
lea eax, [esi + 0x34]
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x4fd6a0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x56516e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x48]
call fcn.004cb110
xor eax, eax
mov dword [esi], 0x5723d4
mov dword [esi + 0x210], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x270], eax
mov dword [esi + 0x248], eax
mov dword [esi + 0x280], eax
mov dword [esi + 0x258], eax
mov dword [esp + 0x220], eax
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x28c], eax
mov dword [esi + 0x294], eax
mov byte [esi + 0xc8], al
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x26c], eax
mov dword [esi + 0x274], eax
mov dword [esi + 0x24c], eax
mov dword [esi + 0x278], eax
mov dword [esi + 0x284], eax
mov dword [esi + 0x288], eax
mov dword [esi + 0x228], eax
mov dword [esi + 0x25c], eax
mov dword [esi + 8], eax
mov dword [esi + 0x1cc], eax
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x1d4], eax
mov dword [esi + 0x1d8], eax
mov dword [esi + 0x1e4], eax
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1ec], eax
mov dword [esi + 0x1f4], eax
lea eax, [esp + 0x88]
mov dword [esi + 0x1fc], 0x10
push eax
push 0x101
mov dword [esi + 0x200], 1
mov dword [esi + 0x1dc], 1
mov dword [esi + 0x1f0], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4fd7f6
push 1
push 1
lea ecx, [esp + 0x10]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push ecx
call fcn.00527718
add esp, 0x10
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004fd970
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x4fda10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4fda5a
mov cl, byte [0x5c7173]
test cl, cl
je 0x4fda5a
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.bUseSpeedLimiter
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fda5a
mov eax, dword [esp + 8]
mov dword [esi + 0x1f8], eax
pop esi
add esp, 8
ret

Function at 0x4fe4a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4fe506
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push 8
push ecx
push 0
push 0
push str.Downloaded
push eax
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x220]
cmp eax, 0x64
mov dword [esp + 8], eax
jle 0x4fe506
mov eax, dword [esi + 0x294]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.Speed
push eax
call edi
pop edi
pop esi
add esp, 0xc
ret