joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401e9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e94
test esi, esi
je 0x401e94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e70
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402080
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4020d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40210e
cmp eax, 4
jne 0x402130
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40211e
cmp edx, 4
je 0x40211e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402080
Function at 0x403f90
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x403fc6
jmp 0x403ffe
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x403fc3
cmp al, 9
je 0x403fc3
cmp al, 0x22
jne 0x403fe7
jmp 0x404046
cmp al, 9
je 0x403ff3
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x403fe0
jmp 0x403ff3
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x403ff0
cmp al, 9
je 0x403ff0
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40400d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x404052
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x404042
cmp al, 0x22
jne 0x403ff3
lea ebx, [edx + 2]
jmp 0x403ff3
Function at 0x10002fd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b918b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
mov dword [esi], vtable.Xbyak::CodeArray.0
push 0x18
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100905e6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp edi, 1
jne 0x1000303c
lea eax, [edi + 2]
jmp 0x1000304f
test edi, edi
je 0x1000304a
mov eax, 1
cmp edi, 2
jne 0x1000304f
mov eax, 2
push 0
xorps xmm0, xmm0
mov dword [esi + 0xc], eax
push 0x100ca4cc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.10002880
lea ecx, [esi + 0x10]
mov dword [ecx], vtable.Xbyak::Allocator.0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100030bc
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100030af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003161
push ecx
push edx
call fcn.10090935
add esp, 8
lea ecx, [esi + 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
mov edx, dword [ebp + 8]
cmovne ecx, eax
mov dword [esi + 0x18], edx
cmp dword [esi + 0xc], 1
mov dword [esi + 0x14], ecx
jne 0x100030d7
mov eax, edi
jmp 0x100030ec
mov eax, dword [ecx]
cmp edx, 1
mov dword [ebp - 0x14], 1
cmovb edx, dword [ebp - 0x14]
push edx
mov eax, dword [eax]
call eax
cmp dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
jbe 0x10003104
test eax, eax
je 0x10003166
cmp dword [esi + 0xc], 2
jne 0x10003142
cmp edi, 2
je 0x10003142
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x10003142
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [esi + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10003142
mov ecx, dword [esi + 0x14]
push dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe
jmp 0x10003168
mov eax, esi
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.100902f6
mov esp, ebp
pop ebp
ret 0xc
call fcn.1009f4b4
push 0x16
lea ecx, [ebp - 0x24]
call fcn.10002cc0
push 0x100fa7d0
mov eax, ecx
push eax
call fcn.10091fa7
int3
Function at 0x10003470
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
push ebx
mov ebx, eax
mov dword [ebp - 8], eax
push esi
mov esi, eax
shr edx, 8
movzx eax, al
xor eax, 0x811c9dc5
shr ebx, 0x10
push edi
mov edi, ecx
shr esi, 0x18
imul ecx, eax, 0x1000193
movzx eax, dl
xor ecx, eax
movzx eax, bl
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x50]
xor eax, esi
imul esi, eax, 0x1000193
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001c640
mov edx, dword [eax + 4]
test edx, edx
je 0x10003529
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x5c]
and ecx, esi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x10003506
cmp eax, edx
jne 0x100034fe
mov eax, dword [edi + 0x54]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1000350e
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x1000350e
cmp eax, edx
jne 0x1000350e
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x58]
mov eax, dword [edx + 4]
push 0xc
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.10090935
add esp, 8
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp + 8]
imul ebx, ecx, 0x1000193
lea ecx, [edi + 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001c640
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10003578
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x14]
je 0x10003603
mov eax, dword [ecx + 0x10]
cmp eax, 1
jne 0x100035ff
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x10]
call fcn.1001c640
mov edx, dword [eax + 4]
test edx, edx
je 0x10003603
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x1c]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x100035c9
cmp eax, edx
jne 0x100035c1
mov eax, dword [edi + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100035d1
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x100035d1
cmp eax, edx
jne 0x100035d1
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 0x18]
mov eax, dword [edx + 4]
push 0x14
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.10090935
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100902f6
mov esp, ebp
pop ebp
ret 8
dec eax
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100902f6
mov esp, ebp
pop ebp
ret 8
Function at 0x100039a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov edx, dword [esi + 4]
test edx, edx
jne 0x100039c1
mov edx, dword [ecx + 0xc]
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
mov dword [esi + 4], edx
lea esi, [ecx + 0x10]
movzx eax, dl
xor eax, 0x811c9dc5
mov dword [ebp - 4], edx
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001c640
mov eax, dword [eax + 4]
test eax, eax
je 0x10003a2b
cmp eax, dword [esi + 4]
je 0x10003a2b
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10005460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1000
push edi
call fcn.1009544d
add esp, 8
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100902f6
mov esp, ebp
pop ebp
ret 4
Function at 0x10006590
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x718
mov eax, dword [0x100fc068]
xor eax, esp
mov dword [esp + 0x714], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x264]
push edi
push 0x258
push 0
push eax
call fcn.10093c30
add esp, 0xc
lea eax, [esp + 0x268]
push 0x258
push eax
call fcn.10098dc8
push 0x258
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10093c30
add esp, 0x14
cmp dword [esi + 0x14], 0x10
jb 0x100065f4
mov esi, dword [esi]
push esi
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.10001730
add esp, 0x10
cmp byte [0x10105084], 0
jne 0x10006649
lea eax, [esp + 0x10]
push 0x100cb004
push eax
call fcn.10095a8e
add esp, 8
test eax, eax
je 0x10006642
push eax
call fcn.10095e64
add esp, 4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x10105084], 1
lea eax, [esp + 0x10]
push 0x100cb008
push eax
call fcn.10095a8e
mov edi, eax
add esp, 8
test edi, edi
je 0x10006702
push 0
call fcn.1009a03f
add esp, 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], edx
push eax
call fcn.1009a32c
add esp, 4
mov esi, eax
lea eax, [esp + 0x4c0]
push 0x258
push 0
push eax
call fcn.10093c30
add esp, 0xc
lea eax, [esp + 0x4c0]
push dword [esi]
push dword [esi + 4]
push dword [esi + 8]
push str.__02d:_02d:_02d_
push eax
call fcn.10001730
add esp, 0x14
call fcn.10001670
mov esi, eax
lea eax, [ebp + 0x10]
push eax
push 0
lea eax, [esp + 0x4c8]
push eax
push edi
push dword [esi + 4]
push dword [esi]
call fcn.10097f11
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 4]
push dword [esi]
call fcn.10097f11
push 0x100cab54
push edi
call fcn.100016c0
push edi
call fcn.10095e64
add esp, 0x3c
mov ecx, dword [esp + 0x71c]
pop edi
pop esi
xor ecx, esp
call fcn.100902f6
mov esp, ebp
pop ebp
ret
Function at 0x10006720
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x101000dc]
lea eax, [ebp - 8]
push edi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x40
push 5
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
call eax
mov eax, dword [esi]
mov ebx, 0x10006e90
mov dword [0x101000e4], eax
sub ebx, esi
mov al, byte [esi + 4]
sub ebx, 5
mov byte [0x101000e8], al
mov edx, ebx
push 0x40
mov byte [esi], 0xe9
mov ecx, ebx
push 0x3000
mov byte [esi + 1], bl
mov eax, ebx
shr edx, 8
shr ecx, 0x10
mov byte [esi + 2], dl
push 5
shr eax, 0x18
mov byte [esi + 3], cl
push 0
mov byte [esi + 4], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x100067b2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100902f6
mov esp, ebp
pop ebp
ret
mov ebx, esi
mov byte [edi], 0xe9
sub ebx, edi
mov byte [edi + 1], bl
mov eax, ebx
shr eax, 8
mov edx, ebx
mov byte [edi + 2], al
mov ecx, ebx
shr edx, 0x10
push 0
shr ecx, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], cl
push dword [ebp - 8]
push 5
push esi
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100902f6
mov esp, ebp
pop ebp
ret
Function at 0x10006a70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9477
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13a0
call fcn.10091480
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x13ac], esi
mov dword [ebp - 0x13a4], 0
call fcn.1008f5bf
mov edx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x139c], edx
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [ebp + eax*4 - 0x139c], edx
inc eax
cmp eax, 0x270
jb 0x10006af0
xorps xmm0, xmm0
mov dword [ebp - 0x13a0], 0x270
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov edi, 0xc
mov dword [ebp - 0x13a4], 1
lea ecx, [ebp - 0x13a0]
call fcn.1001d570
mov ecx, 0x34
mul ecx
cmp eax, ecx
jae 0x10006b88
cmp eax, 0x30
jae 0x10006b88
mov esi, ecx
lea ecx, [ebp - 0x13a0]
call fcn.1001d570
mul esi
cmp eax, 0x30
jb 0x10006b70
mov esi, dword [ebp - 0x13a8]
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x18], al
cmp ecx, edx
jae 0x10006bb7
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x10006baa
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x18]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x10006bc9
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 0x13ac]
push 1
call fcn.1001b750
add edi, 0xffffffff
jne 0x10006b53
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100902f6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10008350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b960d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100fc068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x110
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.100905e6
push 0x104
mov esi, eax
mov dword [ebp - 0x18], 0x104
push 0
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0x10f
call fcn.10093c30
add esp, 0x10
mov byte [esi + 0x104], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push 0x104
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x100084d6
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
ja 0x10008406
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmovae ecx, dword [ebp - 0x28]
mov byte [ecx + edx], 0
jmp 0x10008446
mov esi, dword [ebp - 0x14]
mov edi, edx
mov eax, esi
sub edi, ecx
sub eax, ecx
cmp edi, eax
ja 0x10008437
cmp esi, 0x10
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push edi
push 0
lea esi, [ecx + eax]
push esi
call fcn.10093c30
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10008446
push 0
push edi
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push edi
call fcn.1001b970
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 9
push str.d3d9.dll
cmp eax, 9
jb 0x1000847d
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 9]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.10092030
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x1000848a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push 9
call fcn.1001bad0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esi + 0x128000]
cmp esi, eax
jae 0x100084ce
mov edx, 0x6c7
mov ecx, 0x8689
inc esi
cmp word [esi], dx
jne 0x100084c4
cmp word [esi + 6], cx
jne 0x100084c4
cmp word [esi + 0xc], cx
je 0x100084d1
lea eax, [esi + 0x128000]
cmp esi, eax
jb 0x100084b2
inc esi
jmp 0x100084d8
add esi, 2
jmp 0x100084d8
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x10008508
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100084fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008527
push ecx
push edx
call fcn.10090935
add esp, 8
mov eax, esi
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.100902f6
mov esp, ebp
pop ebp
ret 4
call fcn.1009f4b4
int3
Function at 0x100158e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100159c7
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100159b6
jg 0x10015920
test edx, edx
je 0x100159b6
nop dword [eax]
call fcn.10019020
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10015973
jg 0x10015937
test esi, esi
je 0x10015973
cmp ebx, eax
jg 0x10015947
jl 0x10015941
cmp edi, esi
jae 0x10015947
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10092030
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1001599a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x100159b0
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10015920
jl 0x100159b0
test edi, edi
jne 0x10015920
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x100159ef
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x100159f5
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x10015a5d
jg 0x10015a0a
test esi, esi
je 0x10015a5d
test edx, edx
jl 0x10015a58
jg 0x10015a14
test eax, eax
je 0x10015a58
cmp edi, edx
jg 0x10015a28
jl 0x10015a1e
cmp esi, eax
jae 0x10015a28
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.10092030
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x10015a60
mov ebx, dword [ebp + 8]
jmp 0x10015a6a
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x10015a83
jg 0x10015a6a
test esi, esi
je 0x10015a83
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10015a83
push eax
push esi
push 1
push ebx
call fcn.100990a0
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc