joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x590491
xor al, al
jmp 0x590534
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5904bd
xor al, al
jmp 0x590534
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005c5d80
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00536790
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5961c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc], esp
push str.OnCheckUpdate
call fcn.004eea50
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0059b450
mov ecx, dword [ebp - 4]
call fcn.00598fb0
movzx eax, al
test eax, eax
je 0x596233
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.first_install
call fcn.004eea50
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
call fcn.0059b450
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x623b04
call fcn.004ef370
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
call fcn.0059ac90
xor eax, eax
jmp 0x5962a6
mov ecx, dword [ebp - 4]
call fcn.00598ed0
movzx ecx, al
test ecx, ecx
je 0x596263
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.already_updated
call fcn.004eea50
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
call fcn.0059b450
xor eax, eax
jmp 0x5962a6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.active
call fcn.004ef370
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
call fcn.0059ac90
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x5a0fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x597730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f456
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
call fcn.005995e0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0059a820
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x344
call fcn.004eeb20
lea ecx, [ebp - 0x80]
call fcn.004eeb60
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xb0], 0
je 0x5977b9
push 0x620994
mov ecx, dword [ebp - 0x2c]
add ecx, 0x344
call fcn.004eee50
test eax, eax
jne 0x59786c
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x5977da
push 1
mov ecx, dword [ebp - 0x38]
call fcn.005b6e70
mov dword [ebp - 0x44], eax
jmp 0x5977e1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
push 0x620998
lea ecx, [ebp - 0x28]
call fcn.004ef370
mov dword [ebp - 4], 0
push 0x18
call fcn.005c442b
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0
je 0x597824
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.004ef320
mov dword [ebp - 0x3c], eax
jmp 0x59782b
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
push 0
mov eax, dword [ebp - 0x58]
push eax
push 0x534
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.00568d80
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004ef480
mov eax, dword [ebp - 0x60]
jmp 0x5978e4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
push str.OnCountTelemertyData
call fcn.004ef370
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0059b370
push 8
call fcn.005c442b
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x30], ecx
push 8
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.005c63d0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [eax], 2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x5b3040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x10
Function at 0x597900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OnCountAuthorizationData
call fcn.004ef370
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0059b370
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 8
call fcn.005c442b
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 8
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.005c63d0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x5b3040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x597990
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OnCountCDMData
call fcn.004eea50
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0059b450
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 8
call fcn.005c442b
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 8
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.005c63d0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x5b3040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x597d80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OnCountFlashData
call fcn.004eea50
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.0059b450
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 8
call fcn.005c442b
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 8
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.005c63d0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x5b3040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5980c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x5a0fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x598840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x26c
call fcn.004ef850
push eax
call fcn.004e6110
add esp, 4
test eax, eax
je 0x5988f8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.cdm_exit_run_cdm
call fcn.004ef370
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
call fcn.0059b370
mov ecx, dword [ebp - 0xc]
add ecx, 0x284
call fcn.004ef850
push eax
call fcn.004e7b40
add esp, 4
test eax, eax
je 0x5988c0
push 0
push 0x7d0
push 0xa
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.0056f9e0
jmp 0x5988f6
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x29c
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x26c
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0xc]
call fcn.005a7ed0
mov dword [ebp - 0x1c], eax
jmp 0x598939
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.cdm_not_exit_download_cdm
call fcn.004ef370
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
call fcn.0059b370
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x5a0ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2bc], 2
jl 0x598969
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x5a0f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x10
Function at 0x599940
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f9a5
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x238]
call fcn.004ef350
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0x61dff0
lea eax, [ebp - 0x23c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x248]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x599ade
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea edx, [ebp - 0x220]
push edx
push 0
push 0x61e1fc
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x599a58
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
push 0x61e218
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x238]
call fcn.004ef4d0
jmp 0x599acc
lea eax, [ebp - 0x26c]
push eax
call fcn.004ea470
add esp, 4
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004ef440
lea ecx, [ebp - 0x26c]
call fcn.004ef480
lea ecx, [ebp - 0x238]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
push 0x61e3bc
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x599b80
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x248]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x599b80
lea ecx, [ebp - 0x284]
push ecx
call fcn.004ea470
add esp, 4
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
lea ecx, [ebp - 0x238]
call fcn.004ef440
lea ecx, [ebp - 0x284]
call fcn.004ef480
lea ecx, [ebp - 0x238]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
push 0x61e5a4
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e2fe0
add esp, 8
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004ef480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 4
Function at 0x599be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f9e5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004e5510
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004ef850
push eax
push 0x61e828
lea ecx, [ebp - 0x28]
push ecx
call fcn.004e37f0
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x28]
call fcn.004ef850
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x599ca4
lea ecx, [ebp + 0x20]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x20]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x599cfe
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ef850
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x599cfe
lea ecx, [ebp + 0x20]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004ef480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004ef480
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004ef480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004ef480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x30
Function at 0x599d50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fa43
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 2
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef320
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
push ecx
call fcn.004e5510
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x24]
call fcn.004ef850
push eax
lea ecx, [ebp - 0x250]
call fcn.004ef850
push eax
push 0x61eecc
lea edx, [ebp - 0x268]
push edx
call fcn.004e37f0
add esp, 0x10
mov byte [ebp - 4], 5
lea eax, [ebp - 0x26c]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x268]
call fcn.004ef850
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jne 0x599f03
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea eax, [ebp - 0x21c]
push eax
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x599eb3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004ef4d0
jmp 0x599ef6
lea ecx, [ebp + 0x3c]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.004ef3d0
mov eax, dword [ebp - 0x270]
or eax, 1
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x268]
call fcn.004ef480
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.004ef480
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004ef480
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004ef480
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.004ef480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004ef480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x59a3e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60fb1f
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef320
mov byte [ebp - 4], 2
mov dword [ebp - 0x244], 0x61f758
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x59a55a
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005c63d0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x59a508
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef4d0
jmp 0x59a54b
lea ecx, [ebp + 0x24]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x59a5ca
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x59a5ca
lea ecx, [ebp - 0x238]
call fcn.004eed60
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004ef850
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004ef850
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004ef3d0
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004ef480
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004ef480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004ef480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret 0x34