joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d310
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x435948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push str.EPHONE.exe
lea ecx, [esp + 8]
call fcn.00404850
lea eax, [esp + 4]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.0040c060
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
je 0x40d393
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40d393
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40d3b0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x435948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push str.vconf.exe
lea ecx, [esp + 8]
call fcn.00404850
lea eax, [esp + 4]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.0040c060
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, 0xffffffff
je 0x40d433
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40d433
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d450
Capabilities:
Copy file
Delete file
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x435c02
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x148]
push edi
lea edi, [esi + 0x148]
mov dword [esi + 0x170], 3
mov eax, dword [eax - 0xc]
or ebx, 0xffffffff
test eax, eax
jne 0x40d4d3
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040c160
push eax
mov ecx, edi
mov dword [esp + 0x180], 0
call fcn.00401b80
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x17c], ebx
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d4d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040b850
push str.Encrypt.back
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x188], 1
call fcn.00401bf0
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 3
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.0040fc70
add esp, 4
test eax, eax
je 0x40d5bb
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040b850
push str.Encrypt.dat
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x188], 4
call fcn.00401bf0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x17c], 3
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop ebp
jg 0x40d5bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040b9f0
push 0
push eax
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x188], 5
call fcn.00401cd0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x17c], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
call fcn.00427efc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 3
call fcn.00401990
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x17c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
pop edi
pop esi
test ebx, ebx
pop ebx
jg 0x40d663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
add esp, 0x174
ret
Function at 0x40e0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435cdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x43a304
call fcn.004276cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.004276cb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.0040af80
mov dword [edi + 4], eax
mov byte [eax + 0x1d], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
push ebx
mov ecx, esi
mov byte [esp + 0x1c], 3
call fcn.004051e0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40e150
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x435d11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x43a304
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
lea edi, [esi + 0x30]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x28], 2
call fcn.0040dfb0
mov eax, dword [edi + 4]
push eax
call fcn.0042c2c6
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
add esp, 4
cmp eax, ebx
je 0x40e1b9
push eax
call fcn.0042c2c6
add esp, 4
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 8]
sub eax, 0x10
mov byte [esp + 0x1c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esi + 4]
sub esi, 0x10
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e208
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40fc70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x4110d3
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 0x411126
call fcn.004314f9
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x411126
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41111c
xor eax, eax
jmp 0x41123f
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 0x411156
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 0x411156
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x41123c
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x411183
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041015b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x41123c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4111cc
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4111cc
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4111c6
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041015b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x41122c
and dword [ebp + 0xc], 0
jmp 0x41122c
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x41122c
push 0xc
call fcn.0042c29b
mov esi, eax
test esi, esi
pop ecx
je 0x41120e
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 0x411210
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x411227
push dword [ebp - 8]
call fcn.00426ed1
jmp 0x41122c
call fcn.00426ea8
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x411191
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41a9d6
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.0041abd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41aa71
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 [0x44a280]
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 0x41aa71
cmp eax, 1
je 0x41aa92
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 0x41aa71
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41aa3e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41aa6d
xor eax, eax
inc eax
jmp 0x41aab1
cmp edi, eax
jae 0x41aa75
xor eax, eax
jmp 0x41aab1
cmp eax, esi
jae 0x41aa7c
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 [0x44a280]
jmp 0x41aa95
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 0x41ba50
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43d788
call fcn.0041c288
mov edi, 0x94
mov eax, edi
call fcn.0041abd0
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 [0x44a280], ecx
mov eax, dword [esi + 4]
mov dword [0x44a28c], eax
mov edx, dword [esi + 8]
mov dword [0x44a290], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44a284], esi
cmp ecx, 2
je 0x41bab0
or esi, 0x8000
mov dword [0x44a284], esi
shl eax, 8
add eax, edx
mov dword [0x44a288], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41baeb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41baeb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41bb03
cmp eax, 0x20b
je 0x41baf0
mov dword [ebp - 0x1c], esi
jmp 0x41bb17
cmp dword [ecx + 0x84], 0xe
jbe 0x41baeb
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41bb11
cmp dword [ecx + 0x74], 0xe
jbe 0x41baeb
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041f516
pop ecx
test eax, eax
jne 0x41bb2b
push 0x1c
call fcn.0041ba2c
pop ecx
call fcn.0041e09e
test eax, eax
jne 0x41bb3c
push 0x10
call fcn.0041ba2c
pop ecx
call fcn.00422f60
mov dword [ebp - 4], esi
call fcn.00422d62
test eax, eax
jge 0x41bb55
push 0x1b
call fcn.0041ba07
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x44bb50], eax
call fcn.00422c40
mov dword [0x44a26c], eax
call fcn.00422b9e
test eax, eax
jge 0x41bb7b
push 8
call fcn.0041ba07
pop ecx
call fcn.0042296b
test eax, eax
jge 0x41bb8c
push 9
call fcn.0041ba07
pop ecx
push 1
call fcn.0041c5fc
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41bba2
push eax
call fcn.0041ba07
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042290e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41bbc3
movzx eax, word [ebp - 0x40]
jmp 0x41bbc6
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042668e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41bbe4
push edi
call fcn.0041c729
call fcn.0041c74b
jmp 0x41bc16
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041c2c3
ret
Function at 0x41c666
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43d7c0
call fcn.0041c288
push 8
call fcn.0041f4cb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44a2c0], esi
jne 0x41c69a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44a2bc], esi
mov al, byte [ebp + 0x10]
mov byte [0x44a2b8], al
cmp dword [ebp + 0xc], edi
jne 0x41c6e4
cmp dword [0x44bb48], edi
je 0x41c6d4
mov eax, dword [0x44bb44]
sub eax, 4
mov dword [0x44bb44], eax
cmp eax, dword [0x44bb48]
jb 0x41c6d4
mov eax, dword [eax]
cmp eax, edi
je 0x41c6b5
call eax
jmp 0x41c6b5
push 0x446094
mov eax, 0x44608c
call fcn.0041c5e4
pop ecx
push 0x4460a0
mov eax, 0x446098
call fcn.0041c5e4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41c715
cmp dword [ebp + 0x10], edi
jne 0x41c723
mov dword [0x44a2c0], esi
push dword [ebp + 8]
call fcn.0041c5a2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41c722
push 8
call fcn.0041f416
pop ecx
ret
call fcn.0041c2c3
ret

Function at 0x41c85a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41c877
call fcn.0041c9de
mov dword [eax], 0x16
xor eax, eax
jmp 0x41c8e1
push esi
push 0x8c
push 1
call fcn.0041ae79
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41c8cc
push esi
call fcn.0041dea4
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41c8aa
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41c7c5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41c8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0041a965
test ebx, ebx
pop ecx
je 0x41c8de
push ebx
call fcn.0041c9f0
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4200a5
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 0x4200d3
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 0x4200da
cmp ebx, dword [eax + 4]
jae 0x4200da
xor eax, eax
jmp 0x4202ca
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4200eb
xor eax, eax
inc eax
jmp 0x4202c9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x420101
cmp ecx, edx
jae 0x420246
cmp dword [eax + 4], 0
je 0x42010a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4200f2
cmp dword [ebp + 8], 0
je 0x42012c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x420246
cmp eax, esi
jae 0x420246
mov eax, dword [0x44a448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x420151
cmp dword [esi*4 + 0x44a450], edi
je 0x42024a
inc esi
cmp esi, eax
jl 0x42013f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4202c6
cmp dword [ebp - 8], 0x1000000
jne 0x4202c6
test byte [ebp - 0xc], 0xcc
je 0x4201cf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4202c6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4202c6
cmp word [eax + 0x18], 0x10b
jne 0x4202c6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4202c6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4201cf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4201cf
test byte [ecx + 0x27], 0x80
jne 0x420246
push 1
push 0x44a490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4200e3
mov ecx, dword [0x44a448]
test ecx, ecx
mov edx, ecx
jle 0x420203
lea eax, [ecx*4 + 0x44a44c]
cmp dword [eax], edi
je 0x420203
dec edx
sub eax, 4
test edx, edx
jg 0x4201f7
test edx, edx
jne 0x420234
push 0xf
pop ebx
cmp ecx, ebx
jg 0x420210
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x420228
lea eax, [edx*4 + 0x44a450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x420216
cmp ecx, 0x10
jge 0x420234
inc ecx
mov dword [0x44a448], ecx
push 0
push 0x44a490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4200e3
xor eax, eax
jmp 0x4202c9
test esi, esi
jle 0x4200e3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44a490
call ebx
test eax, eax
jne 0x4200e3
cmp dword [esi*4 + 0x44a450], edi
je 0x4202a0
mov eax, dword [0x44a448]
lea esi, [eax - 1]
test esi, esi
jl 0x42028e
cmp dword [esi*4 + 0x44a450], edi
je 0x42028a
dec esi
jns 0x42027e
test esi, esi
jge 0x42029e
cmp eax, 0x10
jge 0x420299
inc eax
mov dword [0x44a448], eax
lea esi, [eax - 1]
jmp 0x4202a0
je 0x4202b8
xor ecx, ecx
test esi, esi
jl 0x4202b8
lea eax, [ecx*4 + 0x44a450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4202a6
push 0
push 0x44a490
call ebx
jmp 0x4200e3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4225fa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4472e0]
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 + 0x4479c0]
je 0x42262f
inc eax
cmp eax, 0x13
jb 0x422620
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4479c0]
jne 0x422755
mov eax, dword [0x44a274]
cmp eax, 1
je 0x42272d
cmp eax, edx
jne 0x42265f
cmp dword [0x447334], 1
je 0x42272d
cmp ecx, 0xfc
je 0x422755
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 0x422695
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041f280
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041bf70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4226c9
mov eax, edi
push eax
call fcn.0041bf70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43d944
push edi
call fcn.0041b630
add esp, 0x10
push edi
call fcn.0041bf70
push dword [esi + 0x4479c4]
mov ebx, eax
call fcn.0041bf70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041abd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041f280
push edi
push ebx
call fcn.0041f290
push 0x43d940
push ebx
call fcn.0041f290
push dword [esi + 0x4479c4]
push ebx
call fcn.0041f290
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00423d9e
add esp, 0x2c
jmp 0x422755
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4479c4]
push dword [esi]
call fcn.0041bf70
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.00419e6b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x423030
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x42305e
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 0x423063
cmp eax, 1
je 0x423063
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x423067
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4472e0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4230df
push ebx
call fcn.00423030
test eax, eax
pop ecx
jne 0x4230ae
call fcn.0041c9e7
mov dword [eax], 0xf
call fcn.0041c9de
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00419e6b
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 0x4230f1
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4230a1
inc eax
cmp eax, 0x104
ja 0x4230a1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x423129
cmp eax, dword [ebp + 0x10]
jg 0x42310c
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041a953
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42313e
call fcn.0041c9de
mov dword [eax], 0xc
jmp 0x4230a1
cmp eax, dword [ebp + 0x10]
jle 0x42313e
call fcn.0041c9de
mov dword [eax], 0x22
jmp 0x4230a1
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041f280
pop ecx
pop ecx
jmp 0x4230a3