joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ec090
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push str._sDIYconfig.ini
push eax
call fcn.10091da4
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.default.idx
push 0x1018804c
push str.diymb
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push str._sDIY_s
push eax
call fcn.10091da4
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100ec136
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebp - 0x20c], 0
jne 0x100ec144
xor ecx, ecx
jmp 0x100ec15f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ec150
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push eax
call fcn.100048b0
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.default.dat
push 0x1018808c
push str.diymb
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
push esi
lea eax, [ebp - 0x20c]
push str._sDIY_s
push eax
call fcn.10091da4
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100ec123
cmp word [ebp - 0x20c], 0
jne 0x100ec1d9
xor ecx, ecx
jmp 0x100ec1f1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100ec1e2
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x624]
lea eax, [ebp - 0x20c]
push eax
call fcn.100048b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1009174c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100f21e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100f21f5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100f2234
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100f2230
lea ebx, [ebx]
cmp esi, edx
jae 0x100f2234
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x100f2220
cmp esi, edx
jb 0x100f2239
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100f7ca0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10169685
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.10046cf0
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.10046cf0
mov dword [edi + 0x18], eax
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.10046cf0
mov dword [edi + 0x20], eax
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 3
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10046cf0
mov dword [edi + 0x28], eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 4
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.10046cf0
mov dword [edi + 0x30], eax
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 5
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10046cf0
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 6
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.10046cf0
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 7
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.10046cf0
mov dword [edi + 0x48], eax
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 8
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
call fcn.10046cf0
mov dword [edi + 0x50], eax
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 9
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
call fcn.10046cf0
mov dword [edi + 0x58], eax
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 0xa
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
call fcn.10046cf0
mov dword [edi + 0x60], eax
lea ecx, [edi + 0x68]
mov byte [ebp - 4], 0xb
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
call fcn.10046cf0
mov dword [edi + 0x68], eax
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 0xc
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
call fcn.10046cf0
mov dword [edi + 0x70], eax
push 0x88
mov byte [ebp - 4], 0xd
mov dword [edi + 0x78], 1
mov dword [edi + 0x7c], 1
mov dword [edi + 0x80], 1
mov dword [edi + 0x84], 1
mov dword [edi + 0x88], 1
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov byte [edi + 0x94], 0
call fcn.10092352
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x100f7edc
mov ecx, eax
call fcn.100f7f00
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1010c230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016bb99
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.1011e1e0
xor eax, eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0
mov word [edi + 0x20], ax
lea ecx, [edi + 0x38]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
mov dword [edi + 0x64], 7
mov dword [edi + 0x60], eax
mov word [edi + 0x50], ax
push eax
push 0x10199228
mov byte [ebp - 4], 3
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov byte [edi + 0x14], al
mov dword [edi + 0x18], eax
call fcn.100048b0
push 0
push 0x10199228
lea ecx, [edi + 0x50]
call fcn.100048b0
mov dword [edi + 0x1c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10119d30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016cad8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101bd92c]
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 dword [ebp - 0x4c], ecx
push dword [ebp - 0x48]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x54], ebx
push dword [ebx]
mov dword [ebp - 0x50], esi
call fcn.100badd0
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, dword [esi]
add esp, 0x10
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
jle 0x10119ea7
nop
cmp edi, 5
jge 0x10119ea7
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push eax
push 0x10199228
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], eax
call fcn.100048b0
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 4], 2
mov ecx, dword [edx + 0x20]
mov eax, ecx
dec eax
je 0x10119e18
dec eax
je 0x10119e0f
mov dword [ebp - 0x20], ecx
jmp 0x10119e1f
mov dword [ebp - 0x20], 4
jmp 0x10119e1f
mov dword [ebp - 0x20], 3
mov ecx, dword [ebp - 0x4c]
push esi
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.10119380
test eax, eax
je 0x10119e43
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
call fcn.100bddf0
inc edi
mov ebx, 1
push 0x10199228
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10119e8c
push dword [ebp - 0x48]
lea ecx, [ebp - 0x41]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.100bad40
push dword [ebp - 0x1c]
call fcn.10091747
add esp, 0x14
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x28], 8
jb 0x10119e9d
push dword [ebp - 0x3c]
call fcn.10091747
add esp, 4
inc esi
cmp esi, dword [ebp - 0x48]
jl 0x10119db0
mov eax, ebx
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.1009174c
mov esp, ebp
pop ebp
ret 8
Function at 0x1011b160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ccd6
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x101bd92c]
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, ecx
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push eax
lea ecx, [esi + 0x54]
mov dword [ebp - 0x65c], eax
call fcn.1011e9b0
test eax, eax
je 0x1011b401
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.10098090
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10098090
push str.py.dict.dat
push dword [ebp - 0x65c]
lea eax, [ebp - 0x420]
push 0x101917a4
push eax
call fcn.10091da4
push 0x4e24
push str.1.0.1.0701
push str.__GS_SYS_PY_M_DICT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._s_s_s_d
push eax
call fcn.10091da4
add esp, 0x40
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.1011b420
test eax, eax
jne 0x1011b3fc
push str.py.dict.dat
push ebx
lea eax, [ebp - 0x420]
push 0x101917a4
push eax
call fcn.10091da4
push 0x4e24
push str.1.0.1.0701
push str.__GS_SYS_PY_M_DICT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.1011b420
test eax, eax
jne 0x1011b3fc
push str.py.dict.dat
push edi
lea eax, [ebp - 0x420]
push 0x101917a4
push eax
call fcn.10091da4
push 0x4e24
push str.1.0.1.0701
push str.__GS_SYS_PY_M_DICT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sUSER_s_s_d
push eax
call fcn.10091da4
add esp, 0x28
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.1011b420
test eax, eax
jne 0x1011b3fc
push edi
lea ecx, [ebp - 0x640]
call fcn.10004410
push str.py.dict.dat
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0
call fcn.100044f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.10098090
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x658]
call fcn.10004410
push str.py.dict.dat
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 1
call fcn.100044f0
cmp dword [ebp - 0x644], 8
lea ecx, [ebp - 0x658]
cmovae ecx, dword [ebp - 0x658]
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push ecx
push eax
call fcn.1000e180
push 0x4e24
push str.1.0.1.0701
push str.__GS_SYS_PY_M_DICT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sTEMP_s_s_d
push eax
call fcn.10091da4
add esp, 0x20
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.1011b420
lea ecx, [ebp - 0x658]
call fcn.10004470
lea ecx, [ebp - 0x640]
call fcn.10004470
mov eax, 1
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.1009174c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1011c230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ce86
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101bd92c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov dword [edi + 0x44], 7
mov dword [edi + 0x40], eax
mov dword [ebp - 4], eax
mov word [edi + 0x30], ax
push eax
push 0x10199228
mov byte [ebp - 4], 1
mov dword [edi + 8], eax
call fcn.100048b0
push 0
push 0x10199228
lea ecx, [edi + 0x30]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.100048b0
mov dword [edi + 4], 0
mov dword [edi], 1
mov dword [edi + 0x48], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1011e860
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x1011e8a1
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 8], eax
test ecx, ecx
je 0x1011e8a1
mov eax, 1
pop esi
pop ebp
ret 8
push edi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1011e8c9
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 0xc]
push eax
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
push 0
push 4
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 8], eax
pop edi
setne al
pop esi
pop ebp
ret 8
Function at 0x10131a60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x4c]
mov edi, dword [esi + 0x40]
push 0
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x28], edi
call fcn.1012e220
add esp, 0x14
test eax, eax
jne 0x10131bb6
mov ecx, dword [esi + 0x44]
movzx eax, byte [esi + 8]
add eax, ecx
mov dword [esp + 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 5]
push ebx
movzx ebx, word [edi + 0x1e]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x44]
mov cl, byte [eax + 6]
push ebp
mov dword [esp + 0x10], edx
movzx edx, word [esi + 0xe]
mov ebp, ecx
movzx ecx, word [esi + 0x14]
lea edx, [edx + ecx*2]
movzx ecx, byte [esi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.10096b40
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ebx, ebp
push ebx
lea edx, [ecx + ebp]
push edx
add eax, ebp
push eax
call fcn.10096b40
push esi
push edi
call fcn.1012c610
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x10131ba6
movzx ecx, byte [esi + 2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [edi + 0x18]
push eax
call fcn.10096b40
mov al, byte [esi + 2]
add esp, 0xc
test al, al
mov byte [edi + 2], al
je 0x10131b28
mov word [edi + 0x12], bx
mov ecx, dword [edi + 0x44]
movzx edx, byte [ecx]
and edx, 0xfffffff7
push edx
call fcn.1012c780
movzx ecx, byte [esi + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push eax
lea eax, [ecx + edx + 8]
push eax
call fcn.10129b00
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp byte [ecx + 0x16], 0
je 0x10131b9b
mov edx, dword [esi + 0x4c]
mov eax, dword [edi + 0x4c]
push edx
mov bl, 5
call fcn.1012bdd0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10131ba6
xor esi, esi
cmp word [edi + 0x14], si
jbe 0x10131b9b
lea esp, [esp]
mov eax, esi
call fcn.1012bfc0
call fcn.1012c160
test eax, eax
jne 0x10131bb4
movzx eax, word [edi + 0x14]
add esi, 1
cmp esi, eax
jl 0x10131b80
push edi
call fcn.10130e90
add esp, 4
mov ebx, eax
mov ecx, dword [edi + 0x48]
push ecx
call fcn.10141eb0
add esp, 4
mov eax, ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1014ff30
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x1014ff3d
xor eax, eax
pop edi
ret
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x48
push ebp
call fcn.1013bf10
mov esi, eax
add esp, 8
test esi, esi
jne 0x1014ff58
pop esi
pop ebp
pop edi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
push ebp
call fcn.1014ee50
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
push ebp
call fcn.1014fe00
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebp
call fcn.101507c0
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebp
call fcn.1014ee50
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebp
call fcn.101507c0
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
push ebp
call fcn.1014ee50
mov dword [esi + 0x1c], eax
movzx ecx, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
push ebp
call fcn.1014ff30
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
push eax
push ebp
call fcn.101507c0
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add esp, 0x40
push ecx
push ebp
call fcn.101507c0
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
movzx ecx, byte [edi + 7]
add esp, 8
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x28], 0
mov eax, esi
pop esi
pop ebp
pop edi
ret
Function at 0x101533d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [eax + 0x20]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov ebp, dword [edi]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
je 0x101535a8
lea esp, [esp]
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jne 0x1015359d
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x70]
jne 0x1015359d
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x10153432
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 0x2c]
jne 0x1015359d
cmp ecx, 0x64
jne 0x10153453
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10153453
mov esi, dword [esp + 0x6c]
push eax
call fcn.10153090
add esp, 4
test eax, eax
je 0x1015359d
mov eax, dword [edi + 0x188]
test eax, eax
je 0x10153470
lea ecx, [ecx]
cmp ebx, dword [eax + 0x1c]
je 0x1015359d
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x10153460
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
push str.___TRIGGER__s
push ebp
call fcn.10147d60
mov ecx, dword [edi + 0xc]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0x14
push ecx
call fcn.1013b270
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0x188]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edx
mov dword [edi + 0x188], ecx
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x64], edi
call fcn.10149a40
mov ecx, dword [edi + 0xc]
push ecx
call fcn.10138ef0
mov edx, dword [ebx + 0xc]
push edx
push ebp
mov dword [esp + 0x98], eax
call fcn.101507c0
add esp, 0x34
cmp byte [ebp + 0x1e], 0
mov esi, eax
jne 0x101535d4
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.10151310
add esp, 8
test eax, eax
jne 0x101535d4
mov ecx, dword [esp + 0x64]
push 8
push ecx
push esi
push edi
call fcn.10152890
push esi
call fcn.1014fd60
mov edx, dword [esp + 0x94]
mov eax, dword [ebx + 0x24]
push edx
push eax
call fcn.101531d0
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x2c]
push edx
mov dword [edi + 0x188], ecx
call fcn.10149a70
mov eax, dword [esp + 0x84]
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.10138f40
add esp, 0x28
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x10153400
mov eax, dword [esp + 0x88]
test eax, eax
je 0x101535b9
mov ecx, dword [esp + 0x28]
or dword [eax], ecx
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x101535ca
mov edx, dword [esp + 0x24]
or dword [eax], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x38]
push esi
mov dword [edi + 0x188], edx
call fcn.1014fd60
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
Function at 0x1000167c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d908
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1a
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001768
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1000a1db
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000173e
call fcn.100037d1
jmp 0x1000173e
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1000a1db
int3

Function at 0x1000177d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1001d938
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1002a034]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x214]
lea eax, [ebp]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10001869
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003356
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100033b4
push 0x104
push eax
push dword [ebp + 0x218]
push edi
call fcn.1000a1db
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x1000183f
call fcn.100037d1
jmp 0x1000183f
xor eax, eax
test esi, esi
setns al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10004926
add ebp, 0x20c
leave
ret
push esi
push str.Error:_08x_in_::SHGetFolderPathW_0__CSIDL_COMMON_APPDATA__NULL__SHGFP_TYPE_CURRENT__szPath_
call fcn.10003d44
pop ecx
pop ecx
push ebx
push esi
call fcn.1000a1db
int3