joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410734
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a531
mov eax, dword fs:[0]
push eax
mov eax, 0x11b8
call fcn.0046f730
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0044fa94
lea eax, [ebp - 0x11b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push ecx
mov esi, eax
lea ecx, [ebp - 0x7c]
xor eax, eax
mov ebx, 0x4a3a51
push ebx
mov word [ebp - 0x80], ax
mov byte [ebp - 0x7e], al
call fcn.004112cc
and dword [ebp - 4], 0
push ecx
push ebx
lea ecx, [ebp - 0x48]
call fcn.004112cc
xor ebx, ebx
mov word [ebp - 0x14], bx
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x11b4]
mov ecx, esi
push eax
call fcn.00410967
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x80], bl
je 0x4107d9
call fcn.00410d55
push str.aswhookx.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41082b
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x11bc], eax
add eax, dword [ecx + eax + 0x28]
mov dword [ebp - 0x11b8], eax
mov eax, dword [ebp - 0x11bc]
push eax
mov eax, 3
push eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x11b8]
call eax
mov eax, dword [ebp - 0x11bc]
push eax
mov eax, 0
push eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x11b8]
call eax
cmp byte [ebp - 0x7f], 0
jne 0x410871
call fcn.00433812
test eax, eax
jne 0x410871
push dword [ebp - 0x11b4]
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.00410f01
pop ecx
lea edx, [ebp - 0x98]
call fcn.00410e61
push ebx
test eax, eax
je 0x410864
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [ebp - 0x98]
call fcn.0040513f
call fcn.00410f81
test al, al
je 0x410882
mov byte [ebp - 0x7e], 1
mov byte [ebp - 0x14], 1
push ebx
push ebx
push ebx
push 4
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x11c4]
mov dword [ebp - 0x11c4], 8
push eax
mov dword [ebp - 0x11c0], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.0044cbc0
push ebx
call fcn.0044e6ad
pop ecx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x11a0], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x119c], ebx
push eax
movdqu xmmword [ebp - 0x11b0], xmm0
call fcn.00451935
lea ecx, [ebp - 0x1198]
push dword [eax + 8]
call fcn.004060ee
mov dword [ebp - 0x9c], 1
lea ecx, [ebp - 0x11b0]
mov byte [ebp - 4], 2
call fcn.00436807
lea ecx, [ebp - 0x1198]
call fcn.00406443
lea ecx, [ebp - 0x48]
call fcn.004114c7
lea ecx, [ebp - 0x7c]
call fcn.004114c7
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 - 0x10]
xor ecx, ebp
call fcn.0046a3dd
mov esp, ebp
pop ebp
ret
Function at 0x410d55
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x48a5cb
call fcn.0046e7d1
push 0x104
lea eax, [ebp - 0x218]
xor edi, edi
push eax
mov ebx, edi
push edi
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xc
call fcn.0043d3a8
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x410dc7
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.00411337
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0040ff20
mov esi, eax
jmp 0x410dc9
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x410ddd
lea ecx, [ebp - 0x264]
call fcn.004114c7
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.004100bc
push str._test
lea edx, [eax + 0x18]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00405711
pop ecx
lea ecx, [ebp - 0x298]
call fcn.004114c7
test esi, esi
je 0x410e23
mov ecx, esi
call fcn.004037d4
push esi
call fcn.0043d3d5
pop ecx
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x410e58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410e61
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x410ef0
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0046ca80
and dword [ebp - 0x240], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x248], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], 0x4a4050
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x410edb
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x410ef2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a3dd
mov esp, ebp
pop ebp
ret
Function at 0x42267b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x48d4c0
call fcn.0046e79e
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4a3528
mov dword [ebp - 0x14], ebx
call fcn.00404eb9
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x100
movzx ecx, si
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov dword [ebp - 0x18], eax
push ecx
push ecx
push ebx
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x422741
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d3da
pop ecx
push edi
mov esi, eax
push esi
push ebx
push dword [ebp - 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00403def
mov edi, dword [ebp - 0x10]
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00405328
push esi
call fcn.0043d3d5
pop ecx
jmp 0x422744
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0046e76c
ret
Function at 0x4227f1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d52e
mov eax, dword fs:[0]
push eax
mov eax, 0x1078
call fcn.0046f730
mov eax, dword [0x4bc760]
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 esi, edx
mov dword [ebp - 0x1084], esi
mov ebx, ecx
mov dword [ebp - 0x1080], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x1014]
push 0x800
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4228a5
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00411337
push esi
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x107c]
call fcn.0042274c
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x422883
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.004114c7
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.004114c7
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x42293b
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x422932
push 0x800
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x422932
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00411337
push dword [ebp - 0x1084]
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x107c]
call fcn.0042274c
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x422910
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.004114c7
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.004114c7
mov ebx, dword [ebp - 0x1080]
add esi, 4
cmp esi, edi
jne 0x4228b0
lea ecx, [ebp + 8]
call fcn.00405042
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.0046a3dd
mov esp, ebp
pop ebp
ret
Function at 0x422ea9
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xbc
mov eax, 0x48d601
call fcn.0046e7d1
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.004249b4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov edx, esi
call fcn.00424ae3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x42306b
cmp dword [ebp - 0x34], 0
je 0x42306b
and dword [ebp - 0x1c], 0
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0xc4], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
mov edx, 0x2715
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.0041106e
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x422f24
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
lea ecx, [ebp - 0xb4]
mov edi, eax
call fcn.004114c7
test edi, edi
je 0x423000
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x50
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x422fe3
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
xor edx, edx
push edx
push 0x400000
push edx
push edx
push edx
push ecx
push 0x4a49e0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x422fc1
lea ecx, [ebp - 0xb8]
call fcn.00423cf1
push dword [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
call esi
jmp 0x422fd9
mov ebx, str.Request_cannot_be_completed_on_current_url.
push ebx
call fcn.00402bda
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403846
mov bl, 1
push dword [ebp - 0xc8]
call esi
jmp 0x422ffb
mov ebx, str.Cannot_connect_to_server.
push ebx
call fcn.00402bda
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403846
mov bl, 1
push edi
call esi
jmp 0x423018
mov esi, str.Cannot_initialize_library.
push esi
call fcn.00402bda
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403846
mov bl, 1
test bl, bl
je 0x423036
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00422ba3
push 0x4b8acc
lea eax, [ebp - 0x80]
push eax
call fcn.0046ed8e
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00403790
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040513f
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040513f
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
call fcn.0046e780
ret
push str.Cannot_get_file_size__bad_URL.
lea ecx, [ebp - 0x74]
call fcn.004035dc
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa4]
call fcn.00422ba3
push 0x4b8acc
lea eax, [ebp - 0xa4]
jmp 0x423030
Function at 0x423cf1
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 8
push edi
push edi
mov esi, ecx
xorps xmm0, xmm0
push edi
push edi
movlpd qword [ebp - 0xc], xmm0
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000005
push dword [esi]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427ae6
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x874
mov eax, 0x48e7c3
call fcn.0046e7d1
mov esi, edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x870], edi
mov dword [ebp - 0x864], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [edi], eax
mov dword [edi + 4], eax
call fcn.00428d18
mov dword [edi], eax
mov esi, dword [esi]
mov dword [ebp - 0x864], ebx
mov dword [ebp - 0x860], esi
mov eax, dword [esi]
mov dword [ebp - 0x858], eax
jmp 0x427cac
mov ebx, dword [eax + 0x10]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x868]
mov dword [ebp - 0x854], ebx
push eax
push ecx
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x850], ecx
push eax
lea eax, [ebp - 0x850]
mov dword [ebp - 0x85c], ecx
push eax
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 0x868], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x427c9b
cmp dword [ebp - 0x850], eax
jbe 0x427c9b
mov esi, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0x400
push eax
lea eax, [ebp - 0x814]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427c85
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x848]
call fcn.00411337
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00428d99
pop ecx
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004114c7
test bl, bl
mov ebx, dword [ebp - 0x854]
je 0x427c85
and dword [ebp - 0x84c], 0
lea eax, [ebp - 0x84c]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427c3f
cmp dword [ebp - 0x84c], eax
je 0x427c3f
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x878]
jmp 0x427c7c
lea eax, [ebp - 0x84c]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427c85
cmp dword [ebp - 0x84c], eax
je 0x427c85
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x880]
push ecx
push eax
mov ecx, edi
call fcn.00428ebc
inc esi
push 0
pop eax
cmp esi, dword [ebp - 0x850]
jb 0x427b8b
mov esi, dword [ebp - 0x860]
lea ecx, [ebp - 0x858]
call fcn.004036c2
mov eax, dword [ebp - 0x858]
cmp eax, esi
jne 0x427b34
lea ecx, [ebp + 8]
call fcn.00428b7c
mov eax, edi
call fcn.0046e780
ret

Function at 0x427cc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
add edx, 0x18
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edx + 0x14], 8
jb 0x427cd9
mov edx, dword [edx]
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x427ebd
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e890
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.004111cf
and dword [esp + 0x98], 0
xor ebx, ebx
mov eax, dword [esi + 8]
inc ebx
sub eax, dword [esi + 4]
push 0x34
pop ecx
cdq
idiv ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
cmp eax, ebx
jbe 0x427fab
mov edi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
add eax, edi
push eax
call fcn.004115d3
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
push 0x34
cdq
pop ecx
idiv ecx
mov ecx, dword [esp + 0x10]
dec eax
cmp ecx, eax
jae 0x427f8e
push ecx
push 0x4a3b28
lea ecx, [esp + 0x5c]
call fcn.004112cc
lea eax, [esp + 0x54]
mov byte [esp + 0x98], bl
push eax
lea ecx, [esp + 0x24]
call fcn.004115d3
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 0
call fcn.004114c7
mov ecx, dword [esp + 0x10]
push 0x34
pop eax
add edi, eax
inc ecx
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
cdq
idiv dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x427f31
mov edi, dword [esp + 0x1c]
xor edx, edx
lea ecx, [esp + 0x14]
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
push edx
cmovae eax, dword [esp + 0x3c]
push ecx
push edx
push 0xf003f
push edx
push edx
push edx
push eax
push dword [esi]
mov dword [esp + 0x38], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x428019
mov eax, dword [edi + 0x10]
lea edx, [edi + 0x18]
cmp dword [edx + 0x14], 8
jb 0x427fe9
mov edx, dword [edx]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x427ff4
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push edx
push ebx
push 0
push ecx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42801b
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [esp + 0x20]
call fcn.004114c7
mov al, bl
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046a3dd
mov esp, ebp
pop ebp
ret 4
Function at 0x428049
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa8
mov eax, 0x48e8fb
call fcn.0046e7d1
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xac], edi
mov dword [edi], esi
mov dword [edi + 4], esi
call fcn.0040ed37
mov dword [edi], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], esi
push eax
mov ecx, ebx
mov dword [ebp - 0x9c], 1
call fcn.004287fa
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0x98], esi
mov eax, dword [esi]
mov dword [ebp - 0x8c], eax
jmp 0x42822d
and dword [ebp - 0x80], 0
cmp dword [ebx + 0x3c], 8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x84], eax
jb 0x4280d9
mov ecx, dword [ebx + 0x28]
jmp 0x4280dc
lea ecx, [ebx + 0x28]
lea edx, [ebp - 0x80]
push edx
xor edx, edx
push edx
push edx
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42821c
cmp dword [ebp - 0x80], eax
je 0x42821c
push dword [ebp - 0x80]
call fcn.0043d3da
mov edx, dword [ebp - 0xa0]
pop ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
lea edx, [edx + 0x10]
call fcn.00427cc4
test eax, eax
je 0x428210
cmp eax, 2
jbe 0x42813a
add eax, 0xfffffffa
cmp eax, 1
ja 0x428210
cmp dword [ebx + 0x3c], 8
jb 0x428145
mov eax, dword [ebx + 0x28]
jmp 0x428148
lea eax, [ebx + 0x28]
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp - 0x88]
push 0
push 0
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428210
lea ecx, [ebp - 0x48]
call fcn.004111cf
and dword [ebp - 0x90], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffffe
test eax, 0xfffffffe
jbe 0x4281e9
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
movzx ecx, byte [edi + esi*2 + 1]
movzx eax, byte [edi + esi*2]
shl cx, 8
or cx, ax
movzx eax, cx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00411418
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.004115d3
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.004114c7
mov eax, dword [ebp - 0x80]
inc esi
add eax, 0xfffffffe
shr eax, 1
cmp esi, eax
jb 0x428197
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.00429022
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004114c7
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x8c]
call fcn.004036c2
mov eax, dword [ebp - 0x8c]
cmp eax, esi
jne 0x4280c1
lea ecx, [ebp - 0xa8]
call fcn.00428b53
mov eax, edi
call fcn.0046e780
ret 4
Function at 0x42824a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x48e944
call fcn.0046e79e
mov edi, ecx
mov dword [ebp - 0x24], edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
mov dword [ebx + 4], esi
call fcn.00428d18
mov dword [ebx], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x2c]
inc esi
mov ecx, edi
push eax
mov dword [ebp - 0x20], esi
call fcn.004287fa
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x4283ac
add edi, 0x28
mov ebx, dword [eax + 0x10]
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], edx
jb 0x4282ac
mov eax, dword [edi]
jmp 0x4282ae
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push edx
push edx
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428396
cmp dword [ebp - 0x10], eax
je 0x428396
push dword [ebp - 0x10]
call fcn.0043d3da
mov edx, dword [ebp - 0x24]
and dword [ebp - 0x18], 0
pop ecx
mov ecx, ebx
mov dword [ebp - 0x14], eax
lea edx, [edx + 0x10]
call fcn.00427cc4
sub eax, 4
je 0x428340
dec eax
jne 0x42838f
cmp dword [edi + 0x14], 8
jb 0x428301
mov eax, dword [edi]
jmp 0x428303
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42838f
cmp dword [ebp - 0x10], 4
jne 0x428329
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
bswap eax
jmp 0x42832c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
jmp 0x428385
cmp dword [edi + 0x14], 8
jb 0x42834a
mov eax, dword [edi]
jmp 0x42834c
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42838f
cmp dword [ebp - 0x10], 4
jne 0x428370
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x428373
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00428ebc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.004036c2
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x42829a
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00428b53
mov eax, ebx
call fcn.0046e76c
ret 4