joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fdb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e3698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.004901b0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0xcf677c
call fcn.00497f78
mov ecx, dword [0xbd147c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0048d500
mov esi, 0xbd14d4
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x48fe57
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48fe4e
cmp al, 0xff
je 0x48fe4e
dec al
mov byte [ecx], al
jmp 0x48fe57
push ecx
call fcn.004d3bca
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004cfbc0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x48fe9d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x48fe94
cmp al, 0xff
je 0x48fe94
dec al
mov byte [ecx], al
jmp 0x48fe9d
push ecx
call fcn.004d3bca
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00497fff
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4ab2e0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x4ab2f0
mov esi, 1
push esi
call fcn.00496647
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ab342
call fcn.0049714d
mov edi, eax
call fcn.004ade40
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x4ab326
mov edx, dword [0xbfdf80]
mov dword [0xbfdf7c], edx
test al, 0x18
je 0x4ab337
push esi
push 0x24
push 5
call fcn.004ae690
add esp, 0xc
test edi, edi
je 0x4ab35d
push 1
call fcn.00498ba4
test byte [esp + 0x14], 0x20
je 0x4ab35d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4ac460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4ac554
cmp byte [edx], 0
je 0x4ac547
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004ac3e0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004ac3e0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004ac350
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4ac511
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004ac390
fmul qword [0xbd4a40]
push ecx
fstp qword [esp]
call fcn.00494fa8
fadd qword [0xbd4a38]
add esp, 8
call fcn.00495078
mov byte [ebx], al
inc ebx
dec edi
jne 0x4ac4e4
lea ecx, [esp + 0x20]
push ecx
call fcn.004ac390
fmul qword [0xbd4a40]
push ecx
fstp qword [esp]
call fcn.00494fa8
add esp, 8
call fcn.00495078
cmp esi, ebx
je 0x4ac53d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4ac536
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4ac950
mov byte [edi + esi], 2
jmp 0x4ac987
test al, 4
je 0x4ac95a
mov byte [edi + esi], 0xd
jmp 0x4ac987
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4ac973
mov byte [edi + esi], 2
jmp 0x4ac987
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4ac983
mov byte [edi + esi], 0x19
jmp 0x4ac987
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4ac937
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4ac9fb
cmp dl, 0xd
je 0x4ac9fb
xor edx, edx
jmp 0x4aca00
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4ac9eb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4aca20
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004ab2e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4aca41
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004ae080
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4aca66
push esi
call fcn.004ab370
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004a07eb
push ebx
push edi
mov ebp, eax
call fcn.004ae0f0
push 0x4acaa0
push ebp
push esi
call fcn.004af420
push esi
call fcn.004ab370
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4addb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0xd02880
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xd027a8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4ade2b
push 0x4c
push 1
call fcn.00497575
mov esi, eax
add esp, 8
test esi, esi
jne 0x4addf3
push 0xd02880
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0xd027a8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0xcf8bd4]
inc eax
lea edx, [esi + 0xc]
mov dword [0xcf8bd4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004b1890
add esp, 8
mov byte [esi + 0x3c], 1
push 0xd02880
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4ae2b0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0049714d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004a07eb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4ae3aa
call fcn.0049714d
cmp dword [eax], 0
je 0x4ae2f7
call fcn.0049714d
mov ebp, dword [eax]
jmp 0x4ae2fa
or ebp, 0xffffffff
call fcn.004ade40
test esi, esi
mov dword [eax], ebp
jne 0x4ae30f
call fcn.0049714d
cmp dword [eax], 4
je 0x4ae35f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4ae342
cmp esi, 0xffffffff
je 0x4ae384
test al, 6
je 0x4ae342
call fcn.004ade40
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004b18c0
add esp, 4
push eax
push 0x24
push 9
call fcn.004ae690
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4ae3a2
test al, 6
je 0x4ae350
test ah, 2
je 0x4ae3a2
test esi, esi
jbe 0x4ae3ae
test ah, 2
je 0x4ae3ae
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0049714d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004a07eb
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4ae3aa
jmp 0x4ae2e4
call fcn.004ade40
mov eax, dword [eax]
push eax
push ebx
call fcn.004b18c0
add esp, 4
push eax
push 0x24
push 2
call fcn.004ae690
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4ae3bb
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4ae3c4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4ca1e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e46c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004bf18d
mov eax, dword [0xbd5900]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004bf0bf
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004cace0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4ca287
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4ca27e
cmp al, 0xff
je 0x4ca27e
dec al
mov byte [ecx], al
jmp 0x4ca287
push ecx
call fcn.004d3bca
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4ca2b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4ca2af
cmp al, 0xff
je 0x4ca2af
dec al
mov byte [ecx], al
jmp 0x4ca2b8
push ecx
call fcn.004d3bca
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4d13c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d13e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004970da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4d1407
test byte [esp + 8], 2
je 0x4d1407
call fcn.0049714d
mov dword [eax], 0xd
call fcn.00497156
mov dword [eax], 5
jmp 0x4d13e0
xor eax, eax
ret

Function at 0x4d6207
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d623f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d42bb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d4293
jmp 0x4d624b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d78fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d7940
call fcn.004dd558
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d7940
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d7937
xor eax, eax
jmp 0x4d7948
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d794e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4dda88
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ddab6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ddad4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dd9ee
jmp 0x4ddad4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ddad4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dd9ee
test edi, edi
mov eax, edi
jne 0x4ddabe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10008c80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, ecx
mov dword [ebp - 0xc], edx
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x10008d3c
push edi
push 1
call fcn.10434107
mov esi, eax
add esp, 8
test esi, esi
je 0x10008d3c
push esi
push edi
push 0
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10008d33
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x10468d10
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x10008d33
mov eax, dword [ebp - 8]
mov edi, 1
movzx edx, word [eax + 0xa]
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp edx, dword [ebp - 0xc]
jb 0x10008d20
cmp dword [ebp + 8], 0
jne 0x10008d16
push esi
mov dword [eax], edi
call fcn.10434337
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [eax]
cmp edx, dword [ebp + 8]
cmovbe ecx, edi
mov dword [eax], ecx
push esi
call fcn.10434337
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.10434337
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10008e00
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x21c], 0
push edi
test byte [esi + 0x30], 1
je 0x10008edd
lea ecx, [ebp - 0x21c]
call fcn.10008d50
test eax, eax
jne 0x10008f40
cmp dword [ebp - 0x21c], eax
je 0x10008edd
push 0x10468d90
push 0x10468d00
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10008e81
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x10008eb5
cmp dword [ebp - 0x21c], 0
je 0x10008eb5
push 0x10468da0
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x10008ec8
lea eax, [esi + 0x28]
push eax
call ecx
test eax, eax
je 0x10008ec8
or dword [esi + 0x2c], 0x40
push 0x400
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10008f25
mov eax, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10468d70
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10008f3b
lea eax, [ebp - 0x218]
push eax
push 0x10468d20
lea edi, [esi + 0x34]
push 0x400
push edi
call fcn.100086c0
add esp, 0x10
test eax, eax
js 0x10008f3b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008f3b
or dword [esi + 0x2c], 0x20
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1045066c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000926d
push esi
mov esi, dword [ebp + 8]
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10009265
push 0x5c
push esi
call fcn.10425266
push esi
push 0x10468d60
xor ecx, ecx
add edi, 0x34
push 0x400
push edi
mov word [eax], cx
call fcn.100086c0
add esp, 0x18
test eax, eax
js 0x10009265
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009265
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x10009280
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.10451050
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x810]
mov edi, ecx
push 0
push eax
call fcn.10425c00
add esp, 0xc
mov dword [ebp - 0x1014], 0
push 0x10468d90
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100092f1
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x100092f1
xor ebx, ebx
jmp 0x1000933c
mov ebx, dword [ebp - 0x1014]
test ebx, ebx
je 0x1000933c
push 0x10468da0
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
jne 0x1000932e
mov eax, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x28]
push eax
call ecx
test eax, eax
je 0x10009318
or dword [edi + 0x2c], 0x40
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10009412
push 0x10468e30
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1043432c
add esp, 0xc
lea eax, [ebp - 0x810]
lea esi, [edi + 0x34]
push eax
push 0x10468d20
push 0x400
push esi
call fcn.100086c0
add esp, 0x10
test eax, eax
js 0x10009415
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009415
or dword [edi + 0x2c], 0x20
lea esi, [edi + 0x34]
push esi
push 0x10468e90
lea eax, [ebp - 0x1010]
push 0x400
push eax
call fcn.100086c0
add esp, 0x10
lea edx, [ebp - 0x1010]
mov ecx, edi
call fcn.10009ad0
mov edi, eax
test esi, esi
je 0x100093ff
mov edx, 0x10468eb0
xor ecx, ecx
sub edx, esi
nop dword [eax]
cmp ecx, 0x3ff
jae 0x100093fa
mov ax, word [edx + esi]
inc ecx
mov word [esi], ax
add esi, 2
cmp word [edx + esi], 0
jne 0x100093e0
xor eax, eax
mov word [esi], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret
lea esi, [edi + 0x34]
lea eax, [ebp - 0x810]
test ebx, ebx
push eax
mov eax, 0x10468e50
mov edx, 0x10468e70
cmovne edx, eax
mov ecx, edi
call fcn.10009200
test eax, eax
jne 0x100093a0
lea ecx, [ebp - 0x810]
call fcn.10008f50
test eax, eax
jne 0x10009477
lea eax, [ebp - 0x810]
push eax
push 0x10468d60
push 0x400
push esi
call fcn.100086c0
add esp, 0x10
test eax, eax
js 0x10009477
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100093a0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret
Function at 0x10009490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 4], dl
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10009512
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100094cd
push eax
call ebx
and dword [esi + 0x2c], 0xfffffffb
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100094e2
push eax
call ebx
and dword [esi + 0x2c], 0xfffffff7
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100094f7
push eax
call ebx
and dword [esi + 0x2c], 0xffffffef
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000950c
push eax
call ebx
and dword [esi + 0x2c], 0xfffffffe
mov dword [esi + 0x10], 0
pop ebx
jmp 0x10009593
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009539
cmp dword [ebp - 8], 1
jne 0x10009539
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10009554
push eax
call edi
and dword [esi + 0x2c], 0xfffffffb
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10009569
push eax
call edi
and dword [esi + 0x2c], 0xfffffff7
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000957e
push eax
call edi
and dword [esi + 0x2c], 0xffffffef
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10009593
push eax
call edi
and dword [esi + 0x2c], 0xfffffffe
mov dword [esi + 0x10], 0
test byte [esi + 0x2c], 0x40
je 0x100095bd
push 0x10468ce0
push 0x10468d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100095b9
push dword [esi + 0x28]
call eax
and dword [esi + 0x2c], 0xffffffbf
pop edi
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret