joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ef91
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d6343
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov al, byte [edi + 8]
mov byte [esi + 8], al
mov al, byte [edi + 9]
mov byte [esi + 9], al
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.10001da4
mov eax, dword [edi + 0x1c]
and dword [ebp - 4], 0
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call fcn.1001699c
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100746f9
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, ecx
test esi, esi
mov ecx, edx
jbe 0x10074728
push ebx
push edi
movzx edi, byte [ecx]
xor edx, edx
xor ebx, ebx
mov dl, ah
mov bh, al
xor edx, edi
movzx eax, bx
movzx edx, word [edx*2 + 0x100f7900]
xor eax, edx
inc ecx
dec esi
jne 0x10074708
pop edi
pop ebx
pop esi
ret 4

Function at 0x100763b9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100d6ab2
call fcn.100cece0
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
mov ecx, dword [eax]
push edi
mov dword [ebx], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [eax + 0x14]
lea esi, [eax + 0x18]
lea edi, [ebx + 0x18]
mov dword [ebx + 0x14], ecx
mov dword [ebp - 0x10], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x24]
lea edi, [ebx + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 0x30]
add eax, 0x34
mov byte [ebx + 0x30], cl
push eax
lea ecx, [ebx + 0x34]
call fcn.1001699c
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebx + 0x3c]
lea eax, [esi + 0x3c]
push eax
call fcn.100764e4
add esi, 0x48
lea ecx, [ebx + 0x48]
push esi
mov byte [ebp - 4], 1
call fcn.10076529
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1007d350
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
add ecx, 0x18
jmp fcn.100c6780

Function at 0x1007d648
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x100d7029
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x40]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
lea eax, [edi + 0x40]
push eax
call fcn.100025c2
and dword [ebp - 4], 0
lea eax, [edi + 0x4c]
push eax
lea ecx, [esi + 0x4c]
call fcn.100025c2
mov eax, dword [edi + 0x58]
lea ecx, [esi + 0x64]
mov dword [esi + 0x58], eax
mov al, byte [edi + 0x5c]
mov byte [esi + 0x5c], al
mov al, byte [edi + 0x5d]
mov byte [esi + 0x5d], al
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
lea eax, [edi + 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.1007d9f9
add edi, 0x70
lea ecx, [esi + 0x70]
push edi
mov byte [ebp - 4], 2
call fcn.1001699c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1007f713
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x100d7204
call fcn.100cece0
sub esp, 0x64
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
push esi
mov dword [esi + 0x10], eax
mov al, byte [ebx + 0x2c]
mov byte [esi + 0x69], al
cmp dword [ebx], 0x10900
mov edx, ebx
sete al
mov byte [esi + 0x68], al
call fcn.1007f8eb
xor edi, edi
cmp eax, edi
jne 0x1007f8da
mov ecx, dword [ebx + 0x80]
lea eax, [ebx + 0x80]
or ecx, dword [eax + 4]
jne 0x1007f76b
push 1
pop eax
jmp 0x1007f76d
xor eax, eax
test al, al
lea ecx, [ebp - 0x70]
mov dword [ebp + 0xc], edi
sete byte [ebp + 0x17]
call fcn.100786d5
mov eax, dword [esi + 0x24]
mov dword [ebp - 4], edi
cmp eax, edi
mov dword [ebp - 0x14], edi
jbe 0x1007f8bf
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x20]
add eax, dword [ebp - 0x10]
cmp word [ebx + 0x20], 1
mov dword [ebp - 0x1c], eax
jne 0x1007f892
cmp word [eax + 0x20], 1
jne 0x1007f892
cmp byte [esi + 0x68], 0
mov eax, dword [esi + 0x60]
sete cl
movzx edi, cl
lea ecx, [esi + 0x5c]
add edi, eax
call fcn.10080f40
mov ecx, eax
mov edx, edi
mov dword [ebp - 0x18], ecx
call fcn.10065112
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x70]
push dword [ebp - 0x18]
push esi
push ebx
push edi
push dword [ebp + 8]
call fcn.1007e9a8
test eax, eax
jne 0x1007f8aa
add edi, 0x2c
push 0x14
lea eax, [ebp - 0x30]
push edi
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x1007f826
cmp byte [ebx + 0x2c], 0
je 0x1007f8c5
xor eax, eax
cmp byte [edi + eax], 0
jne 0x1007f8c5
inc eax
cmp eax, 0x14
jb 0x1007f816
mov edi, dword [ebp - 0x18]
and dword [edi + 0x1c], 0
cmp dword [esi + 0x3c], 0
jne 0x1007f83e
push dword [ebp + 0x10]
lea ecx, [esi + 0x38]
call fcn.10080ecb
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.10065112
test eax, eax
jne 0x1007f8aa
cmp byte [ebp + 0x17], al
je 0x1007f892
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x78]
cmp ecx, dword [eax + 8]
jne 0x1007f8a6
mov ecx, dword [ebx + 0x7c]
cmp ecx, dword [eax + 0xc]
jne 0x1007f8a6
and byte [ebp + 0x17], 0
mov cl, 1
cmp byte [ebx + 0x2d], 0
je 0x1007f892
cmp dword [eax + 0x24], 1
jne 0x1007f892
inc dword [ebp + 0xc]
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebp + 0xc]
sete al
test cl, cl
je 0x1007f88a
test al, al
je 0x1007f8c5
test al, al
je 0x1007f892
test cl, cl
je 0x1007f8ae
inc dword [ebp - 0x14]
add dword [ebp - 0x10], 0x40
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x24]
jae 0x1007f8bf
jmp 0x1007f792
xor cl, cl
jmp 0x1007f86a
mov esi, eax
jmp 0x1007f8cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1007dfbb
push 1
pop eax
jmp 0x1007f8da
cmp byte [ebp + 0x17], 0
je 0x1007f8ca
push 1
pop esi
jmp 0x1007f8cc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1007dfbb
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x1008095a
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
mov eax, 0x100d729c
call fcn.100cece0
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.CREATIONTIME
mov ecx, edi
lea edx, [esi + 4]
call fcn.10080ade
push str.LASTMODIFICATIONTIME
lea edx, [esi + 0xc]
mov ecx, edi
mov byte [esi], al
call fcn.10080ade
mov byte [esi + 1], al
lea eax, [ebp - 0x18]
push str.NAME
push eax
mov ecx, edi
call fcn.10065112
and dword [ebp - 4], 0
lea edx, [esi + 0x14]
mov ecx, eax
call fcn.10065112
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov byte [esi + 2], al
call fcn.100034b3
lea eax, [ebp - 0x18]
mov dword [esp], str.DIRCOUNT
push eax
mov ecx, edi
call fcn.10065112
lea edx, [esi + 0x20]
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.10065112
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.100034b3
lea eax, [ebp - 0x18]
mov dword [esp], str.FILECOUNT
push eax
mov ecx, edi
call fcn.10065112
lea edx, [esi + 0x28]
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.10065112
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.100034b3
lea eax, [ebp - 0x24]
mov dword [esp], str.INDEX
push eax
mov ecx, edi
call fcn.10065112
lea edx, [esi + 0x30]
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.10065112
push dword [ebp - 0x24]
mov byte [esi + 3], al
call fcn.100034b3
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10080f88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d731b
call fcn.100cece0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
or dword [esi + 0x20], 0xffffffff
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100851fe
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov eax, 0x100d78af
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ax, word [edi]
lea ecx, [esi + 0x24]
mov word [esi], ax
mov ax, word [edi + 2]
mov word [esi + 2], ax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [edi + 0x24]
push eax
call fcn.10001da4
and dword [ebp - 4], 0
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
call fcn.10085281
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100c1f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x100c1fcb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x100c200c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x100c1ff1
mov ecx, ebx
call fcn.100c1c50
add ebx, 0x28
dec ebp
jne 0x100c1fe5
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x100c2007
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.100c1b20
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.100c20b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x20]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x1c]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
push ebp
call fcn.10065112
mov ebx, eax
cmp ebx, edi
je 0x100c2084
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.100c20e0
cmp ebx, edi
jle 0x100c207f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x100c2084
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x100c2096
cmp dword [esi + 0x40], edi
jne 0x100c2096
cmp dword [esi + 0x3c], edi
jne 0x100c2096
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f05
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x4085d4], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4449e1
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x9ff11b
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x44
push esi
mov esi, dword [esp + 0x4c]
push esi
call dword [0x10008050]
cmp eax, 1
je 0x9ff139
mov eax, 0x1000000
pop esi
add esp, 0x44
ret
lea eax, [esp + 0x14]
push eax
push esi
call dword [0x1000804c]
test eax, eax
jne 0x9ff153
mov eax, 0x200
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x9ff166
mov ebp, 1
test al, 2
je 0x9ff16d
or ebp, 2
test al, 4
je 0x9ff174
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x9ff17e
or ebp, 0x10
test al, 0x20
je 0x9ff185
or ebp, 0x20
test ecx, ecx
je 0x9ff191
or ebp, 0x40000000
jmp 0x9ff197
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x9ff1a7
or ebp, 0x800000
push ebx
push edi
push 0
push esi
call dword [0x10008010]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x9ff256
mov edi, dword [0x10008048]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [0x1000803c]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x60]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x58], 0x54ad
jne 0x9ff256
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x9ff256
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x9ff250
cmp eax, 0x454e
je 0x9ff250
cmp eax, 0x454c
je 0x9ff250
cmp eax, 0x4550
jne 0x9ff256
or ebp, 0x400000
mov eax, dword [esp + 0x5c]
pop edi
test eax, eax
pop ebx
je 0x9ff262
mov dword [eax], ebp
mov eax, dword [esp + 0x58]
pop ebp
test eax, eax
je 0x9ff271
mov edx, dword [esp + 8]
mov dword [eax], edx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x9ff2b1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.009ff04b
mov edx, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.009ff04b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.009ff04b
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x9ff2e8
lea eax, [esp + 0x50]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [0x10008044]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0xa08fae
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00a0ca54
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x44], 0
test esi, esi
jne 0xa08fe9
xor eax, eax
jmp 0xa08fec
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea ecx, [esp + 0x18]
call fcn.00a0ca48
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x24]
push eax
push 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test edi, edi
je 0xa0901f
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push 0xcc0020
neg eax
sbb eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetStringTypeA]
and eax, ecx
push 0
push 0
push eax
mov eax, dword [esi + 4]
push edx
push 3
push 0
push 0
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x14]
push 0xcc0020
lea edx, [ecx - 3]
mov ecx, dword [edi + 8]
sub ecx, 3
push 0
neg eax
sbb eax, eax
push edx
and eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 4]
push edx
push 3
push 0
push ecx
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov ebp, dword [edi]
lea eax, [esp + 0x14]
push 0xcc0020
lea edx, [ecx - 6]
mov ecx, dword [edi + 8]
sub ecx, ebp
mov ebp, dword [esp + 0x1c]
sub ecx, 6
neg eax
sbb eax, eax
and eax, ebp
mov ebp, dword [esp + 0x30]
push ebp
push edx
mov edx, dword [esi + 4]
push 0
push 3
push eax
push ebp
push ecx
push 0
push 3
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
call fcn.00a0ca2a
mov eax, dword [esi]
lea ecx, [ebx + 0xcc]
push ecx
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [eax + 0x30]
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
mov ebp, eax
call fcn.00a0ca60
push 1
mov ecx, esi
call fcn.00a0ca5a
mov ecx, dword [esp + 0x58]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0x25
push edi
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.00a0ca1e
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.00a0ca36
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0x10
Function at 0xa0917e
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x18
push esi
push 0x40802c
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
mov esi, ecx
push 0
push 0x190
mov eax, dword [esi + 0xd4]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
lea ecx, [esi + 0xcc]
call fcn.00a0ca42
mov ecx, dword [0x408158]
lea eax, [esp + 4]
push eax
push 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + 4]
add edx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push 0x5000000b
push eax
mov ecx, esi
call fcn.00a0ca66
pop esi
add esp, 0x18
ret 0x10

Function at 0xa094ee
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
push 0x8a
mov dword [esp + 0x10], esi
call fcn.00a0b17e
lea ecx, [esi + 0x2f0]
mov dword [esp + 0x14], 0
call fcn.00a08abe
lea edi, [esi + 0x3c8]
mov dword [edi + 4], 0
mov dword [edi], 0x40678c
lea ecx, [esi + 0x3d0]
mov byte [esp + 0x14], 2
call fcn.00a0ca2a
lea ecx, [esi + 0x3d4]
mov byte [esp + 0x14], 3
call fcn.00a0ca2a
mov byte [esp + 0x14], 4
mov dword [esi], reloc.KERNEL32.dll_CreateFileA
call fcn.00a0c9ee
push 0x80
push 0xe
push 0x80
call fcn.00a0caae
push eax
call dword [0x406308]
push 0xede9eb
mov dword [esi + 0x3e0], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
mov ecx, edi
call fcn.00a0ca42
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3d8], 1
mov dword [esi + 0x3dc], 0x67
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0xa09f0e
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push ecx
push 0x18
push eax
mov dword [esi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 8]
mov eax, 0x55555556
imul edx
mov ecx, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0x202
push ecx
push edx
push 0
mov dword [esi + 0x68], ecx
push 0
push 0
mov ecx, esi
mov dword [esi + 0x64], edx
call fcn.00a0cacc
mov eax, 1
pop esi
add esp, 0x18
ret 4

Function at 0xa09f15
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push ecx
push 0x18
push eax
mov dword [esi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 8]
mov eax, 0x55555556
imul edx
mov ecx, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
add edx, eax
push 0x202
push ecx
push edx
push 0
mov dword [esi + 0x68], ecx
push 0
push 0
mov ecx, esi
mov dword [esi + 0x64], edx
call fcn.00a0cacc
mov eax, 1
pop esi
add esp, 0x18
ret 4