joyce8/EMBER2024-capa huggingface dataset:
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x438c93
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
sub edx, esi
push esi
pop edx
call fcn.00438ce3
add edx, esi
sub edx, 0x1bd48b8a
push 0xd65156f3
pop edx
xor dword [ecx], edi
add edx, 0xaafa89a7
sub esi, 1
add ecx, 1
add esi, 0xffb46c14
add edx, esi
dec esi
cmp ecx, ebx
jne fcn.00438c93
sub esp, 4
mov dword [esp], 0x41c5fc3c
pop edx
add esi, esi
add edx, edx
ret
Function at 0x408acc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test ecx, ecx
je 0x408ae4
cmp dword [eax + 0x118], 0
jne 0x408ae0
jmp fcn.00402c44
ret
mov dword [eax + 0x118], 1
ret

Function at 0x4090d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx], 0x2d
je 0x4090f0
cmp dword [eax + 0x118], 0
jne 0x4090ef
jmp fcn.00402c44
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edx, dword [ecx + 4]
mov edi, dword [edx + 8]
mov ebp, dword [edx + 4]
test edi, edi
je 0x4090e8
mov edx, dword [eax + 0x100]
xor ebx, ebx
jmp 0x409127
mov esi, edx
inc edx
mov byte [eax + esi], cl
mov dword [eax + 0x100], edx
mov byte [eax + 0x104], cl
inc ebx
cmp edi, ebx
je 0x4090e8
mov cl, byte [ebp + ebx]
cmp edx, 0xff
jne 0x409110
mov byte [eax + 0xff], 0
mov edx, dword [eax + 0x10c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xff
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
call dword [eax + 0x108]
mov eax, dword [esp + 0x18]
inc dword [eax + 0x120]
mov edx, 1
xor esi, esi
mov cl, byte [esp + 0x1c]
jmp 0x409113
Function at 0x40d890
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40d8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40d9e6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x40d960
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x40d935
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x40d945
cmp byte [esp + 0x1e], 0
je 0x40d945
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 sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40d945
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040d890
nop

Function at 0x40dc80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4a3058
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4a3070]
sub esp, 4
test ebx, ebx
je 0x40dccb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40dcc4
test esi, esi
je 0x40dcc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40dca0
mov dword [esp], 0x4a3058
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x410910
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x4a308c], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateSemaphoreA
sub esp, 0x10
mov dword [0x4a3090], eax
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x410970
mov dword [0x4a3098], eax
mov dword [esp + 4], 0x4108d4
mov dword [esp], eax
call fcn.0041b350
test eax, eax
jne 0x410977
add esp, 0x1c
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x410968
call sub.msvcrt.dll_abort
Function at 0x40333d
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x42d109
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x44106c]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x7c]
lea ecx, [ebp + 0x58]
xor ebx, ebx
mov dword [ebp - 0x10], esi
push 0x42f4f8
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
call fcn.00401d02
xor edi, edi
lea ecx, [ebp + 0x40]
inc edi
push 0x42f500
mov dword [ebp - 4], edi
call fcn.00401d02
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.0040957e
push eax
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x40]
push eax
push esi
call fcn.0040be42
add esp, 0x14
lea ecx, [ebp + 0x10]
mov dword [ebp], edi
call fcn.0040314b
lea ecx, [ebp + 0x40]
call fcn.0040314b
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], bl
call fcn.0040314b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4033e9
mov eax, dword [esi]
push eax
lea ecx, [ebp + 0x28]
call fcn.00401d02
lea eax, [ebp + 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.0040c55d
pop ecx
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], bl
call fcn.0040314b
push str.D:_A__FA___BA_
lea ecx, [ebp - 0xc4]
call fcn.00401f39
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.004084c2
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.00402881
push ebx
lea ecx, [ebp - 0x20]
call fcn.00408771
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408774
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40345f
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x403497
lea ecx, [ebp - 0x20]
call fcn.004030b8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.0041011d
add ebp, 0x74
leave
ret
push 0x24
push str._anonymous_namespace::createSecureDirectory
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_windows_wrappers_wrapper4wrapper_wrapper4wrapper.cpp
lea ecx, [ebp + 0x64]
call fcn.00401ddd
push eax
push 0x42f5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x42f5f8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.00401ce6
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 8
call fcn.00401f9d
mov byte [ebp - 4], 9
push 0x42f5e4
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004013f6
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp + 0x4c]
call fcn.00407ded
push eax
lea eax, [ebp + 4]
mov byte [ebp - 4], 0xb
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp + 4]
push 0x43de64
push eax
call fcn.00412fe2
int3
Function at 0x40b897
Capabilities:
Copy file

Disassembly:
push 0x184
mov eax, 0x42e182
call fcn.00410190
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push eax
mov byte [ebp - 0x50], bl
call fcn.0040cc3f
and dword [ebp - 4], 0
push 0
push eax
call fcn.0040bc61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x10
call fcn.0040314b
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x40b8e1
mov edx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40b8eb
mov ecx, dword [edi]
movzx eax, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x40b9d9
xor ebx, ebx
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40b9d3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push esi
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402c5e
sub esp, 0x18
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x50], esp
push edi
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402c5e
push 1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call fcn.00401c1f
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 9
push str.Copied__
push eax
call fcn.00401227
pop ecx
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call fcn.004013f6
mov esi, eax
push str.__file_to__
push esi
call fcn.00401227
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.004013f6
mov esi, eax
push 0x42fd60
push esi
call fcn.00401227
pop ecx
pop ecx
push esi
push str.FileUtils::copyFile
push 0x212
push 0x431720
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d6c
lea ecx, [ebp - 0xf8]
call fcn.00402881
call fcn.0041013f
ret
push 0x20f
push str.FileUtils::copyFile
push 0x431720
lea ecx, [ebp - 0x60]
call fcn.00401ddd
push eax
push 0x42f5d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x42f5f8
push dword [ebp - 0x50]
mov ebx, 0x431794
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
push esi
call fcn.00401ce6
push ebx
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x54], esp
push edi
call fcn.00401ce6
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 2
call fcn.00401f9d
mov byte [ebp - 4], 3
push str.CopyFile_
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004013f6
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004013f6
mov ecx, eax
call fcn.00401212
mov ecx, eax
call fcn.00409b02
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407ded
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x43de64
push eax
call fcn.00412fe2
int3
Function at 0x40baaa
Capabilities:
Create directory

Disassembly:
push 0xe8
mov eax, 0x42e1ef
call fcn.00410190
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmovae eax, dword [ebp + 8]
push esi
push eax
call ebx
test eax, eax
je 0x40bbaa
xor ebx, ebx
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40bb81
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402c5e
push 1
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.00401c1f
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
push 0x431798
push eax
call fcn.00401227
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.004013f6
mov esi, eax
push 0x431850
push esi
call fcn.00401227
pop ecx
pop ecx
push esi
push 0x43185c
push 0x1e8
push 0x431720
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d6c
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.00402881
test edi, edi
je 0x40bbc4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dc7e
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00405488
lea ecx, [ebp - 0x28]
call fcn.0040314b
jmp 0x40bbc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x40bbd2
lea eax, [ebp + 8]
push eax
call fcn.0040d1f9
pop ecx
test al, al
je 0x40bbd2
lea ecx, [ebp + 8]
call fcn.0040314b
call fcn.0041013f
ret
push 0x1f1
push 0x43185c
push 0x431720
lea ecx, [ebp - 0x5c]
call fcn.00401ddd
push eax
push 0x42f5d4
push edi
push ebx
push 0x42f5f8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401ce6
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.00401f9d
mov byte [ebp - 4], 6
push 0x42f5e4
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004013f6
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407ded
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x43de64
push eax
call fcn.00412fe2
int3
Function at 0x40c892
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x42e3d9
call fcn.0041015d
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c8ae
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40c95b
xor edi, edi
push edi
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40c957
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00402c5e
push 1
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], edi
call fcn.00401c1f
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push 0x431968
push eax
call fcn.00401227
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.004013f6
mov esi, eax
push 0x4317ac
push esi
call fcn.00401227
pop ecx
pop ecx
push esi
push 0x431974
push 0x278
push 0x431720
push edi
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d6c
lea ecx, [ebp - 0xa4]
call fcn.00402881
mov al, 1
jmp 0x40c96a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d945
add esp, 4
call fcn.0041012b
ret

Function at 0x40d08b
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x42e523
call fcn.00410190
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
and dword [ebp - 0x60], 0
push 0x4317a4
call fcn.00401d02
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push 0
xor ebx, ebx
push eax
inc ebx
push edi
mov dword [ebp - 0x60], ebx
call fcn.004070b5
add esp, 0xc
lea esi, [edi + 0x10]
test al, al
je 0x40d0d2
mov byte [ebp - 0x59], bl
cmp dword [esi], ebx
jne 0x40d0d6
mov byte [ebp - 0x59], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040314b
cmp byte [ebp - 0x59], 0
jne 0x40d1c6
push 0x4317a8
lea ecx, [ebp - 0x58]
call fcn.00401d02
lea ecx, [ebp - 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
call fcn.0040314b
mov eax, dword [ebp - 0x60]
cmp dword [esi], eax
jae 0x40d116
push 3
pop eax
jmp 0x40d1c8
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
push eax
mov dword [ebp - 0x28], ecx
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push edi
call fcn.00406729
push 0x4317a4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00408c26
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x40d182
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x40d179
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402b57
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.0041010a
pop ecx
pop ecx
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 0
je 0x40d1bb
sub eax, 1
je 0x40d1bb
sub eax, 1
je 0x40d1b7
sub eax, 1
je 0x40d1b7
sub eax, 1
je 0x40d1be
sub eax, 1
je 0x40d1bb
sub eax, 1
jne 0x40d1bb
xor ebx, ebx
jmp 0x40d1be
push 2
pop ebx
lea ecx, [ebp - 0x40]
call fcn.0040314b
mov eax, ebx
call fcn.0041013f
ret
Function at 0x40d1f9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d205
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d218
test al, 0x10
je 0x40d218
mov al, 1
ret
xor al, al
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d227
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x100a267c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100ee270]
jne 0x100a2686
repz ret
jmp fcn.100a292d

Function at 0x100a2cab
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x100ee24c]
add eax, 0x93
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov dword [0x100ee24c], eax
call fcn.1000108a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x28], ecx
je 0x100a2d57
jmp 0x100a2e37
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.100a36b6
lea ecx, [0x100a2c08]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], edx
mov dword [esp + 0x58], 0x2e1200
mov edx, dword [0x100ee238]
mov dword [esp + 0x90], edx
mov edx, dword [0x100ee23c]
mov dword [esp + 0x68], edx
mov edx, dword [0x100ee240]
mov dword [esp + 0x94], edx
mov edx, dword [0x100ee244]
mov dword [esp + 0x60], edx
mov edx, dword [0x100ee248]
mov dword [esp + 0x84], edx
mov dword [0x100ee24c], 0xffffd1c1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x100a2d9c
lea eax, [esp + 0x40]
mov ecx, dword [0x100ee24c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffff5a0
mov dword [0x100ee250], eax
mov dword [0x100ee24c], 0x72a
call fcn.100a2eb0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
je 0x100a2ce6
jmp 0x100a2e2f
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x100a2dbf
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x100a2dd3
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x100a2d9c
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], ecx
mov dword [0x100ee24c], 0x1bfe
mov edx, dword [esp + 0xc]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x50], esi
mov dword [0x100ee250], 0x23c4
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.100a32bd
mov dword [0x100ee250], 0x20c5
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x100a2eb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [0x100ee24c], 0x2389
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [0x100ee250]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x16d4
mov dword [0x100ee24c], ecx
mov dword [ebp - 0x14], eax
jmp 0x100a2f78
xor eax, eax
mov dword [0x100ee24c], 0x4b8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x1c], eax
je 0x100a2fdc
jmp 0x100a3030
mov dword [0x100ee24c], 0x1c5a
mov eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x100a3030
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff9
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x1c], eax
je 0x100a2f25
jmp 0x100a3030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x1c], eax
je 0x100a2efe
jmp 0x100a3030
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x100a2fb9
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x2d], cl
mov al, byte [ebp - 0x2d]
test al, 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jne 0x100a2f78
jmp 0x100a2fb9
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [0x100ee24c], 0x17f2
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x100a2f5f
jmp 0x100a3030
xor eax, eax
mov dword [0x100ee24c], 0x4b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x1c], eax
jne 0x100a3030
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x1c], eax
jne 0x100a3030
xor eax, eax
mov dword [0x100ee250], 0x7a7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x1c], eax
je 0x100a2f3c
mov eax, dword [ebp - 0x1c]
add esp, 0x30
pop ebp
ret