joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1502
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10096a86
and dword [ebp - 0x14], 0
cmp dword [0x1011d4c0], 0
mov dword [ebp - 0x18], eax
jne 0x100a15b5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100a165d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100a165d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1011d4c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1011d4c4], eax
call edi
push eax
call esi
push 0x10101bf0
push ebx
mov dword [0x1011d4c8], eax
call edi
push eax
call esi
mov dword [0x1011d4d0], eax
test eax, eax
je 0x100a15b5
push 0x10101bd8
push ebx
call edi
push eax
call esi
mov dword [0x1011d4cc], eax
mov eax, dword [0x1011d4cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100a160e
cmp dword [0x1011d4d0], ecx
je 0x100a160e
push eax
call esi
push dword [0x1011d4d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100a160e
test ebx, ebx
je 0x100a160e
call edi
test eax, eax
je 0x100a1605
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100a1605
test byte [ebp - 8], 1
jne 0x100a160e
or dword [ebp + 0x10], 0x200000
jmp 0x100a1641
mov eax, dword [0x1011d4c4]
cmp eax, dword [ebp - 0x18]
je 0x100a1641
push eax
call esi
test eax, eax
je 0x100a1641
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100a1641
mov eax, dword [0x1011d4c8]
cmp eax, dword [ebp - 0x18]
je 0x100a1641
push eax
call esi
test eax, eax
je 0x100a1641
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1011d4c0]
call esi
test eax, eax
je 0x100a165d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100a165f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008efb4
leave
ret
Function at 0x100af690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea ecx, [ebp - 0x626]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x648], ebx
mov word [ebp - 0x628], ax
call fcn.10092830
mov edi, dword [ebp + 0xc]
add esp, 0xc
cmp edi, 0x3c
je 0x100af751
cmp edi, 0x3d
je 0x100af751
or edi, dword [ebp + 0x10]
lea edx, [ebp - 0x628]
push edx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x100af745
cmp eax, 0x80070057
jne 0x100af717
push 0x32
jmp 0x100af71c
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101190dc
mov ecx, esi
mov word [esi], ax
call fcn.10005230
jmp 0x100af860
lea ecx, [ebp - 0x628]
push ecx
jmp 0x100af859
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x420], dx
call fcn.10092830
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x100af7a8
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101190dc
mov ecx, esi
mov word [esi], dx
call fcn.10005230
jmp 0x100af860
cmp edi, 0x3c
jne 0x100af7b8
lea eax, [ebp - 0x420]
jmp 0x100af858
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.10092830
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x101031fc
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100af785
push 0x103
lea eax, [ebp - 0x218]
push 0x10102fbc
push eax
call fcn.100c43f9
add esp, 0xc
cmp dword [ebp + 0x10], 0x8000
jne 0x100af852
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x644]
call fcn.10023f60
lea edx, [ebp - 0x644]
push edx
mov dword [ebp - 4], ebx
call fcn.100b3d50
add esp, 4
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0xffffffff
call fcn.10003050
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.10023f60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret
Function at 0x100b2380
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov esi, ecx
call fcn.100b0ff0
mov eax, dword [esi + 0xc0]
sub eax, 0
mov dword [ebp - 4], 0
je 0x100b241a
dec eax
je 0x100b2409
dec eax
jne 0x100b2425
mov eax, dword [ebp + 8]
or esi, 0xffffffff
sub eax, 2
je 0x100b23f1
sub eax, 2
je 0x100b23ea
sub eax, 4
jne 0x100b23f3
lea esi, [eax + 2]
jmp 0x100b23f3
mov esi, 1
jmp 0x100b23f3
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
push 0
push esi
call fcn.100b4c80
add esp, 0xc
jmp 0x100b2425
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100b2425
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.100b2230
cmp dword [ebp - 0x18], 8
jb 0x100b2437
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1008efc3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 8

Function at 0x100b2500
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d21a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test byte [esi + 0xe4], 8
je 0x100b25e1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100b25e1
cmp word [eax], 0
je 0x100b25e1
lea ecx, [ebp + 0x10]
push ecx
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.100aba60
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100b0ff0
mov eax, dword [esi + 0xc0]
sub eax, 0
mov byte [ebp - 4], 1
je 0x100b25b2
dec eax
je 0x100b25a1
dec eax
jne 0x100b25bd
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
push 0
push 2
call fcn.100b4c80
add esp, 0xc
jmp 0x100b25bd
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100b25bd
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.100b2230
cmp dword [ebp - 0x18], 8
jb 0x100b25cf
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1008efc3
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x100b25e1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1008efc3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret
Function at 0x100b2600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d21a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test byte [esi + 0xe4], 1
je 0x100b26e4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100b26e4
cmp word [eax], 0
je 0x100b26e4
lea ecx, [ebp + 0x10]
push ecx
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.100aba60
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100b0ff0
mov eax, dword [esi + 0xc0]
sub eax, 0
mov byte [ebp - 4], 1
je 0x100b26b2
dec eax
je 0x100b26a1
dec eax
jne 0x100b26bd
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
push 0
push 0xffffffffffffffff
call fcn.100b4c80
add esp, 0xc
jmp 0x100b26bd
lea ecx, [ebp - 0x2c]
call fcn.100aa4c0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100b26bd
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.100b2230
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x100b26d3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1008efc3
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x100b26e4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1008efc3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret
Function at 0x100b2810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2231
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x258], eax
call fcn.100b4350
xor ecx, ecx
cmp esi, ecx
je 0x100b29dd
cmp ebx, ecx
je 0x100b29dd
mov eax, dword [ebp - 0x258]
cmp eax, ecx
je 0x100b29dd
cmp word [ebx], cx
je 0x100b29dd
cmp word [eax], cx
je 0x100b29dd
movzx eax, byte [ebp + 0x14]
neg eax
sbb eax, eax
and eax, 0x100
lea edx, [ebp - 0x254]
push edx
or eax, 1
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x254], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x100b2906
push 2
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.100af510
add esp, 0xc
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 4], 1
mov dword [edi + 4], esi
jae 0x100b28e4
lea eax, [ebp - 0x234]
push eax
push str.RegOpenKeyEx_failed__s
add edi, 8
push edi
call fcn.100abd40
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.10003050
jmp 0x100b2a41
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
mov dword [ebp - 0x260], 0x208
mov dword [ebp - 0x25c], 1
call fcn.10092830
add esp, 0xc
lea edx, [ebp - 0x260]
push edx
mov edx, dword [ebp - 0x258]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x25c]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x254]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100b29c1
push 2
lea edx, [ebp - 0x250]
push esi
push edx
call fcn.100af510
add esp, 0xc
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
mov dword [ebp - 4], 2
mov dword [edi + 4], esi
jae 0x100b299f
lea eax, [ebp - 0x250]
push eax
push 0x1010341c
add edi, 8
push edi
call fcn.100abd40
add esp, 0xc
lea ecx, [ebp - 0x250]
call fcn.10003050
jmp 0x100b2a41
push 0x3a
push 0x10103418
push 0x10103414
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.100b2700
jmp 0x100b2a43
mov dword [ebp - 0x224], ecx
xor ecx, ecx
push 0x28
mov word [ebp - 0x234], cx
push str.invalid_parameter_hRootsubKeyvalueName
lea ecx, [ebp - 0x234]
mov dword [edi + 4], 0x57
mov dword [ebp - 0x220], 7
call fcn.10008e50
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x234]
push edx
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
call fcn.10005230
cmp dword [ebp - 0x220], 8
jb 0x100b2a41
mov eax, dword [ebp - 0x234]
push eax
call fcn.1008efc3
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100b3d50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.100aa4d0
test al, al
jne 0x100b3d8d
cmp dword [esi + 0x14], 8
jb 0x100b3d6f
mov eax, dword [esi]
jmp 0x100b3d71
mov eax, esi
push 0
push eax
call fcn.100c4736
add esp, 8
cmp eax, 0xffffffff
setne al
test al, al
je 0x100b3d8d
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xc
jb 0x100b3daa
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
dec eax
neg eax
sbb eax, eax
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100b4020
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
dec eax
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x100b6790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d287b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0
call fcn.100b4350
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
mov dword [ebp - 0x240], 0x208
mov dword [ebp - 0x238], 1
call fcn.10092830
add esp, 0xc
lea edx, [ebp - 0x240]
push edx
mov edx, dword [esi + 0x28]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100b68a5
push 2
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.100af510
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 8]
push eax
mov dword [ebp - 4], ebx
call fcn.10005230
cmp dword [ebp - 0x220], 8
mov dword [ebp - 4], 0xffffffff
jb 0x100b6873
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.1008efc3
add esp, 4
mov edx, dword [ebp - 0x23c]
cmp edx, ebx
jne 0x100b6882
mov edx, 0x10108a10
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100b6896
sub eax, esi
jmp 0x100b68d3
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100b68c0
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.10008e50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100b6900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d14f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
call fcn.100b4350
test edi, edi
jne 0x100b694c
push 0x100e701c
mov ecx, esi
call fcn.100b4960
xor al, al
jmp 0x100b69b9
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100b6951
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esi + 0x28]
push edi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [esi + 4], eax
test eax, eax
je 0x100b69b1
push 2
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100af510
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
call fcn.10005230
cmp dword [ebp - 0x18], 8
jb 0x100b69b1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1008efc3
add esp, 4
xor eax, eax
cmp dword [esi + 4], eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 8
Function at 0x100b8f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10117d48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.1008f195
add esp, 4
cmp eax, ebx
je 0x100b9067
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.1008f195
add esp, 4
cmp eax, ebx
je 0x100b9043
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov dword [esi + 0x7c], 1
mov word [esi + 0x80], bx
mov byte [esi + 0x82], bl
mov byte [esi + 0x84], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.1008f056
push 0x1010d490
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.10096342
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.1008f056
push 0x1010d490
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.10096342
int3
Function at 0x100b9090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10117d48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.1008f195
add esp, 4
cmp eax, ebx
je 0x100b9196
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.1008f195
add esp, 4
cmp eax, ebx
je 0x100b9172
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [esi + 0x40], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov edx, dword [eax]
mov dword [esi + 0x7c], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x80], eax
mov byte [esi + 0x84], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.1008f056
push 0x1010d490
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.10096342
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.1008f056
push 0x1010d490
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.10096342
int3

Function at 0x100c46b7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100c46de
call fcn.10095250
mov dword [eax], esi
call fcn.1009523d
push 0x16
pop esi
mov dword [eax], esi
call fcn.100999a6
mov eax, esi
jmp 0x100c4733
test dword [ebp + 0xc], 0xfffffff9
jne 0x100c46c4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100c470b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10095263
pop ecx
call fcn.1009523d
mov eax, dword [eax]
jmp 0x100c4733
test al, 0x10
jne 0x100c4731
test al, 1
je 0x100c4731
test byte [ebp + 0xc], 2
je 0x100c4731
call fcn.10095250
mov dword [eax], 5
call fcn.1009523d
mov dword [eax], 0xd
jmp 0x100c4702
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100c74ea
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x100d3f13
call fcn.100c3377
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x100c75e1
cmp byte [esi + 0x4a], bl
je 0x100c75e1
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x100c7526
xor al, al
jmp 0x100c75e3
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.1001bff0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100c7584
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x100c7589
dec eax
je 0x100c758d
dec eax
dec eax
je 0x100c75dd
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001830
mov al, bl
jmp 0x100c75e3
mov edx, dword [ebp - 0x2c]
jmp 0x100c754f
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100c7599
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x100c75bf
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100c75ac
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.1009097e
add esp, 0x10
cmp edi, eax
jne 0x100c7572
cmp byte [esi + 0x4a], 0
je 0x100c75dd
test edi, edi
jne 0x100c7541
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10001f40
jmp 0x100c7541
mov bl, 1
jmp 0x100c7574
mov al, 1
call fcn.100c33c1
ret