joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x423038], 0
je 0x403ddb
cmp word [0x423324], 0xd7b2
jne 0x403d9d
cmp dword [0x42332c], 0
jbe 0x403d9d
mov eax, 0x423320
call dword [0x42333c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x403e08
call fcn.00404518
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41e01e], 0
jne 0x403df7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405364
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x413e18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.00404104
lea eax, [ebp - 8]
call fcn.00404104
lea eax, [ebp + 0x10]
call fcn.00404104
lea eax, [ebp + 0xc]
call fcn.00404104
xor eax, eax
push ebp
push 0x413ea9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_Wow64DisableWow64FsRedirection
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.shell32.dll_ShellExecuteW
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_Wow64RevertWow64FsRedirection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413eb0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040c0
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004040c0
ret

Function at 0x4140e8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040e4
xor eax, eax
push ebp
push 0x41414f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x200
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 4]
call fcn.0040465c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov eax, ebx
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call fcn.004046b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414156
lea eax, [ebp - 4]
call fcn.00404000
ret
Function at 0x1000102c
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], 0x10001d26
mov word [ebp - 8], 0
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + ecx]
cmp edx, 0x90
jne 0x10001098
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + ecx + 1]
cmp edx, 0xcc
jne 0x10001098
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [eax + ecx + 2]
cmp edx, 0x90
je 0x100010a1
inc word [ebp - 8]
jmp 0x10001042
mov eax, dword [ebp - 8]
and eax, 0xffff
add eax, 3
add eax, dword [ebp - 4]
jmp 0x100010b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10009bb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x10009c23
push ebx
call fcn.10009ce0
add esp, 4
test eax, eax
jne 0x10009bf1
xor eax, eax
pop edi
mov dword [0x10015a3c], 0xf
mov dword [0x10015a38], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x10009c33
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10009cd2
inc eax
cmp eax, 0x104
ja 0x10009cd2
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x10009c84
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x10009c5f
mov eax, ecx
push eax
call fcn.1000ab20
add esp, 4
mov edx, eax
test edx, edx
jne 0x10009ca3
xor eax, eax
pop edi
mov dword [0x10015a38], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, dword [esp + 0x124]
jle 0x10009ca3
xor eax, eax
pop edi
mov dword [0x10015a38], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x10009ce0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x10009cf4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x10009d26
cmp eax, 1
je 0x10009d26
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x10009e60
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10009f46
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x100157b8], 0
mov dword [0x10015a44], eax
jne 0x10009ebf
cmp al, 3
jne 0x10009e96
test eax, 0x80000000
je 0x10009e96
push 2
call fcn.1000bc30
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10009ebf
push str.IsTNT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009ebf
push 1
call fcn.1000bc30
add esp, 4
call fcn.1000b220
xor ecx, ecx
mov edx, dword [0x10015a44]
mov cl, dh
mov eax, edx
and eax, 0xff
inc dword [0x100157a4]
shr edx, 0x10
mov dword [0x10015a50], ecx
mov dword [0x10015a4c], eax
mov dword [0x10015a44], edx
shl eax, 8
add eax, ecx
mov dword [0x10015a48], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001bebc], eax
call fcn.1000ba90
cmp dword [0x1001bebc], 0
mov dword [0x100157a8], eax
je 0x10009f3c
test eax, eax
je 0x10009f3c
call fcn.1000b250
call fcn.1000ba80
call fcn.1000b540
call fcn.1000b460
call fcn.1000b020
mov eax, 1
ret 0xc
call fcn.1000b240
xor eax, eax
ret 0xc
test eax, eax
jne 0x10009f34
mov eax, dword [0x100157a4]
test eax, eax
jle 0x10009f79
dec eax
cmp dword [0x10015a7c], 0
mov dword [0x100157a4], eax
jne 0x10009f67
call fcn.1000b070
call fcn.1000b430
call fcn.1000b240
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x1000a210
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x1000a22a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1000a23d
push eax
call fcn.1000b120
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x1000a320
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x1001bda0], edx
push ebx
push esi
push edi
push ebp
jbe 0x1000a527
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1001bdb0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x1000a527
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x1000a389
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x1000a39a
push 2
push 0
push edx
call fcn.1000a550
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x1000a436
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x1000a46f
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x1000a3fd
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x1000a3eb
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x1000a3d2
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a465
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x1000a3bd
jmp 0x1000a46f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a465
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x1000a46f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x1000a516
cmp dword [esp + 0x10], 0
je 0x1000a4c8
cmp dword [esp + 0x10], 5
jne 0x1000a4ab
mov dword [0x10015a38], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x10015a3c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.1000b120
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x1000a4f2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x1000a4f2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x10015a38], 0x1c
mov dword [0x10015a3c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x10015a38], 9
mov dword [0x10015a3c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x1000b080
Capabilities:
Terminate process

Disassembly:
mov dword [0x10015a7c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x10015a78], bl
jne 0x1000b0dc
cmp dword [0x1001beb8], 0
je 0x1000b0ca
mov esi, dword [0x1001beb4]
sub esi, 4
cmp esi, dword [0x1001beb8]
jb 0x1000b0ca
mov eax, dword [esi]
test eax, eax
je 0x1000b0bf
call eax
sub esi, 4
cmp esi, dword [0x1001beb8]
jae 0x1000b0b7
push 0x1001101c
push 0x10011014
call fcn.1000b100
add esp, 8
push 0x10011024
push 0x10011020
call fcn.1000b100
add esp, 8
test ebx, ebx
jne 0x1000b0fd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x1000ba90
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x10015e14], 0
push ebx
push esi
push edi
push ebp
jne 0x1000bae0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x1000babe
mov dword [0x10015e14], 1
mov ebx, dword [esp + 0x10]
jmp 0x1000baee
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1000bad6
mov dword [0x10015e14], 2
jmp 0x1000baee
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x10015e14], 1
jne 0x1000bb9d
test edi, edi
jne 0x1000bb11
call esi
mov edi, eax
test edi, edi
jne 0x1000bb11
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x1000bb2b
add esi, 2
cmp word [esi], 0
jne 0x1000bb19
add esi, 2
cmp word [esi], 0
jne 0x1000bb19
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1000bb8c
push ebp
call fcn.1000ab20
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1000bb8c
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000bb7b
push ebx
call fcn.1000ab00
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x10015e14], 2
jne 0x1000bc21
test ebx, ebx
jne 0x1000bbc0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x1000bbc0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x1000bbd5
inc ebp
cmp byte [ebp], 0
jne 0x1000bbc7
inc ebp
cmp byte [ebp], 0
jne 0x1000bbc7
sub ebp, ebx
inc ebp
push ebp
call fcn.1000ab20
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1000bbfa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1000bc80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x10016080
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x1000bca8
add ecx, 8
inc eax
cmp ecx, 0x10016108
jb 0x1000bc98
cmp dword [eax*8 + 0x10016080], edx
lea ebx, [eax*8]
jne 0x1000be63
cmp dword [0x100157b4], 1
je 0x1000be28
cmp dword [0x100157b4], 0
jne 0x1000bcdf
cmp dword [0x100157b8], 1
je 0x1000be28
cmp edx, 0xfc
je 0x1000be63
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1000bd1c
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1000bd60
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x10016154
push ebp
call fcn.1000d7d0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10016134
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x10016084]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1000d930
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1001bdb0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x1000be3f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x10016084]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x1000c0c0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.1000da50
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x1001bda0], esi
jbe 0x1000c20d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x1001bdb0]
test byte [edx + ecx*8 + 4], 1
je 0x1000c20d
push 1
push ebx
push esi
call fcn.1000a550
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000c1fd
push 2
push ebx
push esi
call fcn.1000a550
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000c1fd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x1000c1a3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.1000d9d0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x1000c166
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.1000a320
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000c182
sub ebp, eax
test ebp, ebp
jg 0x1000c15b
jmp 0x1000c197
cmp dword [0x10015a3c], 5
jne 0x1000c195
mov dword [0x10015a38], 0xd
mov ebx, eax
push edi
push esi
call fcn.1000d9d0
add esp, 8
jmp 0x1000c1e0
jge 0x1000c1e0
push 0
push ecx
push esi
call fcn.1000a550
add esp, 0xc
push esi
call fcn.1000c070
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x1000c1e0
mov dword [0x10015a38], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10015a3c], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.1000a550
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x10015a38], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
lea ecx, [0x4800a4]
lea edi, [0x480084]
mov eax, 0x28de
mov edx, 0x5970
add edx, 0x2fe298a9
dec edx
shl eax, 0xe
push 0x2be8
push edx
push 0x71c9
call sub.user32.dll_GetMenuCheckMarkDimensions
pop ecx
pop ecx
pop ecx
push 0x40
push 0x3000
push 0x13400
push 0
call sub.kernel32.dll_VirtualAlloc
call fcn.0047a694
ret
Function at 0x10001474
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 1
pop edi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.1009a124
call sym.runtime.dll_runtimeGetRuntime
push dword [ebp - 8]
mov dword [0x1011e848], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
call fcn.10001676
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov al, byte [ebp - 1]
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.10001fd1
push ebx
call fcn.10099a40
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.100021ff
mov al, byte [ebp - 1]
mov byte [ebp - 0x28], al
push esi
lea ecx, [ebp - 0x28]
call fcn.10001fd1
cmp dword [ebp - 0x10], esi
je 0x1000152e
cmp dword [ebp - 0x14], esi
je 0x100014fb
lea ecx, [ebp - 0x18]
call fcn.10001fa5
mov eax, dword [ebp - 0x14]
jmp 0x10001500
mov eax, 0x100f5424
cmp byte [eax], 0x20
jne 0x1000152e
push dword [0x100f5420]
lea eax, [ebp - 0x38]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b29
push dword [0x100f5420]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e55
push edi
lea ecx, [ebp - 0x38]
jmp 0x100014df
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f23
test eax, eax
jne 0x100015b4
push edi
push edi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f23
mov ebx, eax
mov eax, dword [0x100f5420]
cmp ebx, eax
je 0x10001622
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b29
push dword [0x100f5420]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001e55
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd1
dec ebx
push ebx
push edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b29
push dword [0x100f5420]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e55
push edi
lea ecx, [ebp - 0x38]
jmp 0x1000161d
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x20
call fcn.10001f23
mov ebx, eax
mov eax, dword [0x100f5420]
cmp ebx, eax
je 0x10001622
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b29
push dword [0x100f5420]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001e55
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd1
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b29
push dword [0x100f5420]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e55
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd1
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x1000162e
mov eax, 0x100f5424
mov ecx, dword [0x1011e848]
mov edx, dword [ecx]
push esi
push eax
push dword [0x1011e840]
call dword [edx + 0x24]
mov ecx, dword [0x1011e848]
mov eax, dword [ecx]
call dword [eax + 0x10]
push esi
push esi
push dword [ebp - 8]
call fcn.1009a124
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001aa1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x1011e820
call fcn.100021be
mov eax, dword [ebp - 4]
cmp eax, dword [0x1011e824]
jne 0x10001adf
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x1011e800
call fcn.100021be
mov eax, dword [ebp - 4]
cmp eax, dword [0x1011e804]
je 0x10001ae4
mov eax, dword [eax + 0x1c]
jmp 0x10001b25
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.Cant_find_symbol:
push eax
call fcn.1000310f
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x10001b04
mov eax, 0x100f5424
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 4

Function at 0x10003df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f05d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push edi
or ecx, 0xffffffff
xor ebx, ebx
mov byte [esp + 8], al
xor eax, eax
mov edi, str.Startup_Error:
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Startup_Error:
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.100021ff
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], ebx
call fcn.10004050
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x30], 2
je 0x10003e82
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x10003e79
cmp al, 0xff
je 0x10003e79
dec al
mov byte [ecx], al
jmp 0x10003e82
push ecx
call fcn.1008d22c
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x10003e9b
mov eax, 0x100f5424
mov ecx, dword [0x1011e970]
push eax
call fcn.1003c8e0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10003edc
mov al, byte [ecx - 1]
cmp al, bl
je 0x10003ed2
cmp al, 0xff
je 0x10003ed2
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.1008d22c
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4