joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [str.temp_value]
mov ecx, dword [0x419de8]
mov dx, word [0x419dec]
push esi
push edi
mov dword [esp + 0x118], eax
mov al, byte [0x419dee]
mov dword [esp + 0x11c], ecx
mov byte [esp + 0x122], al
mov word [esp + 0x120], dx
mov edx, dword [0x419ddc]
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x123]
rep stosd dword es:[edi], eax
mov ecx, dword [str.Software]
mov al, byte [0x419de0]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
mov dword [esp + 0x24], edx
push 0
lea edx, [esp + 0x24]
push edx
push 0x80000002
mov byte [esp + 0x34], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406ee6
mov eax, dword [str.oracle_oui_tmp]
mov ecx, dword [0x419dcc]
mov edx, dword [0x419dd0]
mov dword [esp + 0x18], eax
mov ax, word [0x419dd4]
mov dword [esp + 0x1c], ecx
mov cl, byte [0x419dd6]
mov word [esp + 0x24], ax
lea eax, [esp + 0x118]
mov dword [esp + 0x20], edx
mov byte [esp + 0x26], cl
lea edx, [eax + 1]
jmp 0x406eb0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406eb0
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
lea edx, [esp + 0x11c]
push edx
push 1
push 0
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x406eee
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push str.oracle_oui_tmp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push str.temp_key
push 0
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406ee6
mov edx, dword [esp + 0xc]
push str.oracle_oui_tmp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406f60
Capabilities:
Set console window title

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov word [esp + 0xe], 0x7d0
mov word [esp + 0xc], 0x50
mov ecx, dword [esp + 0xc]
push ecx
push 0xfffffffffffffff5
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push str.Oracle_Universal_Installer
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x16]
push eax
push 1
add edx, 0x28
push 0xfffffffffffffff5
mov word [esp + 0x28], dx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push 0xfffffffffffffff5
call ebx
push 0x4000
push eax
call fcn.0040d508
push 0x419df0
push eax
call fcn.0040d267
push 0
push 4
mov esi, eax
push 0
mov ecx, 8
mov edi, 0x421070
push 0x421070
rep movsd dword es:[edi], dword [esi]
call fcn.0040d1c6
add esp, 0x20
push 0xfffffffffffffff6
call ebx
push 0x4000
push eax
call fcn.0040d508
push 0x4198a0
push eax
call fcn.0040d267
push 0
push 4
mov esi, eax
push 0
mov ecx, 8
mov edi, 0x421050
push 0x421050
rep movsd dword es:[edi], dword [esi]
call fcn.0040d1c6
add esp, 0x20
push 0xfffffffffffffff4
call ebx
push 0x4000
push eax
call fcn.0040d508
push 0x419df0
push eax
call fcn.0040d267
mov ecx, 8
mov esi, eax
mov edi, 0x421090
push 0
rep movsd dword es:[edi], dword [esi]
push 4
push 0
push 0x421090
call fcn.0040d1c6
add esp, 0x20
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x40b965
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b992
test byte [esp + 8], 0x80
je 0x40b980
and eax, 0xfffffffe
jmp 0x40b983
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40b9a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040fa3d
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40bf60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4229a4], esi
push edi
jne 0x40bf80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4229a0], esi
mov byte [0x42299c], al
jne 0x40bfe6
mov ecx, dword [0x424470]
test ecx, ecx
je 0x40bfc7
mov eax, dword [0x42446c]
sub eax, 4
cmp eax, ecx
jmp 0x40bfc0
mov eax, dword [eax]
test eax, eax
je 0x40bfb2
call eax
mov eax, dword [0x42446c]
sub eax, 4
cmp eax, dword [0x424470]
mov dword [0x42446c], eax
jae 0x40bfaa
mov eax, 0x421024
mov esi, 0x42102c
cmp eax, esi
mov edi, eax
jae 0x40bfe6
mov eax, dword [edi]
test eax, eax
je 0x40bfdf
call eax
add edi, 4
cmp edi, esi
jb 0x40bfd7
mov eax, 0x421030
mov esi, 0x421034
cmp eax, esi
mov edi, eax
jae 0x40c005
mov eax, dword [edi]
test eax, eax
je 0x40bffe
call eax
add edi, 4
cmp edi, esi
jb 0x40bff6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40c01f
push dword [ebp + 8]
mov dword [0x4229a4], 1
call fcn.0040bec6
pop ebp
ret
Function at 0x40d71d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41b1a8
call fcn.00413894
mov edi, 0x94
mov eax, edi
call fcn.0040b8d0
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 [0x422964], ecx
mov eax, dword [esi + 4]
mov dword [0x422970], eax
mov edx, dword [esi + 8]
mov dword [0x422974], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x422968], esi
cmp ecx, 2
je 0x40d77d
or esi, 0x8000
mov dword [0x422968], esi
shl eax, 8
add eax, edx
mov dword [0x42296c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d7b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d7b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d7d0
cmp eax, 0x20b
je 0x40d7bd
mov dword [ebp - 0x1c], esi
jmp 0x40d7e4
cmp dword [ecx + 0x84], 0xe
jbe 0x40d7b8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d7de
cmp dword [ecx + 0x74], 0xe
jbe 0x40d7b8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040d913
pop ecx
test eax, eax
jne 0x40d810
cmp dword [0x4229b0], 1
jne 0x40d7fd
call fcn.00413ebf
push 0x1c
call fcn.00413d48
push 0xff
call fcn.0040bec6
pop ecx
pop ecx
call fcn.004113e0
mov dword [ebp - 4], esi
call fcn.0040f1aa
test eax, eax
jge 0x40d829
push 0x1b
call fcn.0040d6f8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424464], eax
call fcn.0041439b
mov dword [0x4229a8], eax
call fcn.004142f9
test eax, eax
jge 0x40d84f
push 8
call fcn.0040d6f8
pop ecx
call fcn.004140c6
test eax, eax
jge 0x40d860
push 9
call fcn.0040d6f8
pop ecx
push 1
call fcn.0040bef6
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d876
push eax
call fcn.0040d6f8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00414069
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d897
movzx eax, word [ebp - 0x40]
jmp 0x40d89a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b180
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d8b8
push edi
call fcn.0040c021
call fcn.0040c043
jmp 0x40d8ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004138cf
ret
Function at 0x40f6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x424328]
mov eax, dword [0x421558]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40f8a6
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x424340]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40f8a6
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40f74a
xor eax, eax
jmp 0x40f8ba
test al, 0x20
je 0x40f75b
push 2
push edi
push edi
push ecx
call fcn.00414e65
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f830
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40f877
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40f7bd
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40f7ae
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40f790
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f7fd
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40f809
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40f784
jmp 0x40f80b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40f8a1
cmp dword [ebp + 0x3a4], edi
je 0x40f877
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40f869
mov dword [0x42295c], eax
jmp 0x40f8ad
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f85b
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40f80b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40f80b
push dword [ebp + 0x3a4]
call fcn.0040fa3d
pop ecx
jmp 0x40f8b7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40f88f
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40f743
mov dword [0x422958], 0x1c
mov dword [0x42295c], edi
jmp 0x40f8b7
sub eax, dword [ebp - 0x7c]
jmp 0x40f8ba
and dword [0x42295c], 0
mov dword [0x422958], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040facd
add ebp, 0x39c
leave
ret
Function at 0x411468
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x424328]
push edi
jae 0x41163d
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x424340]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x41163d
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x411513
test dl, 2
jne 0x411513
test dl, 0x48
je 0x4114dd
cmp byte [eax + 5], 0xa
je 0x4114dd
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411526
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41150e
mov dword [0x42295c], ecx
jmp 0x411644
cmp eax, 0x6d
jne 0x41151a
xor eax, eax
jmp 0x411651
push eax
call fcn.0040fa3d
pop ecx
jmp 0x41164e
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x411638
test eax, eax
je 0x41154d
cmp byte [ebx], 0xa
jne 0x41154d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x411556
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x411632
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x411622
cmp al, 0xd
je 0x411588
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x411614
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4115a2
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41159d
add dword [ebp - 8], 2
jmp 0x4115f6
mov dword [ebp - 8], eax
jmp 0x411610
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4115ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411610
cmp dword [ebp - 0x10], 0
je 0x411610
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4115eb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4115f6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x411613
cmp ebx, dword [ebp + 0xc]
jne 0x4115fb
cmp byte [ebp - 1], 0xa
jne 0x4115fb
mov byte [ebx], 0xa
jmp 0x411613
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414f04
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x411614
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x41156c
jmp 0x411632
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x411632
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x411651
and dword [0x42295c], 0
mov dword [0x422958], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4137ae
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.0040b8d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413849
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 [0x422964]
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 0x413849
cmp eax, 1
je 0x41386a
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 0x413849
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413816
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413845
xor eax, eax
inc eax
jmp 0x413889
cmp edi, eax
jae 0x41384d
xor eax, eax
jmp 0x413889
cmp eax, esi
jae 0x413854
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 [0x422964]
jmp 0x41386d
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 0x413c17
Capabilities:
Get disk information

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x421558]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x413cc4
push ebx
call fcn.00413c17
test eax, eax
pop ecx
jne 0x413c93
mov dword [0x42295c], 0xf
mov dword [0x422958], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040facd
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 0x413cd6
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x413c86
inc eax
cmp eax, 0x104
ja 0x413c86
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x413d0d
cmp eax, dword [ebp + 0x10]
jg 0x413cf1
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040b2a2
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x413d21
mov dword [0x422958], 0xc
jmp 0x413c86
cmp eax, dword [ebp + 0x10]
jle 0x413d21
mov dword [0x422958], 0x22
jmp 0x413c86
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004130b0
pop ecx
pop ecx
jmp 0x413c88

