joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a5df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x49cc]
push edi
test eax, eax
jle 0x5a5e7d
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0x24], 5
mov ecx, dword [esi + 0x3224]
jne 0x5a5e24
sub eax, ecx
lea edx, [ecx + esi + 0x49d0]
push eax
push edx
mov ecx, esi
call fcn.005a1c80
jmp 0x5a5e3d
push 0
sub eax, ecx
push eax
lea eax, [ecx + esi + 0x49d0]
mov ecx, dword [esi + 0x31e8]
push eax
push ecx
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_pheader
push edi
mov ecx, esi
call fcn.00559750
mov ecx, eax
test ecx, ecx
je 0x5a5e62
sub eax, 0x2733
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
ret 4
add dword [esi + 0x3224], edi
mov eax, dword [esi + 0x3224]
cmp eax, dword [esi + 0x49cc]
je 0x5a5e7d
pop edi
xor eax, eax
pop esi
ret 4
push ebx
mov ecx, esi
call fcn.00559070
mov edi, dword [esp + 0x10]
xor bl, bl
cmp dword [esi + 0x49cc], 3
jl 0x5a5f5a
lea edx, [esi + 0x49d0]
push edx
call fcn.00562000
add esp, 4
mov dword [edi + 8], eax
cmp dword [esi + 0x49cc], 6
jl 0x5a5ee5
lea eax, [esi + 0x49d3]
push eax
call fcn.00562000
add esp, 4
mov ecx, edi
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
call fcn.005a7ce0
cmp dword [esi + 0x49cc], 6
jle 0x5a5ee5
mov cl, byte [esi + 0x49d6]
mov byte [edi + 5], cl
cmp dword [esi + 0x49cc], 0xb
jne 0x5a5f00
lea edx, [esi + 0x49d7]
push edx
call fcn.0054c1c0
add esp, 4
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0xffffff
jne 0x5a5f5a
mov eax, dword [esi + 0xc0]
cmp dword [eax + 0x24], 5
jne 0x5a5f25
push 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.005a1c80
jmp 0x5a5f3a
mov eax, dword [esi + 0x31e8]
push 0
push 4
lea edx, [esp + 0x18]
push edx
push eax
call sub.WS2_32.dll_recv
cmp eax, 4
je 0x5a5f48
pop ebx
pop edi
or eax, 0xffffffff
pop esi
ret 4
lea ecx, [esp + 0x10]
push ecx
call fcn.0059fd30
add esp, 4
mov dword [edi + 0x14], eax
mov bl, 1
movzx eax, byte [edi + 5]
add eax, 0xfffffff8
xor cl, cl
cmp eax, 0xe
ja case.0x5a5f6f.10
movzx edx, byte [eax + 0x5a5ff0]
jmp dword [edx*4 + 0x5a5fe8]
mov cl, 1
test bl, bl
jne 0x5a5f82
mov eax, dword [edi + 8]
mov dword [edi + 0x14], eax
cmp byte [edi + 0x10], 0
jne 0x5a5f96
movzx edx, byte [edi + 6]
mov eax, dword [esi + edx*4 + 0x48a8]
add dword [edi + 0x14], eax
test cl, cl
mov ecx, esi
je 0x5a5fbd
mov dword [esi + 0x9c], 0x18
call fcn.0059f730
test eax, eax
jne 0x5a5fde
push edi
mov ecx, esi
call fcn.005a6130
pop ebx
pop edi
pop esi
ret 4
mov dword [esi + 0x9c], 0x17
call fcn.0059f730
test eax, eax
jne 0x5a5fde
push edi
mov ecx, esi
call fcn.005a5c70
pop ebx
pop edi
pop esi
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x5a6000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc0]
mov dword [esi + 0x3230], 0
cmp dword [eax + 0x24], 5
jne 0x5a602a
push 1
lea ecx, [esp + 0xb]
push ecx
mov ecx, esi
call fcn.005a1c80
jmp 0x5a603f
mov eax, dword [esi + 0x31e8]
push 0
push 1
lea edx, [esp + 0xf]
push edx
push eax
call sub.WS2_32.dll_recv
push str.recv_pheader_type
push eax
mov ecx, esi
call fcn.00559750
mov ecx, eax
test ecx, ecx
je 0x5a6062
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
pop esi
pop ecx
ret 4
push edi
mov ecx, esi
call fcn.00559070
mov cl, byte [esp + 0xb]
mov edi, dword [esp + 0x10]
mov al, cl
sar al, 6
and al, 3
and cl, 0x3f
mov byte [edi + 4], al
mov byte [edi + 6], cl
jne 0x5a608f
pop edi
mov eax, 0xffffffff
pop esi
pop ecx
ret 4
cmp cl, 1
jne 0x5a609d
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 4
movzx ecx, al
mov eax, dword [ecx*4 + 0x6a83cc]
mov dword [esi + 0x49cc], eax
cmp eax, 0xc
jne 0x5a60b6
mov byte [edi + 0x10], 1
cmp dword [esi + 0x49cc], 0xc
jge 0x5a60dd
mov ecx, edi
call fcn.005a7ce0
movzx eax, byte [edi + 6]
add eax, 0x151
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
push eax
mov ecx, edi
call fcn.0059fe80
dec dword [esi + 0x49cc]
xor eax, eax
mov dword [esi + 0x49d0], eax
mov dword [esi + 0x49d4], eax
mov dword [esi + 0x49d8], eax
cmp dword [esi + 0x49cc], eax
mov dword [esi + 0x9c], 0x16
mov dword [esi + 0x3224], eax
mov ecx, esi
jle 0x5a6124
call fcn.0059f730
test eax, eax
je 0x5a6122
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
mov ecx, esi
push edi
call fcn.005a5df0
pop edi
pop esi
pop ecx
ret 4
Function at 0x5a86d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659b90
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._dkf
lea ecx, [ebp - 0x24]
push ecx
call fcn.006186ab
add esp, 0xc
push 0x10
push edi
push 0
push 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret 8

Function at 0x5a8780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x74d890]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._dkf
lea ecx, [ebp - 0x24]
push ecx
call fcn.006186ab
add esp, 0xc
mov dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x2c]
push edx
push edi
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [esi + 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a8818
mov eax, 1
jmp 0x5a881a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006157d3
mov esp, ebp
pop ebp
ret 8
Function at 0x5a9490
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a950b
cmp dword [esi + 0x174], 0
push edi
je 0x5a94ee
mov ecx, dword [esi + 0x1a0]
test ecx, ecx
je 0x5a94ee
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.bUseSpeedLimiter
push eax
call edi
mov eax, dword [esi + 0x23c]
push 8
lea edx, [esi + 0x168]
push edx
push 0
push 0
push str.psnSpeedLimit
push eax
call edi
pop edi
pop esi
pop ecx
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.bUseSpeedLimiter
push eax
call edi
mov ecx, dword [esi + 0x23c]
push str.psnSpeedLimit
push ecx
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x5a9510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a95a8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.bUseSpeedLimiter
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
jne 0x5a95a7
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
mov dword [esi + 0x1a0], eax
mov eax, dword [esi + 0x23c]
push str.psnSpeedLimit
push eax
mov dword [esi + 0x174], 1
mov dword [esp + 0x20], 8
call edi
test eax, eax
jne 0x5a95a7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x16c], edx
mov dword [esi + 0x170], 1
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5a95b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a9626
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.nSkFr1
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
jne 0x5a9625
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x23c]
push str.dLstDrSk1
push eax
mov dword [esp + 0x20], 8
call edi
test eax, eax
jne 0x5a9625
fld qword [esp + 0x10]
fstp qword [esi + 0x198]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x5a98d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659c70
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 0x23c], 0
je 0x5a99f9
mov dword [ebp - 4], 0
wait
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
push 8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x69008c
mov ecx, dword [esi + 0x23c]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x14], eax
cmp eax, 0x64
jle 0x5a996b
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push 0
push str.Speed
mov eax, dword [esi + 0x23c]
push eax
call edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
cmp ecx, 4
je 0x5a9984
cmp ecx, 5
je 0x5a9984
cmp dword [eax + 0x320], 0
je 0x5a99a5
fld qword [esi + 0x188]
fstp qword [ebp - 0x28]
push 8
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push str.dwnlDuration
mov edx, dword [esi + 0x23c]
push edx
call edi
cmp dword [ebp + 8], 0
je 0x5a99f1
mov eax, dword [esi + 0x190]
test eax, eax
jle 0x5a99f1
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.nSkFr1
mov ecx, dword [esi + 0x23c]
push ecx
call edi
fld qword [esi + 0x198]
fstp qword [ebp - 0x30]
push 8
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push str.dLstDrSk1
mov eax, dword [esi + 0x23c]
push eax
call edi
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5a9a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659c90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
wait
mov ecx, dword [esi + 0xc]
fldz
fcomp qword [ecx + 0x3a8]
fnstsw ax
test ah, 1
jne 0x5a9a8a
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x320], 0
jne 0x5a9aac
mov edi, dword [esi + 0x1b0]
mov ecx, esi
call fcn.005a96c0
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1b0], edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax], 0
je 0x5a9acb
push 0
push 0x146d
push 0x111
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x5a9ae9
mov ecx, dword [esi + 0x238]
push ecx
push 0x146d
push 0x111
mov edx, dword [eax]
push edx
call edi
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x5a9b02
push 0
push 0x146d
push 0x111
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a9b57
push 8
mov ecx, dword [esi + 0xc]
add ecx, 0x3a8
push ecx
push 0
push 0
push str.Duration
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x320], 0
je 0x5a9b57
mov edx, dword [eax + 0x320]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.nAggrV
mov ecx, dword [esi + 0x23c]
push ecx
call edi
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a9b80
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xf0]
or ecx, dword [eax + 0xf4]
je 0x5a9c12
mov eax, dword [esi + 0x10]
cmp dword [eax], 0
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
je 0x5a9bb4
mov edx, dword [eax]
push 0
push 0x14a5
push 0x111
push edx
call edi
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x5a9bd2
mov ecx, dword [esi + 0x238]
mov edx, dword [eax]
push ecx
push 0x14a5
push 0x111
push edx
call edi
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x5a9beb
mov eax, dword [eax]
push 0
push 0x14a5
push 0x111
push eax
call edi
mov eax, dword [esi + 0x23c]
pop edi
test eax, eax
je 0x5a9c12
mov ecx, dword [esi + 0xc]
push 8
add ecx, 0xf0
push ecx
push 0
push 0
push str.nExpectedSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret
Function at 0x5a9c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
wait
mov eax, dword [esi + 0x23c]
test eax, eax
jne 0x5a9c72
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push str.Duration
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a9c5f
mov eax, dword [esi + 0xc]
fld qword [ebp - 0x1c]
fstp qword [eax + 0x3a8]
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x320], 0
jne 0x5a9cc6
mov edi, dword [esi + 0x1b0]
mov ecx, esi
call fcn.005a96c0
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1b0], edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax], 0
je 0x5a9ce5
push 0
push 0x146d
push 0x111
mov edx, dword [eax]
push edx
call edi
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x5a9d03
mov ecx, dword [esi + 0x238]
push ecx
push 0x146d
push 0x111
mov edx, dword [eax]
push edx
call edi
mov esi, dword [esi + 0x18]
cmp dword [esi], 0
je 0x5a9d1c
push 0
push 0x146d
push 0x111
mov eax, dword [esi]
push eax
call edi
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5a9d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [esi + 0x1cc], eax
mov dword [ebp - 4], eax
mov ebx, 4
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
push eax
push str.NewConnType
mov eax, dword [0x752bcc]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x5a9dbf
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x1cc], ecx
jmp 0x5a9e0e
mov dword [ebp - 0x14], ebx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push str.ConnectionSpeed
mov ecx, dword [0x752bcc]
push ecx
call edi
test eax, eax
jne 0x5a9e0e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5a9e0e
cmp eax, 0x1f400
ja 0x5a9dfa
mov dword [esi + 0x1cc], 1
jmp 0x5a9e0e
mov edx, 0x7d000
cmp edx, eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esi + 0x1cc], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [eax + 0x24]
push edx
mov ecx, 0x752d3c
call fcn.004f3b90
push eax
mov ecx, esi
call fcn.005a9630
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a9e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x81c
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x818], eax
mov edx, dword [esp + 0x828]
mov eax, dword [esp + 0x82c]
push esi
mov esi, dword [esp + 0x828]
push edi
mov edi, dword [esp + 0x828]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5a9f73
push 0x801
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00615eb0
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x800
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a9f73
mov esi, dword [esp + 0xc]
test esi, esi
je 0x5a9f73
lea eax, [esp + 0xb]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push esi
mov ecx, edi
mov byte [esp + 0x1f], 0
mov dword [esp + 0x28], 0
call fcn.00558a30
test al, al
je 0x5a9f64
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.006157d3
add esp, 0x81c
ret
cmp byte [esp + 0xb], 0
je 0x5a9f73
cmp esi, 0x104
ja 0x5a9f4b
mov ecx, dword [esp + 0x820]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.006157d3
add esp, 0x81c
ret
Function at 0x5aa4c0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x659d70
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x28]
mov dword [esp + 0x10], esi
mov dword [esi], vtable.Session.0
call fcn.0054c440
xor edi, edi
mov dword [esp + 0x230], edi
lea ecx, [esi + 0x130]
call fcn.00402500
mov ebx, 1
mov byte [esp + 0x230], bl
lea ecx, [esi + 0x184]
call fcn.00402500
mov byte [esp + 0x230], 2
fldz
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1a4], 0x20
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x170], edi
mov eax, dword [0x752e60]
mov dword [esi + 0x168], eax
mov ecx, dword [0x752e64]
fst qword [esi + 0x188]
lea edx, [esp + 0x14]
fstp qword [esi + 0x198]
mov dword [esi + 0x148], ebx
push edx
or ebx, 0xffffffff
push 0x202
mov dword [esi + 0x16c], ecx
mov dword [esi + 0x174], edi
mov dword [esi + 0x178], edi
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov dword [esi + 0x190], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x214], edi
mov dword [esi + 0x218], edi
mov dword [esi + 0x21c], edi
mov dword [esi + 0x1f0], edi
mov dword [esi + 0x1f4], edi
mov dword [esi + 0x220], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x200], edi
mov dword [esi + 0x204], edi
mov dword [esi + 8], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x15c], ebx
mov dword [esi + 0x17c], edi
mov dword [esi + 0x180], edi
mov dword [esi + 0x160], edi
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x5aa69b
push 2
push 2
lea eax, [esp + 0x1ac]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push eax
call fcn.006186ab
add esp, 0x10
lea ecx, [esp + 0x1a4]
push ecx
mov ecx, esi
call fcn.005a9f90
mov dword [esp + 0x230], ebx
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.006157d3
add esp, 0x224
ret
Function at 0x5ac0b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x752bcc]
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0
push str.bSetServerTimeToFile
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 4]
add esp, 8
ret

Function at 0x5ac2b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a010
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x74d890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea edi, [esi + 0x20]
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.005c10d0
test eax, eax
je 0x5ac30b
push str.Not_enough_memory_during_call_to_SetDescription____n
lea ecx, [esi + 0x51c]
call fcn.00561720
jmp 0x5ac362
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x5ac362
cmp dword [esi + 0x49c], 0
jne 0x5ac32a
push eax
mov ecx, edi
call fcn.005c45f0
test al, al
je 0x5ac369
mov edx, dword [esi + 0x60]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5ac332
sub eax, edi
cmp byte [esi + 0x34e], cl
mov ecx, str.WDescription
jne 0x5ac34d
mov ecx, 0x67f988
inc eax
push eax
push edx
push 1
push 0
push ecx
mov ecx, dword [esi + 0x49c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5ac440
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x324], eax
mov eax, dword [esi + 0x4e8]
test eax, eax
je 0x5ac4b3
cmp dword [esi + 0x49c], 0
jne 0x5ac46e
push eax
lea ecx, [esi + 0x20]
call fcn.005c45f0
test al, al
je 0x5ac4b3
mov edx, dword [esi + 0x49c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.categoryID
push edx
call edi
movzx eax, byte [esi + 0x357]
mov edx, dword [esi + 0x49c]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.CISBU
push edx
mov dword [esp + 0x20], eax
call edi
pop edi
pop esi
pop ecx
ret 4
Function at 0x5ac630
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push edi
xor edi, edi
cmp eax, edi
jne 0x5ac65b
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.006157d3
add esp, 0x10
ret
push esi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x5ac6bb
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 8
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5ac6b2
cmp dword [esp + 8], 8
jne 0x5ac6b2
cmp dword [esp + 0x10], 0x70797466
jne 0x5ac6b2
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x14]
pop esi
pop edi
xor ecx, esp
call fcn.006157d3
add esp, 0x10
ret

Function at 0x5acac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5acb0d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5acaf1
sub eax, edx
je 0x5acb0d
push esi
call fcn.004501e0
add esp, 4
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret