joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024150
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1010716b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2654
call fcn.100678a0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2650], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2668]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x65e]
push 0x1ffe
xor ebx, ebx
push ebx
push eax
call fcn.100639b0
add esp, 0xc
mov eax, 0x22
mov word [esp + 0x65c], ax
test esi, esi
je 0x1002439f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1002439f
push esi
call edi
cmp eax, 0xffa
jge 0x1002439f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x660]
push eax
call esi
push 0x1013704c
lea eax, [esp + 0x660]
push eax
call esi
push 0x10137050
lea ecx, [esp + 0x20]
call fcn.10008b50
mov dword [esp + 0x2670], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.10027420
mov ecx, eax
call fcn.100274a0
mov esi, eax
mov dword [esp + 0x2670], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x1002424b
push dword [esp + 0x1c]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
test esi, esi
je 0x1002439f
push 0x10137068
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1002439f
lea ecx, [esp + 0x34]
call fcn.10023d60
xor edi, edi
lea esi, [esp + 0x34]
cmp word [esi], 0
je 0x100242b4
push 1
push 0
lea eax, [esp + 0x664]
push eax
push esi
push str.open
push 0
call dword [esp + 0x2c]
cmp eax, 0x20
ja 0x100242c2
inc edi
add esi, 0x210
cmp edi, 2
jl 0x10024291
jmp 0x100242e4
imul ebx, edi, 0x210
cmp dword [esp + ebx + 0x23c], 0
mov ebx, dword [esp + ebx + 0x240]
jne 0x100242dc
add ebx, 0x10
test ebx, ebx
jne 0x1002439b
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x65c]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10024396
mov dword [esp + 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [esp + 0x18], str._programfiles_Internet_Exploreriexplore.exe
lea ebx, [ebx]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x45c], ax
lea eax, [esp + 0x45e]
push eax
call fcn.100639b0
add esp, 0xc
lea eax, [esp + 0x454]
push 0x103
push eax
push dword [esp + esi*4 + 0x1c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002438c
push 1
push 0
lea eax, [esp + 0x664]
push eax
lea eax, [esp + 0x460]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x10024396
inc esi
cmp esi, 2
jb 0x10024320
mov eax, ebx
jmp 0x100243a1
mov ebx, 0x10
mov eax, ebx
jmp 0x100243a1
xor eax, eax
mov ecx, dword [esp + 0x2668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2650]
xor ecx, esp
call fcn.1005d006
mov esp, ebp
pop ebp
ret
Function at 0x100259f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101469d0
push 0x1005e710
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10012610
mov edx, esi
call fcn.10025b30
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10025a75
test bl, bl
jne 0x10025b0e
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x10025a8e
mov eax, dword [esi]
jmp 0x10025a90
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call fcn.100639b0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x10025ad8
xor ecx, ecx
jmp 0x10025af0
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025ae1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.100067c0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005d006
mov esp, ebp
pop ebp
ret

Function at 0x100262d0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x10026302
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1005d006
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1002635d
cmp dword [esp + 4], 0x103
jne 0x1002635d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x101372ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10026353
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.1005d006
add esp, 8
ret
Function at 0x10027c40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101077e6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov byte [esi], 0
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x1c]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
call fcn.10006240
mov byte [esp + 0x18], 1
cmp dword [esi + 0x2c], 0
jne 0x10027cbb
push 3
push 0x10137300
lea ecx, [esi + 0x1c]
call fcn.100067c0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x1002a950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10107d81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
push dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
call fcn.1002aa50
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x1002aa38
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push dword [esp + 0x48]
push eax
call fcn.1002aa50
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x1002aa09
cmp dword [esi + 0x14], 8
jb 0x1002a9ee
push dword [esi]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.100061e0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x1002aa21
push dword [esp + 0x10]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x1002bab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101080c1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x6c], 0
xor eax, eax
mov esi, dword [esp + 0x74]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
push 0x11
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
push str.SOFTWARE2345.com
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.100067c0
mov dword [esp + 0x6c], 1
xor eax, eax
push 4
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push str.UUID
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.100067c0
mov byte [esp + 0x6c], 2
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x30]
push eax
push reloc.gdiplus.dll_Ordinal_1
lea eax, [esp + 0x50]
push eax
call fcn.1002a950
mov byte [esp + 0x6c], 4
cmp dword [esp + 0x20], 8
jb 0x1002bba3
push dword [esp + 0xc]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov word [esi], ax
push esi
lea eax, [esp + 0x48]
mov dword [esp + 0x28], 1
push eax
call fcn.1002a4e0
mov byte [esp + 0x6c], 1
cmp dword [esp + 0x58], 8
jb 0x1002bbf2
push dword [esp + 0x44]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov byte [esp + 0x6c], al
cmp dword [esp + 0x40], 8
jb 0x1002bc20
push dword [esp + 0x2c]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1005d006
add esp, 0x68
ret 4
Function at 0x1002d800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10108470
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
movlpd qword [esp + 0xc], xmm0
push eax
movdqu xmmword [esp + 0x20], xmm0
movdqu xmmword [esp + 0x30], xmm0
call fcn.10028a20
add esp, 4
test al, al
je 0x1002d878
mov edx, dword [esp + 0x34]
xor eax, eax
add eax, dword [esp + 0x38]
adc edx, 0
jmp 0x1002d8f2
lea ecx, [esp + 0x3c]
call fcn.1003bd80
mov dword [esp + 0x90], 0
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1003c360
test al, al
je 0x1002d8b1
mov eax, dword [esp + 0x5c]
and eax, 0x10
or eax, 0
jne 0x1002d8b1
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x1002d8b9
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x78], 8
jb 0x1002d8d7
push dword [esp + 0x64]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov word [esp + 0x64], ax
mov edx, edi
mov dword [esp + 0x74], 0
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1005d006
mov esp, ebp
pop ebp
ret

Function at 0x100302b0
Capabilities:
Read file on windows

Disassembly:
mov edx, ecx
mov eax, dword [edx]
test eax, eax
jne 0x100302bd
xor al, al
ret 0xc
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100302b8
cmp dword [eax], 0xffffffff
je 0x100302b8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [edx]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x10030370
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x1003039d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1005d006
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10030389
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100303d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100303d7
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1005d006
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.1005d006
add esp, 8
ret 4
Function at 0x10030490
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x100304aa
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10030400
test al, al
je 0x1003049e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10030400
test al, al
je 0x1003049e
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x10030517
cmp dword [esp + 0x14], edi
jne 0x10030517
mov eax, dword [esi]
test eax, eax
jne 0x10030504
xor bl, bl
jmp 0x10030517
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10030500
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10030400
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret 8
Function at 0x10033720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101092a1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x38], 0
xor eax, eax
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], 1
cmp dword [edi + 0x10], eax
je 0x10033832
push 0x26
push str.47FF0D24_E0A5_4163_8546_DE7217D2F141
mov ecx, esi
call fcn.100067c0
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], 1
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.10028550
lea ecx, [esp + 0x14]
call fcn.1001c0d0
push 1
push 0x10137404
mov ecx, esi
call fcn.100066e0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.10006610
mov byte [esp + 0x38], 0
cmp dword [esp + 0x28], 8
jb 0x1003381b
push dword [esp + 0x14]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1005d006
add esp, 0x30
ret 8

Function at 0x10037490
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x10105f99
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, edx
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x14], 0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [esp + 0x24], eax
push ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10037567
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10037567
lea esi, [eax + eax]
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005d9bc
add esp, 4
mov ebx, eax
push esi
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jg 0x1003755e
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp word [ebx], cx
jne 0x10037541
xor eax, eax
jmp 0x10037555
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10037546
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, edi
call fcn.100067c0
push ebx
call fcn.1005d9b7
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x10039d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10107d81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x44]
push 0
push edi
push dword [esp + 0x48]
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x44]
push ecx
push esi
call fcn.10039e20
mov dword [esp + 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [esp + 0xc], 1
jne 0x10039dfe
push 0x100
push edi
push dword [esp + 0x48]
lea eax, [esp + 0x1c]
push ecx
push eax
call fcn.10039e20
mov edi, eax
mov dword [esp + 0x30], 1
cmp esi, edi
je 0x10039dcf
cmp dword [esi + 0x14], 8
jb 0x10039db4
push dword [esi]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.100061e0
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x10039de7
push dword [esp + 0x10]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0x10
Function at 0x1003af10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.100639b0
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1003af87
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.10006010
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1005d006
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.1005d006
add esp, 0x210
ret

Function at 0x1003afa0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10107818
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
and edi, 0xffffb1af
cmp dword [esi + 0x14], 8
jb 0x1003afe5
mov eax, dword [esi]
jmp 0x1003afe7
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push eax
call ebx
test eax, eax
je 0x1003affc
mov al, 1
jmp 0x1003b086
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.1003bb80
test al, al
je 0x1003b050
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call ebx
test eax, eax
je 0x1003b050
mov bl, 1
jmp 0x1003b052
xor bl, bl
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x1003b06d
push dword [esp + 0x14]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
mov al, bl
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005d006
add esp, 0x2c
ret
Function at 0x1003b0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1010a4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1003b0ec
mov eax, dword [esi]
jmp 0x1003b0ee
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003b183
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.1003bb80
test al, al
je 0x1003b151
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1003b16c
push dword [esp + 0xc]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1005d006
add esp, 0x28
ret
Function at 0x1003b1b0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1010a4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x1003b1ef
mov eax, dword [edi]
jmp 0x1003b1f1
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x1003b1f9
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push eax
push ecx
call ebx
test eax, eax
je 0x1003b210
mov al, 1
jmp 0x1003b32d
xor eax, eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x58], eax
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.1003bb80
movzx ecx, byte [esp + 0x17]
test al, al
mov edx, 1
mov dword [esp + 0x2c], 0
cmovne ecx, edx
mov dword [esp + 0x30], 0
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov byte [esp + 0x58], dl
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.1003bb80
test al, al
jne 0x1003b29e
cmp byte [esp + 0x18], al
je 0x1003b2c8
cmp dword [esp + 0x30], 8
lea ecx, [esp + 0x1c]
push 0
cmovae ecx, dword [esp + 0x20]
lea eax, [esp + 0x38]
cmp dword [esp + 0x4c], 8
push ecx
cmovae eax, dword [esp + 0x3c]
push eax
call ebx
test eax, eax
je 0x1003b2c8
mov bl, 1
jmp 0x1003b2ca
xor bl, bl
mov byte [esp + 0x58], 0
cmp dword [esp + 0x30], 8
jb 0x1003b2e2
push dword [esp + 0x1c]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x1003b314
push dword [esp + 0x34]
call fcn.1005d7c6
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.1005d006
add esp, 0x4c
ret