joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77a50
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 + 0x97fa8]
je 0x77a6b
inc edi
cmp edi, 0x17
jb 0x77a5c
cmp edi, 0x17
jae 0x77beb
push ebp
push 3
call fcn.000813ad
cmp eax, 1
pop ecx
je 0x77bb7
push 3
call fcn.000813ad
test eax, eax
pop ecx
jne 0x77a9f
cmp dword [0x98188], 1
je 0x77bb7
cmp ebx, 0xfc
je 0x77bea
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x92415
push ebp
call fcn.0008625e
add esp, 0xc
test eax, eax
je 0x77ad5
push esi
push esi
push esi
push esi
push esi
call fcn.00080776
add esp, 0x14
push 0x104
mov esi, 0x9242e
push esi
push 0
mov byte [0x92532], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x77b19
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0008625e
add esp, 0xc
test eax, eax
je 0x77b19
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00080776
add esp, 0x14
push esi
call fcn.00083cb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x77b5e
push esi
call fcn.00083cb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x92729
push 0xaba82
sub ecx, eax
push ecx
push eax
call fcn.000840e5
add esp, 0x14
test eax, eax
je 0x77b5e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00080776
add esp, 0x14
jmp 0x77b60
xor esi, esi
push 0xaba7f
push ebx
push ebp
call fcn.0008524e
add esp, 0xc
test eax, eax
je 0x77b80
push esi
push esi
push esi
push esi
push esi
call fcn.00080776
add esp, 0x14
push dword [edi*8 + 0x97fac]
push ebx
push ebp
call fcn.0008524e
add esp, 0xc
test eax, eax
je 0x77ba2
push esi
push esi
push esi
push esi
push esi
call fcn.00080776
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.000747b9
add esp, 0xc
jmp 0x77bea
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x77bea
cmp ebp, 0xffffffff
je 0x77bea
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x97fac]
push dword [esi]
call fcn.00083cb0
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 0x7fdd9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x97ddc]
jne 0x7fde3
repz ret
jmp fcn.0007c6c0
Function at 0x8131c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x488], edi
mov dword [esp + 0x20], esi
mov edx, dword [0xa1ac6]
mov edi, dword [esp + 0x45c]
mov dword [0xa17ce], ecx
push 1
mov ebp, dword [0xa1ac6]
mov dword [0xa1c42], edx
mov dword [0xa1d22], ebp
pop ecx
mov dword [esp + 0x24], ebp
mov esi, dword [0xa1a76]
add esp, 0x20
jmp 0x739cb
mov esi, dword [0xa18a6]
mov dword [0xa1af6], ebx
mov dword [esp + 0x70], ebp
mov dword [0xa1a7a], esi
mov ecx, edi
shl edx, cl
pop esi
mov ebx, dword [0xa172a]
mov edi, dword [esp + 0x460]
mov ebp, dword [esp + 0x45c]
mov eax, ecx
mov dword [esp - 8], edx
mov dword [0xa178e], ebp
mov edx, dword [esp + 0x450]
mov dword [esp + 0x48c], edx
mov edx, dword [esp - 8]
add esp, 0x30
mov ebp, esp
add ebp, 0x14
jmp 0x810b1
mov dword [0xa172a], ebx
push ebx
push dword [0x9fac6]
push dword [0x9feee]
call fcn.000811a3
mov dword [0xa1cf2], eax
mov dword [0xa172a], ebx
mov dword [esp + 0x458], ecx
mov dword [esp + 0x488], edi
mov dword [esp + 0x450], ebp
mov dword [0xa1a76], edx
jb 0x82e2e
mov eax, dword [esp + 0xc]
sub edi, 2
je 0x72f0b
dec edi
mov dword [0xa1caa], edi
mov edi, dword [esp + 0x464]
push edi
and edi, 0xff
mov dword [0xa19f2], eax
push esi
mov ebx, dword [esp + 0x46c]
mov dword [esp + 0x454], 0
mov edx, dword [0xa1caa]
mov ebp, dword [0xa1a76]
jmp 0x81280
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x45c]
mov edx, ecx
mov dword [0xa1bd2], edi
mov ebp, dword [0xa1a76]
mov dword [esp - 0x14], 0x22c0
mov edi, dword [esp + 0x34]
sub esp, 0x14
push edi
call ebp
mov edx, dword [esp + 0x468]
mov edi, dword [0xa1cf2]
mov ecx, dword [esp + 0x460]
add esp, 0x28
jmp 0x82c1e

Function at 0x83089
Capabilities:
Rebuild import table
Resolve function by parsing pe exports

Disassembly:
mov edi, dword [0xa0bd6]
mov dword [reloc.KERNEL32.dll_IsDebuggerPresent], eax
mov ecx, dword [0x9fa96]
shl dword [0x9fc76], cl
mov edx, dword [0x9fc76]
mov ecx, dword [0x9fc76]
mov dword [0xa0a62], edx
mov dword [ebp + 0x350], ecx
add esp, 0x24
jmp 0x831c0
Function at 0x83225
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x4a8], edi
mov dword [esp + 0x40], esi
mov ecx, dword [0xa1ac6]
mov edi, dword [esp + 0x47c]
mov dword [0xa1dbe], 1
mov eax, dword [0xa1ac6]
mov dword [esp + 0x46c], ecx
mov dword [esp + 0x468], eax
mov eax, dword [esp + 0x2c]
mov edx, ecx
mov ebp, dword [esp + 0x478]
mov edi, dword [0xa1ac6]
mov esi, dword [0xa1a76]
mov dword [0xa17ce], ebp
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x47c]
mov ecx, dword [0xa1dbe]
add esp, 0x40
jmp 0x739cb
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x47c]
mov edx, ecx
mov dword [0xa1bd2], edi
mov ebp, dword [0xa1a76]
push 0x22c0
push dword [esp + 0x58]
call ebp
mov edx, dword [esp + 0x478]
mov edi, dword [0xa1eb6]
mov ecx, dword [esp + 0x470]
add esp, 0x38
jmp 0x82c1e
mov edi, dword [0xa1e1a]
push dword [esp + 0x58]
mov edx, dword [0xa17aa]
mov dword [0xa1e06], edi
mov dword [esp + 0x34], edx
mov ecx, eax
shl dword [esp + 0x474], cl
mov dword [esp + 0x470], eax
call dword [0xa1a76]
mov edx, dword [esp + 0x478]
mov ecx, dword [esp + 0x468]
mov esi, dword [esp + 0x46c]
mov ebp, dword [0xa1a76]
mov dword [esp + 0x464], esi
mov ebx, dword [0xa1e16]
mov dword [esp + 0x46c], ebx
mov ebx, dword [esp + 0x47c]
mov dword [esp + 0x4a8], esi
add esp, 0x34
jmp 0x8312f
mov dword [0xa172a], ebx
mov dword [esp + 0x478], ecx
mov dword [esp + 0x4a8], edi
mov dword [esp + 0x470], ebp
mov dword [0xa1a76], edx
jb 0x820ad
mov eax, dword [esp + 0x2c]
sub edi, 2
je 0x737ff
dec edi
mov eax, dword [esp + 0x484]
mov dword [0xa1e1a], eax
and eax, 0xff
mov ebp, dword [esp + 0x2c]
mov dword [0xa1b7e], esi
mov ebx, dword [esp + 0x47c]
mov dword [esp + 0x46c], edi
mov dword [0xa1e16], 0
push 0x22c0
mov dword [0xa1cd6], ebp
jmp 0x82ff1
Function at 0x8b0d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebx, dword [ebp - 0x30]
add ebx, dword [0x9fac6]
mov dword [eax + 0xa04], edi
mov edi, dword [eax + 0x768]
mov dword [0xa0942], edi
cld

Function at 0x8b0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebx, dword [ebp - 0x30]
add ebx, dword [0x9fac6]
mov dword [eax + 0xa04], edi
mov edi, dword [eax + 0x768]
mov dword [0xa0942], edi
cld
Function at 0x100a97a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154578
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101fac9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_67::UnicodeMatcher.0
push dword [ebp + 0x14]
lea eax, [esi + 0x34]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov dword [esi], vtable.icu_67::UnicodeSet.0
push dword [ebp + 0xc]
mov dword [esi + 4], vtable.icu_67::UnicodeSet.1.0
push dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x19
mov dword [esi + 0x10], 1
mov byte [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
call sym.icuuc67.dll_usprep_openByType_67
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100a9f80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10154688
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101fac9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], vtable.icu_67::UnicodeMatcher.0
push dword [ebp + 0xc]
lea eax, [esi + 0x34]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], vtable.icu_67::UnicodeSet.0
mov dword [esi + 4], vtable.icu_67::UnicodeSet.1.0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x19
mov dword [esi + 0x10], 1
mov byte [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
call sym.icuuc67.dll_usprep_openByType_67
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100b68a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100b68af
pop dword [ebp - 0x24]
mov eax, 0xcf1bcc73
add eax, 0x40ef9c3c
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x8d5c7
push 0
mov eax, 0x9ba7ae7a
sub eax, 0x8b922d4e
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x553e
xor esi, esi
add esi, eax
mov edx, 0xecae5be5
add edx, 0x23729e1b
add edx, dword [ebp - 0x24]
mov ebx, 0x4f4813eb
sub ebx, 0x4075f413
sub dword [ebp - 4], 0x15216cb0
mov edi, dword [edx]
xor dword [ebp - 0x1c], 0x43986f2f
add edi, ebx
mov dword [esi], edi
add dword [ebp - 0x10], edi
add esi, 0x265e48f8
sub esi, 0x265e48f4
add edx, 4
loop 0x100b690a
add eax, 0x147cb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xef9da9f6
sub ecx, 0xdf9da9f6
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x403132
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp + 0xc], ebx
test ebx, ebx
je 0x4031bc
mov eax, dword [0x4f1074]
mov edi, 0x2000
test eax, eax
jg 0x403189
push edi
push dword [0x4f106c]
push dword [0x4f1090]
call fcn.00419c37
add esp, 0xc
mov dword [0x4f1074], eax
test eax, eax
je 0x4031c4
js 0x4031cb
add dword [0x4f10a0], edi
mov ecx, dword [0x4f106c]
mov dword [0x4f1070], ecx
adc dword [0x4f10a4], 0
mov esi, ebx
cmp ebx, eax
jb 0x403191
mov esi, eax
push esi
push dword [0x4f1070]
push dword [ebp + 8]
call fcn.0040a7a0
mov eax, dword [0x4f1074]
add dword [ebp + 8], esi
add dword [0x4f1070], esi
sub eax, esi
add esp, 0xc
sub ebx, esi
mov dword [0x4f1074], eax
jne 0x40314c
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, ebx
jmp 0x4031bf
push 0x401
mov esi, str.error:__zipfile_read_error_n
push esi
call fcn.0040b780
pop ecx
push eax
push esi
push 0x424f80
call dword [0x4f1380]
add esp, 0x10
xor eax, eax
jmp 0x4031bf

Function at 0x4031f0
Capabilities:
Read file on windows

Disassembly:
push edi
xor edi, edi
cmp dword [0x4f1188], edi
je 0x403200
or eax, 0xffffffff
pop edi
ret
cmp dword [0x42503c], edi
jg 0x403229
jl 0x403212
cmp dword [0x425038], edi
ja 0x403229
or eax, 0xffffffff
add dword [0x425038], eax
mov dword [0x4f1074], edi
pop edi
adc dword [0x42503c], eax
ret
push esi
cmp dword [0x4f1074], edi
jg 0x40329f
mov esi, 0x2000
push esi
push dword [0x4f106c]
push dword [0x4f1090]
call fcn.00419c37
add esp, 0xc
mov dword [0x4f1074], eax
cmp eax, edi
jne 0x40325a
or eax, 0xffffffff
jmp 0x4032b5
jge 0x403284
push 0x401
mov esi, str.error:__zipfile_read_error_n
push esi
call fcn.0040b780
pop ecx
push eax
push esi
push 0x424f80
call dword [0x4f1380]
add esp, 0x10
push 3
call fcn.0040dd21
add dword [0x4f10a0], esi
mov eax, dword [0x4f106c]
mov dword [0x4f1070], eax
adc dword [0x4f10a4], edi
call fcn.004030c8
mov eax, dword [0x4f1070]
dec dword [0x4f1074]
mov al, byte [eax]
inc dword [0x4f1070]
movzx eax, al
pop esi
pop edi
ret
Function at 0x4032b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x4f10ac]
push edi
mov edi, dword [0x4f10a8]
add edi, dword [ebp + 8]
push 0
adc esi, dword [ebp + 0xc]
mov ebx, 0x2000
push ebx
push esi
push edi
call fcn.0040ced0
mov dword [ebp + 8], eax
mov eax, edi
sub eax, dword [ebp + 8]
mov ecx, esi
sbb ecx, edx
test esi, esi
jg 0x40332a
jl 0x4032f5
test edi, edi
jae 0x40332a
push 1
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push dword [0x4f108c]
mov esi, 0x4e5064
push str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
push esi
call fcn.0040ab01
add esp, 0x10
push eax
push esi
push 0x424f80
call dword [0x4f1380]
add esp, 0x10
push 3
pop eax
jmp 0x4033a8
cmp eax, dword [0x4f10a0]
jne 0x40333a
cmp ecx, dword [0x4f10a4]
je 0x403387
push 0
push ecx
push eax
push dword [0x4f1090]
call fcn.0040cde4
push ebx
push dword [0x4f106c]
mov dword [0x4f10a0], eax
push dword [0x4f1090]
mov dword [0x4f10a4], edx
call fcn.00419c37
add esp, 0x1c
mov dword [0x4f1074], eax
test eax, eax
jg 0x403376
push 0x33
jmp 0x403327
mov ecx, dword [ebp + 8]
sub eax, ecx
mov dword [0x4f1074], eax
mov eax, dword [0x4f106c]
jmp 0x40339f
mov edx, dword [0x4f1070]
mov eax, dword [0x4f106c]
mov ecx, dword [ebp + 8]
sub edx, eax
sub edx, ecx
add dword [0x4f1074], edx
add eax, ecx
mov dword [0x4f1070], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405b54
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4240e4]
test eax, eax
je 0x405b66
xor eax, eax
inc eax
leave
ret
push ebx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x405c0a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
push ebx
mov edi, 0x4240e8
push edi
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x405bbb
push eax
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4240e4]
jmp 0x405c08
mov eax, dword [0x4240e4]
test eax, eax
jne 0x405bf2
push 0x424f60
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x424e40
call fcn.0040e4c0
add esp, 0xc
call fcn.00405a87
mov dword [0x4240e4], 1
push 0
push edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407065
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
cmp dword [0x4f109c], edi
jg 0x40715f
jl 0x407097
cmp dword [0x4f1098], 0x2000
ja 0x40715f
push edi
push edi
push edi
push dword [0x4f1090]
call fcn.0040cde4
push dword [0x4f1098]
push dword [0x4f106c]
push dword [0x4f1090]
call fcn.00419c37
mov edx, dword [0x4f1098]
add esp, 0x1c
mov dword [0x4f1074], eax
cmp eax, edx
jne 0x40717b
mov ecx, dword [0x4f106c]
lea eax, [edx + ecx - 0x16]
jmp 0x407103
cmp byte [eax], 0x50
jne 0x407102
push 4
push 0x423008
push eax
call fcn.0040b80b
add esp, 0xc
test eax, eax
je 0x40710e
mov eax, dword [0x4f1070]
mov ecx, dword [0x4f106c]
dec eax
mov dword [0x4f1070], eax
cmp eax, ecx
jae 0x4070de
jmp 0x40717b
mov eax, dword [0x4f106c]
sub eax, dword [0x4f1070]
add dword [0x4f1074], eax
mov eax, dword [0x4f1070]
sub eax, dword [0x4f106c]
push 0x16
cdq
add eax, dword [0x4f10a0]
adc edx, dword [0x4f10a4]
mov dword [0x425028], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x42502c], edx
call fcn.00403132
pop ecx
pop ecx
test eax, eax
jne 0x4071e1
push 0x33
pop eax
jmp 0x4072ae
push 0x12
push 0x423008
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040608b
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jne 0x40711f
cmp dword [0x424fbc], 0
push ebx
mov ebx, 0x401
mov esi, 0x4e5064
mov edi, 0x424f80
jne 0x40719d
cmp dword [0x424f88], 0
je 0x4071be
push ebx
push dword [0x4f108c]
push str.__s__n
push esi
call fcn.0040ab01
add esp, 0xc
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
push ebx
push str.__End_of_central_directory_signature_not_found._n
push esi
call fcn.0040ab01
pop ecx
pop ecx
push eax
push esi
push edi
call dword [0x4f1380]
add esp, 0x10
push 2
pop eax
pop ebx
jmp 0x4072ae
lea eax, [ebp - 0x18]
push eax
call fcn.00403fd9
movzx eax, ax
mov dword [0x4f1138], eax
lea eax, [ebp - 0x16]
push eax
call fcn.00403fd9
movzx eax, ax
mov dword [0x4f113c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403fd9
movzx eax, ax
cdq
mov dword [0x4f1128], eax
lea eax, [ebp - 0x12]
push eax
mov dword [0x4f112c], edx
call fcn.00403fd9
movzx eax, ax
cdq
mov dword [0x4f1130], eax
lea eax, [ebp - 0x10]
push eax
mov dword [0x4f1134], edx
call fcn.00403fed
mov dword [0x4f1118], eax
lea eax, [ebp - 0xc]
push eax
mov dword [0x4f111c], edi
call fcn.00403fed
mov dword [0x4f1120], eax
lea eax, [ebp - 8]
push eax
mov dword [0x4f1124], edi
call fcn.00403fd9
add esp, 0x1c
mov word [0x4f1148], ax
call fcn.00406704
mov esi, eax
cmp esi, 1
jg 0x4072ac
call fcn.00406289
cmp eax, edi
je 0x40728a
cmp esi, eax
jge 0x4072ac
mov esi, eax
jmp 0x4072ac
mov eax, dword [0x4f1120]
add eax, dword [0x4f1118]
mov ecx, dword [0x4f1124]
adc ecx, dword [0x4f111c]
mov dword [0x425030], eax
mov dword [0x425034], ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040da8f
leave
ret
Function at 0x40775f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x2004
xor edi, edi
call fcn.0040a6cc
mov esi, eax
mov dword [0x4f106c], esi
mov dword [esp], 0x10001
call fcn.0040a6cc
pop ecx
mov dword [0x4f11b4], eax
test esi, esi
je 0x4078bb
test eax, eax
je 0x4078bb
add esi, 0x2000
push 0x41e150
mov dword [0x4f10b4], esi
mov word [0x42300c], 0x4b50
mov word [0x423010], 0x4b50
mov word [0x423008], 0x4b50
mov word [section..data], 0x4b50
mov word [0x423004], 0x4b50
call fcn.0041bf1b
pop ecx
call fcn.004141c8
cmp dword [0x424fb4], edi
je 0x407807
mov dword [0x425014], 2
jmp 0x407817
xor eax, eax
cmp dword [0x424fb8], eax
setne al
mov dword [0x425014], eax
call fcn.004073ec
cmp eax, 9
jne 0x40782d
mov ecx, dword [0x4f1084]
mov dword [0x4f108c], ecx
test eax, eax
je 0x40786d
cmp eax, 0x4c
jne 0x40783b
push 9
pop edi
jmp 0x40786d
mov edi, eax
cmp eax, 9
jne 0x40786d
push 1
push dword [0x4f108c]
mov esi, 0x4e5064
push str.unzipsfx:__cannot_find_myself____s__n
push esi
call fcn.0040ab01
add esp, 0xc
push eax
push esi
push 0x424f80
call dword [0x4f1380]
add esp, 0x10
cmp byte [0x4f139c], 0
je 0x4078b2
cmp dword [0x424fbc], 0
jne 0x4078b2
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x4f14a0
call esi
push 0x4f139c
call fcn.00409013
pop ecx
lea eax, [ebp - 0x108]
push eax
call esi
call fcn.00405fda
mov eax, edi
jmp 0x4078e5
push 0x401
push str.error:__cannot_allocate_unzip_buffers_n
mov esi, 0x4e5064
push esi
call fcn.0040ab01
pop ecx
pop ecx
push eax
push esi
push 0x424f80
call dword [0x4f1380]
add esp, 0x10
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040da8f
leave
ret
Function at 0x408aa2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov word [ebp + 9], 0x2f3a
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x408acb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
mov esi, ecx
push 0x41e5ac
push esi
call fcn.0040e5ea
add esp, 0xc
test eax, eax
je 0x408b09
push 2
push 0x41e5a8
push esi
call fcn.0040e5ea
add esp, 0xc
test eax, eax
jne 0x408b1f
mov al, byte [esi + 2]
test al, al
je 0x408b1f
cmp al, 0x2f
je 0x408b1f
cmp al, 0x5c
je 0x408b1f
xor eax, eax
jmp 0x408c48
movzx eax, byte [esi]
push edi
push eax
call fcn.0040adc8
pop ecx
mov edi, 0x104
test eax, eax
je 0x408b39
cmp byte [esi + 1], 0x3a
je 0x408b59
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x408bc7
lea esi, [ebp - 0x20c]
push 2
mov dword [ebp - 0x210], esi
push esi
mov esi, 0x4f15b4
push esi
call fcn.0040e5ea
add esp, 0xc
test eax, eax
je 0x408c44
push 2
push dword [ebp - 0x210]
push esi
call fcn.0040e2c0
add esp, 0xc
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
mov word [0x4f15b6], 0x2f
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x408bcb
mov byte [0x4f15b4], al
xor eax, eax
jmp 0x408c47
push 0xc
pop eax
cmp eax, dword [ebp - 0x214]
push 4
sbb eax, eax
inc eax
mov dword [0x4f15b8], eax
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.0041c109
pop ecx
push eax
call fcn.0040e5ea
add esp, 0xc
test eax, eax
je 0x408c3a
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.0040e5ea
add esp, 0xc
test eax, eax
je 0x408c3a
push 3
lea eax, [ebp - 0x108]
push 0x41e594
push eax
call fcn.0040e5ea
add esp, 0xc
test eax, eax
je 0x408c3a
and dword [0x4f15bc], 0
jmp 0x408c44
mov dword [0x4f15bc], 1
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040da8f
leave
ret