joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4101be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.0040ffa6
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4101e3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x38]
mov ebx, eax
call fcn.00411302
cmp ebx, 0xffffffff
je 0x410203
test bl, 0x10
jne 0x410203
xor eax, eax
inc eax
jmp 0x410205
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046a2b4
mov esp, ebp
pop ebp
ret

Function at 0x410214
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4bc760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.0040ffa6
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x410239
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.00411302
test esi, esi
je 0x410263
cmp esi, 0xb7
je 0x410263
cmp esi, 0x50
je 0x410263
xor al, al
jmp 0x410265
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a2b4
mov esp, ebp
pop ebp
ret
Function at 0x41065e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a3e7
mov eax, dword fs:[0]
push eax
mov eax, 0x11b8
call fcn.0046f610
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.0044f999
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 - 0x94]
xor eax, eax
mov ebx, 0x4a3a69
push ebx
mov word [ebp - 0x98], ax
mov byte [ebp - 0x96], al
call fcn.00411107
and dword [ebp - 4], 0
push ecx
push ebx
lea ecx, [ebp - 0x60]
call fcn.00411107
xor ebx, ebx
mov word [ebp - 0x2c], bx
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x11b4]
mov ecx, esi
push eax
call fcn.0041088f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x98], bl
je 0x410712
call fcn.00410c7d
push str.aswhookx.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x410764
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 - 0x97], 0
jne 0x4107a4
call fcn.004336e9
test eax, eax
jne 0x4107a4
push dword [ebp - 0x11b4]
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00410e29
pop ecx
lea edx, [ebp - 0x28]
call fcn.00410d89
push ebx
test eax, eax
je 0x41079a
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
lea ecx, [ebp - 0x28]
call fcn.0040513f
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.0044ca27
push ebx
call fcn.0044e559
pop ecx
lea eax, [ebp - 0x98]
mov dword [ebp - 0x11a0], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x119c], ebx
push eax
movdqu xmmword [ebp - 0x11b0], xmm0
call fcn.00451827
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.004366de
lea ecx, [ebp - 0x1198]
call fcn.00406443
lea ecx, [ebp - 0x60]
call fcn.00411302
lea ecx, [ebp - 0x94]
call fcn.00411302
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.0046a2b4
mov esp, ebp
pop ebp
ret
Function at 0x410c7d
Capabilities:
Terminate process

Disassembly:
push 0x294
mov eax, 0x48a481
call fcn.0046e6b1
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.0043d27f
mov esi, eax
pop ecx
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x410cef
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.00411172
inc ebx
lea eax, [ebp - 0x264]
mov byte [ebp - 4], bl
mov ecx, esi
push eax
mov dword [ebp - 0x29c], ebx
call fcn.0040fed4
mov esi, eax
jmp 0x410cf1
mov esi, edi
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x410d05
lea ecx, [ebp - 0x264]
call fcn.00411302
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.00410070
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.00411302
test esi, esi
je 0x410d4b
mov ecx, esi
call fcn.004037d4
push esi
call fcn.0043d2b5
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 0x410d80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffb
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410d89
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 0x410e18
push 0x3c
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0046c960
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], 0x4a4058
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x22c], 1
jb 0x410e03
mov esi, dword [esi]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x234], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x410e1a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a2b4
mov esp, ebp
pop ebp
ret
Function at 0x422506
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x48d333
call fcn.0046e67e
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 0x4225cc
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d2ac
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.0043d2b5
pop ecx
jmp 0x4225cf
mov edi, dword [ebp - 0x10]
mov eax, edi
call fcn.0046e64c
ret
Function at 0x42267c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d3a1
mov eax, dword fs:[0]
push eax
mov eax, 0x1078
call fcn.0046f610
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 0x422730
push ecx
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00411172
push esi
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x107c]
call fcn.004225d7
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x42270e
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.00411302
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.00411302
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x4227c6
push dword [esi]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x4227bd
push 0x800
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4227bd
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00411172
push dword [ebp - 0x1084]
lea edx, [ebp - 0x1048]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x107c]
call fcn.004225d7
add eax, 0x18
pop ecx
cmp dword [eax + 0x14], 8
jb 0x42279b
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x107c]
call fcn.00411302
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 0
call fcn.00411302
mov ebx, dword [ebp - 0x1080]
add esi, 4
cmp esi, edi
jne 0x42273b
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.0046a2b4
mov esp, ebp
pop ebp
ret
Function at 0x422d34
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xbc
mov eax, 0x48d474
call fcn.0046e6b1
mov esi, ecx
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.0042483f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov edx, esi
call fcn.0042496e
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4c], 0
je 0x422ef6
cmp dword [ebp - 0x34], 0
je 0x422ef6
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.00410ea9
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x422daf
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.00411302
test edi, edi
je 0x422e8b
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 0x422e6e
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 0x4a49b8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x422e4c
lea ecx, [ebp - 0xb8]
call fcn.00423b7c
push dword [ebp - 0xb8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], edx
call esi
jmp 0x422e64
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 0x422e86
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 0x422ea3
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 0x422ec1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00422a2e
push 0x4b8a2c
lea eax, [ebp - 0x80]
push eax
call fcn.0046ec6e
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.0046e660
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.00422a2e
push 0x4b8a2c
lea eax, [ebp - 0xa4]
jmp 0x422ebb
Function at 0x423b7c
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 0x427971
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x874
mov eax, 0x48e636
call fcn.0046e6b1
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.00428ba3
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 0x427b37
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 0x427b26
cmp dword [ebp - 0x850], eax
jbe 0x427b26
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 0x427b10
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x848]
call fcn.00411172
push ecx
lea edx, [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00428c24
pop ecx
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00411302
test bl, bl
mov ebx, dword [ebp - 0x854]
je 0x427b10
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 0x427aca
cmp dword [ebp - 0x84c], eax
je 0x427aca
movzx eax, byte [0x4c5737]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x878]
jmp 0x427b07
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 0x427b10
cmp dword [ebp - 0x84c], eax
je 0x427b10
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.00428d47
inc esi
push 0
pop eax
cmp esi, dword [ebp - 0x850]
jb 0x427a16
mov esi, dword [ebp - 0x860]
lea ecx, [ebp - 0x858]
call fcn.004036c2
mov eax, dword [ebp - 0x858]
cmp eax, esi
jne 0x4279bf
lea ecx, [ebp + 8]
call fcn.00428a07
mov eax, edi
call fcn.0046e660
ret

