joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0x3000
mov eax, dword [0x1000638c]
mov dword [0x10006478], eax
push str.VirtualAlloc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000647c], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 1
push str.LOcfSJpdtk
call dword [sym.imp.GDI32.dll_AddFontResourceW]
push 0x40
mov ecx, dword [ebp - 4]
push ecx
push dword [0x10006478]
push dword [0x100063d8]
push dword [0x1000647c]
pop ecx
mov ecx, dword [0x1000647c]
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
mov eax, eax
push 0x10004548
push ecx
ret
Function at 0x10015a00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov edi, dword [ebp + 0xc]
push str.FOR_DISABLE_STACK_TRACE
call sym.libifcoremd.dll_for_check_env_name
mov esi, dword [ebp + 0x18]
lea esi, [esi + 0x4001]
xor ebx, ebx
test eax, eax
setne bl
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call fcn.1004970c
add esp, 0x10
test eax, eax
je 0x10015a6f
test edi, edi
je 0x10015a63
mov edx, dword [edi]
cmp edx, 0xffffffff
jne 0x10015a63
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10015a56
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
push 0
push 0x29
call fcn.100149ac
add esp, 8
push esi
push 0
push dword [ebp - 0x10]
call fcn.1007f474
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x10015aa1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push eax
push edx
push dword [ebp - 0x10]
call fcn.1007f4d4
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov byte [eax + edx], 0xa
test ebx, ebx
je 0x10015b81
call fcn.10015d7c
mov eax, dword [ebp - 0x10]
call fcn.10015dd0
push dword [ebp - 0x10]
call fcn.10049680
pop ecx
test edi, edi
je 0x10015ae7
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x10015ae7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10015ada
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10015b0f
push str.FOR__IS_DEBUGGER_PRESENT
call sym.libifcoremd.dll_for_check_env_name
pop ecx
test eax, eax
jne 0x10015b0f
push str.FOR_DEBUGGER_IS_PRESENT
call sym.libifcoremd.dll_for_check_env_name
pop ecx
test eax, eax
je 0x10015b10
int3
call fcn.10017fdc
mov eax, dword [0x100da008]
test eax, eax
je 0x10015b2f
push eax
call fcn.10049680
pop ecx
mov dword [0x100da008], 0
push str.f77_dump_flag
call sym.libifcoremd.dll_for_check_env_name
pop ecx
test eax, eax
jne 0x10015b7c
push str.decfort_dump_flag
call sym.libifcoremd.dll_for_check_env_name
pop ecx
test eax, eax
jne 0x10015b7c
mov eax, dword [0x100d9158]
test eax, eax
jne 0x10015b67
test edi, edi
je 0x10015b5e
mov eax, dword [edi]
jmp 0x10015b60
xor eax, eax
push eax
call fcn.10090e55
pop ecx
push 1
call fcn.1007ee4c
pop ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.10090e95
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10015b8f
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
jmp 0x10015b91
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10015ba2
mov eax, dword [ebp + 0x18]
lea edx, [eax + edx + 1]
push edx
push ecx
call fcn.100758cc
add esp, 8
jmp 0x10015aa9
Function at 0x1001d9a4
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x1001d9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
mov edx, dword [ebp + 0x20]
mov eax, dword [0x100d9158]
test eax, eax
je 0x1001da95
cmp edx, 2
je 0x1001d9df
cmp edx, 1
jne 0x1001d9f1
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001da01
cmp edx, 0xfffffffa
je 0x1001dac7
test edx, edx
je 0x1001dad3
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001da42
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1001da42
push edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
call fcn.1007ed44
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push edx
mov dword [ebp - 0x10], edx
call fcn.1007ec30
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add esp, 8
test ecx, ecx
je 0x1001da95
push edx
mov dword [ebp - 0x10], edx
push edi
push esi
call fcn.1007ecd4
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
cmp ebx, 0xffffffff
je 0x1001daf1
push 0
push edx
push 2
push 0x100bbfa8
call fcn.1007ed04
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0xc]
mov byte [ebx + esi], 0xa
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
add dword [edx], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor edx, edx
push edx
mov dword [eax], edx
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, 1
jmp 0x1001da14
call fcn.1007ee18
mov edx, eax
mov eax, dword [0x100d9158]
mov ecx, 1
test eax, eax
jne 0x1001da0d
jmp 0x1001da42
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001df18
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
test ecx, ecx
je 0x1001dfde
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x1001df56
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x1001df3f
add eax, 0xffffffff
mov edi, eax
test esi, esi
je 0x1001dfcc
mov eax, dword [ebp + 0x14]
cmp edi, eax
ja 0x1001df9b
push edi
push ecx
push esi
call fcn.1007f4d4
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp edi, eax
jae 0x1001df89
mov eax, dword [ebp + 0x14]
lea edx, [esi + edi]
sub eax, edi
push eax
push 0x20
push edx
call fcn.1007f474
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001dfb9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x1001dfb9
mov eax, dword [ebp + 0x14]
push eax
push ecx
push esi
call fcn.1007f4d4
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001dfb9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
test ebx, ebx
je 0x1001dfbf
mov dword [ebx], edi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001dfb9
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x1001dfb9
test esi, esi
je 0x1001dff1
mov eax, dword [ebp + 0x14]
push eax
push 0x20
push esi
call fcn.1007f474
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001e001
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
test ebx, ebx
je 0x1001e00b
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10024574
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi]
movzx ecx, byte [eax + 0x12d]
and ecx, 8
shr ecx, 3
test ecx, ecx
je 0x100245f2
mov edi, dword [esi + 8]
cmp edi, 5
jl 0x100245f5
cmp edi, 0x11
jg 0x100245f5
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
jle 0x100245e3
mov dword [ebp - 0x14], eax
xor esi, esi
lea ecx, [ebx + edx]
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [esi + edx]
sub edi, esi
movzx eax, byte [edi - 1]
xor eax, ecx
xor ecx, eax
mov byte [esi + edx], cl
add esi, 1
xor byte [edi - 1], al
cmp esi, ebx
jl 0x100245c2
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
movsx eax, byte [eax + 0x120]
cmp edi, 0x19
jl 0x100245e3
cmp edi, 0x1f
jle 0x1002461c
cmp edi, 0x32
jl 0x10024612
cmp edi, 0x34
jle 0x1002461c
jmp 0x100245e3
cmp edi, 0x28
jl 0x100245e3
cmp edi, 0x30
jg 0x100245e3
test ecx, ecx
je 0x10024674
test eax, eax
je 0x1002462e
cmp edi, 0x34
je 0x1002462e
cmp edi, 0x32
jne 0x10024674
mov ecx, ebx
shr ecx, 0x1f
add ecx, ebx
sar ecx, 1
mov dword [ebp - 0x18], ecx
jle 0x10024674
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea edi, [edx + ebx]
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [ecx + edx]
sub esi, ecx
movzx eax, byte [esi - 1]
xor eax, ebx
xor ebx, eax
mov byte [ecx + edx], bl
add ecx, 1
xor byte [esi - 1], al
cmp ecx, edi
jl 0x10024647
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
mov edi, dword [edi*4 + 0x100bc9fc]
cmp edi, 0xffffffff
je 0x100246f8
mov ecx, edi
shl ecx, 2
shl edi, 5
sub edi, ecx
mov ecx, dword [edi + eax*4 + 0x100bcbc0]
test ecx, ecx
je 0x100245e3
lea eax, [ebp - 0x1c]
push eax
push 0
push edx
call ecx
add esp, 0xc
cmp eax, 1
jne 0x100246f8
cmp ebx, 4
jne 0x100246bb
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov dword [edx], eax
jmp 0x100245e3
cmp ebx, 8
jne 0x100246d4
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov ebx, dword [esi]
mov dword [ebx + 4], ecx
jmp 0x100245e3
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov ebx, dword [esi]
mov dword [ebx + 4], ecx
mov edi, dword [ebp - 0x14]
mov eax, dword [esi]
mov dword [eax + 8], edi
mov eax, dword [esi]
mov esi, dword [ebp - 0x10]
mov dword [eax + 0xc], esi
jmp 0x100245e3
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, 0x5f
mov esp, ebp
pop ebp
ret
Function at 0x10026824
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x100275e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x100276e4
mov eax, dword [0x100ce600]
mov ebx, dword [esi + 0x14]
cmp eax, 2
jge 0x1002762a
mov eax, ebx
shl eax, 2
shl ebx, 5
sub ebx, eax
mov edx, dword [ebx + 0x100d51a8]
test edx, edx
jne 0x10027678
mov dword [ebx + 0x100d51a8], 1
jmp 0x10027678
mov eax, ebx
shl eax, 2
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x100d51a8]
mov dword [ebp - 0x10], edx
push edx
call fcn.10031e7c
pop ecx
test eax, eax
jne 0x10027678
mov eax, dword [ebx + 0x100d51a4]
test eax, eax
je 0x10027778
mov dword [ebx + 0x100d51a8], 0
push 0xffffffffffffffff
push dword [ebx + 0x100d51a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call fcn.10031e7c
pop ecx
mov eax, dword [0x100ce600]
test eax, eax
jle 0x1002768e
lea eax, [ebx + 0x100d51b4]
push eax
call fcn.10031e50
pop ecx
mov eax, dword [esi + 0x18]
add eax, 0xffffffff
mov dword [esi + 0x18], eax
test eax, eax
jle 0x100276f3
mov eax, dword [0x100ce600]
test eax, eax
jle 0x100276c2
push dword [ebx + 0x100d51b8]
push dword [ebx + 0x100d51b4]
call fcn.10031e30
add esp, 8
mov eax, dword [0x100ce600]
cmp eax, 2
jge 0x100276ce
mov dword [ebx + 0x100d51a8], 0
jmp 0x100276e4
push dword [ebx + 0x100d51a4]
mov dword [ebx + 0x100d51a8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
test edx, edx
je 0x10027701
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test eax, eax
je 0x1002770c
mov dword [eax], edx
jmp 0x10027712
mov dword [ebx + 0x100d51a0], edx
mov eax, dword [0x100ce600]
mov dword [edi + 0x7c], 0
test eax, eax
jle 0x10027740
push dword [ebx + 0x100d51b8]
push dword [ebx + 0x100d51b4]
call fcn.10031e30
add esp, 8
mov eax, dword [0x100ce600]
cmp eax, 2
jge 0x1002774c
mov dword [ebx + 0x100d51a8], 0
jmp 0x10027762
push dword [ebx + 0x100d51a4]
mov dword [ebx + 0x100d51a8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.10049680
push esi
call fcn.10049680
add esp, 8
jmp 0x100276e4
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebx + 0x100d51a8], 0
mov dword [ebx + 0x100d51a4], eax
jmp 0x10027660
Function at 0x1002b710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0xc0]
neg eax
add eax, ecx
cmp eax, edx
jae 0x1002b770
sub edx, eax
movzx eax, byte [ebx + 0x12a]
test al, 0x40
je 0x1002b74e
push edx
push 0x20
push ecx
call fcn.1007f474
jmp 0x1002b757
push edx
push 0
push ecx
call fcn.1007f474
add esp, 0xc
mov eax, dword [ebx + 0xc0]
movsx edx, byte [ebx + 0x11e]
cmp edx, 2
je 0x1002b859
movzx edx, byte [ebx + 0x128]
and edx, 4
shr edx, 2
test edx, edx
je 0x1002b79d
movzx edx, byte [ebx + 0x12a]
test dl, 0x40
je 0x1002b79d
mov edx, dword [ebx + 0x40]
mov byte [edx + eax - 2], 0xd
mov ecx, dword [ebx + 0x40]
mov byte [ecx + eax - 1], 0xa
mov esi, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x94]
add esi, 0xffffffff
adc ecx, 0xffffffff
push ecx
push esi
cdq
push edx
push eax
call fcn.10090380
movzx ecx, byte [ebx + 0x12d]
test cl, 1
jne 0x1002b80f
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
push 0
push edx
push eax
push dword [ebx + 0xb4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1002b7fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1002b7fb
mov eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add edx, 1
add eax, 1
or edx, eax
je 0x1002b8e5
mov ecx, dword [ebx + 0xc0]
mov edx, dword [ebx + 0x40]
movzx eax, byte [ebx + 0x131]
add edx, ecx
mov dword [ebx + 0x40], edx
test al, 0x10
je 0x1002b8e0
mov edi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x38]
mov esi, edi
sub esi, eax
cmp esi, dword [ebx + 0xbc]
je 0x1002b883
or byte [ebx + 0x12d], 1
add edi, ecx
mov dword [ebx + 0x44], edi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebx + 0x128]
test dl, 4
jne 0x1002b781
mov edx, dword [ebx + 0x40]
mov byte [eax + edx - 1], 0xa
movzx edx, byte [ebx + 0x128]
and edx, 4
shr edx, 2
jmp 0x1002b77d
lea ecx, [ebp - 0x18]
push 0
push ecx
sub edx, eax
push edx
push eax
push dword [ebx + 0xb4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002b8d9
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0xc0]
and byte [ebx + 0x12d], 0xfe
mov dword [ebx + 0x40], ecx
add ecx, edx
mov dword [ebx + 0x44], ecx
xor esi, esi
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], esi
cmp eax, 0xffffffff
jne 0x1002b84a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xb8], eax
jmp 0x1002b84a
mov eax, 0xffffffff
jmp 0x1002b89d
mov eax, dword [ebx + 0x38]
jmp 0x1002b883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov dword [ebx + 0xb8], eax
mov ebx, dword [ebp - 8]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
Function at 0x1002ccf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x10079f68
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x10090d92
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100c2620
call fcn.1009637c
push 8
call fcn.100952dd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100d9890], esi
jne 0x10090dc6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100d988c], esi
mov al, byte [ebp + 0x10]
mov byte [0x100d9888], al
cmp dword [ebp + 0xc], edi
jne 0x10090e10
cmp dword [0x100da3b8], edi
je 0x10090e00
mov eax, dword [0x100da3b4]
sub eax, 4
mov dword [0x100da3b4], eax
cmp eax, dword [0x100da3b8]
jb 0x10090e00
mov eax, dword [eax]
cmp eax, edi
je 0x10090de1
call eax
jmp 0x10090de1
push 0x100cd034
mov eax, 0x100cd028
call fcn.10090cf2
pop ecx
push 0x100cd03c
mov eax, 0x100cd038
call fcn.10090cf2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10090e41
cmp dword [ebp + 0x10], edi
jne 0x10090e4f
mov dword [0x100d9890], esi
push dword [ebp + 8]
call fcn.10090cb0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10090e4e
push 8
call fcn.10095210
pop ecx
ret
call fcn.100963b7
ret

Function at 0x1009406d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1009415d
mov eax, 0x94
call fcn.1009aba0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100941d2
mov ecx, dword [esi + 0x10]
mov dword [0x100d9850], ecx
mov eax, dword [esi + 4]
mov dword [0x100d985c], eax
mov edx, dword [esi + 8]
mov dword [0x100d9860], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100d9854], esi
je 0x100940d8
or esi, 0x8000
mov dword [0x100d9854], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100d9858], eax
call fcn.10095328
test eax, eax
pop ecx
je 0x100941d2
call fcn.10097a36
test eax, eax
jne 0x10094105
call fcn.10095379
jmp 0x100941d2
call fcn.100975a8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100da3a8], eax
call fcn.1009b07a
mov dword [0x100d9968], eax
call fcn.10096eab
test eax, eax
jl 0x10094156
call fcn.1009afd8
test eax, eax
jl 0x10094151
call fcn.1009ada5
test eax, eax
jl 0x10094151
push 0
call fcn.10090d28
test eax, eax
pop ecx
jne 0x10094151
inc dword [0x100d9964]
jmp 0x100941e3
call fcn.100970a9
call fcn.10097813
jmp 0x100940fb
test eax, eax
jne 0x1009418d
cmp dword [0x100d9964], eax
jle 0x100941d2
dec dword [0x100d9964]
cmp dword [0x100d988c], eax
jne 0x1009417c
call fcn.10090e77
call fcn.100970a9
call fcn.10097813
call fcn.10095379
jmp 0x100941e3
cmp eax, 2
jne 0x100941d6
push 0x8c
push 1
call fcn.100970f5
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100941d2
push esi
push dword [0x100cf7b4]
call dword [0x100d9ae4]
test eax, eax
push esi
je 0x100941cc
call fcn.10097830
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100941e3
call fcn.100904d4
pop ecx
xor eax, eax
jmp 0x100941e6
cmp eax, 3
jne 0x100941e3
push 0
call fcn.100979fb
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10097630
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100cfb48]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100cf668]
je 0x10097665
inc eax
cmp eax, 0x13
jb 0x10097656
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100cf668]
jne 0x1009778b
mov eax, dword [0x100d9970]
cmp eax, 1
je 0x10097763
cmp eax, edx
jne 0x10097695
cmp dword [0x100d9974], 1
je 0x10097763
cmp ecx, 0xfc
je 0x1009778b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100976cb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100947a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10094710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100976ff
mov eax, edi
push eax
call fcn.10094710
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100c3138
push edi
call fcn.10090940
add esp, 0x10
push edi
call fcn.10094710
push dword [esi + 0x100cf66c]
mov ebx, eax
call fcn.10094710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1009aba0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100947a0
push edi
push ebx
call fcn.100947b0
push 0x100c3118
push ebx
call fcn.100947b0
push dword [esi + 0x100cf66c]
push ebx
call fcn.100947b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1009cc24
add esp, 0x2c
jmp 0x1009778b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100cf66c]
push dword [esi]
call fcn.10094710
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1009ac0e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1009a2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100936ef
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1009a2e6
test byte [esp + 8], 2
je 0x1009a2e6
call fcn.100936dd
mov dword [eax], 0xd
call fcn.100936e6
mov dword [eax], 5
jmp 0x1009a2bf
xor eax, eax
ret
Function at 0x1009aaaf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1009aba0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009ab4a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100d9850]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1009ab4a
cmp eax, 1
je 0x1009ab6b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009ab4a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1009ab17
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1009ab46
xor eax, eax
inc eax
jmp 0x1009ab8a
cmp edi, eax
jae 0x1009ab4e
xor eax, eax
jmp 0x1009ab8a
cmp eax, esi
jae 0x1009ab55
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100d9850]
jmp 0x1009ab6e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret