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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jbe 0x5321bc
mov ecx, dword [esi + 0x20]
test ecx, ecx
jne 0x5321bc
push eax
mov ecx, esi
call fcn.00534310
test al, al
jne 0x5321bc
push str.Err_in_RTMPConn_17_n
mov ecx, edi
call fcn.004f73c0
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 4
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ebp, dword [edi + 0x3110]
sub eax, ecx
cmp eax, ebp
jge 0x5321d0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
je 0x532211
mov eax, dword [esi + 0x20]
push ebx
add eax, ecx
mov ecx, dword [edi + 0x30c0]
push ebp
push eax
push ecx
call sub.WSOCK32.dll_recv
mov ebx, eax
push str.recv_pheader
push ebx
mov ecx, edi
call fcn.004f7460
mov ecx, eax
test ecx, ecx
je 0x532211
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
jne 0x532304
xor eax, eax
mov cl, byte [esi + 4]
mov al, byte [esi + 6]
lea edx, [eax + eax*4]
lea eax, [edi + edx*8 + 0x313c]
mov byte [eax + 4], cl
mov dl, byte [esi + 5]
mov byte [eax + 5], dl
mov cl, byte [esi + 6]
mov byte [eax + 6], cl
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov dl, byte [esi + 0x10]
mov byte [eax + 0x10], dl
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x18]
mov dword [eax + 0x18], edx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x20]
mov dword [eax + 0x20], edx
mov cl, byte [esi + 0x24]
mov byte [eax + 0x24], cl
mov ecx, edi
mov dword [edi + 0x5c], 0x15
call fcn.004f80b0
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp edx, eax
jne 0x5322f6
mov cl, byte [esi + 0x10]
mov eax, dword [esi + 8]
test cl, cl
mov dword [esi + 0x14], eax
jne 0x5322a8
xor ecx, ecx
mov cl, byte [esi + 6]
mov edx, dword [edi + ecx*4 + 0x453c]
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 + 0x453c], 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 + 0x315c], ecx
mov al, byte [esi + 6]
lea eax, [eax + eax*4]
mov dword [edi + eax*8 + 0x3158], ecx
xor eax, eax
mov al, byte [esi + 6]
lea ecx, [eax + eax*4]
mov byte [edi + ecx*8 + 0x314c], 0
mov ecx, edi
call fcn.00532590
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.00534360
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x532bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ac428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00534290
mov eax, dword [edi + 0x4658]
push pe_nt_image_headers32
mov dword [esp + 0x48], 0
mov byte [esp + 0x1e], 3
lea ecx, [eax + eax*4]
mov byte [esp + 0x1c], 1
mov byte [esp + 0x1d], 0x14
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x18]
shl edx, 1
mov dword [esp + 0x20], edx
call fcn.00534310
mov esi, dword [esp + 0x34]
push str._result
lea ecx, [esp + 0xc]
call fcn.00586ba1
lea eax, [esp + 8]
push eax
push esi
call fcn.0052f390
add esp, 8
lea ecx, [esp + 8]
add esi, eax
call fcn.00586b33
call fcn.0052de70
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
fild qword [esp + 0xc]
sub esp, 8
fstp qword [esp]
push esi
call fcn.0052f3e0
add esi, eax
mov byte [esi], 5
mov eax, dword [edi + 0x4658]
mov dword [esp + 0x18], eax
inc esi
fild dword [esp + 0x18]
inc eax
mov dword [edi + 0x4658], eax
fstp qword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
call fcn.0052f3e0
mov edx, dword [esp + 0x4c]
add esp, 0x18
add esi, eax
lea eax, [esp + 0x14]
sub esi, edx
push eax
mov ecx, edi
mov dword [esp + 0x30], esi
call fcn.0052f490
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x44], 0xffffffff
call fcn.005342d0
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x5333d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ac4e0
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.004f0550
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.004f09a0
test eax, eax
jge 0x533427
push str.Error_decoding_metadata_n
mov ecx, esi
call fcn.004f73c0
jmp 0x5335a0
push 0
lea ecx, [esp + 0x10]
call fcn.004f0b00
mov ecx, eax
call fcn.004efea0
push eax
lea ecx, [esp + 0xc]
call fcn.00586ba1
mov edx, dword [esp + 8]
push str.onMetaData
push edx
mov byte [esp + 0x30], 1
call fcn.0056bf52
add esp, 8
test eax, eax
jne 0x533592
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.duration
call fcn.00586ba1
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.005332e0
test al, al
je 0x533592
mov eax, dword [esi + 0x98]
test eax, eax
je 0x533515
mov edi, dword [esi + 0x80]
fld qword [edi + 0x2e0]
fcomp qword [0x5b9340]
fnstsw ax
test ah, 0x41
jne 0x533515
mov ecx, dword [esp + 0x30]
call fcn.004efe90
fcomp qword [edi + 0x2e0]
fnstsw ax
test ah, 0x40
jne 0x533583
mov edx, dword [0x65ca8c]
mov dword [esp + 0x34], edx
mov eax, dword [esi + 0x80]
mov byte [esp + 0x28], 2
mov ecx, dword [eax + 0x2e4]
push ecx
mov edx, dword [eax + 0x2e0]
lea eax, [esp + 0x38]
push edx
push str.Duration_dont_match__New_duration___f_n
push eax
call fcn.0057f8fb
mov ecx, dword [esp + 0x44]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.004f73c0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x34]
jmp 0x53357e
mov ecx, dword [esp + 0x30]
call fcn.004efe90
mov edx, dword [esi + 0x80]
fstp qword [edx + 0x2e0]
mov ecx, dword [esi + 0x30c4]
call fcn.00536950
mov eax, dword [0x65ca8c]
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x80]
mov byte [esp + 0x28], 3
mov edx, dword [ecx + 0x2e4]
push edx
mov eax, dword [ecx + 0x2e0]
lea ecx, [esp + 0x38]
push eax
push str.Duration___f_n
push ecx
call fcn.0057f8fb
mov edx, dword [esp + 0x44]
add esp, 0x10
mov ecx, esi
push edx
call fcn.004f73c0
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x34]
call fcn.00586b33
mov eax, dword [0x66249c]
push 1
push eax
mov ecx, esi
call fcn.004f72f0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00586b33
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004f05c0
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 8
Function at 0x535930
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
push str._dkf
push ecx
call fcn.0056b4da
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0xbc]
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, 8
ret 8

Function at 0x535980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 8]
push str._dkf
push ecx
call fcn.0056b4da
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 4]
push edx
mov edx, dword [esi + 0xbc]
push eax
push 0
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
add esp, 8
ret 8

Function at 0x5359e0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x5ac62f
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.004f0ef0
mov ecx, dword [0x65ca8c]
xor eax, eax
mov dword [esp + 0x220], eax
mov dword [esi + 0xe8], ecx
lea edx, [esp + 0x88]
mov dword [esi + 0x140], eax
push edx
mov dword [esi + 0x148], eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x178], eax
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x188], eax
push 0x101
mov byte [esp + 0x228], 1
mov dword [esi], 0x5d9780
mov dword [esi + 0x12c], 0x10
mov dword [esi + 0x130], 1
mov dword [esi + 0x128], eax
mov dword [esi + 0x144], eax
mov dword [esi + 0x150], eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1c4], eax
mov dword [esi + 0xec], eax
mov dword [esi + 0x19c], eax
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x17c], eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x18c], eax
mov dword [esi + 8], eax
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], eax
mov dword [esi + 0xfc], eax
mov dword [esi + 0x100], 1
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], 0xffffffff
mov dword [esi + 0x118], eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x535b50
push 1
push 1
lea eax, [esp + 0x10]
push str.Cannot_find_Winsock_v_d._d_or_later__n
push eax
call fcn.0056b4da
add esp, 0x10
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00535ce0
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x535d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x535dca
mov cl, byte [0x66118b]
test cl, cl
je 0x535dca
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 0x535dca
mov eax, dword [esp + 8]
mov dword [esi + 0x128], eax
pop esi
add esp, 8
ret

Function at 0x5368b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x536946
mov ecx, dword [esi + 0x148]
mov edx, dword [esi + 0x14c]
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 0x647d30
push eax
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esi + 0x150]
cmp eax, 0x64
mov dword [esp + 8], eax
jle 0x53691a
mov eax, dword [esi + 0x1c4]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.Speed
push eax
call edi
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x24], 4
jne 0x536946
fld qword [esi + 0x120]
mov eax, dword [esi + 0x1c4]
lea edx, [esp + 0x14]
push 8
push edx
push 0
push 0
push str.dwnlDuration
push eax
fstp qword [esp + 0x2c]
call edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x536950
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
fld qword [eax + 0x2e0]
fcomp qword [0x5b9340]
fnstsw ax
test ah, 0x41
jne 0x5369ff
push edi
mov edi, dword [esi + 0x138]
call fcn.00535f10
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x130], eax
mov dword [esi + 0x138], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ecx]
test eax, eax
je 0x5369a3
push 0
push 0x146d
push 0x111
push eax
call edi
mov edx, dword [esi + 0x14]
mov eax, dword [edx]
test eax, eax
je 0x5369c0
mov ecx, dword [esi + 0x1c0]
push ecx
push 0x146d
push 0x111
push eax
call edi
mov edx, dword [esi + 0x18]
mov eax, dword [edx]
test eax, eax
je 0x5369d8
push 0
push 0x146d
push 0x111
push eax
call edi
mov eax, dword [esi + 0x1c4]
pop edi
test eax, eax
je 0x5369ff
mov ecx, dword [esi + 0xc]
push 8
add ecx, 0x2e0
push ecx
push 0
push 0
push str.Duration
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret
Function at 0x536a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x536ad2
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 0x536ad2
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x2e0], ecx
mov ecx, esi
mov dword [eax + 0x2e4], edx
mov edi, dword [esi + 0x138]
call fcn.00535f10
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x138], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [eax]
test eax, eax
je 0x536a9d
push 0
push 0x146d
push 0x111
push eax
call edi
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x536aba
mov edx, dword [esi + 0x1c0]
push edx
push 0x146d
push 0x111
push eax
call edi
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x536ad2
push 0
push 0x146d
push 0x111
push eax
call edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x536e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac6f0
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 + 0x154], edi
mov edx, dword [0x6614e8]
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 0x536eeb
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 0x24]
push ecx
push edx
mov ecx, 0x6613b8
call fcn.004acbc0
push eax
mov ecx, esi
call fcn.00535dd0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53de40
Capabilities:
Access peb ldr_data
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5acf58
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 0x53deb1
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x53deb1
push esi
call fcn.00545760
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 0x53df65
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x53df65
mov eax, dword [0x65ca8c]
mov dword [esp + 0x28], eax
push esi
lea ecx, [esp + 0x2c]
push 0x636fa0
push ecx
mov dword [esp + 0x28], 0
call fcn.0057f8fb
mov edx, dword [esp + 0x34]
push edx
call fcn.00545760
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 0x53df3c
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00586b33
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 0x53df80
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0x5acf78
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
push esi
test eax, eax
push edi
je 0x53dfe0
test edx, edx
je 0x53dfb5
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x53dfe0
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 [0x65ca8c]
mov dword [esp + 0x28], eax
push edx
lea ecx, [esp + 0x2c]
push 0x636fa0
push ecx
mov dword [esp + 0x1c], 0
call fcn.0057f8fb
mov edx, dword [esp + 0x34]
push edx
call fcn.00545760
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 0x53e041
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.00586b33
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret

Function at 0x53e070
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 0x53e0b9
push edi
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x53e0b9
push esi
call fcn.00545760
add esp, 4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x53e0c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5acf98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x65ca8c]
push edi
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
lea edx, [esp + 4]
push ecx
push 0x636fa0
push edx
mov dword [esp + 0x1c], 0
call fcn.0057f8fb
mov eax, dword [esp + 0x10]
push eax
call fcn.00545760
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.00586b33
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x53f3e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x3c0]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x53f425
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x3c0], ebx
mov eax, dword [esi + 0x400]
lea ecx, [ebp - 0x94]
push eax
push str.SoftwareDownloadManager_ldChList
push ecx
call fcn.0056b4da
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
push reloc.WSOCK32.dll_accept
call edi
cmp eax, ebx
je 0x53f486
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x194]
push str.Can_not_delete_subkey__s_from_registry__error_code___ld_n
push ecx
call fcn.0056b4da
add esp, 0x10
lea edx, [ebp - 0x194]
lea ecx, [esi + 0x42c]
push edx
call fcn.004fa4e0
mov eax, dword [esi + 0x400]
lea ecx, [ebp - 0x94]
push eax
push str.SoftwareDownloadManager_ld
push ecx
call fcn.0056b4da
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
push reloc.WSOCK32.dll_accept
call edi
cmp eax, ebx
je 0x53f4e1
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x194]
push str.Can_not_delete_subkey__s_from_registry__error_code___ld_n
push ecx
call fcn.0056b4da
add esp, 0x10
lea edx, [ebp - 0x194]
lea ecx, [esi + 0x42c]
push edx
call fcn.004fa4e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53f6b0
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x400
push esi
push edi
call fcn.0056c8d0
mov dword [esp + 0x10], eax
mov ecx, esi
cdq
mov ebp, eax
mov eax, edi
sub eax, ebp
push 0
sbb ecx, edx
push 0x400
push ecx
push eax
mov dword [esp + 0x30], edx
call fcn.0056c820
mov ebx, eax
and ebx, 0x800003ff
jns 0x53f700
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, edi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
sub ecx, ebp
mov ebp, dword [esp + 0x20]
push 0
sbb eax, ebp
push 0x100000
push eax
push ecx
call fcn.0056c820
mov ebp, eax
and ebp, 0x800003ff
jns 0x53f736
dec ebp
or ebp, 0xfffffc00
inc ebp
push 0
push 0x40000000
push esi
push edi
call fcn.0056c820
lea ecx, [esp + 0x1c]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x53f78a
mov edi, 0x639ec4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x53f82a
cmp ebp, 0x3e7
jg 0x53f82a
test ebp, ebp
jne 0x53f802
cmp ebx, 0x3e7
jg 0x53f802
test ebx, ebx
je 0x53f7da
mov eax, dword [esp + 0x10]
mov ecx, dword [0x661e50]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebx
jmp 0x53f852
mov ecx, dword [0x661e4c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
push edx
push str._d___s
push eax
call fcn.0056b4da
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
lea eax, [ebx + ebx*4]
mov ecx, dword [0x661e54]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push ebp
jmp 0x53f852
lea ebp, [ebp + ebp*4]
mov ecx, dword [0x661e58]
push ecx
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
lea edx, [esp + 0x20]
sar eax, 0xa
push eax
push edx
push esi
mov eax, dword [esp + 0x34]
push str._d_s_03d___s
push eax
call fcn.0056b4da
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x540140
Capabilities:
Query or enumerate registry value

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

Function at 0x540180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x6614e8]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.ComplDlgShowing
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, 1
jne 0x5401b8
mov eax, dword [esp + 4]
add esp, 8
ret
Function at 0x545760
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
test ecx, ecx
jle 0x545786
push ebx
mov bl, byte [eax + edx]
xor bl, 0xf
mov byte [eax + edx], bl
inc eax
cmp eax, ecx
jl 0x545777
pop ebx
ret

Function at 0x545790
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0056aeae
add esp, 4
test eax, eax
jle 0x5457ae
mov ecx, esi
xor word [ecx], 0xf
add ecx, 2
dec eax
jne 0x5457a4
pop esi
ret