joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028088
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x1009c453
call fcn.10094bba
mov esi, ecx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.10027a7a
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], eax
je 0x100280c0
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x14]
call fcn.1008485b
jmp 0x100280fb
push eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x400
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x100280fb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x10]
call fcn.1008485b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
call fcn.10094ca6
ret 4

Function at 0x100283ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2adc
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x100bc210]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 9
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x1c], esi
pop ecx
xor eax, eax
mov dword [esp + 0x4c], 0x1001af38
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edi, [esp + 0x74]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x1a8], esi
call fcn.10027cef
test al, al
jne 0x10028446
push 0x100042bc
push dword [esp + 0x18]
call fcn.1005f448
mov eax, dword [esp + 0x14]
jmp 0x10028527
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x28], esi
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.100285d6
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea esi, [esp + 0x74]
lea edi, [esp + 0x24]
mov byte [esp + 0x1a8], 1
call fcn.1002875f
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1b0], 2
call fcn.100286f0
mov edi, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a8], 3
call fcn.10028336
lea ecx, [esp + 0x88]
push ecx
mov byte [esp + 0x1ac], 4
push dword [esi]
push dword [edi]
push dword [eax]
lea eax, [esp + 0x28]
push 0x100042d4
push eax
call fcn.10084899
mov eax, dword [esp + 0x38]
add esp, 0x18
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov byte [esp + 0x1a8], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10084c29
mov esi, dword [esp + 0x18]
lea eax, [esi - 0x10]
call fcn.10084bc8
mov edi, dword [esp + 0x14]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.10084c29
mov eax, edi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.10086e31
mov esp, ebp
pop ebp
ret 4
Function at 0x10028552
Capabilities:
Check if file exists
Create directory

Disassembly:
push 4
mov eax, 0x1009bd97
call fcn.10094bba
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084bc8
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100600cb
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x100285a9
mov esi, 0x800700a1
lea eax, [edi - 0x10]
call fcn.10084c29
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, esi
call fcn.10094ca6
ret 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002858c
push esi
push edi
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, esi
je 0x1002858c
jle 0x100285cd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1002858c

Function at 0x10029fa7
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x1009bd0f
call fcn.10094bba
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
mov eax, dword [0x100bcf90]
mov edi, 0x100bcf90
mov ecx, edi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 1
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.10084b65
mov eax, dword [ebx - 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
sub ecx, dword [ebx - 4]
mov edx, 0x104
sub eax, edx
or eax, ecx
jge 0x1002a005
mov eax, edx
lea ecx, [ebp - 0x10]
call fcn.10084a51
mov ebx, dword [ebp - 0x10]
push ebx
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1002a09e
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.1008481d
mov eax, dword [0x100bcf90]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x10004b8c
push ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1005ffe7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x20], eax
call fcn.10084bc8
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov esi, dword [ebp + 8]
call fcn.10084aa6
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
call dword [sym.imp.msi.dll_MsiMessageBoxW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
call fcn.10084c29
or eax, 0xffffffff
call fcn.1008481d
mov eax, dword [ebp - 0x20]
call fcn.10084c29
lea eax, [ebx - 0x10]
call fcn.10084c29
mov eax, dword [ebp + 8]
call fcn.10094ca6
ret 4
Function at 0x1002a4c2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2819
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x30], ebx
call fcn.10028edc
test al, al
je 0x1002a54d
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.10028088
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a541
push esi
push 0x10004bf8
jmp 0x1002a595
push dword [esp + 0x14]
push esi
push 0x10004c98
jmp 0x1002a5aa
cmp esi, 0x80004004
jne 0x1002a56a
push 0x10004d48
push 0x22
pop ebx
lea eax, [esp + 0x14]
call fcn.100848f9
xor ebx, ebx
jmp 0x1002a5c1
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.10028088
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
lea eax, [esp + 0x10]
jne 0x1002a5a0
push esi
push 0x10004d90
push eax
call fcn.10084899
add esp, 0xc
jmp 0x1002a5b3
push dword [esp + 0x14]
push esi
push 0x10004e10
push eax
call fcn.10084899
add esp, 0x10
mov byte [esp + 0x30], bl
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0x100044f8
lea eax, [esp + 0x1c]
push eax
call fcn.1005f448
mov byte [esp + 0x30], 3
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x1002a621
push ebx
call fcn.100877d7
pop ecx
mov ecx, dword [edi]
mov edi, dword [edi + 4]
sub eax, ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
sbb edx, edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
call fcn.1002a1ed
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.1005f5c3
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084c29
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x18]
call fcn.1005fd84
mov ecx, dword [ebp + 8]
mov byte [esp + 0x30], 5
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10084c29
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a680
Capabilities:
Get file version info

Disassembly:
push 0x14
mov eax, 0x1009de35
call fcn.10094bba
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10004ed4
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.1005f448
mov dword [ebp - 4], ebx
mov eax, dword [0x100bcf90]
xor esi, esi
inc esi
mov ecx, 0x100bcf90
mov dword [ebp - 0x18], esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov ecx, dword [edi - 8]
mov edx, esi
sub edx, dword [edi - 4]
mov eax, 0x105
sub ecx, eax
or ecx, edx
jge 0x1002a6de
lea ecx, [ebp - 0x10]
call fcn.10084a51
mov edi, dword [ebp - 0x10]
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
lea esi, [ebp - 0x10]
call fcn.1008481d
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x1002a76b
push esi
call fcn.100878f8
pop ecx
mov ebx, eax
push ebx
push esi
push dword [ebp - 0x14]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1002a764
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000440c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002a764
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x10004ee4
push dword [ebp + 8]
call fcn.10084899
add esp, 0x18
push ebx
call fcn.10087908
pop ecx
lea eax, [edi - 0x10]
call fcn.10084c29
mov eax, dword [ebp + 8]
call fcn.10094ca6
ret 4

Function at 0x1002a783
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
push 0x20019
xor esi, esi
push esi
mov ebx, 0x10004f00
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002a82d
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002a82d
lea edi, [ebp - 0x20c]
call fcn.1002a84d
push 0x208
mov eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
push 2
push esi
push 0x10004f80
push dword [ebp - 0x210]
call edi
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push 0x10004fa4
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 7
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10086e31
leave
ret
Function at 0x1002a84d
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x100a27c9
call fcn.10094bba
xor ebx, ebx
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
je 0x1002a972
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x10004fc8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
jne 0x1002a8da
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push ebx
push 0x10005038
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], ebx
jne 0x1002a8da
xor eax, eax
push edi
mov word [edi + 0x206], ax
call esi
cmp eax, 0xffffffff
je 0x1002a8da
mov dword [ebp - 0x10], ebx
jmp 0x1002a972
push edi
push ebx
push ebx
push 0x2b
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, 0x104
test eax, eax
js 0x1002a910
push 0x10005048
push ebx
push edi
call fcn.10087918
add esp, 0xc
test eax, eax
jne 0x1002a910
push edi
call esi
cmp eax, 0xffffffff
je 0x1002a910
and dword [ebp - 0x10], 0
jmp 0x1002a972
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
call fcn.10028bbf
push 0x10005084
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x18]
call fcn.1005ffe7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp - 0x18]
push ebx
push edi
call fcn.10087992
add esp, 0xc
push edi
call esi
cmp eax, 0xffffffff
je 0x1002a967
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp - 0x10]
call fcn.10094ca6
ret

Function at 0x1002b187
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x100bc210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x414]
push eax
mov esi, 0x100
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1002b1bf
call fcn.100846ed
jmp 0x1002b24e
cmp eax, esi
jbe 0x1002b1cd
mov eax, 0x80020013
jmp 0x1002b24e
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x100051bc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1002b1b5
xor eax, eax
mov word [ebp - 6], ax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 8]
push 0x101
push esi
call fcn.100879fa
add esp, 0x10
call fcn.10084695
and dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x420]
push ecx
push 0x2100
push 2
mov eax, 0x40000000
push 0
push eax
push esi
mov dword [ebp - 0x420], 0xc
mov dword [ebp - 0x418], 1
mov dword [edi + 0x20c], eax
call fcn.1002b057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10086e31
leave
ret
Function at 0x1002f6a4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1009bbfd
call fcn.10094bba
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084bc8
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084bc8
lea esi, [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002f71a
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002f71a
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
call fcn.10084c29
lea eax, [edi - 0x10]
call fcn.10084c29
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.10084c29
mov al, byte [ebp - 0xd]
call fcn.10094ca6
ret 0xc
Function at 0x10037bf8
Capabilities:
Identify system language via api

Disassembly:
push 0x24
mov eax, 0x100a60cb
call fcn.10094bba
mov esi, ecx
push 0x10008730
lea eax, [ebp - 0x14]
push eax
call fcn.1005f448
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
lea edi, [ebp - 0x14]
call fcn.1002d5db
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x10037c3a
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], ecx
test eax, eax
je 0x10037c50
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, dword [ebx]
push ebx
call dword [eax + 0x28]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002d7e6
jmp 0x10037cef
push dword [ebp + 0xc]
lea edi, [ebp - 0x24]
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x18], esp
call fcn.1002d42d
call fcn.10037d2a
mov edx, eax
mov dword [ebp - 0x18], edx
cmp edx, 0xfffffffd
jne 0x10037ca1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x10037cd2
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edi, edi
test ecx, ecx
jle 0x10037cbf
mov eax, dword [esi]
cmp dword [eax], edx
je 0x10037cc2
inc edi
add eax, 4
cmp edi, ecx
jl 0x10037cb3
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x10037cd2
lea ebx, [ebp - 0x18]
call fcn.100612d4
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10037ce3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002d7e6
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
setne al
test al, al
jne 0x10037c73
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10037d13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
call fcn.10094ca6
ret 8
Function at 0x1003902b
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a439b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 0x10]
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push 0x1000593c
push eax
call fcn.1005f448
lea eax, [esp + 0x1c]
push eax
call fcn.1007307b
and dword [esp + 0x34], 0
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov esi, esp
call fcn.10084bc8
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
call fcn.1002dbd4
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.1003916b
push dword [ebp + 0x10]
mov bl, al
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push 0x10009238
push eax
call fcn.1005f448
lea eax, [esp + 0x24]
push eax
call fcn.1007307b
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.10084bc8
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.1002dbd4
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
je 0x1003911b
push eax
call edi
mov eax, dword [esi]
mov dword [esp + 0x10], eax
and dword [esi], 0
push dword [esp + 0x18]
call edi
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
push dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.1003916b
test bl, bl
jne 0x10039147
test al, al
je 0x10039149
mov bl, 1
push dword [esp + 0x10]
call edi
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003952c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x268
mov eax, 0x1009da51
call fcn.10094c2d
and dword [ebp - 0x270], 0
mov esi, ecx
mov dword [ebp - 0x274], esi
push 0x24c
xor ebx, ebx
lea eax, [ebp - 0x260]
inc ebx
push 0
mov dword [ebp - 4], ebx
and dword [ebp - 0x264], 0
push eax
call fcn.1008a830
add esp, 0xc
push 0x1000925c
lea eax, [ebp + 8]
call fcn.1005ffa8
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
setne al
and dword [esi], 0
and dword [esi + 4], 0
and dword [esi + 8], 0
mov dword [ebp - 0x270], ebx
jmp 0x1003965d
lea eax, [ebp - 0x238]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100395b5
sub eax, edx
sar eax, 1
cmp eax, 4
jne 0x10039645
movzx eax, word [ebp - 0x238]
push eax
call fcn.1008827c
pop ecx
test eax, eax
je 0x10039645
movzx eax, word [ebp - 0x236]
push eax
call fcn.1008827c
pop ecx
test eax, eax
je 0x10039645
movzx eax, word [ebp - 0x234]
push eax
call fcn.1008827c
pop ecx
test eax, eax
je 0x10039645
movzx eax, word [ebp - 0x232]
push eax
call fcn.1008827c
pop ecx
test eax, eax
je 0x10039645
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.1005f448
lea ebx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.10060181
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
call fcn.10084c29
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
jne 0x100395ac
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084c29
mov eax, esi
call fcn.10094cbf
ret 4
Function at 0x1003d517
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x100a1fd3
call fcn.10094bba
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
jle 0x1003d6b4
test ebx, ebx
js 0x1003d6bc
cmp ebx, dword [edi + 0xc]
jge 0x1003d6bc
mov eax, dword [edi + 8]
push 0
push 0x100c4258
push 0x100c4218
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10094655
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1003d6a7
cmp byte [ebp + 0x14], 0
je 0x1003d5fc
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.1003ab8e
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.1005ffe7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10084c29
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003d5ed
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005f5c3
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10084c29
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
jmp 0x1003d6a7
or dword [ebp - 4], 0xffffffff
lea eax, [ebx - 0x10]
call fcn.10084c29
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [edi + 0xc]
jge 0x1003d6bc
mov eax, dword [edi + 8]
push 0
push 0x100c4238
push 0x100c4218
mov ecx, ebx
push 0
push dword [eax + ecx*4]
call fcn.10094655
add esp, 0x14
mov byte [ebp - 0xd], 0
test eax, eax
je 0x1003d638
cmp dword [eax + 0x134], 4
jne 0x1003d638
mov byte [ebp - 0xd], 1
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 2
jne 0x1003d698
lea eax, [ebp - 0x20]
push eax
mov eax, esi
call fcn.1003abad
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x18]
call fcn.1005ffe7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.10084c29
lea edi, [esi + 8]
lea eax, [ebp - 0x18]
call fcn.1005f5c3
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084c29
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [edi + 0xc]
jl 0x1003d534
call fcn.10094ca6
ret 0x10
call fcn.10083339
int3