joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f7e0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.10071fa0
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x26c], 0xffffffff
jne 0x1001f82b
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x1000
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.10097030
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov cx, word [esp + 0x1e]
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp cx, word [esi + 0x28e]
jne 0x1001f89e
mov cx, word [esp + 0x1a]
cmp cx, word [esi + 0x28a]
jne 0x1001f89e
mov ax, word [esp + 0x18]
cmp ax, word [esi + 0x288]
je 0x1001f8d0
mov ecx, esi
call fcn.1001f740
movzx ecx, word [esi + 0x24a]
lea eax, [esi + 0x24a]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esi + 0x208]
push ecx
push eax
push esi
mov ecx, esi
call fcn.1001f3d0
test eax, eax
js 0x1001f98b
cmp dword [esi + 0x29c], 0
je 0x1001f8f6
push 0
push dword [esi + 0x26c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
shr eax, 0xa
cmp eax, dword [esi + 0x29c]
jae 0x1001f98b
movzx eax, word [esp + 0x24]
push edi
push ebx
push dword [esi + 0x298]
push eax
movzx eax, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
push str._4.4d__2.2d__2.2d__2.2d:_2.2d:_2.2d_t_d:_d_t_s_r_n
lea eax, [esp + 0x50]
push 0x1000
push eax
call fcn.10021810
add esp, 0x30
test eax, eax
js 0x1001f98b
lea eax, [esp + 0x10]
mov edx, 0x800
push eax
lea ecx, [esp + 0x2c]
call fcn.10021760
test eax, eax
js 0x1001f98b
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
add eax, eax
push eax
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x26c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001f97f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001f98b
push dword [esi + 0x26c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esi + 0x2a0], 0
jbe 0x1001f9ca
mov ax, word [esp + 0x1e]
cmp ax, word [esi + 0x2aa]
jne 0x1001f9be
mov ax, word [esp + 0x1a]
cmp ax, word [esi + 0x2a6]
jne 0x1001f9be
mov ax, word [esp + 0x18]
cmp ax, word [esi + 0x2a4]
je 0x1001f9ca
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.1001f9f0
mov ecx, dword [esp + 0x102c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
Function at 0x100218f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x1c], eax
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push ecx
push 0
push dword [eax]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10021961
call fcn.1000ff80
test eax, eax
jns 0x10021961
je 0x10021961
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor ebx, ebx
call fcn.10071a70
mov esi, eax
add esp, 4
test esi, esi
je 0x1002194d
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0x1c]
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10021994
call fcn.1000ff80
test eax, eax
jmp 0x10021997
cmp dword [ebp - 0x14], edi
jne 0x10021a2d
push ecx
lea ecx, [ebp - 0x58]
call fcn.10021f40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x1c], 0x10
push 0
push 1
push edi
push esi
push eax
call fcn.1003c6c0
xor ebx, ebx
test eax, eax
setns bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], vtable.ATL::CComObjectStack_class_CRapidDigest_.1.0
mov dword [ebp - 0x54], vtable.ATL::CComObjectStack_class_CRapidDigest_.0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], vtable.CRapidDigest.0
mov dword [ebp - 0x54], vtable.CRapidDigest.1.0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x34], 0
je 0x10021a2d
push eax
mov byte [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.100716db
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021f40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b80c6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100f51d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], cl
mov dword [ebp - 4], 2
mov dword [edi], vtable.CRapidDigest.0
mov dword [edi + 4], vtable.CRapidDigest.1.0
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [ebp - 4], 3
xor esi, esi
push esi
lea ebx, [edi + 0xc]
mov dword [edi], vtable.ATL::CComObjectStack_class_CRapidDigest_.1.0
push ebx
mov dword [edi + 4], vtable.ATL::CComObjectStack_class_CRapidDigest_.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x10021ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10021ff1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x10021ff7
mov byte [ebx + 0x18], 1
xor eax, eax
test esi, esi
setns al
dec eax
and eax, esi
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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
Function at 0x10022770
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x14]
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
test eax, eax
je 0x10022787
mov dword [eax], edi
mov ecx, 8
call fcn.10012b40
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 0xc]
test eax, eax
je 0x100227ae
call eax
jmp 0x100227b4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100228c0
mov ecx, 0x28
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.10012b40
test eax, eax
je 0x100227df
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
jmp 0x100227eb
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10022886
cmp dword [esp + 0x14], edi
jne 0x10022886
mov eax, dword [esp + 0x10]
cmp eax, 0x1400000
ja 0x10022886
inc eax
push 0x100f7844
push eax
call fcn.100716e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10022877
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push dword [esp + 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002285f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
jne 0x1002285f
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.10022d50
push ebx
mov edi, eax
call fcn.100716db
add esp, 4
jmp 0x10022893
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1002286c
mov dword [eax], 8
push ebx
call fcn.100716db
add esp, 4
jmp 0x10022893
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10022893
mov dword [eax], 7
jmp 0x10022893
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10022893
mov dword [eax], 5
mov ecx, 0x16
call fcn.10012b40
push esi
test eax, eax
je 0x100228af
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100228cd
mov dword [eax], 5
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10038c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb0cc
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100f51d4]
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 - 0x214], ecx
push 0x8c
call fcn.10071942
mov ebx, eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 4], 0
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x21c], ecx
xor eax, eax
mov dword [ecx], 0
add ecx, 4
mov dword [ebp - 0x220], ecx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], al
mov byte [ebp - 4], 3
lea esi, [ebx + 8]
mov dword [ebx + 0x2c], eax
mov dword [ebx], vtable.CMID.2.0
mov dword [ebx + 4], vtable.CMID.1.0
mov dword [esi], vtable.CMID.0
mov word [ebx + 0x30], ax
mov dword [ebp - 4], 0xffffffff
push 0x100
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.10097030
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x80
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov edi, 0x80
test eax, eax
js 0x10038d03
push SysReAllocString
lea eax, [ebp - 0x210]
mov edx, edi
push eax
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0xb40
call fcn.10021880
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10097030
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
add esp, 0xc
cmp eax, vtable.CMID.1.0
jne 0x10038de9
mov edx, edi
lea ecx, [ebp - 0x110]
call fcn.10050960
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx + 0x2c]
test esi, esi
js 0x10038d7d
push SysReAllocString
lea eax, [ebp - 0x110]
mov edx, edi
push eax
push ecx
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx + 0xa40]
call fcn.10021880
mov eax, 1
jmp 0x10038dcd
mov esi, dword [ebp - 0x214]
push ecx
add esi, 0xa40
push esi
call fcn.1003a570
test eax, eax
je 0x10038dcb
mov edx, edi
mov eax, esi
cmp word [eax], 0
je 0x10038dab
add eax, 2
sub edx, 1
jne 0x10038d98
lea eax, [edx + 1]
jmp 0x10038dcd
test edx, edx
je 0x10038dc4
push SysReAllocString
sub edi, edx
push str._error_from_GetMID
push ecx
lea ecx, [esi + edi*2]
call fcn.1003aa60
mov eax, 1
jmp 0x10038dcd
xor eax, eax
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.10071699
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x110]
push edx
push ecx
call dword [eax + 0xc]
mov esi, eax
jmp 0x10038d49
Function at 0x10038f20
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x100f51d4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x20], 0xffffffff
jne 0x100390a4
push edi
call fcn.1009cd43
add esp, 4
mov esi, eax
lea eax, [ebx + 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10038f81
mov dword [ebx + 0x1c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x14], eax
jmp 0x10038f90
push str..log2
push eax
push esi
push str.New360_tmp_
lea eax, [ebx + 0x428]
inc edi
push eax
push str._s_s_d__d_s
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.10021620
add esp, 0x20
lea eax, [esp + 0x18]
push eax
call fcn.1003a4d0
test eax, eax
je 0x10038fea
mov eax, dword [esp + 0x14]
inc esi
cmp edi, 0x64
jl 0x10038f90
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x838]
mov edx, 0x104
lea esi, [esp + 0x18]
mov ecx, edi
sub esi, edi
lea ecx, [ecx]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10039020
movzx eax, word [esi + ecx]
test ax, ax
je 0x10039020
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10039000
jmp 0x10039024
test edx, edx
jne 0x10039027
sub ecx, 2
xor eax, eax
lea esi, [ebx + 0x20]
mov word [ecx], ax
test esi, esi
je 0x10038f6a
push esi
mov ecx, edi
call fcn.10039db0
test eax, eax
je 0x10038f6a
push 0
mov dword [ebx + 0xc48], 0
call fcn.1009cd43
add esp, 4
mov dword [ebx + 0xc4c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push 0
push eax
push 0xc8
lea eax, [ebx + 0xcb0]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10038f6a
cmp dword [esp + 0x10], 0xc8
jne 0x10038f6a
add dword [ebx + 0xc48], 0xc8
mov ecx, dword [esp + 0x224]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x10039c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push edi
push eax
mov dword [ebp - 0x268], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x268]
xor eax, eax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [esi], ax
lea eax, [ecx + 0x428]
mov dword [ebp - 0x26c], eax
jmp 0x10039cd0
push str..log2
push dword [ecx + 0xc54]
inc edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebp - 0x260]
push dword [ebp - 0x264]
push str.New360_formal_
push dword [ebp - 0x26c]
push str._s_s_I64d__d__d_s
push 0x104
push esi
call fcn.10021620
mov eax, esi
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039d12
sub eax, edx
sar eax, 1
je 0x10039d8f
push esi
call ebx
test eax, eax
je 0x10039d8f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10039d3a
test al, 0x10
jmp 0x10039d5b
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10039d8f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x25c], 0x10
jne 0x10039d8f
add dword [ebp - 0x264], 1
mov ecx, dword [ebp - 0x268]
adc dword [ebp - 0x260], 0
cmp edi, 0x64
jl 0x10039cd0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
Function at 0x10039e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push edi
xor edi, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edx
test ebx, ebx
je 0x10039fa7
mov ecx, ebx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039eb6
sub ecx, esi
sar ecx, 1
je 0x10039f9c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039ed0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + ecx*2]
add esi, esi
push esi
call fcn.10071a70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10039f1d
push esi
push 0
push ebx
call fcn.10097030
add esp, 0xc
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x10039f75
test esi, esi
je 0x10039f75
cmp esi, 1
jbe 0x10039f27
dec esi
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp - 0x10]
mov ecx, esi
push ebx
call fcn.1003a340
test eax, eax
je 0x10039f72
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10039f75
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jne 0x10039f75
add dword [esi + 0xc48], eax
mov esi, 1
jmp 0x10039f77
mov edi, dword [ebp - 8]
xor esi, esi
test ebx, ebx
je 0x10039f84
push ebx
call fcn.100716db
add esp, 4
test edi, edi
je 0x10039f91
push edi
call fcn.100716db
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003a4d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003a51c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003a4f0
sub ecx, edx
sar ecx, 1
je 0x1003a51c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003a51c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003a52f
test al, 0x10
je 0x1003a552
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x1003a51c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x25c], 0x10
jne 0x1003a51c
mov ecx, dword [ebp - 8]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10071699
mov esp, ebp
pop ebp
ret 4
Function at 0x1003a6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0
push eax
call fcn.10097030
add esp, 0xc
mov dword [ebp - 0x210], 0
xor ebx, ebx
push str.i18n.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, eax
test esi, esi
jne 0x1003a826
mov eax, dword [ebp - 0x214]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add eax, 0x630
cmp word [eax], bx
jbe 0x1003a79f
push SysReAllocString
push eax
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.10021880
push str.i18n.dll
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1003a79f
lea eax, [ebp - 0x20c]
push eax
call fcn.1008ae24
add esp, 4
test eax, eax
je 0x1003a79f
lea ecx, [ebp - 0x20c]
call fcn.10016930
mov esi, eax
test esi, esi
jne 0x1003a826
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x100f8d04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1003a813
push 0x100e5bd4
lea eax, [ebp - 0x20c]
push eax
call edi
push str.i18n.dll
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1003a813
lea eax, [ebp - 0x20c]
push eax
call fcn.1008ae24
add esp, 4
test eax, eax
jne 0x1003a7fb
xor esi, esi
jmp 0x1003a808
lea ecx, [ebp - 0x20c]
call fcn.10016930
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
test esi, esi
jne 0x1003a826
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret
push str.CreateI18N
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003a88a
lea ecx, [ebp - 0x210]
push ecx
call eax
add esp, 4
test eax, eax
je 0x1003a88a
push 0x100e5bd4
lea eax, [ebp - 0x20c]
push eax
call edi
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
je 0x1003a88a
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0x214]
mov edi, 1
mov dword [ecx + 0xc50], eax
jmp 0x1003a88c
xor edi, edi
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x1003a89b
mov eax, dword [ecx]
push ecx
call dword [eax]
test ebx, ebx
je 0x1003a8a6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071699
mov esp, ebp
pop ebp
ret
Function at 0x10041430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.CPCreateHash
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004152a
push ebx
push esi
mov ebx, 0xa
push edi
jmp 0x10041460
cmp dword [ebx + eax], 0x80090008
lea ecx, [ebx + eax]
jne 0x100414eb
cmp byte [ebx + eax - 0xa], 0xe8
jne 0x100414eb
cmp byte [ebx + eax - 5], 0x85
jne 0x100414eb
cmp byte [ebx + eax - 4], 0xc0
jne 0x100414eb
cmp byte [ebx + eax - 3], 0x75
jne 0x100414eb
mov dl, byte [ebx + eax + 4]
cmp dl, 0xe9
je 0x10041496
cmp dl, 0xeb
jne 0x100414eb
mov edi, dword [ecx - 9]
mov esi, 0xa
add edi, ecx
cmp dword [esi + edi - 5], 0x800c
jne 0x100414e2
cmp byte [esi + edi - 1], 0x74
jne 0x100414e2
cmp dword [esi + edi + 3], 0x800d
jne 0x100414e2
cmp byte [esi + edi + 7], 0x74
jne 0x100414e2
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0x40
lea eax, [esi + edi]
push 1
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10041501
inc esi
cmp esi, 0x40
jb 0x100414a0
mov eax, dword [ebp - 8]
inc ebx
cmp ebx, 0x100
jb 0x10041460
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
mov dword [ebp - 0xc], 0
push 1
push eax
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret