joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005d94e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
push esi
mov esi, ecx
je 0x1005d963
cmp dword [ebp + 0xc], 1
jne 0x1005d9ca
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x1005d971
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x1005d979
mov edx, dword [edx]
lea eax, [eax*2 + 2]
push eax
push ecx
push dword [ebp + 0xc]
push 0
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1005d9a1
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d9c5
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005d9f5
test byte [eax + 0x44], 1
je 0x1005d9f5
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x2e
jmp 0x1005d9ef
pop esi
leave
ret 8
mov eax, dword [0x101923c0]
mov esi, 0x80070057
cmp eax, 0x101923c0
je 0x1005d9f5
test byte [eax + 0x44], 1
je 0x1005d9f5
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x2d
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 4]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005da5e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 1
cmp eax, 2
jb 0x1005dab9
xor edi, edi
cmp di, word [esi + eax*2 - 2]
jne 0x1005dab9
cmp di, word [esi + eax*2 - 4]
jne 0x1005dab9
cmp dword [edx + 0x14], 8
jb 0x1005da93
mov edx, dword [edx]
add eax, eax
push eax
push esi
push 7
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1005dab5
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1005daff
jmp 0x1005daf7
mov eax, dword [0x101923c0]
mov esi, 0x80070057
cmp eax, 0x101923c0
je 0x1005dae4
test byte [eax + 0x44], 1
je 0x1005dae4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x2f
pop ecx
call fcn.100401e4
push esi
lea ecx, [esp + 0x10]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x1005db36
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005db25
test byte [eax + 0x44], 1
je 0x1005db25
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x32
pop ecx
call fcn.100401e4
push esi
lea ecx, [esp + 0x10]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005dc3f
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x1c
mov eax, 0x101665a8
call fcn.10163eac
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.1005f6d7
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 0x1005dcc5
cmp esi, 0x103
je 0x1005dcb0
cmp esi, 2
je 0x1005dcd5
test esi, esi
jle 0x1005dcac
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1005dce5
jmp 0x1005dcd5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x1005dcbe
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
jmp 0x1005dcd5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10045aa5
lea ecx, [ebp - 0x28]
call fcn.10044cdb
call fcn.10163e7a
ret 0xc
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005dd0b
test byte [eax + 0x44], 1
je 0x1005dd0b
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x35
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x18]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005f53c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x110
xor ebx, ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005f5ab
cmp dword [ebp - 0x11c], 6
jb 0x1005f599
jne 0x1005f59b
cmp dword [ebp - 0x118], 2
jae 0x1005f59b
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005f5c0
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005f5e6
test byte [eax + 0x44], 1
je 0x1005f5e6
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x79
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x124]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005fa5c
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1019fbfc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov bl, dl
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push 0x1001b324
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1003fd37
mov esi, eax
add esp, 0x14
test esi, esi
js 0x1005fb28
push 9
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005facc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005facc
movzx esi, si
or esi, 0x80070000
lea eax, [ebp - 0x210]
test esi, esi
jns 0x1005fb04
test bl, bl
je 0x1005fb04
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1005fb00
test byte [eax + 0x44], 4
je 0x1005fb00
push edi
push dword [eax + 0x3c]
mov edx, 0x1001b330
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.10040085
mov eax, edi
xor esi, esi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005fb28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005fb28
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101637b0
leave
ret
Function at 0x1006009b
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x300
mov eax, 0x10166962
call fcn.10163edf
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.1003ef5c
push 0x1001b3b8
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.100608c4
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 0x1001b3d0
call fcn.100608c4
or esi, 0xffffffff
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], esi
call fcn.10045ea6
mov byte [ebp - 0x34], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
push ebx
push 1
call fcn.10045ee3
cmp byte [ebp - 0x34], 0
je 0x10060159
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x34], bl
jae 0x10060144
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 0x1006016b
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 0x100601dd
push 0x10018fc0
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa8]
call fcn.100608c4
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.10045515
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.10045157
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.10045ee3
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x100601ce
lea ecx, [ebp - 0x30]
mov dl, 1
call fcn.1005fb39
lea ecx, [ebp - 0x30]
jmp 0x10060127
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x100601e9
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x54], esi
je 0x100601fe
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10045ee3
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10045ee3
lea ecx, [ebp - 0x30c]
mov dword [ebp - 4], esi
call fcn.1003efeb
mov bh, byte [ebp + 0xc]
mov bl, byte [ebp + 0x10]
test bh, bh
jne 0x10060234
test bl, bl
je 0x100602b4
push esi
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.1005fbec
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov dword [ebp - 0x300], eax
cmp eax, esi
je 0x10060283
lea edx, [eax + 0xc]
test bh, bh
je 0x10060260
push 0
mov ecx, edi
call fcn.100604ef
jmp 0x1006026b
test bl, bl
je 0x1006026b
mov ecx, edi
call fcn.10060561
lea ecx, [ebp - 0x300]
call fcn.100605e2
mov eax, dword [ebp - 0x300]
cmp eax, esi
jne 0x1006024e
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x24]
push dword [esi + 4]
call fcn.10060880
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.10163e8e
ret 0xc
Function at 0x100602bc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xbc
mov eax, 0x10166995
call fcn.10163edf
mov esi, ecx
push ecx
push ecx
lea ecx, [ebp - 0xc8]
call fcn.100606a0
xor edi, edi
lea ecx, [ebp - 0xc8]
mov edx, esi
mov dword [ebp - 4], edi
call fcn.1004e8e8
mov edx, 0x1001b3b8
mov ecx, eax
call fcn.1004e8e8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004e569
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10060313
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.10045ee3
cmp esi, 0xffffffff
jne 0x10060360
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004e569
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10060347
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.10045ee3
test esi, esi
je 0x10060371
lea ecx, [ebp - 0xc8]
call fcn.1005fefd
call fcn.10163e8e
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10060386
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100603ac
test byte [eax + 0x44], 1
je 0x100603ac
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b410
push dword [eax + 0x38]
push 0xf
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x30]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100603c3
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x101669d5
call fcn.10163edf
mov esi, ecx
lea eax, [ebp - 0x30]
xor edi, edi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], edi
call fcn.1003ef5c
mov dword [ebp - 4], edi
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.100602bc
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push dword [esi + 4]
mov edx, dword [edx]
call fcn.1005fe86
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10060409
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 0x10060466
cmp eax, 0xffffffff
je 0x10060466
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
je 0x1006049d
lea ecx, [ebp - 0x30]
call fcn.1003fe40
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
lea ecx, [ebp - 0x44]
call fcn.1003efeb
call fcn.10163e8e
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1006047b
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100604d8
test byte [eax + 0x44], 1
je 0x100604d8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b410
push dword [eax + 0x38]
push 0x10
jmp 0x100604d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100604b2
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x100604d8
test byte [eax + 0x44], 1
je 0x100604d8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b410
push dword [eax + 0x38]
push 0x11
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x34]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1007bb90
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0xc]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
call fcn.10046007
lea ecx, [esi + 0x10]
mov ebx, eax
push ecx
push edi
push dword [ebp + 8]
push 0x1007bd70
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1007fc39
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
cmp dword [ebx + 0xa4], 0
je 0x1007fd10
cmp byte [ebx + 0xa8], 0
je 0x1007fd10
lea edi, [ebx + 0x94]
push esi
mov ecx, edi
call fcn.10046007
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
cmp dword [edi], 0
je 0x1007fcc4
cmp dword [edi], 0xffffffff
je 0x1007fcc4
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101a27b8]
call esi
lea edi, [ebx + 0x90]
mov ecx, edi
call fcn.10046007
mov esi, eax
xor eax, eax
push eax
push eax
push ebx
push 0x1007f910
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
cmp dword [edi], 0
je 0x1007fd14
cmp dword [edi], 0xffffffff
je 0x1007fd14
jmp 0x1007fd0f
mov eax, dword [0x101923c0]
mov esi, 0x80070000
cmp eax, 0x101923c0
je 0x1007fd03
test byte [eax + 0x44], 1
je 0x1007fd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007fcea
movzx eax, ax
or eax, esi
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001c8d4
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x53
pop ecx
call fcn.100401e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007fd72
jmp 0x1007fd6d
pop esi
pop edi
pop ebx
leave
ret
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov eax, dword [0x101923c0]
mov esi, 0x80070000
cmp eax, 0x101923c0
je 0x1007fd63
test byte [eax + 0x44], 1
je 0x1007fd63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007fd4a
movzx eax, ax
or eax, esi
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001c8d4
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x54
pop ecx
call fcn.100401e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007fd72
movzx eax, ax
or eax, esi
push eax
lea ecx, [ebp - 4]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1007fe50
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0xc]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
call fcn.10046007
lea ecx, [esi + 0x10]
mov ebx, eax
push ecx
push edi
push dword [ebp + 8]
push 0x10080280
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1008e567
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x1016ac09
call fcn.10163eac
mov ebx, ecx
lea edi, [ebx + 0x30]
cmp dword [edi + 0x14], 8
jb 0x1008e582
mov ecx, dword [edi]
jmp 0x1008e584
mov ecx, edi
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x10]
push edx
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
je 0x1008e6e5
test esi, esi
je 0x1008e5be
jle 0x1008e5b8
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008e6eb
mov eax, dword [ebx + 0x24]
push 0
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov esi, eax
test esi, esi
jns 0x1008e60b
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x1008e711
test byte [ecx + 0x44], 1
je 0x1008e711
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cd78
push dword [ecx + 0x38]
push 0x12
jmp 0x1008e70b
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov esi, eax
test esi, esi
jns 0x1008e64d
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x1008e711
test byte [ecx + 0x44], 1
je 0x1008e711
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cd78
push dword [ecx + 0x38]
push 0x13
jmp 0x1008e70b
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x1008e66e
lea ecx, [ebp - 0x28]
call fcn.1003fdee
mov ecx, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x1008e67a
mov edi, dword [edi]
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x10]
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1008e6a2
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1008e6dc
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1008e6ca
test byte [eax + 0x44], 1
je 0x1008e6ca
push esi
push dword [eax + 0x3c]
mov edx, 0x1001cd78
push dword [eax + 0x38]
push 0x14
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x20]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x1008e721
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call fcn.10163e7a
ret
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1008e711
test byte [eax + 0x44], 1
je 0x1008e711
push esi
push dword [eax + 0x3c]
mov edx, 0x1001cd78
push dword [eax + 0x38]
push 0x11
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x14]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x10093e30
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x1016b35c
call fcn.10163edf
mov esi, ecx
mov dword [ebp - 0x34], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x10093e55
xor eax, eax
jmp 0x10093fc7
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x10093e81
mov edx, dword [esi + 0x34]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x10093e81
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x24]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x10093fc7
cmp dword [esi + 0x54], 0
je 0x10093fc4
mov ecx, esi
call fcn.100940c9
cmp dword [esi + 0x44], 0
jne 0x10093eb5
push dword [esi + 0x54]
push edi
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x10093fc4
movzx ebx, di
jmp 0x10093fc4
push 0
push 8
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x30], di
call fcn.10072334
and dword [ebp - 4], 0
lea eax, [esi + 0x4c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x10093ee1
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [esi + 0x44]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x14]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [0x101a27b8]
mov ecx, edi
call dword [esi + 0x14]
test eax, eax
js 0x10093fb8
cmp eax, 1
jg 0x10093f94
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x10093f2b
lea edx, [ebp - 0x2c]
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x10093f59
cmp eax, 0x10
jae 0x10093f3a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10093f8c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
jmp 0x10093f5c
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x40], edx
jne 0x10093f86
test edi, edi
jne 0x10093ed5
cmp dword [ebp - 0x1c], 0x20
jae 0x10093f8f
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10055f57
jmp 0x10093ecf
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x10093fb5
cmp eax, 3
jne 0x10093fb8
mov eax, dword [ebp - 0x34]
push dword [eax + 0x54]
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x10093fb5
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10057988
mov ax, bx
call fcn.10163e8e
ret 4
Function at 0x1009415e
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x1016b389
call fcn.10163edf
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x1009425f
cmp byte [ebx + 0x4a], 0
je 0x1009425f
mov esi, 0xffff
push esi
call fcn.10093e30
movzx eax, ax
cmp si, ax
jne 0x1009419a
xor al, al
jmp 0x10094261
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.10072334
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
cmp eax, 0x10
jae 0x100941bc
lea edx, [ebp - 0x2c]
mov ecx, edx
mov edi, dword [ebx + 0x44]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x4c]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x101a27b8]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x100941f2
sub eax, 1
je 0x100941f6
dec eax
sub eax, 1
je 0x1009424d
xor bl, bl
jmp 0x1009424f
mov byte [ebx + 0x4a], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
cmp eax, 0x10
jae 0x10094206
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x1009422f
cmp eax, 0x10
jae 0x10094215
lea ecx, [ebp - 0x2c]
push dword [ebx + 0x54]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x100941ee
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp byte [ebx + 0x4a], 0
je 0x1009424d
test esi, esi
jne 0x100941b0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10055f57
jmp 0x100941aa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10057988
mov al, bl
jmp 0x10094261
mov al, 1
call fcn.10163e8e
ret