Function at 0x427b4f
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 0x427b64
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 0x427d48
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48e703
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.0041100a
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 0x427e36
mov edi, ecx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x20]
add eax, edi
push eax
call fcn.0041140e
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 0x427e19
push ecx
push 0x4a3b40
lea ecx, [esp + 0x5c]
call fcn.00411107
lea eax, [esp + 0x54]
mov byte [esp + 0x98], bl
push eax
lea ecx, [esp + 0x24]
call fcn.0041140e
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], 0
call fcn.00411302
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 0x427dbc
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 0x427ea4
mov eax, dword [edi + 0x10]
lea edx, [edi + 0x18]
cmp dword [edx + 0x14], 8
jb 0x427e74
mov edx, dword [edx]
lea ecx, [esi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x427e7f
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 0x427ea6
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
lea ecx, [esp + 0x20]
call fcn.00411302
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.0046a2b4
mov esp, ebp
pop ebp
ret 4
Function at 0x427ed4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa8
mov eax, 0x48e76e
call fcn.0046e6b1
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.00428685
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 0x4280b8
and dword [ebp - 0x80], 0
cmp dword [ebx + 0x3c], 8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x84], eax
jb 0x427f64
mov ecx, dword [ebx + 0x28]
jmp 0x427f67
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 0x4280a7
cmp dword [ebp - 0x80], eax
je 0x4280a7
push dword [ebp - 0x80]
call fcn.0043d2ac
mov edx, dword [ebp - 0xa0]
pop ecx
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
lea edx, [edx + 0x10]
call fcn.00427b4f
test eax, eax
je 0x42809b
cmp eax, 2
jbe 0x427fc5
add eax, 0xfffffffa
cmp eax, 1
ja 0x42809b
cmp dword [ebx + 0x3c], 8
jb 0x427fd0
mov eax, dword [ebx + 0x28]
jmp 0x427fd3
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 0x42809b
lea ecx, [ebp - 0x48]
call fcn.0041100a
and dword [ebp - 0x90], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffffe
test eax, 0xfffffffe
jbe 0x428074
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.00411253
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.0041140e
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00411302
mov eax, dword [ebp - 0x80]
inc esi
add eax, 0xfffffffe
shr eax, 1
cmp esi, eax
jb 0x428022
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.00428ead
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00411302
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 0x427f4c
lea ecx, [ebp - 0xa8]
call fcn.004289de
mov eax, edi
call fcn.0046e660
ret 4
Function at 0x4280d5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x48e7b7
call fcn.0046e67e
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.00428ba3
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.00428685
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x428237
add edi, 0x28
mov ebx, dword [eax + 0x10]
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x10], edx
jb 0x428137
mov eax, dword [edi]
jmp 0x428139
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 0x428221
cmp dword [ebp - 0x10], eax
je 0x428221
push dword [ebp - 0x10]
call fcn.0043d2ac
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.00427b4f
sub eax, 4
je 0x4281cb
dec eax
jne 0x42821a
cmp dword [edi + 0x14], 8
jb 0x42818c
mov eax, dword [edi]
jmp 0x42818e
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 0x42821a
cmp dword [ebp - 0x10], 4
jne 0x4281b4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
bswap eax
jmp 0x4281b7
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 0x428210
cmp dword [edi + 0x14], 8
jb 0x4281d5
mov eax, dword [edi]
jmp 0x4281d7
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 0x42821a
cmp dword [ebp - 0x10], 4
jne 0x4281fb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
jmp 0x4281fe
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.00428d47
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 0x428125
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004289de
mov eax, ebx
call fcn.0046e64c
ret 4