joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4a8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48791c
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4b9760]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4b9760]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40c65a
lea eax, [esp + 0x10]
push eax
push 0x49e05c
push 1
push ebx
push 0x49e34c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c65a
cmp dword [esi + 0x14], 8
jb 0x40c528
mov ecx, dword [esi]
jmp 0x40c52a
mov ecx, esi
mov eax, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
push esi
mov ecx, edi
call fcn.0040c686
test al, al
je 0x40c558
lea edx, [esi + 0x48]
cmp dword [edx + 0x14], 8
jb 0x40c54c
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x49e39c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40c650
push str.DESKTOP
lea ecx, [esp + 0x1c]
call fcn.00404eab
lea edx, [esp + 0x18]
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x78]
call fcn.00430fb8
push 0x4a1524
mov edx, eax
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x4c]
call fcn.00405703
pop ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0xa0], 2
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.0040e2f6
mov byte [esp + 0xa4], 3
lea ecx, [esp + 0x34]
mov edx, eax
mov dword [esp], 0x4a1e90
call fcn.0040e31e
pop ecx
mov edx, eax
mov byte [esp + 0xa0], 4
cmp dword [edx + 0x14], 8
jb 0x40c5f2
mov edx, dword [edx]
mov eax, dword [esp + 0x14]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
push 1
lea ecx, [esp + 0x38]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00405131
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.00405131
or dword [esp + 0xa0], 0xffffffff
lea ecx, [esp + 0x18]
push ebx
push 1
call fcn.00405131
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0046821b
mov esp, ebp
pop ebp
ret 4
Function at 0x40f41f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4b9760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040f207
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40f444
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00410512
cmp ebx, 0xffffffff
je 0x40f464
test bl, 0x10
jne 0x40f464
xor eax, eax
inc eax
jmp 0x40f466
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046821b
mov esp, ebp
pop ebp
ret

Function at 0x40f475
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4b9760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040f207
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x40f49a
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00410512
test esi, esi
je 0x40f4c4
cmp esi, 0xb7
je 0x40f4c4
cmp esi, 0x50
je 0x40f4c4
xor al, al
jmp 0x40f4c6
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046821b
mov esp, ebp
pop ebp
ret

Function at 0x40fe8d
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x4880f5
call fcn.0046c611
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.0043b1e6
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x40feff
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.00410382
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0040f135
mov esi, eax
jmp 0x40ff01
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40ff15
lea ecx, [ebp - 0x264]
call fcn.00410512
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.0040f2d1
push str._test
lea edx, [eax + 0x18]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00405703
pop ecx
lea ecx, [ebp - 0x298]
call fcn.00410512
test esi, esi
je 0x40ff5b
mov ecx, esi
call fcn.004037d4
push esi
call fcn.0043b213
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 0x40ff90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40ff99
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4b9760]
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 0x410028
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0046a8c0
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], 0x4a1fe4
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x410013
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x41002a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046821b
mov esp, ebp
pop ebp
ret
Function at 0x4211d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x48aef2
call fcn.0046c5de
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4a1528
mov dword [ebp - 0x14], ebx
call fcn.00404eab
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 0x421297
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b218
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.0040531a
push esi
call fcn.0043b213
pop ecx
jmp 0x42129a
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0046c5ac
ret
Function at 0x421347
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48af60
mov eax, dword fs:[0]
push eax
mov eax, 0x1078
call fcn.0046d570
mov eax, dword [0x4b9760]
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 0x4213fb
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00410382
push esi
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x107c]
call fcn.004212a2
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x4213d9
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.00410512
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.00410512
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x421491
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x421488
push 0x800
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x421488
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00410382
push dword [ebp - 0x1084]
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x107c]
call fcn.004212a2
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x421466
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.00410512
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.00410512
mov ebx, dword [ebp - 0x1080]
add esi, 4
cmp esi, edi
jne 0x421406
lea ecx, [ebp + 8]
call fcn.00405034
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.0046821b
mov esp, ebp
pop ebp
ret
Function at 0x4219ff
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xbc
mov eax, 0x48b033
call fcn.0046c611
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.0042350a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov edx, esi
call fcn.00423639
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x421bc1
cmp dword [ebp - 0x34], 0
je 0x421bc1
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.004100b9
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x421a7a
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.00410512
test edi, edi
je 0x421b56
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 0x421b39
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 0x4a28c0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x421b17
lea ecx, [ebp - 0xb8]
call fcn.00422847
push dword [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
call esi
jmp 0x421b2f
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 0x421b51
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 0x421b6e
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 0x421b8c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.004216f9
push 0x4b622c
lea eax, [ebp - 0x80]
push eax
call fcn.0046cbce
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00403790
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00405131
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00405131
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
call fcn.0046c5c0
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.004216f9
push 0x4b622c
lea eax, [ebp - 0xa4]
jmp 0x421b86
Function at 0x422847
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 0x426640
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x874
mov eax, 0x48c1f5
call fcn.0046c611
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.00427872
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 0x426806
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 0x4267f5
cmp dword [ebp - 0x850], eax
jbe 0x4267f5
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 0x4267df
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x848]
call fcn.00410382
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.004278f3
pop ecx
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00410512
test bl, bl
mov ebx, dword [ebp - 0x854]
je 0x4267df
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 0x426799
cmp dword [ebp - 0x84c], eax
je 0x426799
movzx eax, byte [0x4c2717]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x878]
jmp 0x4267d6
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 0x4267df
cmp dword [ebp - 0x84c], eax
je 0x4267df
movzx eax, byte [0x4c2717]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x880]
push ecx
push eax
mov ecx, edi
call fcn.00427a16
inc esi
push 0
pop eax
cmp esi, dword [ebp - 0x850]
jb 0x4266e5
mov esi, dword [ebp - 0x860]
lea ecx, [ebp - 0x858]
call fcn.004036c2
mov eax, dword [ebp - 0x858]
cmp eax, esi
jne 0x42668e
lea ecx, [ebp + 8]
call fcn.004276d6
mov eax, edi
call fcn.0046c5c0
ret

Function at 0x42681e
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 0x426833
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 0x426a17
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48c2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4b9760]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4b9760]
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.0041021a
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 0x426b05
mov edi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
add eax, edi
push eax
call fcn.0041061e
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 0x426ae8
push ecx
push 0x4a1b40
lea ecx, [esp + 0x5c]
call fcn.00410317
lea eax, [esp + 0x54]
mov byte [esp + 0x98], bl
push eax
lea ecx, [esp + 0x24]
call fcn.0041061e
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 0
call fcn.00410512
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 0x426a8b
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 0x426b73
mov eax, dword [edi + 0x10]
lea edx, [edi + 0x18]
cmp dword [edx + 0x14], 8
jb 0x426b43
mov edx, dword [edx]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x426b4e
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 0x426b75
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [esp + 0x20]
call fcn.00410512
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.0046821b
mov esp, ebp
pop ebp
ret 4
Function at 0x426ba3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa8
mov eax, 0x48c32d
call fcn.0046c611
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.0040e2cb
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.00427354
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 0x426d87
and dword [ebp - 0x80], 0
cmp dword [ebx + 0x3c], 8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x84], eax
jb 0x426c33
mov ecx, dword [ebx + 0x28]
jmp 0x426c36
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 0x426d76
cmp dword [ebp - 0x80], eax
je 0x426d76
push dword [ebp - 0x80]
call fcn.0043b218
mov edx, dword [ebp - 0xa0]
pop ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
lea edx, [edx + 0x10]
call fcn.0042681e
test eax, eax
je 0x426d6a
cmp eax, 2
jbe 0x426c94
add eax, 0xfffffffa
cmp eax, 1
ja 0x426d6a
cmp dword [ebx + 0x3c], 8
jb 0x426c9f
mov eax, dword [ebx + 0x28]
jmp 0x426ca2
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 0x426d6a
lea ecx, [ebp - 0x48]
call fcn.0041021a
and dword [ebp - 0x90], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffffe
test eax, 0xfffffffe
jbe 0x426d43
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.00410463
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.0041061e
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00410512
mov eax, dword [ebp - 0x80]
inc esi
add eax, 0xfffffffe
shr eax, 1
cmp esi, eax
jb 0x426cf1
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
movzx eax, byte [0x4c2717]
push eax
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [ebp - 0xb4]
mov ecx, edi
push eax
call fcn.00427b7c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00410512
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 0x426c1b
lea ecx, [ebp - 0xa8]
call fcn.004276ad
mov eax, edi
call fcn.0046c5c0
ret 4
Function at 0x426da4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x48c376
call fcn.0046c5de
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.00427872
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.00427354
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x426f06
add edi, 0x28
mov ebx, dword [eax + 0x10]
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], edx
jb 0x426e06
mov eax, dword [edi]
jmp 0x426e08
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 0x426ef0
cmp dword [ebp - 0x10], eax
je 0x426ef0
push dword [ebp - 0x10]
call fcn.0043b218
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.0042681e
sub eax, 4
je 0x426e9a
dec eax
jne 0x426ee9
cmp dword [edi + 0x14], 8
jb 0x426e5b
mov eax, dword [edi]
jmp 0x426e5d
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 0x426ee9
cmp dword [ebp - 0x10], 4
jne 0x426e83
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
bswap eax
jmp 0x426e86
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x4c2717]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
jmp 0x426edf
cmp dword [edi + 0x14], 8
jb 0x426ea4
mov eax, dword [edi]
jmp 0x426ea6
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 0x426ee9
cmp dword [ebp - 0x10], 4
jne 0x426eca
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x426ecd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
movzx eax, byte [0x4c2717]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.00427a16
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 0x426df4
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004276ad
mov eax, ebx
call fcn.0046c5ac
ret 4