joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004011a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x10167df7
call fcn.101673a2
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005db8f
cmp dword [ebp - 0x10], ebx
je 0x10040150
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x10018cf0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x1004017d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004019e
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
jne 0x1004027b
jmp 0x1004028f
mov byte [ebp - 4], bl
cmp dword [ebp - 0x14], 0
je 0x100401b0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x18
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
jne 0x10040219
cmp dword [ebp - 0x18], 4
jne 0x100401ea
cmp dword [ebp - 0x24], 4
jne 0x100401ea
cmp dword [ebp - 0x1c], eax
jmp 0x1004021c
mov eax, dword [0x101973c0]
mov esi, 0x8000ffff
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
je 0x1004028f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1a
jmp 0x10040289
cmp esi, 2
je 0x10040264
test esi, esi
jle 0x1004022d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10040251
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1004028f
test byte [eax + 0x44], 1
je 0x1004028f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1b
jmp 0x10040289
cmp dword [ebp - 0x10], 0
je 0x10040260
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10040275
cmp dword [ebp - 0x10], 0
je 0x10040273
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.10167370
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x19
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x20]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100402a6
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xc
mov eax, 0x10167e22
call fcn.101673a2
mov bl, dl
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005db8f
cmp dword [ebp - 0x10], 0
je 0x100402e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push 0x10018cf0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x1004030a
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004032b
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040410
test byte [eax + 0x44], 1
jne 0x100403fc
jmp 0x10040410
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x1004033e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x100403a8
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1004036e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100403e7
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040396
test byte [eax + 0x44], 1
je 0x10040396
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1d
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x14]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x10040420
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jle 0x100403c3
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x100403e7
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10040410
test byte [eax + 0x44], 1
je 0x10040410
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1e
jmp 0x1004040a
cmp dword [ebp - 0x10], 0
je 0x100403f6
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10167370
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x1c
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x18]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x10042e3d
Capabilities:
Compare security identifiers

Disassembly:
push 0xcc
mov eax, 0x1016810b
call fcn.101673d5
mov esi, ecx
lea ecx, [ebp - 0x74]
call fcn.10149ac2
push ecx
push ecx
lea eax, [ebp - 0x74]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10044949
test al, al
jne 0x10042e8c
mov eax, dword [0x101973c0]
mov esi, 0x8000ffff
cmp eax, 0x101973c0
je 0x10042f15
test byte [eax + 0x44], 1
jne 0x10042f01
jmp 0x10042f15
push 0x12
push 1
lea eax, [ebp - 0xd4]
push 0x10018ba4
push eax
call fcn.1003eec2
add esp, 0x10
cmp byte [ebp - 0x2c], bl
je 0x10042ee6
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10042ee6
cmp byte [ebp - 0x8c], bl
je 0x10042ee6
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10042ee6
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
lea ecx, [ebp - 0xd4]
call fcn.1003efec
lea ecx, [ebp - 0x74]
call fcn.1003efec
mov al, bl
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x59
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0xd8]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100502db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x10169099
call fcn.10167441
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x420], esi
push 2
pop ecx
push ecx
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x1005033e
call fcn.1003ed41
mov esi, eax
jmp 0x1005046e
push esi
push ebx
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1005035d
call fcn.1003ed41
jmp 0x10050465
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x10050353
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x100503b4
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x1005039f
lea ecx, [ebp - 0x420]
call fcn.100545db
lea ecx, [ebp - 0x428]
call fcn.10044093
mov eax, 0x8007000e
jmp 0x10050494
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1005049c
cmp eax, 0xffffffff
ja 0x1005049c
cmp eax, 0x400
jbe 0x100503e8
push eax
lea ecx, [ebp - 0x420]
call fcn.10149ac2
mov eax, dword [ebp - 0x420]
jmp 0x100503f4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 1
jmp 0x1005041e
test eax, eax
jne 0x10050429
mov esi, 0x8007000e
jmp 0x10050467
push ebx
push eax
push ebx
push dword [ebp - 0x430]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10050353
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x438]
push dword [ebp - 0x420]
call fcn.10149ac2
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10050487
lea ecx, [ebp - 0x420]
call fcn.100545db
lea ecx, [ebp - 0x428]
call fcn.10044093
mov eax, esi
call fcn.10167393
ret 0x10
mov ecx, 0x80070057
call fcn.10149ac2
int3
Function at 0x1005d2a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x10169bf4
call fcn.101673a2
mov edi, edx
mov ebx, ecx
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x1005d2c1
mov eax, dword [edi]
jmp 0x1005d2c3
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push edx
push edx
push edx
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
jne 0x1005d2e4
cmp byte [ebp + 8], 0
je 0x1005d3bb
cmp esi, 0xea
je 0x1005d31c
test esi, esi
jle 0x1005d2fb
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d31c
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d3d7
test byte [eax + 0x44], 1
jne 0x1005d3c3
jmp 0x1005d3d7
xor eax, eax
lea ecx, [ebp - 0xe]
mov word [ebp - 0xe], ax
xor esi, esi
mov eax, dword [ebp - 0x14]
shr eax, 1
push ecx
inc eax
mov dword [ebp - 0x28], esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.10149ac2
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x1005d34b
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1005d36e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d3a8
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d396
test byte [eax + 0x44], 1
je 0x1005d396
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2a
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x18]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x1005d3e7
push dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
call fcn.10149ac2
lea ecx, [ebp - 0x28]
call fcn.10044371
call fcn.10167370
ret 8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x29
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x10]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005d808
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x1c
mov eax, 0x10169bf4
call fcn.101673a2
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp - 0xe], cx
xor ebx, ebx
lea ecx, [ebp - 0xe]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.10149ac2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x28]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x1005d8a0
cmp esi, 0x103
je 0x1005d88b
cmp esi, 2
je 0x1005d8b0
test esi, esi
jle 0x1005d875
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d8b0
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d8d4
test byte [eax + 0x44], 1
jne 0x1005d8c0
jmp 0x1005d8d4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x1005d899
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
jmp 0x1005d8b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10149ac2
lea ecx, [ebp - 0x28]
call fcn.10044371
call fcn.10167370
ret 0xc
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x35
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x18]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005f169
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x114
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_GetVersionExW]
test eax, eax
jne 0x1005f1d8
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005f1c4
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005f214
test byte [eax + 0x44], 1
jne 0x1005f200
jmp 0x1005f214
cmp dword [ebp - 0x11c], 6
jb 0x1005f1ec
jne 0x1005f1ee
cmp dword [ebp - 0x118], 2
jae 0x1005f1ee
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x79
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x124]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005fd20
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x300
mov eax, 0x10169ff4
call fcn.101673d5
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x300]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x300], ebx
call fcn.10149ac2
push 0x1001b1b0
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.10060566
push 0x250
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 1
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x8c]
push 0x1001b1c8
call fcn.10060566
or esi, 0xffffffff
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], esi
call fcn.10149ac2
mov byte [ebp - 0x34], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
push ebx
push 1
call fcn.10149ac2
cmp byte [ebp - 0x34], 0
je 0x1005fdde
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x34], bl
jae 0x1005fdc9
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x54], eax
cmp eax, esi
jmp 0x1005fdf0
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x1005fe62
push 0x10018f30
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa8]
call fcn.10060566
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.10149ac2
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], ebx
call fcn.10149ac2
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.10149ac2
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x1005fe53
lea ecx, [ebp - 0x30]
mov dl, 1
call fcn.1005f7ae
lea ecx, [ebp - 0x30]
jmp 0x1005fdac
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x1005fe6e
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x54], esi
je 0x1005fe83
push dword [ebp - 0x54]
call dword [sym.imp.kernel32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10149ac2
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10149ac2
lea ecx, [ebp - 0x30c]
mov dword [ebp - 4], esi
call fcn.10149ac2
mov bh, byte [ebp + 0xc]
mov bl, byte [ebp + 0x10]
test bh, bh
jne 0x1005feb9
test bl, bl
je 0x1005ff39
push esi
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.1005f861
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov dword [ebp - 0x300], eax
cmp eax, esi
je 0x1005ff08
lea edx, [eax + 0xc]
test bh, bh
je 0x1005fee5
push 0
mov ecx, edi
call fcn.10149ac2
jmp 0x1005fef0
test bl, bl
je 0x1005fef0
mov ecx, edi
call fcn.100601ec
lea ecx, [ebp - 0x300]
call fcn.10060288
mov eax, dword [ebp - 0x300]
cmp eax, esi
jne 0x1005fed3
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x24]
push dword [esi + 4]
call fcn.10149ac2
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], eax
push dword [ebp - 0x20]
and dword [ebp - 0x1c], 0
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
call fcn.10167384
ret 0xc
Function at 0x1005ff41
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xbc
mov eax, 0x1016a027
call fcn.101673d5
mov esi, ecx
push ecx
push ecx
lea ecx, [ebp - 0xc8]
call fcn.10060346
xor edi, edi
lea ecx, [ebp - 0xc8]
mov edx, esi
mov dword [ebp - 4], edi
call fcn.1004e242
mov edx, 0x1001b1b0
mov ecx, eax
call fcn.1004e242
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004dead
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1005ff98
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push edi
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10149ac2
cmp esi, 0xffffffff
jne 0x1006000e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004dead
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1005ffcc
lea eax, [ebp - 0x2c]
push edi
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push edi
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10149ac2
test esi, esi
jne 0x1006000e
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005fffa
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10060033
test byte [eax + 0x44], 1
jne 0x1006001f
jmp 0x10060033
lea ecx, [ebp - 0xc8]
call fcn.10149ac2
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b208
push dword [eax + 0x38]
push 0xf
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x30]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1006004a
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x1016a067
call fcn.101673d5
mov esi, ecx
lea eax, [ebp - 0x30]
xor edi, edi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
call fcn.10149ac2
mov dword [ebp - 4], edi
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.1005ff41
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push dword [esi + 4]
mov edx, dword [edx]
call fcn.1005fb06
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10060090
lea eax, [ebp - 0x2c]
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10060116
cmp eax, 0xffffffff
je 0x10060116
push edi
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
mov ecx, dword [esi + 8]
push dword [ecx]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x100600f5
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100600e1
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10060161
test byte [eax + 0x44], 1
jne 0x1006014d
jmp 0x10060161
lea ecx, [ebp - 0x30]
call fcn.1003f382
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10149ac2
lea ecx, [ebp - 0x44]
call fcn.10149ac2
call fcn.10167384
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1006012b
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10060161
test byte [eax + 0x44], 1
je 0x10060161
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b208
push dword [eax + 0x38]
push 0x10
jmp 0x1006015b
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b208
push dword [eax + 0x38]
push 0x11
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x34]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1008ef64
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x1016e99c
call fcn.101673d5
mov ebx, ecx
lea edi, [ebx + 0x30]
cmp dword [edi + 0x14], 8
jb 0x1008ef7f
mov ecx, dword [edi]
jmp 0x1008ef81
mov ecx, edi
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x1c]
push edx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
je 0x1008f0fd
test esi, esi
je 0x1008efd6
jle 0x1008efb5
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1008efd6
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1008f117
test byte [eax + 0x44], 1
jne 0x1008f103
jmp 0x1008f117
mov eax, dword [ebx + 0x24]
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x101a77c4]
call esi
mov esi, eax
test esi, esi
jns 0x1008f023
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1008f117
test byte [ecx + 0x44], 1
je 0x1008f117
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001caf8
push dword [ecx + 0x38]
push 0x12
jmp 0x1008f111
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov esi, eax
test esi, esi
jns 0x1008f065
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1008f117
test byte [ecx + 0x44], 1
je 0x1008f117
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001caf8
push dword [ecx + 0x38]
push 0x13
jmp 0x1008f111
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x1008f086
lea ecx, [ebp - 0x24]
call fcn.10149ac2
mov ecx, dword [ebp - 0x20]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x1008f092
mov edi, dword [edi]
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x1c]
push edx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1008f0ba
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1008f0f4
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1008f0e2
test byte [eax + 0x44], 1
je 0x1008f0e2
push esi
push dword [eax + 0x3c]
mov edx, 0x1001caf8
push dword [eax + 0x38]
push 0x14
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x30]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x1008f127
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001caf8
push dword [eax + 0x38]
push 0x11
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x18]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3