joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fa4
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406315
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x40634f
test eax, eax
je 0x40634f
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406351
mov ecx, 0x4082a8
jmp 0x406356
xor eax, eax
mov ecx, 0x4082aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4063b4
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4063d7
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040647d
pop ecx
pop ecx
inc dword [0x429610]
ret 8

Function at 0x40647d
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426680], 0x55004e
mov ebp, 0x426680
mov dword [0x426684], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x4064d3
push 1
push 0
push esi
call fcn.00406a92
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4065b3
cmp eax, ebx
jg 0x4065b3
push ebx
mov esi, 0x425e80
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4065b3
cmp eax, ebx
jg 0x4065b3
push esi
push ebp
push str._ls_ls_r_n
push 0x425a80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429550]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040601f
push 4
push 0xc0000000
push esi
call fcn.00406a92
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4065b3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4065ac
push esi
push edi
push ebx
call fcn.00406abf
test eax, eax
je 0x4065ac
push str._Rename__r_n
push edi
call fcn.00406cad
test eax, eax
jne 0x4065b8
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x425a80
lea eax, [ecx + edi]
push eax
call fcn.0040682b
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406b82
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40899c
add eax, 0xa
push eax
call fcn.00406cad
mov ecx, eax
test ecx, ecx
je 0x40657d
lea edx, [edi + esi]
jmp 0x4065d7
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x4065d1
sub ecx, edi
inc ecx
jmp 0x40657f
Function at 0x4066fc
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406d14
mov edi, eax
cmp edi, 0xffffffff
je 0x40673f
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406720
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406726
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40672f
xor eax, eax
inc eax
jmp 0x406741
test byte [ebp + 0xc], 4
jne 0x40673f
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425280
push ebx
call fcn.00406c91
push ebx
call fcn.00406d3c
mov esi, eax
test esi, esi
je 0x406824
push esi
call fcn.00406eb4
test byte [0x42954c], 0x80
je 0x4067e8
movzx eax, word [esi]
test ax, ax
je 0x406824
cmp eax, 0x5c
je 0x406824
sub esi, ebx
sar esi, 1
jmp 0x406802
call fcn.00406746
test eax, eax
je 0x4067fc
test byte [eax], 0x10
je 0x406824
push ebx
call fcn.00406e87
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x4067ee
call fcn.004066cd
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406824
xor eax, eax
inc eax
jmp 0x406826
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x40684d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x424a38], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x424a38
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40688c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406890
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004067af
mov dword [esp + 0x14], eax
test bl, 8
je 0x4068d2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429608], eax
jmp 0x406a51
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4068ef
test eax, eax
je 0x406a40
test bl, 2
je 0x406a09
push esi
push 0x424a80
call fcn.00406c91
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406912
push str..
push 0x424a80
call ebp
jmp 0x406918
push esi
call fcn.00406e87
xor eax, eax
cmp word [esi], ax
jne 0x406929
cmp word [0x424a80], 0x5c
jne 0x406931
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x424a80
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4069f2
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40697b
cmp word [esp + 0x4a], 0
je 0x4069d4
cmp word [esp + 0x4a], ax
jne 0x40697b
cmp word [esp + 0x4c], 0
je 0x4069d4
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406c91
test byte [esp + 0x1c], 0x10
je 0x4069a2
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4069d4
push ebx
push esi
call fcn.00406890
jmp 0x4069d4
push edi
push esi
call fcn.004066fc
test eax, eax
jne 0x4069cc
test edi, edi
je 0x4069c4
push esi
push 0xfffffffffffffff1
call fcn.00405ec0
xor eax, eax
push eax
push esi
call fcn.004063b4
jmp 0x4069d4
inc dword [0x429608]
jmp 0x4069d4
push esi
push 0xfffffffffffffff2
call fcn.00405ec0
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40695d
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406a50
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406a40
push esi
call fcn.00406746
test eax, eax
je 0x406a50
push esi
call fcn.004066cd
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004066fc
test eax, eax
jne 0x406a48
test edi, edi
je 0x406a40
push esi
push 0xfffffffffffffff1
call fcn.00405ec0
xor eax, eax
push eax
push esi
call fcn.004063b4
jmp 0x406a50
inc dword [0x429608]
jmp 0x406a50
push esi
push 0xffffffffffffffe5
call fcn.00405ec0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x406aee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040644f
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406b60
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406b60
cmp dword [ebp + 0x18], 1
je 0x406b65
cmp dword [ebp + 0x18], 2
je 0x406b65
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406b6a
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406bcd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406c17
test edi, edi
jne 0x406bda
mov word [esi], ax
jmp 0x406c19
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406d14
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406d36
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406fb3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4270d4], 0
push esi
jne 0x406fed
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406fc4
mov dword [ecx*4 + 0x4270d0], edx
inc ecx
cmp ecx, 0x100
jl 0x406fbf
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407017
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4270d0]
inc esi
sub edx, 1
jne 0x406fff
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x100123d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.100142b0
add esi, esi
add esp, 0xc
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x100123e3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10012440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
or ecx, 0x100
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 8
movzx esi, word [edx + eax*2]
mov edx, ecx
shr edx, 7
add ecx, ecx
and edx, 1
shr esi, 4
neg edx
sar edx, 4
and edx, 0x7f
xor esi, edx
add edi, dword [ebx + esi*4]
cmp ecx, 0x10000
jb 0x10012454
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100124a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, 0x100
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
or ecx, esi
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [ebp + 8]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor edx, eax
mov eax, dword [ebp + 0x14]
add ebx, dword [eax + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x100124b5
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x100144f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x10]
push edi
or ecx, eax
xor edi, edi
cmp ecx, 1
je 0x10014536
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
and ecx, 1
shr esi, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + esi*2]
shr edx, 4
xor edx, ecx
mov ecx, esi
add edi, dword [eax + edx*4]
cmp ecx, 1
jne 0x10014512
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret

Function at 0x100145a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [eax + 1]
cmp dword [ebp + 0xc], eax
je 0x100145e2
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edx, dword [ebp + 8]
mov edi, ebx
and edi, 1
shr ebx, 1
movzx esi, word [edx + ecx*2]
mov edx, edi
neg edx
shr esi, 4
sar edx, 4
add ecx, ecx
and edx, 0x7f
or ecx, edi
xor esi, edx
mov edx, dword [ebp + 0x14]
add eax, dword [edx + esi*4]
dec dword [ebp + 0xc]
jne 0x100145b3
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10019db0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d1d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100af4a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 4
mov dword [esi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [ebp - 4], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x10
mov dword [esi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], 1
mov byte [esi + 0x2c], 0
push 3
mov byte [ebp - 4], 1
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.10003b25
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1003c0e0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x100af4a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1003c10d
push esi
mov ecx, edi
call fcn.10002f13
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100583b0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.100583b0
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x1003c17e
push 0x100993c4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x100994f0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x24c
lea eax, [ebp - 0x868]
mov dword [ebp - 0x86c], 0
push 0
push eax
call fcn.100583b0
add esp, 0x1c
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003c1ee
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100567ed
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1003c200
mov ecx, 0x10099508
lea eax, [ebp - 0x840]
jmp 0x1003c210
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003c236
test dx, dx
je 0x1003c232
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003c236
add eax, 4
add ecx, 4
test dx, dx
jne 0x1003c210
xor eax, eax
jmp 0x1003c23b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003c2e2
mov eax, 0x10098668
lea ecx, [ebp - 0x840]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1003c276
test dx, dx
je 0x1003c272
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1003c276
add ecx, 4
add eax, 4
test dx, dx
jne 0x1003c250
xor eax, eax
jmp 0x1003c27b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003c2e2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.100583b0
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.10002f13
test byte [ebp - 0x86c], 0x10
je 0x1003c2e2
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.10002388
lea eax, [ebp - 0x86c]
push eax
push esi
call ebx
test eax, eax
jne 0x1003c200
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100567ed
mov esp, ebp
pop ebp
ret 4
Function at 0x1003c3a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090cbe
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x100af4a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003c50e
push 0x40
call fcn.10002487
mov edi, eax
add esp, 4
mov dword [ebp - 0x29c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x1003c422
push 3
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10003b25
jmp 0x1003c424
xor edi, edi
push esi
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.100028ba
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1003c4a1
push 0x24c
lea eax, [ebp - 0x290]
mov dword [ebp - 0x294], 0
push 0
push eax
call fcn.100583b0
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1003c47d
mov eax, 0x80004005
jmp 0x1003c510
mov eax, dword [ebp - 0x294]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x280]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x27c]
push ecx
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1003c4f4
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003c473
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movdqu xmm0, xmmword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
movdqu xmmword [edi + 0xc], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [edi + 0x1c], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [edi + 0x2c], xmm0
mov dword [edi + 0x3c], eax
mov esi, dword [ebp - 0x298]
lea ecx, [esi + 8]
call fcn.100039fe
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100567ed
mov esp, ebp
pop ebp
ret 4
Function at 0x1003ea90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push edi
add eax, 0xfffffffd
xor edi, edi
cmp eax, 9
ja case.default.0x1003eaa7
push esi
jmp dword [eax*4 + 0x1003ebac]
mov edx, dword [ebp + 8]
mov eax, 8
mov esi, dword [ebp + 0x14]
mov word [esi], ax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + eax*4]
mov eax, dword [edx + 8]
mov eax, dword [eax - 0xc]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, 0xb
pop esi
mov word [eax], cx
xor ecx, ecx
mov word [eax + 8], cx
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
mov esi, dword [ebp + 0x14]
mov eax, 0x15
push 0
push 0x80
push 3
mov word [esi], ax
mov eax, dword [ebp + 8]
push 0
push 1
push SysReAllocString
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
push dword [ecx + eax*4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003eb4f
lea eax, [esi + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
mov edi, 0x80004005
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, 0x13
pop esi
mov word [eax], cx
mov dword [eax + 8], 0x80
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, 0x40
pop esi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov word [eax], cx
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
mov eax, 0x40
mov word [ecx], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10