joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100088da
Capabilities:
Create process on windows

Disassembly:
push 0x9c
mov eax, 0x100a69dc
call fcn.100889c6
mov ebx, ecx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x68], esp
xor edi, edi
push 0x100b194c
mov dword [ebp - 4], edi
call fcn.10003bd6
lea ecx, [ebp + 8]
call fcn.10012449
lea eax, [ebp + 0x98]
push eax
lea esi, [ebp - 0x2c]
call fcn.100019af
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x68], esp
push str.cmdline
mov byte [ebp - 4], 1
call fcn.10003bd6
lea ecx, [ebp + 8]
call fcn.10012449
lea eax, [ebp + 0x98]
push eax
lea esi, [ebp - 0x64]
call fcn.100019af
push str.open
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.10003bd6
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xa4]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.10088230
mov eax, dword [ebp - 0x28]
add esp, 0xc
push 8
mov dword [ebp - 0xa4], esi
pop esi
mov dword [ebp - 0xa0], 0x400
cmp dword [ebp - 0x14], esi
jae 0x1000898d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x1000899e
lea eax, [ebp - 0x44]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], esi
jae 0x100089af
lea eax, [ebp - 0x60]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x88], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10008a27
cmp dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x28]
jae 0x100089db
lea esi, [ebp - 0x28]
call fcn.10014836
push eax
push esi
push str.Failed_to_ShellExecuteEx__s._Last_error____s
lea ecx, [ebx + 0xc]
call fcn.10014283
add esp, 0xc
xor ebx, ebx
push edi
push 1
lea esi, [ebp - 0x48]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp - 0x64]
call fcn.10001b5a
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b5a
lea edi, [ebp + 8]
call fcn.100123ea
mov eax, ebx
call fcn.10088a49
ret 0xc8
xor ebx, ebx
inc ebx
jmp 0x100089f4
Function at 0x100143ed
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x4c
lea ebp, [esp - 4]
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push 0x88
mov eax, 0x100a5273
call fcn.10088990
and dword [ebp - 4], 0
cmp dword [0x100d25d0], 0
mov edi, dword [ebp + 0x58]
mov esi, ecx
mov ebx, edx
jne 0x1001442f
call fcn.10014572
test eax, eax
je 0x1001453c
push dword [ebp + 0x5c]
mov ecx, esi
push edi
push ebx
lea ebx, [ebp + 0x14]
call fcn.1001486c
mov byte [ebp - 4], 1
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x1001444e
lea eax, [ebp + 0x18]
push 0xfde9
push eax
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x90]
push eax
mov dword [ebp - 0x94], ecx
call fcn.10010fc3
mov byte [ebp - 4], 2
push dword [ebp - 0x94]
lea ecx, [ebp + 0x30]
call fcn.10003bf5
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x10014498
push dword [ebp - 0x94]
call fcn.10084d07
pop ecx
push str.S:_ML__NW___LW_
lea esi, [ebp]
call fcn.1001400a
mov byte [ebp - 4], 5
cmp dword [0x100d281c], 8
mov eax, dword [0x100d2808]
jae 0x100144bc
mov eax, 0x100d2808
push eax
lea eax, [ebp]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10015c75
push 0xffffffffffffffff
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x34]
xor esi, esi
cmp dword [ebp + 0x48], 0x10
mov dword [ebp + 0xc], esi
jae 0x100144e6
lea eax, [ebp + 0x34]
push esi
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x44]
push eax
push dword [0x100d25d0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp + 0x10], esi
je 0x10014515
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10], esi
cmp dword [ebp + 4], esi
je 0x10014526
push dword [ebp + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 4], esi
push esi
push 1
lea ecx, [ebp + 0x30]
call fcn.10003f2c
push esi
push 1
lea esi, [ebp + 0x14]
call fcn.10001b5a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.100848d4
add ebp, 0x50
leave
ret 8

Function at 0x10014cf5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10014d0c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10014d41
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10014d3d
cmp edi, eax
jae 0x10014d41
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10014d2f
cmp edi, eax
jb 0x10014d45
xor eax, eax
jmp 0x10014d4e
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10016006
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x234
lea ebp, [esp - 4]
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp + 0x234], eax
push 8
mov eax, 0x100a255b
call fcn.1008895d
mov eax, dword [ebp + 0x240]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebp + 0x28], 7
mov dword [ebp + 0x24], ebx
mov word [ebp + 0x14], ax
push str.shell32.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1001609e
push str.SHGetKnownFolderPath
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001609e
mov esi, 0x100b0330
lea edi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp]
push ecx
movsd dword es:[edi], dword [esi]
call eax
test eax, eax
jl 0x1001609e
push dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.10001a89
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0x24], ebx
jne 0x100160ea
push 0x208
lea eax, [ebp + 0x2c]
push ebx
push eax
call fcn.10088230
add esp, 0xc
lea eax, [ebp + 0x2c]
push eax
push 1
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x100160d8
mov esi, dword [ebp - 0x14]
push 0x100acd34
call fcn.10003bd6
jmp 0x10016118
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001a89
cmp dword [ebp + 0x24], ebx
je 0x1001610c
mov edi, dword [ebp + 0x24]
dec edi
lea eax, [ebp + 0x10]
call fcn.100171da
push 0x5c
pop ecx
cmp cx, word [eax]
je 0x1001610c
push 0x100b365c
lea eax, [ebp + 0x10]
push eax
call fcn.10003e0b
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0x10]
push eax
call fcn.100019af
push ebx
push 1
lea esi, [ebp + 0x10]
call fcn.10001b5a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x234]
xor ecx, ebp
call fcn.100848d4
add ebp, 0x238
leave
ret

Function at 0x10016149
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x100a2538
call fcn.1008895d
xor edi, edi
mov dword [ebp - 4], edi
push 0x100acd34
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
call fcn.10003bd6
push edi
mov dword [ebp - 4], edi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
inc esi
mov dword [ebp - 0x14], esi
call edi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100838fc
pop ecx
mov dword [ebp - 0x10], eax
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x100161b0
push dword [ebp - 0x10]
push ebx
call fcn.10001a89
push esi
mov esi, 0x100b365c
push esi
mov eax, ebx
call fcn.10014adb
mov ecx, dword [ebx + 0x14]
dec ecx
cmp eax, ecx
je 0x100161cd
push esi
push ebx
call fcn.10003e0b
cmp dword [ebp - 0x10], 0
je 0x100161dc
push dword [ebp - 0x10]
call fcn.100848c9
pop ecx
mov eax, ebx
call fcn.10088a35
ret
Function at 0x10016cd2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x10016cfc
push eax
jmp 0x10016d4c
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10016d43
cmp dword [esi + 0x18], 8
jb 0x10016d20
mov eax, dword [esi + 4]
jmp 0x10016d23
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10086205
pop ecx
pop ecx
test eax, eax
je 0x10016d62
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10016d15
test edi, edi
je 0x10016d52
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100848d4
leave
ret
mov esi, dword [ebp - 0x228]
test edi, edi
je 0x10016d73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10016d54

Function at 0x10017b71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10017bd5
cmp dword [ebp + 0xc], 1
je 0x10017bad
cmp dword [ebp + 0xc], 2
je 0x10017bad
push 0xd
pop eax
jmp 0x10017bd5
mov eax, dword [ebp - 4]
test edi, edi
je 0x10017bcf
test eax, eax
je 0x10017bca
test al, 1
jne 0x10017ba8
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10017bcf
jmp 0x10017ba8
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x1001a921
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [edi + 0x50]
cmp dword [ebx], 0
push esi
je 0x1001a933
xor eax, eax
jmp 0x1001a981
mov esi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 4], esi
call fcn.10015d84
test eax, eax
jne 0x1001a95b
push ebx
push eax
push edi
push 0x10015d60
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x4c], eax
test eax, eax
je 0x1001a92f
add esi, 0x24
call fcn.1002db7e
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
add ebx, 4
call fcn.1001aaf1
mov dword [eax], edi
call fcn.1002db8c
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
Function at 0x10020ea7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1df5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100cd130]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x100cd130]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ebx
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x3c]
mov dword [esp + 0x68], ebx
call fcn.1000199c
mov byte [esp + 0x68], 1
mov dword [esp + 0x2c], ebx
lea eax, [edi + 0x7c]
cmp byte [ebp + 0x14], bl
jne 0x10020f24
lea eax, [edi + 0x5c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x3c], ecx
push ebx
add eax, 4
lea ecx, [esp + 0x44]
call fcn.100019fd
cmp dword [esp + 0x50], ebx
jne 0x10020f5d
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.10003bd6
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.10001b5a
jmp 0x10021029
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x10020f6c
lea eax, [esp + 0x40]
push 0x20019
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x24]
call fcn.10017bd9
test eax, eax
je 0x10020f92
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.10003bd6
jmp 0x1002100d
lea eax, [esp + 0x2c]
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x38]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020f83
mov esi, dword [esp + 0x2c]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [esp + 0x24], esi
neg ecx
or ecx, eax
push ecx
call fcn.100838fc
mov edi, eax
pop ecx
mov dword [esp + 0x30], edi
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.10017b71
mov esi, dword [esp + 0x14]
test eax, eax
je 0x10020ffc
push dword [esp + 0x20]
jmp 0x10020ffd
push edi
call fcn.10003bd6
cmp edi, ebx
je 0x1002100d
push edi
call fcn.100848c9
pop ecx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.10001b5a
cmp dword [esp + 0x18], ebx
je 0x10021029
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.100848d4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002104d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1db5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100cd130]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x100cd130]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x48], edi
call fcn.1000199c
mov byte [esp + 0x48], 1
lea eax, [ebx + 0x7c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
push edi
add eax, 4
mov ecx, esi
call fcn.100019fd
cmp dword [esp + 0x30], edi
jne 0x100210d1
push edi
push 1
call fcn.10001b5a
xor al, al
jmp 0x1002116b
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x100210e0
lea eax, [esp + 0x20]
push 0x20006
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.10017bd9
test eax, eax
je 0x10021136
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x10021106
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.100225f4
test eax, eax
je 0x10021136
push edi
push 1
lea esi, [esp + 0x24]
call fcn.10001b5a
cmp dword [esp + 0xc], edi
je 0x100210ca
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100210ca
push 0x100acd34
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
call fcn.100225bf
push edi
lea esi, [esp + 0x20]
push 1
test eax, eax
jne 0x1002111f
call fcn.10001b5a
cmp dword [esp + 0xc], edi
je 0x10021169
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100848d4
mov esp, ebp
pop ebp
ret 4
Function at 0x10021318
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x100a1d48
call fcn.100889c6
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1000199c
mov byte [ebp - 4], 1
lea eax, [ebx + 0x7c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [ebp - 0x30], ecx
push edi
add eax, 4
mov ecx, esi
call fcn.100019fd
cmp dword [ebp - 0x18], edi
jne 0x1002136c
push edi
push 1
call fcn.10001b5a
xor al, al
jmp 0x1002140c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10021378
lea eax, [ebp - 0x28]
push 0x20006
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.10017bd9
test eax, eax
je 0x100213c4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10021399
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.100225f4
test eax, eax
je 0x100213c4
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b5a
cmp dword [ebp - 0x38], edi
je 0x10021365
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10021365
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x38]
push 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 4
push edi
push dword [ebp - 0x3c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea esi, [ebp - 0x2c]
push 1
test eax, eax
je 0x100213fa
call fcn.10001b5a
cmp ebx, edi
je 0x10021365
push ebx
jmp 0x100213bc
call fcn.10001b5a
cmp ebx, edi
je 0x1002140a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.10088a49
ret 8
Function at 0x10022041
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x100a1c9c
call fcn.100889c6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], ebx
mov edi, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.1000199c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x6c], ebx
call fcn.1002dc74
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov dword [ebp - 0x50], eax
push ebx
lea eax, [edi + 0x60]
mov ecx, esi
call fcn.100019fd
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x100220a9
lea eax, [ebp - 0x2c]
push 0x20019
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x5c]
call fcn.10017bd9
test eax, eax
je 0x100220cb
push dword [ebp - 0x60]
mov esi, dword [ebp - 0x54]
call fcn.10003bd6
jmp 0x10022139
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100220be
mov esi, dword [ebp - 0x6c]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x64], esi
neg ecx
or ecx, eax
push ecx
call fcn.100838fc
mov edi, eax
pop ecx
mov dword [ebp - 0x70], edi
push dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.10017b71
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x10022128
push dword [ebp - 0x60]
jmp 0x10022129
push edi
call fcn.10003bd6
cmp edi, ebx
je 0x10022139
push edi
call fcn.100848c9
pop ecx
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.10001b5a
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.10001b5a
cmp dword [ebp - 0x5c], ebx
je 0x1002215d
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x54]
call fcn.10088a49
ret 0xc
Function at 0x1002bd85
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x100a0447
call fcn.1008895d
mov ebx, ecx
mov esi, edx
push 1
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001e25
and dword [ebp - 4], 0
cmp dword [ebx + 0x18], 8
jb 0x1002bdb2
mov eax, dword [ebx + 4]
jmp 0x1002bdb5
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002bdd0
lea ecx, [ebp - 0x18]
call fcn.10001e4e
xor al, al
call fcn.10088a35
ret
call fcn.1002c12a
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push 0
mov eax, ebx
mov ecx, edi
call fcn.100019fd
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [edi + 0x18], 8
jb 0x1002bdfb
mov edi, dword [edi + 4]
jmp 0x1002bdfe
add edi, 4
push edi
call fcn.10017aea
mov dword [esi + 8], eax
test eax, eax
jne 0x1002be19
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.10001e4e
mov al, bl
jmp 0x1002bdca
mov byte [esi + 0x28], 0
mov bl, 1
jmp 0x1002be0d
Function at 0x1002d5f7
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x1009fc40
call fcn.100889c6
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x38], ebx
je 0x1002d70c
cmp byte [ebx + 0x41], 0
je 0x1002d70c
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1002d62f
xor al, al
jmp 0x1002d70e
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.1002d28b
and dword [ebp - 4], 0
lea eax, [ebx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.1002d312
mov esi, eax
call fcn.1002d753
mov edi, eax
add edi, dword [ebp - 0x40]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.1002d312
mov esi, eax
call fcn.1002d753
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
push edi
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x1002d6a4
dec eax
je 0x1002d6a8
dec eax
dec eax
je 0x1002d708
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10003f2c
mov al, bl
jmp 0x1002d70e
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.1002d312
mov esi, eax
call fcn.1002d753
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x1002d6e6
push dword [ebx + 0x4c]
lea eax, [ebp - 0x50]
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.1002d312
mov esi, eax
call fcn.1002d753
push eax
call fcn.10087889
add esp, 0x10
cmp edi, eax
jne 0x1002d692
cmp byte [ebx + 0x41], 0
je 0x1002d708
test edi, edi
jne 0x1002d646
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.1002d2ce
mov ebx, dword [ebp - 0x38]
jmp 0x1002d646
mov bl, 1
jmp 0x1002d694
mov al, 1
call fcn.10088a49
ret
Function at 0x1002dd53
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x888
mov eax, 0x100a18eb
call fcn.100889c6
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
mov esi, 0x400
mov dword [ebp - 0x820], ebx
cmp esi, dword [ebp - 0x820]
je 0x1002dd94
cmp dword [ebp - 0x820], ebx
jne 0x1002dddb
lea eax, [ebp - 0x834]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x828]
mov eax, dword [ebp - 0x82c]
push dword [eax + 0x24]
mov dword [ebp - 0x820], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x828]
mov dword [ebp - 0x824], eax
add esi, 0x400
jmp 0x1002dd84
cmp dword [ebp - 0x824], ebx
jne 0x1002de82
lea eax, [ebp - 0x81c]
push eax
lea esi, [ebp - 0x850]
call fcn.10003bd6
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x14]
lea eax, [ebp - 0x850]
push eax
push dword [esi + 4]
push esi
call fcn.10024116
mov ecx, dword [edi + 0x18]
mov edx, 0x9249249
sub edx, ecx
cmp edx, 1
jb 0x1002de41
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x850]
mov dword [ecx], eax
call fcn.10001b5a
jmp 0x1002dd79
push 0x100b2c20
lea ecx, [ebp - 0x894]
call fcn.10003bf5
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 1
call fcn.100023ad
push 0x100c0204
lea eax, [ebp - 0x878]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.1008852b
xor eax, eax
cmp dword [ebp - 0x824], 0x103
sete al
call fcn.10088a49
ret 4