joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5830
Capabilities:
Contain obfuscated stackstrings
Encode data using base64
Parse pe header

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x50]
push edi
xor edi, edi
mov byte [esp + 8], 0x41
test ebp, ebp
mov byte [esp + 9], 0x42
mov byte [esp + 0xa], 0x43
mov byte [esp + 0xb], 0x44
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x46
mov byte [esp + 0xe], 0x47
mov byte [esp + 0xf], 0x48
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x4a
mov byte [esp + 0x12], 0x4b
mov byte [esp + 0x13], 0x4c
mov byte [esp + 0x14], 0x4d
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 0x4f
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0x51
mov byte [esp + 0x19], 0x52
mov byte [esp + 0x1a], 0x53
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1e], 0x57
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], 0x59
mov byte [esp + 0x21], 0x5a
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x66
mov byte [esp + 0x28], 0x67
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x69
mov byte [esp + 0x2b], 0x6a
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x6d
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0x71
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x75
mov byte [esp + 0x37], 0x76
mov byte [esp + 0x38], 0x77
mov byte [esp + 0x39], 0x78
mov byte [esp + 0x3a], 0x79
mov byte [esp + 0x3b], 0x7a
mov byte [esp + 0x3c], 0x30
mov byte [esp + 0x3d], 0x31
mov byte [esp + 0x3e], 0x32
mov byte [esp + 0x3f], 0x33
mov byte [esp + 0x40], 0x34
mov byte [esp + 0x41], 0x35
mov byte [esp + 0x42], 0x36
mov byte [esp + 0x43], 0x37
mov byte [esp + 0x44], 0x38
mov byte [esp + 0x45], 0x39
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x2f
jle 0x4d59f1
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x4c]
push ebx
push esi
mov esi, edx
shr esi, 1
lea edi, [esi + esi*2]
movsx edx, byte [eax]
sar edx, 2
inc ecx
add eax, 3
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
mov dl, byte [eax - 3]
movsx ebx, byte [eax - 2]
sar ebx, 4
and edx, 3
shl edx, 4
lea ebx, [esp + ebx + 0x10]
inc ecx
mov dl, byte [ebx + edx]
mov byte [ecx - 1], dl
mov dl, byte [eax - 2]
movsx ebx, byte [eax - 1]
sar ebx, 6
and edx, 0xf
inc ecx
lea ebx, [esp + ebx + 0x10]
mov dl, byte [ebx + edx*4]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
and edx, 0x3f
inc ecx
dec esi
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
jne 0x4d599a
pop esi
pop ebx
lea eax, [ebp + 1]
cmp edi, eax
jne 0x4d5a07
mov byte [ecx - 1], 0x3d
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
add ebp, 2
cmp edi, ebp
jne 0x4d5a16
mov al, 0x3d
mov byte [ecx - 2], al
mov byte [ecx - 1], al
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
Function at 0x4da270
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5596f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5b5ecc]
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.004f3600
mov eax, dword [esi + 0x9c]
mov ebx, 2
cmp dword [eax + 4], ebx
jne 0x4da2fc
mov ecx, dword [esi + 0x2f14]
test ecx, ecx
je 0x4da2d2
mov edx, dword [esi + 0x2f18]
test edx, edx
je 0x4da2fc
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.004de400
push 0x5ba440
lea ecx, [ebp - 0x14]
call fcn.00537b72
mov eax, dword [esi + 0x9c]
mov byte [ebp - 4], bl
cmp dword [eax + 4], 1
jne 0x4da334
mov eax, dword [esi + 0x2e94]
test eax, eax
je 0x4da334
push eax
lea ecx, [ebp - 0x14]
push 0x597ddc
push ecx
call fcn.0053091a
add esp, 0xc
mov edx, dword [esi + 0x9c]
cmp dword [edx + 4], ebx
jne 0x4da357
mov eax, dword [esi + 0x2f08]
lea ecx, [ebp - 0x14]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
add esp, 0xc
mov edx, dword [esi + 0x2ef4]
mov eax, dword [edx - 8]
test eax, eax
je 0x4da37b
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x1eb]
test cl, cl
jne 0x4da37b
mov eax, dword [esi + 0x2ef8]
test eax, eax
je 0x4da393
mov ecx, dword [esi + 0x2f08]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4da39a
mov edx, dword [esi + 0x9c]
cmp dword [edx + 4], ebx
jne 0x4da39a
mov ecx, str.Connection:_Keep_Alive_r_n
jmp 0x4da39f
mov ecx, 0x5ba440
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.0053091a
add esp, 0x18
mov ecx, esi
mov dword [esi + 0x5c], 0x10
call fcn.004c7fd0
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.004c7530
mov edi, eax
test edi, edi
jne 0x4da434
mov eax, dword [ebp + 8]
test eax, eax
je 0x4da434
push edi
mov ecx, esi
call fcn.004d9a10
lea ecx, [ebp - 0x14]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
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.00537b04
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00537b04
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 0x4da670
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 0x4da70c
cmp dword [esi + 0x5c], 0x10
je 0x4da70c
mov eax, dword [esi + 0x3060]
test eax, eax
je 0x4da6b2
mov edx, dword [esi + 0x2ec4]
mov ecx, dword [esi + 0x3064]
xor eax, eax
cmp eax, edx
jg 0x4da6c3
jl 0x4da6b2
cmp ecx, dword [esi + 0x2ec0]
jae 0x4da6c3
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x4da6c3
cmp eax, 0x2733
jne 0x4da708
mov edx, dword [esi + 0x2ec4]
mov ecx, dword [esi + 0x3064]
xor eax, eax
cmp eax, edx
jg 0x4da6df
jl 0x4da68c
cmp ecx, dword [esi + 0x2ec0]
jb 0x4da68c
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.0051d640
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.004c7940
test eax, eax
jne 0x4da708
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 0x4da779
mov ebx, dword [esi + 0x2ec4]
add edi, ecx
mov eax, edi
cdq
cmp edx, ebx
jg 0x4da706
jl 0x4da75d
cmp eax, dword [esi + 0x2ec0]
jae 0x4da706
test ecx, ecx
je 0x4da706
mov ecx, dword [esi + 0x2e74]
push 0x1e
push ecx
mov ecx, esi
call fcn.004c7940
test eax, eax
je 0x4da722
pop edi
pop esi
pop ebx
ret
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
ret
Function at 0x4dd820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5597d0
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.004fed60
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 0x4dd917
mov ecx, dword [0x5ba8bc]
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 0x4dd8be
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4dd8be
mov bl, 1
mov edx, dword [esi + 0x7c]
mov eax, dword [edx + 8]
test eax, eax
je 0x4dd917
test bl, bl
jne 0x4dd917
push 0x3f
push eax
call fcn.0051c7f0
add esp, 8
test eax, eax
jne 0x4dd917
mov eax, dword [esi + 0x2e7c]
mov ecx, dword [eax + 0x1d0]
test ecx, ecx
jne 0x4dd90a
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x5bb54c]
push 0x50044
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x4dd917
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 0x4ded00
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x5b0f38
push edi
mov dword [ebx], edi
call fcn.0051ee10
mov esi, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x4ded59
mov al, byte [0x5bac50]
test al, al
jne 0x4ded46
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
push 0x5bac50
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebx], 0x5bac50
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 0x4ded7c
cmp al, 0x5c
je 0x4ded7c
cmp al, 0x2f
je 0x4ded7c
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 0x4df200
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 0x4df238
xor eax, eax
mov edx, dword [esi + 0x29c]
add eax, 0x3070
cmp eax, 0x30700
mov dword [edx + eax - 0x2fd8], ecx
jl 0x4df21d
pop esi
ret
xor eax, eax
mov ecx, dword [esi + 0x29c]
add eax, 0x3070
cmp eax, 0x30700
mov dword [ecx + eax - 0x2fd8], 0
jl 0x4df23a
pop esi
ret
Function at 0x4ecf70
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x559978
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 0x4ed035
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 [0x5b5ecc]
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.0053091a
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.004ec990
mov edi, eax
cmp edi, ebx
je 0x4ed0d7
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.00537b04
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.004f3d50
mov ecx, esi
call fcn.004c7fd0
lea ecx, [esp + 0xc]
mov dword [esi + 0x5c], 4
mov dword [esp + 0x40], 0xffffffff
call fcn.00537b04
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 0x4ee530
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 0x4ee54d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp ebx, 0x186a0
jbe 0x4ee55a
mov ebx, 0x186a0
mov eax, dword [ecx + 0x7c]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ee597
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4ee61d
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
push ebx
call fcn.005380a1
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ee5b9
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 0x4ee607
cmp dword [esp + 0xc], ebx
jne 0x4ee607
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.004ee6b0
push esi
mov edi, eax
call fcn.005380ca
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push esi
call fcn.005380ca
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x4ee61d
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4f0c40
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 0x4f0c5c
mov esi, 0x186a0
mov eax, dword [ebp + 0x7c]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f0c9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4f0d4c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push esi
call fcn.005380a1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4f0cc1
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 0x4f0d36
cmp dword [esp + 0x14], esi
jne 0x4f0d36
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.005380ca
mov eax, dword [ebp + 0x2f04]
push eax
call fcn.005380ca
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.005380ca
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4f0d4c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4f3790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559e0d
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], 0x55e200
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [eax], ecx
mov edx, dword [0x5b5ecc]
lea edi, [esi + 0x1c]
mov dword [edi], edx
mov ecx, dword [0x5b5ecc]
lea ebp, [esi + 0x20]
mov dword [ebp], ecx
mov edx, dword [0x5b5ecc]
lea ebx, [esi + 0x2c]
mov dword [ebx], edx
mov ecx, dword [0x5b5ecc]
mov dword [esi + 0x30], ecx
mov edx, dword [0x5b5ecc]
mov dword [esi + 0x34], edx
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x1c], 6
push ecx
push 0x597ddc
push eax
mov dword [esi], 0x566b58
call fcn.0053091a
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x4f383d
push eax
push 0x597ddc
push edi
call fcn.0053091a
add esp, 0xc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4f3854
push eax
push 0x597ddc
push ebp
call fcn.0053091a
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ecx
push 0x597ddc
push ebx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
call fcn.0053091a
mov edx, dword [esp + 0x48]
add esp, 0xc
test edx, edx
je 0x4f389d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f389d
push edx
lea eax, [esi + 0x30]
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4f38c5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f38c5
push edx
lea eax, [esi + 0x34]
push 0x597ddc
push eax
call fcn.0053091a
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 0x4f3e30
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x559ebe
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.004c2b70
xor eax, eax
mov dword [esi], 0x566b5c
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 + 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]
push eax
push 0x101
mov dword [esi + 0x1f8], 0x10
mov dword [esi + 0x1fc], 1
mov dword [esi + 0x1dc], 1
mov dword [esi + 0x1f0], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4f3f80
push 1
push 1
lea ecx, [esp + 0x10]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push ecx
call fcn.0051d0e8
add esp, 0x10
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004f4100
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x4f4af0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4f4b56
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 0x5a5e78
push eax
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x220]
cmp eax, 0x64
mov dword [esp + 8], eax
jle 0x4f4b56
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
Function at 0x4f4eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
xor edi, edi
push eax
push ecx
mov dword [esi + 0x224], edi
mov edx, dword [0x5ba8bc]
push edi
push edi
push str.ConnectionSpeed
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4f4f0b
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x224], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, 0x5ba7a0
call fcn.00487700
push eax
mov ecx, esi
call fcn.004f4110
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f52a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
je 0x4f52e3
mov eax, dword [esi + 0xc]
mov dword [eax + 0x1a8], 3
jmp 0x4f52f0
mov ecx, dword [esi + 0xc]
mov dword [ecx + 0x1ac], 3
mov ebx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4f53ae
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x38]
test eax, eax
jne 0x4f5314
mov eax, 0x5ba440
push eax
lea ecx, [ebp + 0xc]
call fcn.00537b72
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 8]
mov eax, 0x5b1924
test ecx, ecx
jg 0x4f5335
mov eax, 0x5ba440
push eax
lea ecx, [ebp + 0xc]
call fcn.00537ee0
push ebx
lea ecx, [ebp + 0xc]
call fcn.00537ee0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.004ffa80
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x4f5371
mov ecx, dword [esi + 0x64]
push ecx
push 0x139e
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x4f538f
mov ecx, dword [esi + 0x64]
push ecx
push 0x139e
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 8], 5
jne 0x4f53a2
mov edx, dword [esi + 0xc]
mov dword [edx + 0x1ac], 3
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [esi + 0x294]
test eax, eax
je 0x4f5403
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f53e1
mov ecx, dword [esi + 0xc]
push 4
add ecx, 0x1a8
push ecx
push 4
push 0
push str.fGDFB
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 8], 5
jne 0x4f5403
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x294]
add edx, 0x1ac
push 4
push edx
push 4
push 0
push str.fGDFE
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc