joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bd87
Capabilities:
Check for vm using instruction vpcext

Disassembly:
invalid
xchg esi, eax
mov eax, 0xf047ee2b
sub esp, dword [ecx + edi*2 - 0x6ad3cc1d]
jns 0x45bd6c
xor ebp, dword [edx*4 - 0x6cab5005]
xor ebp, dword [edx*4 - 0x6cab5005]
mov edi, dword [ecx + 0x30]
push eax
daa
lea edi, [ecx - 0x7c06f302]
inc edx
clc
in al, 0x78
cmp dword [edx], 0x32087006
sbb ch, dh
jnp 0x45bdcb
jo 0x45bd89
jnp 0x45bd5a
cmc
wait
sub byte [ecx - 0x48e7ea8c], ah
shr byte [ebp + 0x332df213], 0xc8
outsb dx, byte [esi]
sahf
mov ebp, 0xb450b42f
iretd
jge 0x45be21
jmp 0x211bcc67
mov bh, 4
inc eax
cmc
dec esi
arpl word [eax - 5], bp
shr dword [edi - 0xf], cl
cmp dword [edi], esp
lahf
jge 0x45bdff
jns 0x45be71
dec eax
jl 0x45be63
sbb dword [ebp + esi + 0x3ea2b08a], ebx
xor ebp, dword [ebx]
invalid
in eax, dx
std
mov ah, 0xf0
loope 0x45be3a
clc
test byte [edi + 0x46a0e2d6], dh
add dword [esi + 0x244b40d], esp
sub ecx, dword [esi - 0x6c]
jno 0x45be47
mov byte [edx + eax - 0x5e], ah
pop eax
sub byte [eax + 0x39], ch
int 0x19
je 0x45be04
add ah, byte fs:[edx - 0x5f93d7a8]
cmp ebp, ecx
sbb dword [esi + edi*4 + 0x41], esi
inc ecx
mov eax, dword [0xf0a9ea87]
pop esi
ljmp 0x6487
enter 0xffffffffffffd140, 0x45
iretd
test al, 0xb7
pop esi
aas
test ebp, eax
mov esp, 0xff56b4c1
or dword [ecx], ecx
adc eax, 0xce61b56e
xor al, 0xaf
mov esp, 0xb156a70
cmc
salc
cmp al, 0x4b
jb 0x45bf12
mov edi, 0x59518e93
sbb bh, bl
adc edi, esp
push ebp
out 0x55, eax
and esi, eax
stosd dword es:[edi], eax
adc dh, ch
jb 0x45be9b
loope 0x45bebd
invalid
wait
pop ecx
xchg al, bh
pop ecx
mov byte [0xdd8d4577], al
pop edi
cmp eax, edx
cmp ah, ah
aaa
sub esp, edx
dec ebx
cld
imul edx, dword [ebp - 0x1ea300b1], 0x76459309
xchg ebx, eax
inc ebp
nop
or edi, edi
cmpsd dword [esi], dword es:[edi]
ljmp 0x2d4d
sub dword [esi], edx
loope 0x45bf50
mov ch, 0x7e
push es
aaa
scasd eax, dword es:[edi]
das
aad 0x4c
sub edi, ebp
les eax, [edx]
sub al, 0x8f
invalid
cmp esp, dword [ebx + ebp*8 + 0x32595bc3]
or bh, byte [ecx - 0x5dea8aec]
and eax, 0x62c90145
ror dword [esi + 0x63], 0xb2
adc ch, byte [esi]
dec edi
dec ecx
push ebx
inc ebp
jmp dword [ebp + 7]
Function at 0x4ba7a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3390
cmp edx, dword [eax]
je 0x4ba7c3
add eax, 8
inc ecx
cmp eax, 0x4c3420
jl 0x4ba7b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3390]
jne 0x4ba8f1
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4ba8cb
test eax, eax
jne 0x4ba7f4
cmp dword [0x4c32b8], 1
je 0x4ba8cb
cmp edx, 0xfc
je 0x4ba8f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba82b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb610
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba86e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb610
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb04
push edi
call fcn.004bd4e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb190
lea eax, [ebp - 0xa0]
push 0x4bfae4
push eax
call fcn.004bb190
push dword [esi + 0x4c3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb190
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd454
add esp, 0x2c
pop edi
jmp 0x4ba8f1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3394]
push 0
push eax
push dword [esi]
call fcn.004bb610
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]
pop esi
leave
ret
Function at 0x1006390
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1006428
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10063e8
test dx, dx
je 0x10063e4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10063e8
add eax, 4
add ecx, 4
test dx, dx
jne 0x10063c2
xor eax, eax
jmp 0x10063ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10063fe
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [sym.imp.msvcrt.dll__iob]
push esi
lea ecx, [ebp - 0x208]
push ecx
push edi
add edx, 0x40
push 0x1004770
push edx
call fcn.010061c0
add esp, 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100643d
push 0x1004720
call fcn.01006240
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1006450
Capabilities:
Check mutex on windows
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
mov word [ebp - 0x10], 0xff
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1006473
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x1e]
call fcn.01009960
mov ebx, esp
cmp ebx, edi
jne 0x10064a0
push edi
push edi
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x40
lea eax, [ebp - 0x60]
push edi
push eax
mov dword [ebp - 0x64], 0x44
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x100114c
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 8], esi
jne 0x10064ea
push 0x1004954
call fcn.01006240
mov eax, 8
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x1006520
cmp eax, 0x80
je 0x1006520
push 0x100491c
call fcn.01006240
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ax, word [ebp + 0xc]
cmp ax, di
jne 0x1006536
call dword [sym.imp.imdisk.cpl__ImDiskFindFreeDriveLetter_0]
mov dword [ebp - 4], 1
cmp ax, di
mov word [ebp - 0x10], ax
jne 0x1006576
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x40
push 0x10048e8
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 8
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
push edi
lea edx, [ebp - 0x10]
push edx
call fcn.01006390
test eax, eax
jne 0x10065cf
push edi
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x10065a4
push 0x10048ac
call fcn.01006240
jmp 0x1006557
push edi
lea ecx, [ebp - 0x10]
push ecx
call fcn.01006390
test eax, eax
jne 0x10065cf
push edi
lea edx, [ebp - 0x10]
push edx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x1006557
push 0x1004858
call fcn.01006240
jmp 0x1006557
lea eax, [ebp - 0x10]
push eax
push 0x100483c
call dword [sym.imp.msvcrt.dll_printf]
mov eax, 0x1001168
mov edx, ebx
add esp, 8
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10065f0
lea eax, [ebp - 0x10]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1006604
mov edi, ebx
sub eax, edx
Function at 0x1007840
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
push esi
push 0x80
jne 0x100789d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.imdisk.cpl__ImDiskOpenDeviceByNumber_8]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100796e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1007957
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x40
push ecx
push 0x1005374
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.imdisk.cpl__ImDiskOpenDeviceByMountPoint_8]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100796e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
ja 0x1007912
je 0x1007933
sub eax, 1
je 0x10078ed
sub eax, 0x56
jne 0x1007920
mov ecx, dword [sym.imp.msvcrt.dll__iob]
add ecx, 0x40
push ecx
push 0x1004c78
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 8
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret 8
invalid
invalid
Function at 0x10098f0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x100992d
push 0x10
push 0x1006048
push 0x100601c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0109a000
add esp, 8
push eax
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1009f80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1009f93
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009f8f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1009fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1009fff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1009ff5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100a001
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1009fe5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401218
Capabilities:
Get disk information

