joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a2f70
Capabilities:
Enumerate pe sections
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x18]
mov edi, ecx
cmp eax, ebx
jbe 0x5a2fac
cmp dword [esi + 0x20], ebx
jne 0x5a2fac
push eax
mov ecx, esi
call fcn.005a5630
test al, al
jne 0x5a2fac
push str.Err_in_RTMPConn_17_n
mov ecx, edi
call fcn.0054c4f0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 4
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ebp, dword [edi + 0x346c]
sub eax, edx
cmp ebp, ebx
jne 0x5a2fc4
mov ebp, dword [edi + 0x3468]
cmp eax, ebp
jge 0x5a2fca
mov ebp, eax
test ebp, ebp
mov dword [edi + 0x346c], ebx
je 0x5a3032
mov eax, dword [edi + 0xb0]
cmp dword [eax + 0x24], 5
jne 0x5a2ff3
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
add ecx, edx
push ebp
push ecx
mov ecx, edi
call fcn.0059ecf0
jmp 0x5a300b
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
push 0
add edx, eax
mov eax, dword [edi + 0x31d8]
push ebp
push edx
push eax
call sub.WS2_32.dll_recv
mov ebx, eax
push str.recv_pheader
push ebx
mov ecx, edi
call fcn.0054c5b0
mov ecx, eax
test ecx, ecx
je 0x5a3032
sub eax, 0x2733
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, ecx
pop ebx
ret 4
mov ecx, dword [esi + 0x1c]
add ecx, ebx
cmp ebx, ebp
mov dword [esi + 0x1c], ecx
je 0x5a304f
sub ebp, ebx
xor eax, eax
mov dword [edi + 0x346c], ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
xor eax, eax
mov dl, byte [esi + 4]
mov al, byte [esi + 6]
lea ecx, [eax + eax*4]
lea eax, [edi + ecx*8 + 0x3498]
mov byte [eax + 4], dl
mov cl, byte [esi + 5]
mov byte [eax + 5], cl
mov dl, byte [esi + 6]
mov byte [eax + 6], dl
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
mov cl, byte [esi + 0x10]
mov byte [eax + 0x10], cl
mov edx, dword [esi + 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x1c], edx
mov ecx, dword [esi + 0x20]
mov dword [eax + 0x20], ecx
mov dl, byte [esi + 0x24]
mov byte [eax + 0x24], dl
mov ecx, edi
mov dword [edi + 0x8c], 0x15
mov dword [edi + 0x346c], 0
call fcn.0054e940
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
cmp eax, ecx
jne 0x5a3132
mov cl, byte [esi + 0x10]
mov eax, dword [esi + 8]
test cl, cl
mov dword [esi + 0x14], eax
jne 0x5a30e3
xor ecx, ecx
mov cl, byte [esi + 6]
mov edx, dword [edi + ecx*4 + 0x4898]
add edx, eax
mov dword [esi + 0x14], edx
mov ecx, dword [esi + 0x14]
xor eax, eax
mov al, byte [esi + 6]
push esi
mov dword [edi + eax*4 + 0x4898], ecx
xor eax, eax
mov al, byte [esi + 6]
xor ecx, ecx
lea edx, [eax + eax*4]
xor eax, eax
mov dword [edi + edx*8 + 0x34b8], ecx
mov al, byte [esi + 6]
lea eax, [eax + eax*4]
mov dword [edi + eax*8 + 0x34b4], ecx
xor eax, eax
mov al, byte [esi + 6]
add eax, 0x151
lea ecx, [eax + eax*4]
mov byte [edi + ecx*8], 0
mov ecx, edi
call fcn.005a3400
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.005a56d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x5a4770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62cd10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00540c10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 0
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.00541060
test eax, eax
jge 0x5a47c7
push str.Error_decoding_metadata_n
mov ecx, esi
call fcn.0054c4f0
jmp 0x5a4941
push 0
lea ecx, [esp + 0x10]
call fcn.005411d0
mov ecx, eax
call fcn.00540560
push eax
lea ecx, [esp + 0xc]
call fcn.00602b44
mov edx, dword [esp + 8]
push str.onMetaData
push edx
mov byte [esp + 0x30], 1
call fcn.005e7b5a
add esp, 8
test eax, eax
jne 0x5a4933
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.duration
call fcn.00602b44
lea ecx, [esp + 0x14]
push ecx
call fcn.005a4680
add esp, 0xc
test al, al
je 0x5a4933
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x5a48b6
mov edi, dword [esi + 0xb0]
fld qword [edi + 0x360]
fcomp qword [0x633d48]
fnstsw ax
test ah, 0x41
jne 0x5a48b6
mov ecx, dword [esp + 0x30]
call fcn.00540530
fcomp qword [edi + 0x360]
fnstsw ax
test ah, 0x40
jne 0x5a4924
mov edx, dword [0x6cc708]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0xb0]
mov byte [esp + 0x28], 2
mov ecx, dword [eax + 0x364]
push ecx
mov edx, dword [eax + 0x360]
lea eax, [esp + 0x38]
push edx
push str.Duration_dont_match__New_duration___f_n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x44]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0054c4f0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x34]
jmp 0x5a491f
mov ecx, dword [esp + 0x30]
call fcn.00540530
mov edx, dword [esi + 0xb0]
fstp qword [edx + 0x360]
mov ecx, dword [esi + 0x31dc]
call fcn.005a8110
mov eax, dword [0x6cc708]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0xb0]
mov byte [esp + 0x28], 3
mov edx, dword [ecx + 0x364]
push edx
mov eax, dword [ecx + 0x360]
lea ecx, [esp + 0x38]
push eax
push str.Duration___f_n
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x44]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0054c4f0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x34]
call fcn.00602ad6
mov eax, dword [0x6d2588]
push 1
push eax
mov ecx, esi
call fcn.0054c420
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00602ad6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00540c80
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 8
Function at 0x5a6da0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
push str._dkf
push ecx
call fcn.005e6db3
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x104]
add esp, 0xc
lea eax, [esp + 4]
push 0x10
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
add esp, 0x10
ret 8

Function at 0x5a6df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
push str._dkf
push ecx
call fcn.005e6db3
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 4]
push edx
mov edx, dword [esi + 0x104]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 0x10
ret 8
Function at 0x5a6e50
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x62ce90
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 + 0x28]
call fcn.00541820
mov ecx, dword [0x6cc708]
xor eax, eax
mov dword [esp + 0x220], eax
mov dword [esi + 0x130], ecx
mov edx, dword [0x6cc708]
mov dword [esi + 0x184], edx
mov dword [esi], 0x63e1cc
mov ecx, 1
mov dword [esi + 0x1a4], 0x20
mov dword [esi + 0x1a8], ecx
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x170], eax
mov edx, dword [0x6d0e00]
mov byte [esp + 0x220], 2
mov dword [esi + 0x168], edx
mov edx, dword [0x6d0e04]
mov dword [esi + 0x16c], edx
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1c0], eax
mov dword [esi + 0x188], eax
mov dword [esi + 0x198], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x228], eax
mov dword [esi + 0x200], eax
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x190], eax
mov dword [esi + 0x19c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x234], eax
mov dword [esi + 0x23c], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x1f4], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x22c], eax
mov dword [esi + 0x230], eax
mov dword [esi + 0x1d0], eax
mov dword [esi + 0x204], eax
mov dword [esi + 8], eax
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x180], eax
mov dword [esi + 0x160], eax
lea eax, [esp + 0x88]
push eax
push 0x202
mov dword [esi + 0x148], ecx
mov dword [esi + 0x15c], 0xffffffff
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x5a7011
push 2
push 2
lea ecx, [esp + 0x10]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push ecx
call fcn.005e6db3
add esp, 0x10
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.005a71f0
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x5a72c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a7357
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.bUseSpeedLimiter
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
jne 0x5a7357
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esi + 0x1a0], eax
mov eax, dword [esi + 0x23c]
push 0
push 0
push str.psnSpeedLimit
push eax
mov dword [esi + 0x174], 1
mov dword [esp + 0x20], 8
call edi
test eax, eax
jne 0x5a7357
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 0x5a7360
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a73df
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.nSkFr1
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
jne 0x5a73df
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x23c]
push 0
push 0
push str.dLstDrSk1
push eax
mov dword [esp + 0x20], 8
call edi
test eax, eax
jne 0x5a73df
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x198], ecx
mov dword [esi + 0x19c], edx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5a8000
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a8103
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
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 0x6b5624
push eax
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x1c8]
cmp eax, 0x64
mov dword [esp + 8], eax
jle 0x5a806a
mov eax, dword [esi + 0x23c]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.Speed
push eax
call edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x24]
cmp ecx, 4
je 0x5a8084
cmp ecx, 5
je 0x5a8084
mov ecx, dword [eax + 0x2fc]
test ecx, ecx
je 0x5a80a7
fld qword [esi + 0x188]
mov edx, dword [esi + 0x23c]
lea ecx, [esp + 0x14]
push 8
push ecx
push 0
push 0
push str.dwnlDuration
push edx
fstp qword [esp + 0x2c]
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5a8103
mov eax, dword [esi + 0x190]
test eax, eax
jle 0x5a8103
mov ecx, dword [esi + 0x23c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push str.nSkFr1
push ecx
call edi
mov edx, dword [esi + 0x198]
mov eax, dword [esi + 0x19c]
lea ecx, [esp + 0x14]
push 8
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x23c]
push 0
push 0
push str.dLstDrSk1
push edx
mov dword [esp + 0x30], eax
call edi
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x5a8110
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc]
fld qword [ecx + 0x360]
fcomp qword [0x633d48]
fnstsw ax
test ah, 0x41
jne 0x5a81f9
mov eax, dword [ecx + 0x2fc]
test eax, eax
jne 0x5a8152
mov edi, dword [esi + 0x1b0]
mov ecx, esi
call fcn.005a7560
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1b0], edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [eax]
test eax, eax
je 0x5a8170
push 0
push 0x146d
push 0x111
push eax
call edi
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x5a818d
mov edx, dword [esi + 0x238]
push edx
push 0x146d
push 0x111
push eax
call edi
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x5a81a5
push 0
push 0x146d
push 0x111
push eax
call edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a81f9
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add ecx, 0x360
push 8
push ecx
push 0
push 0
push str.Duration
push eax
call edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x2fc]
test ecx, ecx
je 0x5a81f9
lea eax, [esp + 8]
push 4
push eax
mov edx, ecx
mov ecx, dword [esi + 0x23c]
push 4
push 0
push str.nAggrV
push ecx
mov dword [esp + 0x20], edx
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x5a8200
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
add eax, 0xf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
je 0x5a828f
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edx]
test eax, eax
je 0x5a8233
push 0
push 0x14a5
push 0x111
push eax
call edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x5a8250
mov ecx, dword [esi + 0x238]
push ecx
push 0x14a5
push 0x111
push eax
call edi
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x5a8268
push 0
push 0x14a5
push 0x111
push eax
call edi
mov eax, dword [esi + 0x23c]
pop edi
test eax, eax
je 0x5a828f
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 0x5a82a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x5a836f
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push str.Duration
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5a836f
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x360], ecx
mov dword [eax + 0x364], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x2fc]
test ecx, ecx
jne 0x5a831c
mov edi, dword [esi + 0x1b0]
mov ecx, esi
call fcn.005a7560
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1b0], edi
mov ecx, dword [esi + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ecx]
test eax, eax
je 0x5a833a
push 0
push 0x146d
push 0x111
push eax
call edi
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x5a8357
mov ecx, dword [esi + 0x238]
push ecx
push 0x146d
push 0x111
push eax
call edi
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x5a836f
push 0
push 0x146d
push 0x111
push eax
call edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x5a88d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62cf70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
xor ebx, ebx
push eax
push ecx
mov dword [esi + 0x1cc], ebx
mov edx, dword [0x6d12f4]
push ebx
push ebx
push str.NewConnType
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 4
call edi
test eax, eax
jne 0x5a8935
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1cc], eax
jmp 0x5a8985
mov eax, dword [0x6d12f4]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push edx
push ebx
push ebx
push str.ConnectionSpeed
push eax
mov dword [ebp - 0x14], 4
call edi
test eax, eax
jne 0x5a8985
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x5a8985
cmp eax, 0x1f400
ja 0x5a8971
mov dword [esi + 0x1cc], 1
jmp 0x5a8985
mov ecx, 0x7d000
cmp ecx, eax
sbb edx, edx
neg edx
add edx, 2
mov dword [esi + 0x1cc], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, 0x6d1188
call fcn.004eb5b0
push eax
mov ecx, esi
call fcn.005a73f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5afcc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
push edi
xor edi, edi
cmp eax, edi
jne 0x5afcd7
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push edi
push edi
push 3
push edi
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5afcf9
pop edi
xor eax, eax
pop esi
add esp, 8
ret
lea ecx, [esp + 0x14]
push edi
xor eax, eax
push ecx
lea edx, [esp + 0x10]
push 8
mov dword [esp + 0x14], eax
push edx
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5afd3c
cmp dword [esp + 0x14], 8
jne 0x5afd3c
lea ecx, [esp + 0xc]
mov eax, str.ftyp
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edx, ecx
jne 0x5afd3c
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x5b2110
Capabilities:
Access peb ldr_data
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x62da38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 0xc]
push edi
push eax
push esi
push 0
push 0
push ecx
push ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b2181
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b2181
push esi
call fcn.005bdce0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x2c]
push edx
push esi
push 0
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b2235
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b2235
mov eax, dword [0x6cc708]
mov dword [esp + 0x28], eax
push esi
lea ecx, [esp + 0x2c]
push 0x6a00a0
push ecx
mov dword [esp + 0x28], 0
call fcn.005fb90b
mov edx, dword [esp + 0x34]
push edx
call fcn.005bdce0
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x40]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5b220c
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00602ad6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5b2250
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0x62da58
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
push esi
test eax, eax
push edi
je 0x5b22b0
test edx, edx
je 0x5b2285
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x5b22b0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push esi
call edi
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6cc708]
mov dword [esp + 0x28], eax
push edx
lea ecx, [esp + 0x2c]
push 0x6a00a0
push ecx
mov dword [esp + 0x1c], 0
call fcn.005fb90b
mov edx, dword [esp + 0x34]
push edx
call fcn.005bdce0
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
mov esi, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5b2311
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x5b2340
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b2389
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x5b2389
push esi
call fcn.005bdce0
add esp, 4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5b2390
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x62da78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6cc708]
push edi
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
push ecx
push 0x6a00a0
push edx
mov dword [esp + 0x1c], 0
call fcn.005fb90b
mov eax, dword [esp + 0x10]
push eax
call fcn.005bdce0
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push eax
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00602ad6
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret