joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
lea edi, [esi + 0x4c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
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 [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x100], 8
je 0x1002b762
push ebx
mov ebx, 4
mov eax, dword [edi - 4]
test eax, eax
je 0x1002b679
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x1002b68e
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002b6a5
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
movsd qword [edi + 0x1c], xmm0
add edi, 0x28
sub ebx, 1
jne 0x1002b662
mov eax, dword [esi + 0xec]
pop ebx
test eax, eax
je 0x1002b6ef
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xec], 0
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1002b70c
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x1002b729
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf4], 0
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x1002b746
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf8], 0
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x1002b8aa
push eax
call fcn.100a72b6
add esp, 4
jmp 0x1002b8a0
xorps xmm0, xmm0
mov dword [esi + 0x48], 0
mov dword [edi], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0xffffffff
movsd qword [esi + 0x68], xmm0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0x80], 0xffffffff
mov dword [esi + 0x84], 0xffffffff
mov dword [esi + 0x88], 0xffffffff
movsd qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], 0xffffffff
mov dword [esi + 0xb0], 0xffffffff
movsd qword [esi + 0xb8], xmm0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0xffffffff
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xd4], 0xffffffff
mov dword [esi + 0xd8], 0xffffffff
movsd qword [esi + 0xe0], xmm0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
pop edi
mov dword [esi + 0xe8], 0
mov dword [esi], 0
pop esi
ret
Function at 0x1002b5d2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
lea edi, [esi + 0x4c]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
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 [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x100], 8
je 0x1002b762
push ebx
mov ebx, 4
mov eax, dword [edi - 4]
test eax, eax
je 0x1002b679
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi - 4], 0
mov eax, dword [edi]
test eax, eax
je 0x1002b68e
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1002b6a5
push eax
call fcn.100a72b6
add esp, 4
mov dword [edi + 4], 0
xorps xmm0, xmm0
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
movsd qword [edi + 0x1c], xmm0
add edi, 0x28
sub ebx, 1
jne 0x1002b662
mov eax, dword [esi + 0xec]
pop ebx
test eax, eax
je 0x1002b6ef
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xec], 0
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1002b70c
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x1002b729
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf4], 0
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x1002b746
push eax
call fcn.100a72b6
add esp, 4
mov dword [esi + 0xf8], 0
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x1002b8aa
push eax
call fcn.100a72b6
add esp, 4
jmp 0x1002b8a0
xorps xmm0, xmm0
mov dword [esi + 0x48], 0
mov dword [edi], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0xffffffff
movsd qword [esi + 0x68], xmm0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0x80], 0xffffffff
mov dword [esi + 0x84], 0xffffffff
mov dword [esi + 0x88], 0xffffffff
movsd qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], 0xffffffff
mov dword [esi + 0xb0], 0xffffffff
movsd qword [esi + 0xb8], xmm0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0xffffffff
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xd4], 0xffffffff
mov dword [esi + 0xd8], 0xffffffff
movsd qword [esi + 0xe0], xmm0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0xf8], 0
mov dword [esi + 0xfc], 0
pop edi
mov dword [esi + 0xe8], 0
mov dword [esi], 0
pop esi
ret
Function at 0x10044d9a
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor ecx, 0x1fe9
or ecx, 0x14fc0
pop ecx
mov ecx, dword [ebp - 0x5cc]
mov dword [ebp - 0x398], ecx
jmp 0x10044e20

Function at 0x10044dd2
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edi
push esi
sub esi, 0x13e0f
sub esi, 0x10e0d
xor esi, 0x14188
pop esi
mov edx, dword [ebp - 0x5cc]
mov eax, dword [edx]
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
cmp ecx, dword [ebp - 0xeb4]
je 0x10044e16
mov edx, dword [ebp - 0x5cc]
cmp dword [edx + 0x30], 0
jne 0x10044bcc
mov dword [ebp - 0x398], 0
Function at 0x1006b060
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ecx + 0x14]
or eax, 0xffffffff
push ebx
sub edx, 4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edx
push esi
lea esi, [ecx + 0x10]
mov dword [ebp - 0x14], esi
test edx, edx
jle 0x1006b0d6
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
push edi
nop dword [eax + eax]
movzx ecx, byte [ecx + ebx]
mov edi, 0x80
mov dword [ebp - 8], ecx
mov ebx, ecx
mov edi, edi
mov edx, ebx
lea esi, [eax + eax]
and edx, edi
mov ecx, eax
neg edx
not ecx
mov eax, esi
sbb edx, edx
shr ecx, 0x1f
inc edx
xor eax, 0x4c11db7
cmp edx, ecx
cmove eax, esi
shr edi, 1
jne 0x1006b0a0
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp - 0xc]
jl 0x1006b090
mov esi, dword [ebp - 0x14]
pop edi
mov ecx, dword [esi]
mov edx, eax
shr edx, 0x18
mov byte [ebx + ecx], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 0x10
mov byte [ebx + ecx + 1], dl
mov edx, eax
mov ecx, dword [esi]
shr edx, 8
mov byte [ebx + ecx + 2], dl
mov ecx, dword [esi]
pop esi
mov byte [ebx + ecx + 3], al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a7834
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100a7871
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100a786a
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100a7876
add edx, 0x28
cmp edx, esi
jne 0x100a785b
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100a7873
Function at 0x401850
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x24]
sub esp, 0x40
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x14], 0x6f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x406d10
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x406d20
call sub.ole32.dll_CoCreateInstance
sub esp, 0x14
test eax, eax
js 0x4019c8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
test eax, eax
js 0x401968
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 8
test eax, eax
js 0x401968
mov dword [esp + 8], 0x4c
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40196b
mov eax, dword [edx]
lea ecx, [ebp - 0x1c]
mov dword [esp + 4], str.DxDiag_SystemInfo
mov dword [esp + 8], ecx
mov dword [esp], edx
call dword [eax + 0x14]
sub esp, 0xc
test eax, eax
js 0x401961
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00401340
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test esi, esi
jne 0x4019a0
mov eax, ebx
call fcn.00401000
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x40197a
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
sub esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40198c
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x24]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov edx, dword [ebp - 0x20]
test byte [section..data], 2
je 0x40196b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.IDxDiagProvider_instance_creation_failed_with_0x_08lx_n
mov dword [esp + 8], str.collect_dxdiag_information
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401250
mov edx, dword [ebp - 0x20]
jmp 0x40196b
Function at 0x403730
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x403783
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4037b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403817
xor ecx, ecx
xor edx, edx
jmp 0x4037f9
cmp ax, 0x5c
jne 0x403888
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403817
cmp ax, 9
je 0x403805
cmp ax, 0x20
jne 0x4037e0
test ecx, ecx
je 0x403870
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x4037f9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4038a8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401be0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x403870
cmp ax, 0x20
je 0x403870
jmp 0x403817
cmp ax, 0x22
jne 0x403809
and edx, 1
jne 0x403809
xor ecx, 1
jmp 0x4037ed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403830
Function at 0x4037b0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x403783
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4037b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403817
xor ecx, ecx
xor edx, edx
jmp 0x4037f9
cmp ax, 0x5c
jne 0x403888
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403817
cmp ax, 9
je 0x403805
cmp ax, 0x20
jne 0x4037e0
test ecx, ecx
je 0x403870
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x4037f9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4038a8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401be0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x403870
cmp ax, 0x20
je 0x403870
jmp 0x403817
cmp ax, 0x22
jne 0x403809
and edx, 1
jne 0x403809
xor ecx, 1
jmp 0x4037ed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403830

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x79947b40
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x16e67176
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41ee16
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x41ee3d
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x41ee40
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041edf2
pop esi
leave
ret 8
Function at 0x420fbe
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x420fe7
xor eax, eax
jmp 0x4210d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
cmp eax, 0x10b
jne 0x4210d2
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call fcn.00420d2c
mov edi, eax
test edi, edi
je 0x421041
push dword [ebp - 0x10]
call fcn.004205aa
push esi
call fcn.00427a70
pop ecx
mov eax, edi
jmp 0x4210d2
push 0x208
mov dword [ebp - 0xc], 0x104
call fcn.00427f70
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.004203dc
push dword [ebp - 4]
call fcn.00427a70
mov esi, dword [ebp - 0x10]
jmp 0x4210ba
mov eax, dword [ebp - 0xc]
push 2
add eax, 0xfffffff2
push eax
lea eax, [edi + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
test eax, eax
je 0x42113e
add eax, 0xe
lea ecx, [eax + eax]
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebp - 0xc]
jbe 0x4210d9
push ecx
mov dword [ebp - 0xc], eax
call fcn.00427f70
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.004203dc
push dword [ebp - 4]
call fcn.00427a70
mov edi, dword [ebp - 8]
pop ecx
test edi, edi
jne 0x42106f
push esi
call fcn.004205aa
push edi
call fcn.00427a70
pop ecx
push 8
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call fcn.004205aa
mov eax, dword [ebp - 0x10]
mov esi, 0x440924
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
add eax, edi
lea eax, [eax - 2]
cmp word [eax], 0x5c
jne 0x4210f1
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push ebx
push esi
push dword [ebp + 0xc]
mov word [eax], cx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x421116
xor ebx, ebx
jmp 0x42114c
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.00427a70
pop ecx
mov eax, esi
jmp 0x4210d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call fcn.004205aa
push edi
call fcn.00427a70
pop ecx
mov eax, ebx
jmp 0x4210d2
Function at 0x4222a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4222c2
jl 0x4222b9
test edi, edi
jne 0x4222c2
xor eax, eax
xor edx, edx
jmp 0x422383
cmp dword [ebx + 0x38], 0
je 0x4222d7
push eax
push edi
push dword [ebp + 8]
call fcn.00422389
jmp 0x422383
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42231e
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42231e
cmp eax, edi
jb 0x4222f8
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00425480
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x422324
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x422378
mov ecx, ebx
call fcn.00421b3a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x422363
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004293ec
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x422378
jmp 0x422336
test edx, edx
je 0x422378
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004293ec
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x42393a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423979
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423979
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423979
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x423979
cmp dword [ecx + 0x74], 0xe
jbe 0x423979
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42f906
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42f920
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42f937
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x42f98f
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0043588d
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x42f98f
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42f98f
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42f98f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x42f989
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x42f98b
xor bl, bl
mov al, bl
jmp 0x42f991
xor al, al
pop esi
pop ebx
leave
ret