Disassembly:
enter 0x54, 0
mov ecx, 0x4031c8
add edx, 0x601b948
push ecx
call sub.KERNEL32.dll_GetACP
pop ecx
push ecx
push edi
push dword [ecx + 0xb0]
push dword [ecx + 0x5c]
call fcn.0040184c
pop ecx
push ecx
call sub.KERNEL32.dll_GetLogicalDrives
pop ecx
add esp, 0x54
pop ebp
ret 8

Function at 0x40131c
Capabilities:
Get disk information
Query environment variable

Disassembly:
enter 0x30, 0
lea esi, [0x403010]
cmp esi, 0x6614
je 0x40131f
add byte [ebp + 0x40301035], cl
add byte [ecx + 0x6614fe], al
add byte [ecx + esi*8 - 0x18], dh
popfd
invalid
call sub.KERNEL32.dll_GetLogicalDrives
push esi
push eax
push dword [esi + 0x138]
push dword [esi + 0x134]
call fcn.0040143c
pop esi
call sub.KERNEL32.dll_GetEnvironmentStringsA
add esp, 0x30
pop ebp
ret 0x10

Function at 0x401364
Capabilities:
Query environment variable

Disassembly:
add al, cl
dec esp
add byte [eax], al
enter 0x4c, 0
mov eax, 0x4030cc
mov ecx, 0xea2ab216
push eax
push eax
mov ecx, esp
push ecx
mov edx, 0x26
push edx
xor dword [esp], 0x66
mov esi, 0x385
push esi
add dword [esp], 0x5e3
mov ebx, 0x403200
push ebx
mov edx, 0x1ec5c36d
mov edx, dword [edx - 0x1e85a321]
call edx
pop edx
pop eax
mov esi, 0x403400
mov dword [eax - 0x10], esi
mov edx, esi
add edx, 0x5d
sub ebx, ebx
add ebx, 0x4020f9
mov edi, 0x568
cmp edi, 0
je 0x4013e9
add edi, 0xfffffffc
mov ecx, dword [ebx]
add ebx, 3
inc ebx
push ecx
pop dword [edx - 0x5d]
add edx, 4
cmp eax, 0xcd3f
jb 0x401363
xor dword [edx - 0x61], 0x847e432a
sub dword [edx - 0x61], 0x4eac6723
jmp 0x4013bd
push eax
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop eax
add esp, 0x4c
pop ebp
ret 8

Function at 0x401584
Capabilities:
Get disk information

Disassembly:
enter 0x30, 0
lea edi, [eax - 0xd8]
xor dword [ebp - 0x28], edx
push 0
call sub.USER32.dll_SetForegroundWindow
push edi
push dword [edi + 0x194]
push dword [edi + 0x14]
push esi
call fcn.004017ac
pop edi
call sub.KERNEL32.dll_GetLogicalDrives
add esp, 0x30
pop ebp
ret 0x10

Function at 0x4016d8
Capabilities:
Get disk information

Disassembly:
enter 0x54, 0
mov edx, 0x4031d0
or dword [ebp - 0x28], esi
push edx
push 0
call sub.KERNEL32.dll_HeapDestroy
pop edx
push edx
push dword [edx + 0x164]
push dword [edx + 0xc8]
call fcn.00401190
pop edx
push edx
call sub.KERNEL32.dll_GetLogicalDrives
pop edx
add esp, 0x54
pop ebp
ret 8

Function at 0x401750
Capabilities:
Query environment variable

Disassembly:
enter 0x28, 0
mov ebx, 0x4030f4
add ecx, dword [ebx + 0xcc]
push 0
call sub.USER32.dll_SetForegroundWindow
push ebx
push dword [ebx + 0x34]
push ecx
call fcn.004014e4
pop ebx
call sub.KERNEL32.dll_GetEnvironmentStringsA
add esp, 0x28
pop ebp
ret 0xc

Function at 0x401814
Capabilities:
Query environment variable

Disassembly:
enter 0x40, 0
lea esi, [edx - 0x134]
or edi, dword [esi + 0x3c]
push esi
push dword [esi + 0x4c]
push edi
push edi
push dword [esi + 0x17c]
call fcn.00401114
pop esi
mov eax, 0
push eax
call sub.KERNEL32.dll_GetTapeStatus
call sub.KERNEL32.dll_GetEnvironmentStringsA
add esp, 0x40
pop ebp
ret 0x10
Function at 0x4018c4
Capabilities:
Query environment variable

Disassembly:
enter 0x20, 0
lea esi, [ebx + 4]
adc dword [esi + 0x68], 0x62
call sub.KERNEL32.dll_GetEnvironmentStringsA
push esi
push edi
push dword [esi + 0x9c]
call fcn.004015f8
pop esi
call sub.KERNEL32.dll_IsDebuggerPresent
add esp, 0x20
pop ebp
ret 0xc

Function at 0x40193c
Capabilities:
Query environment variable

Disassembly:
enter 0x58, 0
lea ebx, [0x403134]
and dword [ebx + 0x7c], 0x3698d551
call sub.KERNEL32.dll_GetCurrentProcessId
push ebx
push dword [ebx + 0x2c]
push eax
push dword [ebx + 0xd0]
push dword [ebx + 0x4c]
call fcn.0040131c
pop ebx
call sub.KERNEL32.dll_GetEnvironmentStringsA
add esp, 0x58
pop ebp
ret 0xc

Function at 0x4019ec
Capabilities:
Get disk information

Disassembly:
enter 0x20, 0
mov edx, 0x403188
add dword [ebp - 0xc], esi
push edx
call sub.KERNEL32.dll_GetLogicalDrives
pop edx
push edx
push dword [edx + 0x20]
push dword [edx + 0x10c]
push ebx
push ebx
call fcn.00401814
pop edx
push edx
push 0
call sub.KERNEL32.dll_HeapDestroy
pop edx
add esp, 0x20
pop ebp
ret 8
Function at 0x402c90
Capabilities:
Inspect section memory permissions
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx]
mov dword [esp], str.Writing_part_header_for__s_t
lea esi, [ebx + 0xc]
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp + 4], str.ramdisk
mov dword [esp], esi
call fcn.004011d8
test eax, eax
jne 0x402d60
mov dword [esp], str.Found_ramdisk
mov esi, 0x80000000
mov edi, 1
call sub.cygwin1.dll_puts
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], str.Write_part_header_part:_s_offset:_i_address:_x__size:_i_n
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x20
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
add esp, 0x40
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x4050a2
mov dword [esp], esi
call fcn.004011d8
test eax, eax
jne 0x402d90
mov dword [esp], str.Found_ipl
mov esi, 0x40000000
mov edi, 1
call sub.cygwin1.dll_puts
jmp 0x402cdd
mov dword [esp + 4], str.cmdline
mov dword [esp], esi
call fcn.004011d8
test eax, eax
je 0x402dd8
mov dword [esp + 4], 0x4050c6
mov dword [esp], esi
call fcn.004011d8
test eax, eax
jne 0x402df8
mov dword [esp], str.Found_rpm
mov esi, 0x1000000
mov edi, 1
call sub.cygwin1.dll_puts
jmp 0x402cdd
mov dword [esp], str.Found_cmdline
mov esi, 0x20000000
mov edi, 4
call sub.cygwin1.dll_puts
jmp 0x402cdd
mov dword [esp], str.Using_zero_flag
xor esi, esi
mov edi, 1
call sub.cygwin1.dll_puts
jmp 0x402cdd
Function at 0x402e10
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp + 4], str.cmdline
mov dword [esp], ebx
call fcn.004011d8
mov edx, eax
mov eax, 0x20000000
test edx, edx
jne 0x402e90
cmp eax, dword [0x408038]
je 0x402f08
cmp eax, dword [0x408058]
je 0x402f20
cmp eax, dword [0x408078]
je 0x402f30
cmp eax, dword [0x408098]
je 0x402f37
cmp eax, dword [0x4080b8]
je 0x402f3e
mov dword [esp + 4], eax
mov dword [esp], str.Address_of__x_cannot_found_from_header_file
call sub.cygwin1.dll_printf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
nop
mov dword [esp + 4], str.kernel
mov dword [esp], ebx
call fcn.004011d8
mov edx, eax
xor eax, eax
test edx, edx
je 0x402e33
mov dword [esp + 4], str.ramdisk
mov dword [esp], ebx
call fcn.004011d8
mov edx, eax
mov eax, 0x80000000
test edx, edx
je 0x402e33
mov dword [esp + 4], 0x4050c6
mov dword [esp], ebx
call fcn.004011d8
mov edx, eax
mov eax, 0x1000000
test edx, edx
je 0x402e33
mov dword [esp + 4], 0x4050a2
mov dword [esp], ebx
call fcn.004011d8
test eax, eax
jne 0x402f45
mov eax, 0x40000000
jmp 0x402e33
xor eax, eax
shl eax, 5
mov eax, dword [eax + 0x40802c]
add esp, 0x18
pop ebx
ret
mov eax, 1
jmp 0x402f0a
mov eax, 2
jmp 0x402f0a
mov eax, 3
jmp 0x402f0a
mov eax, 4
jmp 0x402f0a
mov eax, dword [ebx]
mov dword [esp], str.Unknown_flag_:__s_n
mov dword [esp + 4], eax
call sub.cygwin1.dll_printf
mov dword [esp], 1
call sub.cygwin1.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x402f70
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp], str.Usage:_n
call sub.cygwin1.dll_puts
mov dword [esp], str.For_packing
call sub.cygwin1.dll_puts
mov dword [esp], str.If_you_have_header_file_containing_address_of_kernel__ramdisk_etc..
call sub.cygwin1.dll_puts
mov dword [esp], str.elftool_pack__o_output_path_headerpath_to_header_kernel_path_ramdisk_path_ramdisk_ipl_path_ipl_rpm_path_rpm_cmdline_path_cmdline_n
call sub.cygwin1.dll_puts
mov dword [esp], str.elftool_pack__o_output_path_kernel_path_address_ramdisk_path_address_ramdisk_ipl_path_address_ipl_rpm_path_address_rpm_cmdline_path_cmdline_n
call sub.cygwin1.dll_puts
mov dword [esp], str.For_unpacking
call sub.cygwin1.dll_puts
mov dword [esp], str.elftool_unpack__i_input_path__o_output_path
call sub.cygwin1.dll_puts
mov dword [esp], 1
call sub.cygwin1.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x4037a6
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x7a9000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x7a9000
je 0x4037c5
push ebx
call fcn.004058de
jmp 0x4037cb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x7a2ba4]
test esi, esi
je 0x40381e
mov ecx, dword [0x7a2b68]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x7a2ba0]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x403803
test esi, esi
jne 0x4037ed
jmp 0x40381e
mov edx, dword [ecx + 2]
mov dword [0x7a2340], edx
mov edx, dword [ecx + 6]
mov dword [0x7a2c08], edx
lea edx, [ecx + 0xa]
mov dword [0x7a233c], edx
cmp dword [0x7a233c], 0
jne 0x403839
cmp di, 0xffff
jne 0x403835
mov edi, 0x3ff
jmp 0x4037cd
xor edi, edi
jmp 0x4037cd
movzx eax, word [ecx]
push eax
push ebx
call fcn.004058c5
push 0xfffffffffffffffe
push 0x7a2360
call fcn.00405973
push eax
push dword [0x79f148]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x7a2b8c]
mov esi, dword [0x7a2b88]
test eax, eax
je 0x403886
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x40387d
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00405973
add esi, 0x418
dec edi
jne 0x40386d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405200
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x7a0970], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405224
test al, 0x10
jne 0x405227
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x7a0970
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405252
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8