joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443760
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fdd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00463af4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046918a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a6a6
test eax, eax
je 0x44387c
mov ecx, dword [esp + 0x3c]
call fcn.004691b7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443840
push edi
mov ecx, esi
call fcn.0046681b
mov ecx, esi
call fcn.004439e0
cmp dword [esp + 0x38], 1
jne 0x443875
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00466956
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4462a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4462d3
push esi
call fcn.00449390
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4462cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446359
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446342
mov eax, dword [esi + 8]
test eax, eax
je 0x4462f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44633e
cmp eax, 2
je 0x446342
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4462ea
cmp eax, 3
je 0x44631d
cmp eax, 1
jne 0x4462ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4462ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4462ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446380
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446368
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446380
add esp, 4
pop esi
ret

Function at 0x4648ea
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464922
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046299e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462976
jmp 0x46492e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46601a
call fcn.0046ba91
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46601a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466011
xor eax, eax
jmp 0x466022
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466028
pop edi
pop esi
pop ebx
ret 4

Function at 0x46bfc1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46bfef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c00d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046bf27
jmp 0x46c00d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c00d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046bf27
test edi, edi
mov eax, edi
jne 0x46bff7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401239
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40124d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40126e
cmp esi, eax
jae 0x401247
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401260
cmp esi, eax
jae 0x401247
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405d0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x405d61
call fcn.00426d16
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x405d61
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x405d57
xor eax, eax
jmp 0x405e7a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x405d91
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x405d91
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x405e77
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x405dbe
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004075be
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x405e77
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x405e07
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x405e07
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x405e01
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004075be
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x405e67
and dword [ebp + 0xc], 0
jmp 0x405e67
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x405e67
push 0xc
call fcn.0041de7b
mov esi, eax
test esi, esi
pop ecx
je 0x405e49
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x405e4b
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x405e62
push dword [ebp - 8]
call fcn.0041cca7
jmp 0x405e67
call fcn.0041cc7e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x405dcc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40febd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004123ec
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40fee0
test byte [esp + 8], 2
je 0x40fee0
call fcn.004123da
mov dword [eax], 0xd
call fcn.004123e3
mov dword [eax], 5
jmp 0x40feb9
xor eax, eax
ret
Function at 0x40ffa7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42fbd0
call fcn.004118f8
push 8
call fcn.00414c35
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43c15c], esi
jne 0x40ffdb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43c158], esi
mov al, byte [ebp + 0x10]
mov byte [0x43c154], al
cmp dword [ebp + 0xc], edi
jne 0x410025
cmp dword [0x43d9ec], edi
je 0x410015
mov eax, dword [0x43d9e8]
sub eax, 4
mov dword [0x43d9e8], eax
cmp eax, dword [0x43d9ec]
jb 0x410015
mov eax, dword [eax]
cmp eax, edi
je 0x40fff6
call eax
jmp 0x40fff6
push 0x438098
mov eax, 0x438090
call fcn.0040ff25
pop ecx
push 0x4380a4
mov eax, 0x43809c
call fcn.0040ff25
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00410056
cmp dword [ebp + 0x10], edi
jne 0x410064
mov dword [0x43c15c], esi
push dword [ebp + 8]
call fcn.0040fee3
xor edi, edi
xor esi, esi
inc esi
call fcn.00411933
ret
Function at 0x410780
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.00410970
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41081b
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 [0x43c11c]
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 0x41081b
cmp eax, 1
je 0x41083c
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 0x41081b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4107e8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410817
xor eax, eax
inc eax
jmp 0x41085b
cmp edi, eax
jae 0x41081f
xor eax, eax
jmp 0x41085b
cmp eax, esi
jae 0x410826
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 [0x43c11c]
jmp 0x41083f
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
Function at 0x410b32
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42fc50
call fcn.004118f8
mov edi, 0x94
mov eax, edi
call fcn.00410970
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43c11c], ecx
mov eax, dword [esi + 4]
mov dword [0x43c128], eax
mov edx, dword [esi + 8]
mov dword [0x43c12c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43c120], esi
cmp ecx, 2
je 0x410b92
or esi, 0x8000
mov dword [0x43c120], esi
shl eax, 8
add eax, edx
mov dword [0x43c124], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x410bcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410bcd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410be5
cmp eax, 0x20b
je 0x410bd2
mov dword [ebp - 0x1c], esi
jmp 0x410bf9
cmp dword [ecx + 0x84], 0xe
jbe 0x410bcd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410bf3
cmp dword [ecx + 0x74], 0xe
jbe 0x410bcd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415dea
pop ecx
test eax, eax
jne 0x410c0d
push 0x1c
call fcn.00410b0e
pop ecx
call fcn.004136cf
test eax, eax
jne 0x410c1e
push 0x10
call fcn.00410b0e
pop ecx
call fcn.00414c66
mov dword [ebp - 4], esi
call fcn.0041730a
test eax, eax
jge 0x410c37
push 0x1b
call fcn.00410ae9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43d9e0], eax
call fcn.004171e8
mov dword [0x43c160], eax
call fcn.00417146
test eax, eax
jge 0x410c5d
push 8
call fcn.00410ae9
pop ecx
call fcn.00416f13
test eax, eax
jge 0x410c6e
push 9
call fcn.00410ae9
pop ecx
push 1
call fcn.0040ff3d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x410c84
push eax
call fcn.00410ae9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416eb6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x410ca5
movzx eax, word [ebp - 0x40]
jmp 0x410ca8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041c0ec
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x410cc6
push edi
call fcn.0041006a
call fcn.0041008c
jmp 0x410cf8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411933
ret
Function at 0x414dfc
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x430068
call fcn.004118f8
mov eax, dword [0x4391b8]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x414ea0
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00410970
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x414e8d
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x414ea0
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x414ebb
cmp byte [edi + 1], 0x3a
jne 0x414ebb
movzx eax, byte [edi]
push eax
call fcn.00419e1d
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x414ecb
push edi
call fcn.0041070f
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.00410d8f
call fcn.00411933
ret
Function at 0x416979
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4169a7
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4169ae
cmp ebx, dword [eax + 4]
jae 0x4169ae
xor eax, eax
jmp 0x416b9e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4169bf
xor eax, eax
inc eax
jmp 0x416b9d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4169d5
cmp ecx, edx
jae 0x416b1a
cmp dword [eax + 4], 0
je 0x4169de
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4169c6
cmp dword [ebp + 8], 0
je 0x416a00
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416b1a
cmp eax, esi
jae 0x416b1a
mov eax, dword [0x43c2f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x416a25
cmp dword [esi*4 + 0x43c300], edi
je 0x416b1e
inc esi
cmp esi, eax
jl 0x416a13
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416b9a
cmp dword [ebp - 8], 0x1000000
jne 0x416b9a
test byte [ebp - 0xc], 0xcc
je 0x416aa3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x416b9a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416b9a
cmp word [eax + 0x18], 0x10b
jne 0x416b9a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x416b9a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416aa3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416aa3
test byte [ecx + 0x27], 0x80
jne 0x416b1a
push 1
push 0x43c340
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4169b7
mov ecx, dword [0x43c2f8]
test ecx, ecx
mov edx, ecx
jle 0x416ad7
lea eax, [ecx*4 + 0x43c2fc]
cmp dword [eax], edi
je 0x416ad7
dec edx
sub eax, 4
test edx, edx
jg 0x416acb
test edx, edx
jne 0x416b08
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416ae4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416afc
lea eax, [edx*4 + 0x43c300]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416aea
cmp ecx, 0x10
jge 0x416b08
inc ecx
mov dword [0x43c2f8], ecx
push 0
push 0x43c340
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4169b7
xor eax, eax
jmp 0x416b9d
test esi, esi
jle 0x4169b7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43c340
call ebx
test eax, eax
jne 0x4169b7
cmp dword [esi*4 + 0x43c300], edi
je 0x416b74
mov eax, dword [0x43c2f8]
lea esi, [eax - 1]
test esi, esi
jl 0x416b62
cmp dword [esi*4 + 0x43c300], edi
je 0x416b5e
dec esi
jns 0x416b52
test esi, esi
jge 0x416b72
cmp eax, 0x10
jge 0x416b6d
inc eax
mov dword [0x43c2f8], eax
lea esi, [eax - 1]
jmp 0x416b74
je 0x416b8c
xor ecx, ecx
test esi, esi
jl 0x416b8c
lea eax, [ecx*4 + 0x43c300]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416b7a
push 0
push 0x43c340
call ebx
jmp 0x4169b7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416ba2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4391b8]
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 + 0x439738]
je 0x416bd7
inc eax
cmp eax, 0x13
jb 0x416bc8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x439738]
jne 0x416cfd
mov eax, dword [0x43c168]
cmp eax, 1
je 0x416cd5
cmp eax, edx
jne 0x416c07
cmp dword [0x4391b4], 1
je 0x416cd5
cmp ecx, 0xfc
je 0x416cfd
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 0x416c3d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00417750
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00411170
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x416c71
mov eax, edi
push eax
call fcn.00411170
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x430470
push edi
call fcn.00419c30
add esp, 0x10
push edi
call fcn.00411170
push dword [esi + 0x43973c]
mov ebx, eax
call fcn.00411170
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00410970
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00417750
push edi
push ebx
call fcn.00417760
push 0x430450
push ebx
call fcn.00417760
push dword [esi + 0x43973c]
push ebx
call fcn.00417760
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00419f96
add esp, 0x2c
jmp 0x416cfd
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43973c]
push dword [esi]
call fcn.00411170
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.00410d8f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x41880f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41883d
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x418842
cmp eax, 1
je 0x418842
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x418846
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4391b8]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4188be
push ebx
call fcn.0041880f
test eax, eax
pop ecx
jne 0x41888d
call fcn.004123e3
mov dword [eax], 0xf
call fcn.004123da
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00410d8f
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4188d0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x418880
inc eax
cmp eax, 0x104
ja 0x418880
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x418908
cmp eax, dword [ebp + 0x10]
jg 0x4188eb
mov eax, dword [ebp + 0x10]
push eax
call fcn.004106fd
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41891d
call fcn.004123da
mov dword [eax], 0xc
jmp 0x418880
cmp eax, dword [ebp + 0x10]
jle 0x41891d
call fcn.004123da
mov dword [eax], 0x22
jmp 0x418880
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00417750
pop ecx
pop ecx
jmp 0x418882