joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023e5
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push edi
mov edi, 0x20a
mov ebx, 0x104
push edi
mov dword [ebp - 0xc], ebx
call fcn.010099e1
test eax, eax
mov dword [ebp - 4], eax
jne 0x1002420
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1002568
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push ebx
call esi
test eax, eax
jne 0x100243f
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
xor eax, eax
jmp 0x1002567
cmp eax, ebx
jb 0x1002482
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01009fc8
test eax, eax
je 0x1002491
cmp dword [ebp - 4], 0
je 0x100249a
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x100242f
cmp eax, dword [ebp - 0xc]
jb 0x1002482
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
push 0x800300fd
jmp 0x100249c
push edi
call fcn.010099e1
xor esi, esi
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x10024a4
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002438
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push eax
push esi
push 0x1001504
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100254a
cmp dword [ebp + 8], esi
je 0x1002539
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1002539
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push dword [ebp + 8]
call fcn.01009813
mov esi, eax
jmp 0x10024ec
mov eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
je 0x10024f1
dec esi
jns 0x10024e2
jmp 0x1002513
cmp esi, dword [ebp - 0xc]
jl 0x1002507
lea eax, [esi + 6]
push eax
lea eax, [ebp - 4]
push eax
call fcn.01009fc8
test eax, eax
je 0x1002539
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.01009ee4
cmp esi, 0xffffffff
jne 0x1002526
push ebx
push 0x1001500
push dword [ebp - 4]
call fcn.01009ee4
push dword [ebp - 8]
push 0
push 0x1001504
push dword [ebp - 4]
call edi
test eax, eax
jne 0x100254a
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
lea eax, [ebp - 8]
jmp 0x1002432
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100242f
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1002573
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x1001538
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10025e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x100150c
push dword [ebp - 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10025da
cmp dword [ebp - 0xc], 4
jne 0x10025da
cmp dword [ebp - 4], 4
jne 0x10025da
cmp dword [ebp - 0x10], esi
je 0x10025da
inc esi
lea eax, [ebp - 8]
push eax
call fcn.01001b65
mov eax, esi
pop esi
leave
ret

Function at 0x1002ed8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x100305a
cmp dword [ebp + 0xc], edi
je 0x100305a
cmp dword [ebp + 0x10], edi
je 0x100305a
cmp dword [ebp + 0x14], edi
je 0x100305a
cmp dword [ebp + 0x18], edi
je 0x100305a
cmp dword [ebp + 0x1c], edi
je 0x100305a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
jne 0x1002f82
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.010099e1
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1002f61
push 0xe
call fcn.01002093
push 0xe
jmp 0x1003063
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
je 0x1002f8f
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
push ebx
call fcn.01002093
mov eax, ebx
jmp 0x1003064
mov ebx, dword [ebp + 0x18]
cmp dword [ebx], edi
jne 0x100301a
push edi
push edi
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x100301a
push edi
push 0xcb
call fcn.0100b4a7
push 1
push 0xce
mov dword [ebp + 8], eax
call fcn.0100b4a7
push edi
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
call fcn.01009813
test eax, eax
jne 0x1002fe2
push 2
push 0x1f5
call fcn.0100b4a7
jmp 0x1002fe5
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
push 0x10016d8
push 2
call fcn.0100a0e4
add esp, 0x10
call fcn.0100962f
mov esi, eax
push dword [ebx]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.01001c89
cmp eax, 3
jg 0x1002fff
jne 0x100303f
mov dword [ebx], 1
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
mov eax, esi
jmp 0x1003064
cmp eax, 1
je 0x100301a
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
mov esi, 0x4c7
push esi
call fcn.01002093
jmp 0x100303b
push 0x57
call fcn.01002093
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1004a30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
je 0x1004bec
cmp dword [ebp + 0xc], ebx
je 0x1004bec
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1004bec
cmp dword [ebp + 0x14], ebx
je 0x1004bec
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x1004a9f
push edi
call fcn.01002093
mov eax, edi
jmp 0x1004bf6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1004ac2
push 0xe
call fcn.01002093
xor eax, eax
jmp 0x1004bf6
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x10], ebx
jbe 0x1004bc4
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
push ebx
mov dword [ebp - 0xc], eax
mov ecx, eax
xor eax, eax
push ebx
rep stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1004bbe
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x1004b23
push 0x102
push eax
push dword [ebp - 4]
call fcn.0100b374
test eax, eax
je 0x1004bad
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x1004b3a
push dword [ebp - 0x18]
push 1
push eax
call fcn.0100bf9f
cmp eax, 0xffffffff
je 0x1004bad
mov edi, dword [ebp + 0x14]
xor ecx, ecx
inc ecx
mov dword [edi + 8], ecx
mov eax, dword [esi + 0x4c]
test al, 2
je 0x1004b78
mov eax, dword [ebp - 0xc]
push esi
add eax, eax
push eax
push ecx
push dword [ebp - 4]
call fcn.01003f67
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x1004b69
cmp dword [esi + 0x4c], 2
je 0x1004bad
jmp 0x1004b89
cmp dword [esi + 0x44], ebx
jne 0x1004b89
cmp dword [esi + 0x54], ebx
jne 0x1004b89
inc dword [edi + 0x10]
jmp 0x1004b89
cmp eax, ebx
je 0x1004b89
cmp dword [esi + 0x44], ebx
jne 0x1004b89
cmp dword [esi + 0x54], ebx
jne 0x1004b89
mov dword [edi + 8], ebx
cmp dword [edi + 8], 1
je 0x1004b9a
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x1004b9a
test al, 4
je 0x1004bad
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004819
mov dword [ebp - 0x14], eax
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
jb 0x1004ad1
jmp 0x1004bc4
push eax
call fcn.01002093
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x1004bde
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10014bc
add eax, 0x20
push eax
call fcn.0100af4e
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
mov eax, dword [ebp - 0x14]
jmp 0x1004bf6
push 0x57
call fcn.01002093
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10069ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jne 0x1006a35
mov eax, dword [ebp - 4]
inc eax
and eax, 0xfffffffe
mov dword [ebp - 4], eax
add eax, 2
push eax
call fcn.010099e1
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x10069fb
push 8
pop eax
jmp 0x1006a35
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
jne 0x1006a2a
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01006335
lea eax, [ebp - 0xc]
push eax
call fcn.01009f4b
mov eax, esi
pop edi
pop esi
leave
ret 0x10
Function at 0x1007788
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100d008]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
je 0x1007958
cmp esi, edi
je 0x1007958
lea eax, [ebp - 0x5c]
push eax
push 9
call fcn.01001b93
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push dword [ebp + 8]
call fcn.0100752e
test eax, eax
jne 0x10077ef
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x40
push eax
call fcn.0100b4f9
inc edi
jmp 0x100794b
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x60], ebx
jne 0x1007804
push 9
call fcn.01001f2f
jmp 0x100794a
lea eax, [ebp - 0x64]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
mov dword [ebp - 0x60], ebx
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10078ec
lea eax, [ebp - 0x64]
push eax
call fcn.01001b65
push edi
push edi
push 3
push edi
push edi
push 0xc0010000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100788a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0xce
call fcn.0100b4a7
push edi
push 0xcf
mov esi, eax
call fcn.0100b4a7
mov ebx, eax
push dword [ebp - 0x4c]
push esi
push dword [ebp - 0x18]
push ebx
call fcn.01001c89
cmp eax, 2
jg 0x100786a
dec eax
neg eax
sbb eax, eax
and eax, 0x4c7
mov esi, eax
jmp 0x10078a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1007899
xor esi, esi
jmp 0x10078a5
mov dword [ebp - 0x60], edi
mov esi, 0x322
cmp esi, edi
jne 0x10078fd
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x14], eax
call fcn.010023e5
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x10078bf
mov esi, 0x322
jmp 0x100790a
push dword [ebp - 0x1c]
push eax
call fcn.01008d15
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10078e1
mov dword [ebp - 0x60], edi
mov esi, 0x322
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10078f9
cmp esi, 6
jne 0x10078f9
mov dword [ebp - 0x60], edi
mov esi, 0x321
cmp esi, edi
je 0x1007931
cmp esi, 0x4c7
je 0x1007931
cmp dword [ebp - 0x60], edi
jne 0x1007919
push edi
push esi
call fcn.0100b4a7
push eax
call fcn.0100965b
jmp 0x100791f
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor edi, edi
inc edi
push 0x20001
add eax, 0x40
jmp 0x1007944
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
pop ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.01001c25
mov eax, edi
jmp 0x1007971
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01009740
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.010092ae
leave
ret 8
Function at 0x1007b1d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x104d6a4]
push esi
mov esi, dword [0x104d6ac]
cmp ecx, esi
push edi
jne 0x1007bf0
cmp dword [section..data], 1
lea eax, [ebp - 4]
push 0
push eax
jne 0x1007b7d
push 0x10000
push 0x102d6a0
push dword [0x104d6a0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1007b71
mov dword [0x100d684], 0x2bf
jmp 0x1007bf2
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x1007baf
mov edi, 0x10000
push edi
mov esi, 0x100d6a0
push esi
push dword [0x104d6a0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1007b62
push edi
push 0x102d6a0
push dword [ebp - 4]
push esi
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, dword [0x104d6b0]
add dword [0x104d6b4], eax
xor ecx, ecx
test edi, edi
mov dword [0x104d6ac], esi
mov dword [0x104d6a4], ecx
je 0x1007bde
mov eax, dword [0x104d6b4]
xor edx, edx
div edi
cmp eax, 0x64
jbe 0x1007be1
push 0x64
pop eax
cmp dword [0x104d6b8], eax
je 0x1007bee
mov dword [0x104d6b8], eax
cmp ecx, esi
jl 0x1007bf6
xor eax, eax
jmp 0x1007c0d
mov ax, word [ecx*2 + 0x102d6a0]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [0x104d6a4]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x1007c93
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x104d6a4]
test eax, eax
je 0x1007cd6
push 0
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push 0x102d6a0
push dword [0x104d6a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007ccc
mov eax, dword [0x104d6a4]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x1007cd6
mov dword [0x100d684], 0x322
and dword [0x104d6a4], 0
leave
ret
Function at 0x1007ce4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1007d19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1007dd4
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1007d5f
cmp eax, 0xea
je 0x1007d5f
cmp eax, 0x7a
je 0x1007d5f
mov esi, eax
jmp 0x1007d78
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1007d85
push 8
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1007dd3
push edi
xor edi, edi
mov eax, dword [ebp - 8]
inc eax
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1007da9
push esi
push dword [ebp - 4]
call fcn.01007ce4
test eax, eax
je 0x1007daa
inc edi
cmp eax, 0x103
je 0x1007db6
cmp edi, dword [ebp - 0x10]
jb 0x1007d88
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
leave
ret 8
Function at 0x1008283
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100d008]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 2
xor ebx, ebx
push ebx
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10082c2
mov dword [0x100d684], 0x2c0
jmp 0x10084b1
lea eax, [ebp - 0x208]
push eax
call fcn.01007b1d
test eax, eax
je 0x1008499
push esi
push edi
dec dword [0x104d6a4]
push 0x5c
call fcn.01007c18
test eax, eax
je 0x10082f0
mov esi, 0x10018e8
jmp 0x10082fe
cmp word [0x1001634], bx
mov esi, 0x1001634
je 0x1008318
xor eax, eax
mov ax, word [esi]
push eax
call fcn.01007c18
inc esi
inc esi
test eax, eax
je 0x100847e
cmp word [esi], bx
jne 0x10082fe
push 0x5c
call fcn.01007c18
mov edi, eax
cmp edi, ebx
je 0x100847e
xor esi, esi
jmp 0x1008354
mov ecx, dword [ebp - 0x208]
cmp cx, 0x20
je 0x1008368
push ecx
call fcn.01007c70
test eax, eax
jne 0x1008368
cmp esi, 0xff
jae 0x1008366
mov word [ebp + esi*2 - 0x204], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.01007b1d
test eax, eax
jne 0x100832d
jmp 0x1008368
xor edi, edi
cmp edi, ebx
je 0x100847e
mov word [ebp + esi*2 - 0x204], bx
call fcn.010081b4
push 0x3d
call fcn.01007c18
test eax, eax
je 0x100838f
push 0x20
call fcn.01007c18
push 0x100
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, ebx
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x208]
push eax
call fcn.01007b1d
test eax, eax
je 0x1008429
mov ebx, 0x200
cmp dword [ebp - 0x20c], 0
je 0x100845f
push dword [ebp - 0x208]
call fcn.01007c70
test eax, eax
jne 0x1008427
lea eax, [ebx - 0x101]
cmp edi, eax
jb 0x100840b
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
mov dword [ebp - 0x20c], ecx
je 0x100845f
mov esi, eax
add ebx, 0x100
mov ax, word [ebp - 0x208]
mov word [esi + edi*2], ax
lea eax, [ebp - 0x208]
push eax
inc edi
call fcn.01007b1d
test eax, eax
jne 0x10083c2
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
je 0x1008461
lea eax, [edi + edi]
push eax
push esi
mov word [eax + esi], bx
push 1
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x100846b
mov dword [0x100d684], 0x2c1
jmp 0x100846b
xor ebx, ebx
mov dword [0x100d684], 0x6b
cmp esi, ebx
je 0x1008476
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20c], ebx
jne 0x1008483
call fcn.010081e4
lea eax, [ebp - 0x208]
push eax
call fcn.01007b1d
test eax, eax
jne 0x10082d8
pop edi
pop esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010092ae
leave
ret
Function at 0x1008d15
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100d008]
or dword [ebp - 0x258], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
mov dword [ebp - 4], eax
mov dword [0x100d684], esi
je 0x1008d65
push esi
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.01007e2d
test eax, eax
je 0x1008d65
mov dword [0x100d684], 0x3f2
jmp 0x1008e70
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push ebx
mov dword [0x100d020], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x104d6a0], eax
je 0x1008e56
push esi
lea ecx, [ebp - 0x25c]
push ecx
push 2
push 0x1001914
push eax
mov dword [0x104d6a4], esi
mov dword [0x104d6a8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1001918
call fcn.0100853d
push 0x10014fc
call fcn.0100853d
push 0x1001958
call fcn.0100853d
push 0x10019dc
call fcn.0100853d
cmp edi, esi
lea eax, [ebp - 0x254]
je 0x1008dfe
push edi
push 0x128
push eax
call fcn.01007a81
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
jmp 0x1008e3e
push 0x10015f4
mov ebx, 0x128
push ebx
push eax
call fcn.01007a81
lea eax, [ebp - 0x254]
push eax
push 0x80000002
call fcn.01008a3e
push 0x10015d4
push ebx
lea eax, [ebp - 0x254]
push eax
call fcn.01007a81
lea eax, [ebp - 0x254]
push eax
push 0x80000003
call fcn.01008a3e
call fcn.01007c93
push dword [0x104d6a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008e60
mov dword [0x100d684], 0x6e
cmp edi, esi
je 0x1008e70
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010092ae
leave
ret 8
Function at 0x10092ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100d008]
jne 0x10092bf
test ecx, 0xffff0000
jne 0x10092bf
ret
jmp fcn.010092c9

Function at 0x10093ae
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001a58
call fcn.01009590
cmp word [0x1000000], 0x5a4d
jne 0x10093ec
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10093ec
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1009405
cmp ecx, 0x20b
je 0x10093f2
and dword [ebp - 0x1c], 0
jmp 0x1009419
cmp dword [eax + 0x84], 0xe
jbe 0x10093ec
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1009413
cmp dword [eax + 0x74], 0xe
jbe 0x10093ec
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x104d6bc], 0xffffffff
or dword [0x104d6c0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100d350]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100d34c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x104d6c4], eax
call fcn.0100961c
cmp dword [0x100d010], 0
jne 0x1009476
push fcn.0100961c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01009605
push 0x10011f4
push 0x10011f0
call sub.msvcrt.dll__initterm
mov eax, dword [0x100d348]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100d344]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x10011ec
push 0x10011e4
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01002b2d
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x10094ee
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1009523
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010095cb
ret