Function at 0x413d48
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x421558]
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 + 0x421898]
je 0x413d7d
inc eax
cmp eax, 0x13
jb 0x413d6e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421898]
jne 0x413ea3
mov eax, dword [0x4229b0]
cmp eax, 1
je 0x413e7b
cmp eax, edx
jne 0x413dad
cmp dword [0x4213d4], 1
je 0x413e7b
cmp ecx, 0xfc
je 0x413ea3
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 0x413de3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004130b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00411130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x413e17
mov eax, edi
push eax
call fcn.00411130
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f3ec
push edi
call fcn.0040ba60
add esp, 0x10
push edi
call fcn.00411130
push dword [esi + 0x42189c]
mov ebx, eax
call fcn.00411130
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040b8d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004130b0
push edi
push ebx
call fcn.004130c0
push 0x419af4
push ebx
call fcn.004130c0
push dword [esi + 0x42189c]
push ebx
call fcn.004130c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00417c82
add esp, 0x2c
jmp 0x413ea3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42189c]
push dword [esi]
call fcn.00411130
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.0040facd
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x417436
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 0x417464
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 0x41746b
cmp ebx, dword [eax + 4]
jae 0x41746b
xor eax, eax
jmp 0x41765b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41747c
xor eax, eax
inc eax
jmp 0x41765a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417492
cmp ecx, edx
jae 0x4175d7
cmp dword [eax + 4], 0
je 0x41749b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417483
cmp dword [ebp + 8], 0
je 0x4174bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4175d7
cmp eax, esi
jae 0x4175d7
mov eax, dword [0x422c40]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4174e2
cmp dword [esi*4 + 0x422c48], edi
je 0x4175db
inc esi
cmp esi, eax
jl 0x4174d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417657
cmp dword [ebp - 8], 0x1000000
jne 0x417657
test byte [ebp - 0xc], 0xcc
je 0x417560
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417657
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417657
cmp word [eax + 0x18], 0x10b
jne 0x417657
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417657
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417560
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417560
test byte [ecx + 0x27], 0x80
jne 0x4175d7
push 1
push 0x422c88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417474
mov ecx, dword [0x422c40]
test ecx, ecx
mov edx, ecx
jle 0x417594
lea eax, [ecx*4 + 0x422c44]
cmp dword [eax], edi
je 0x417594
dec edx
sub eax, 4
test edx, edx
jg 0x417588
test edx, edx
jne 0x4175c5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4175a1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4175b9
lea eax, [edx*4 + 0x422c48]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4175a7
cmp ecx, 0x10
jge 0x4175c5
inc ecx
mov dword [0x422c40], ecx
push 0
push 0x422c88
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417474
xor eax, eax
jmp 0x41765a
test esi, esi
jle 0x417474
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x422c88
call ebx
test eax, eax
jne 0x417474
cmp dword [esi*4 + 0x422c48], edi
je 0x417631
mov eax, dword [0x422c40]
lea esi, [eax - 1]
test esi, esi
jl 0x41761f
cmp dword [esi*4 + 0x422c48], edi
je 0x41761b
dec esi
jns 0x41760f
test esi, esi
jge 0x41762f
cmp eax, 0x10
jge 0x41762a
inc eax
mov dword [0x422c40], eax
lea esi, [eax - 1]
jmp 0x417631
je 0x417649
xor ecx, ecx
test esi, esi
jl 0x417649
lea eax, [ecx*4 + 0x422c48]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417637
push 0
push 0x422c88
call ebx
jmp 0x417474
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret