joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41acb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x409786
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040c730
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4097af
lea ebx, [esi + 8]
jmp 0x4097b1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402f40
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4097ca
mov ecx, dword [ebp - 0x18]
call fcn.00402e30
jmp 0x4097cc
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4097ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4097ed
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x409816
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40982b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004189fc
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x409860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41acb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4098a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040c7f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4098d0
lea ebx, [esi + 8]
jmp 0x4098d2
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402f40
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0
je 0x4098ef
mov ecx, dword [ebp - 0x18]
call fcn.00402e30
jmp 0x4098f1
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x40993c
call ecx
cmp eax, 5
jne 0x409936
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x409928
mov ecx, dword [ebp - 0x18]
call fcn.00402e30
jmp 0x40992a
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x40995a
call ecx
cmp eax, 0xb7
jne 0x40994f
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00409e60
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x409980
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x409995
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004189fc
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x40bf80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x42801c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x40c002
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x40c002
test ecx, ecx
je 0x40bffe
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x40bfc0
xor eax, eax
jmp 0x40c007
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40c011
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041873e
add esp, 0xc
ret 0xc
Function at 0x40d0e0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x42801c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40d145
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d120
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d145
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0041873e
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0041873e
add esp, 8
ret 4

Function at 0x40e910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b870
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x42801c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40e9f7
cmp byte [eax + 0x54], 0
je 0x40e9f7
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.0040c680
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edi
push eax
call fcn.00407860
add esp, 0xc
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x40e992
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e9dc
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00404420
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c6d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041873e
mov esp, ebp
pop ebp
ret 4
Function at 0x413d49
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov edi, ecx
cmp dword [edi + 0x64], 0
je 0x413d60
push dword [edi + 0x64]
call esi
cmp dword [edi + 0x70], 0
je 0x413d6b
push dword [edi + 0x70]
call esi
xor ebp, ebp
cmp dword [edi + 0x78], ebp
je 0x413e5d
push 0x428918
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x78]
test al, 1
je 0x413d94
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [edi + 0x78]
test al, 2
je 0x413da8
push dword [edi + 0x80]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
mov eax, dword [edi + 0x78]
pop ecx
test al, 4
je 0x413db9
push dword [edi + 0x84]
call dword [sym.imp.VCRUNTIME140.dll__set_purecall_handler]
pop ecx
mov ebx, dword [0x428938]
mov eax, dword [ebx + 4]
add eax, 0xfffffffc
cmp dword [eax], edi
jne 0x413dce
mov dword [ebx + 4], eax
jmp 0x413e1f
push str.warning:_removing_Breakpad_handler_out_of_order_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.00410ea0
mov ebx, dword [0x428938]
pop ecx
pop ecx
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x413e1f
lea ebp, [esi + 4]
cmp dword [esi], edi
jne 0x413e10
mov eax, dword [ebx + 4]
sub eax, ebp
push eax
push ebp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add dword [ebx + 4], 0xfffffffc
jmp 0x413e16
add esi, 4
add ebp, 4
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x413df6
xor ebp, ebp
cmp dword [ebx], eax
jne 0x413e52
cmp dword [ebx], 0
je 0x413e42
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
and eax, 0xfffffffc
push eax
push dword [ebx]
call fcn.00403200
pop ecx
pop ecx
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
push 0xc
push ebx
call fcn.004189fc
pop ecx
pop ecx
mov dword [0x428938], ebp
push 0x428918
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [edi + 0xc], ebp
jne 0x413ea3
push 1
push dword [edi + 0x88]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x90]
mov dword [edi + 0x88], ebp
push eax
call ebx
push dword [edi + 0xa8]
call esi
push dword [edi + 0xac]
call esi
push 0x428930
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x413eb9
push 0x428918
call ebx
lea ecx, [edi + 0xc0]
call fcn.00414823
lea ecx, [edi + 0x40]
call fcn.00402e70
lea ecx, [edi + 0x28]
call fcn.00402e70
lea ecx, [edi + 0x10]
call fcn.00402e70
mov ecx, dword [edi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
test ecx, ecx
je 0x413eed
push ecx
call fcn.0041485d
ret
Function at 0x414b69
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp + 0x360]
lea ecx, [ebp + 0x348]
call fcn.00402e30
mov esi, dword [ebp + 0x24]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
lea ecx, [ebp + 0x38]
lea eax, [ebp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
xor esi, esi
lea eax, [ebp + 0x40]
mov dword [esp + 0x48], 1
mov dword [esp + 0x5c], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x60], ecx
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x7c], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x414cde
cmp dword [esp + 0x14], 2
jne 0x414cde
cmp dword [esp + 0x18], esi
je 0x414cde
cmp dword [esp + 0x34], esi
je 0x414cde
cmp dword [esp + 0x38], esi
je 0x414cde
cmp dword [esp + 0x3c], esi
je 0x414cde
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x84], esi
push eax
push 0x34
lea eax, [esp + 0x88]
mov dword [esp + 0x90], esi
push eax
push dword [esp + 0xc4]
xorps xmm0, xmm0
mov dword [esp + 0x9c], esi
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0xc0], esi
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x90], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414cde
mov ecx, dword [esp + 0x34]
mov al, 1
mov dword [ebp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x30], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x34], ecx
jmp 0x414ce0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x415120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c5b5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x42801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x1050
call fcn.0041874f
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push 0x1050
push 0
push esi
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi + 0x44]
mov dword [esi], 0
mov eax, ecx
mov dword [esi + 4], 0
neg eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
lea edx, [esi + 0x1044]
mov dword [esi + 0x10], 0
and eax, 3
mov dword [esi + 0x14], 0
add esp, 0x10
mov dword [esi + 0x18], 0
add eax, ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [edx], 0
mov dword [esi + 0x1048], 0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov byte [ebp - 4], 2
mov dword [esi + 0x104c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov dword [edi], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40abd0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x44a480], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x44a47c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x44a480], edx
cmp eax, 0x26f
jl 0x40abd8
mov dword [0x4359c0], 0x270
ret

Function at 0x40ac10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x44a484]
mov ebx, dword [eax*4 + 0x44a480]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x44aab4]
mov dword [eax*4 + 0x44a480], edx
cmp eax, 0xe2
jl 0x40ac18
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x44a484]
mov ebx, dword [eax*4 + 0x44a480]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x44a0f4]
mov dword [eax*4 + 0x44a480], edx
cmp eax, 0x26e
jl 0x40ac68
mov edx, dword [0x44a480]
mov ecx, dword [0x44ae3c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x44aab0]
mov dword [0x44ae3c], eax
mov dword [0x4359c0], 0
pop ebx
ret

Function at 0x40acf0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x4359c0]
add dword [0x4359c0], 1
mov eax, dword [0x449020]
cmp eax, dword [0x4354e0]
jne 0x40ad13
cmp ebx, 0x271
jb 0x40ad34
mov eax, dword [0x449020]
call fcn.0040abd0
not dword [0x449020]
mov eax, dword [0x449020]
mov dword [0x4354e0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ad50
call fcn.0040ac10
xor ebx, ebx
mov dword [0x4359c0], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x44a480]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40c7f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x435230]
cmp ax, 0xcb
je 0x40c8fc
cmp ax, 0xcc
je 0x40c8fc
lea esi, [esi]
mov edx, dword [0x44b080]
test edx, edx
je 0x40c825
mov eax, dword [0x44af30]
call edx
mov ebx, eax
jmp 0x40c82a
mov ebx, 0x44af34
cmp word [0x44af20], 0
jle 0x40c850
mov eax, 0x44af00
call fcn.0040ca60
mov eax, ebx
call fcn.0040c3b0
mov eax, ebx
call fcn.0040c420
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40c872
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40c86d
mov edx, edi
mov eax, ebx
call fcn.0040b820
jmp 0x40c870
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40c858
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x44af20], 0
jle 0x40c8fc
mov edx, 0x44ae40
mov eax, ebx
call fcn.0040b960
mov edi, eax
test edi, edi
je 0x40c8cc
mov eax, dword [0x44aed4]
mov dword [edi + 0xc], eax
cmp dword [0x44aed4], 0
je 0x40c8c0
mov eax, dword [0x44aed4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x44aed4], eax
nop
sub word [0x44af20], 1
cmp word [0x44af20], 0
sete bl
mov eax, 0x44af00
call fcn.0040ca80
test bl, bl
je 0x40c8fc
mov eax, 0x44af00
call fcn.0040ca50
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x40ec30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0040ec10
push ebp
push 0x410010
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x40ed5a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00408030
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x40ecbf
mov edx, 0x44a300
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x40ed11
call sub.kernel32.dll_GetLastError
call fcn.00402b20
lea eax, [ebp - 0x10]
call fcn.00407300
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00407760
mov edx, dword [ebp - 0x14]
mov ecx, 0x437308
lea eax, [ebp - 0x10]
call fcn.004075f0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00407b40
jmp 0x40eda8
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x40ed2a
cmp eax, ecx
je 0x40ed34
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00408030
cmp byte [0x4354a0], 0
jne 0x40eda8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00408580
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00407b80
lea esi, [esi]
jmp 0x40eda8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00408030
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x40ed7e
mov eax, 0x44a300
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x4354a0], 0
jne 0x40eda8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00408580
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00407b80
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0040ec10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x44a260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.0040f2e0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x44a260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402230
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4352a0], eax
mov ebx, eax
jmp 0x40f2a3
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x40f188
cmp byte [ebx], 0
je 0x40f2ac
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40f203
mov al, byte [ebx]
cmp al, 1
jb 0x40f1f8
sub al, 0x20
jbe 0x40f1c8
sub al, 2
je 0x40f1dc
jmp 0x40f1f8
mov al, byte [ebp - 0x114]
test al, al
je 0x40f208
add dword [ebp - 0x110], 1
jmp 0x40f200
cmp byte [ebx + 1], 0x22
je 0x40f1f3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40f200
add ebx, 1
jmp 0x40f200
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40f1b8
test dword [ebp - 0x10c], 0xffffffff
je 0x40f29c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.0040f2e0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x44a260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x40f293
mov al, byte [ebx]
cmp al, 1
jb 0x40f288
sub al, 0x20
jbe 0x40f258
sub al, 2
je 0x40f26c
jmp 0x40f288
mov al, byte [ebp - 0x114]
test al, al
je 0x40f298
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x40f290
cmp byte [ebx + 1], 0x22
je 0x40f283
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40f290
add ebx, 1
jmp 0x40f290
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40f248
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40f18b
mov ebx, dword [ebp - 0x10c]
mov dword [0x44a250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x44a260
call fcn.0040c630
mov eax, dword [0x44a260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret