joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x405ba0
call fcn.0041ddc8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405ba0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x405bbc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f16e
mov ebx, eax
test edi, edi
je 0x405bba
test esi, esi
je 0x405bba
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40660d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4066cb
cmp dword [esi + 0x20], 0
je 0x4066cb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4066cb
cmp dword [ebp + 8], 0
je 0x4066cb
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041ddc8
push 0x5779e8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40669c
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4066cb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0041fc7b
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4066bc
test edi, edi
je 0x4066bc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4066c7
mov ecx, esi
call fcn.004063af
mov eax, ebx
jmp 0x4066cd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40d662
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5684a9
call fcn.0054baa9
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x40d688
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d6e8
call fcn.004133db
push eax
lea ecx, [ebp - 0x10]
call fcn.004023d0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5769b4]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00552346
push eax
call fcn.0040cf8c
add esp, 0x14
test esi, esi
je 0x40d6db
push esi
call fcn.00552098
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004024e0
mov eax, ebx
call fcn.0054ba72
ret 8
Function at 0x40f63b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40f68e
push esi
push dword [ebp + 8]
call fcn.0040f824
mov edi, eax
test edi, edi
je 0x40f689
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40f689
mov eax, dword [ebp - 8]
jmp 0x40f6a0
mov eax, dword [ebp + 0x10]
jmp 0x40f6a0
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x410b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x410bca
call fcn.0041ddc8
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410bc7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410c1a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x410bf7
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5769b4]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x410bf7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x410c18
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x5769b4]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x411b5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041ddc8
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411b93
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00411bb2
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4194e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.0041ddc8
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4195d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4195d1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4195d1
movzx eax, word [edi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040383f
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov dword [ebp - 4], eax
mov eax, ecx
cmp si, cx
jae 0x419581
mov ebx, dword [ebp - 4]
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x41956a
mov ebx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [ebp - 8]
movzx eax, ax
push eax
push dword [ebp - 4]
call fcn.00419c3c
push dword [ebp - 4]
mov esi, eax
call fcn.0040383a
pop ecx
test esi, esi
je 0x4195c6
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 8]
lea edx, [esi + 7]
push eax
push edx
call fcn.00419e08
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00419497
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x4195d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422d47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x422d9d
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x422d76
call fcn.0040b97b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x422d8b
call fcn.0040b97b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x422d9d
call fcn.0040b97b
call fcn.0041ddc8
cmp dword [eax + 0x3c], 0
je 0x422db2
push edi
mov ecx, ebx
call fcn.00422477
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00422f84
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x422ddb
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x422de7
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4503a3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0040d23f
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004505bc
cmp esi, 3
je 0x4503e1
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x45042a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x450404
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00405c30
jmp 0x450415
push 0xff
mov ecx, esi
call fcn.00402670
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004083d5
jmp 0x45044e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45044e
push dword [esi]
push dword [ebp - 4]
call fcn.00420f29
pop edi
pop esi
leave
ret 0xc

Function at 0x450513
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004505bc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45055b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405c30
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004083d5
jmp 0x450566
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00420f29
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x487824
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00526fc7
call fcn.0041de1c
cmp dword [eax + 0x14], 0
jne 0x48783f
mov ecx, esi
pop esi
jmp fcn.00486b4f
pop esi
ret

Function at 0x48de20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x48de3a
call fcn.0041ddc8
mov esi, dword [eax + 0xc]
push 0x58626c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x48de90
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48de90
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48de6f
xor esi, esi
jmp 0x48de85
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0048de99
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x48de92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d1a3a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401d20
call fcn.0041de1c
cmp dword [eax + 0x14], 0
jne 0x4d1a55
mov ecx, esi
pop esi
jmp fcn.004d12b6
pop esi
ret

Function at 0x4ed31a
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055b718
pop ecx
test eax, eax
jne 0x4ed35c
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040fc30
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ed322
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5639a2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00563662
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x120946c2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x338c65ec
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100016d0
Capabilities:
Access peb ldr_data
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x20240423
je 0x100016e0
xor eax, eax
pop ebp
ret
push esi
push 0x4c8
call fcn.1015144f
push 0x4c8
mov esi, eax
push 0
push esi
call fcn.10152e30
add esp, 0x10
mov ecx, esi
pop esi
pop ebp
jmp fcn.1001c990

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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002001
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x10001fa0
cmp eax, 2
jne 0x10001fff
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
movq qword [esp + 0x1c], xmm0
push edi
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bc60
lea ecx, [esp + 0x1c]
call fcn.10009b90
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test edi, edi
je 0x10002001
cmp edi, dword [0x101c5980]
je 0x10002001
push edi
call fcn.10154f5a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.10151433
add esp, 0x1c
ret
Function at 0x10002960
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
cmp edx, dword [esp + 0x2c]
ja 0x1000299d
mov eax, dword [esp + 8]
jb 0x100029a3
cmp eax, ecx
jb 0x100029a3
mov edx, dword [esp + 0x2c]
mov eax, ecx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10151433
mov esp, ebp
pop ebp
ret
Function at 0x10004440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017bb58
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x101e6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x10004481
mov eax, 0xff
jmp 0x1000465c
push 0x58
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10152e30
add esp, 8
lea eax, [ebx + 0x68]
lea ecx, [ebp - 0x78]
push eax
call fcn.1000d770
push 0x104
lea eax, [ebp - 0x288]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.10152e30
add esp, 0xc
lea eax, [ebp - 0x284]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
push dword [ebx + 0x44]
push esi
call fcn.10008ae0
mov byte [ebp - 4], 1
push 0x2e
push dword [ebp - 0x288]
call fcn.101532cb
add esp, 8
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x6c], 0xffffffff
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x28c], eax
je 0x10004507
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x78]
call dword [edx + 0x2c]
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x1000454d
push 0
push 0x8000000
push 3
push 0
push 0
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x10004616
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10004564
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x10004569
or eax, 0xffffffff
or ecx, eax
push 0x100
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x180]
push 0
push eax
mov dword [ebp - 0x3c], ecx
call fcn.10152e30
add esp, 0xc
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x184]
mov dword [ebp - 0x184], eax
push dword [ebp - 0x28c]
push esi
call fcn.10008ae0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x184]
test eax, eax
je 0x100045b9
push eax
call fcn.10154f5a
add esp, 4
push esi
call fcn.101565d5
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x180]
mov eax, dword [ebp - 0x184]
add esp, 4
cmp eax, ecx
je 0x100045de
push eax
call fcn.10154f5a
add esp, 4
push 0x100000
lea eax, [ebp - 0x80]
mov dword [ebp - 0x20], 0
push eax
push dword [ebp - 0x290]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.10010570
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.1000e2d0
jmp 0x1000461b
mov esi, 0xff
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x284]
cmp eax, ecx
je 0x10004634
push eax
call fcn.10154f5a
add esp, 4
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.CArkWinIn.1.0
mov dword [ebp - 0x74], vtable.CArkWinIn.0
call fcn.1000e2d0
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x1000465a
push ecx
call fcn.10154f5a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10151433
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ac00
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov eax, ecx
mov dword [esp + 8], eax
mov ebx, edx
push esi
push edi
test eax, eax
je 0x1000ad97
test ebx, ebx
je 0x1000ad97
test ebp, ebp
je 0x1000ad97
mov esi, dword [0x101c5980]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
jg 0x1000ac50
mov cl, 1
jmp 0x1000ac81
xor eax, eax
mov ecx, esi
cmp esi, dword [0x101c5980]
mov edx, 2
cmove ecx, eax
lea eax, [edi + 1]
mul edx
mov edx, 0xffffffff
cmovb eax, edx
push eax
push ecx
call fcn.1015fb7c
add esp, 8
test eax, eax
cmovne esi, eax
setne cl
xor eax, eax
mov edx, esi
test cl, cl
cmovne eax, edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1000ac9d
xor edi, edi
jmp 0x1000ad6d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, ebx
call fcn.1000ab70
push 0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov edi, eax
test edi, edi
jne 0x1000ad66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1000ad1a
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x28], edi
xorps xmm0, xmm0
movq qword [esp + 0x20], xmm0
push ebx
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.1000bc60
lea ecx, [esp + 0x20]
call fcn.10009b90
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push edi
push ebp
push ebx
call eax
mov edi, eax
test ebx, ebx
je 0x1000ad66
cmp ebx, dword [0x101c5980]
jmp 0x1000ad5b
cmp eax, 0x7b
jne 0x1000ad66
mov dl, 1
mov ecx, ebx
call fcn.10001a30
mov dl, 1
mov dword [esp + 0x10], eax
mov ecx, ebp
call fcn.10001a30
mov ebp, dword [esp + 0x10]
mov ebx, eax
test ebp, ebp
je 0x1000ad59
test ebx, ebx
je 0x1000ad50
mov eax, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 0
push ebx
push ebp
call eax
mov edi, eax
push ebp
call fcn.10154f5a
add esp, 4
test ebx, ebx
je 0x1000ad66
push ebx
call fcn.10154f5a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test esi, esi
je 0x1000ad82
cmp esi, dword [0x101c5980]
je 0x1000ad82
push esi
call fcn.10154f5a
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret
Function at 0x1000caf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x14
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000cc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
je 0x1000cb36
cmp esi, 2
je 0x1000cb36
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x1000cbe1
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
push edi
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bc60
lea ecx, [esp + 0x18]
call fcn.1000c710
mov edi, dword [esp + 0x18]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x1000cbc2
test al, 0x10
jne 0x1000cbc2
test edi, edi
je 0x1000cbeb
cmp edi, dword [0x101c5980]
je 0x1000cbeb
push edi
call fcn.10154f5a
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret
test edi, edi
je 0x1000cbd7
cmp edi, dword [0x101c5980]
je 0x1000cbd7
push edi
call fcn.10154f5a
add esp, 4
cmp esi, 2
je 0x1000cc01
cmp esi, 3
je 0x1000cc01
cmp esi, 0x7b
je 0x1000cc01
cmp esi, 0x35
je 0x1000cc01
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10151433
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
shr eax, 4
pop edi
pop esi
not eax
xor ecx, esp
and eax, 1
call fcn.10151433
add esp, 0x14
ret