joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d80
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
mov dword [esp + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x404da0
mov esi, str.EnumMOSCHIPQUAD_SERIAL_INTERFACE
jmp 0x404dad
mov esi, str.SystemCurrentControlSetEnumMOSCHIPQUAD_SERIAL_INTERFACE
mov ecx, ebx
push esi
call fcn.00405810
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e3f
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
mov esi, 1
call edi
test eax, eax
jne 0x404e31
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.00405a50
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebx
call fcn.00405970
test eax, eax
je 0x404e18
sub esi, 2
jns 0x404e18
xor esi, esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
mov eax, esi
push 0x104
push ecx
push eax
push edx
inc esi
call edi
test eax, eax
je 0x404deb
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x404e88
cmp eax, 2
je 0x404e88
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x404e7d
mov edx, dword [esp + 0xc]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x404e96
mov esi, str.EnumMOSCHIPQUAD_SERIAL_INTERFACE
jmp 0x404ea3
mov esi, str.SystemCurrentControlSetEnumMOSCHIPQUAD_SERIAL_INTERFACE
mov ecx, ebx
push esi
call fcn.00405810
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00405970
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x4052e0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x405478
push str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
call fcn.00405810
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionPorts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405373
cmp eax, 2
je 0x405478
push 0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x4397d0]
test eax, eax
je 0x405360
mov edx, dword [esp + 0xc]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
add esp, 0x114
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor esi, esi
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x2c]
mov eax, esi
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
mov dword [esp + 0x30], 0x104
inc esi
call edi
test eax, eax
jne 0x40546b
cmp dword [esp + 0x10], 4
jb 0x40537d
push 3
lea eax, [esp + 0x20]
push 0x437600
push eax
call fcn.0040f100
add esp, 0xc
test eax, eax
je 0x4053e4
push 3
lea ecx, [esp + 0x20]
push 0x4375fc
push ecx
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x40537d
push 3
lea edx, [esp + 0x20]
push 0x437600
push edx
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x405452
lea eax, [esp + 0x1f]
push eax
call fcn.0040f338
add esp, 4
test eax, eax
jle 0x40537d
cmp eax, 0x100
jg 0x40537d
push eax
mov ecx, ebp
call fcn.00405a10
test eax, eax
je 0x40537d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40537d
dec esi
jns 0x40537d
xor esi, esi
jmp 0x40537d
push 3
lea eax, [esp + 0x20]
push 0x4375fc
push eax
call fcn.0040f100
add esp, 0xc
jmp 0x40537d
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x114
ret
Function at 0x405970
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x104
test eax, eax
push esi
push edi
mov edi, dword [esp + 0x114]
push edi
jne 0x405997
mov eax, dword [esp + 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4059a4
mov edx, dword [esp + 0x114]
push edx
call fcn.00405cf0
mov esi, eax
cmp esi, 2
jne 0x4059bb
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret 8
test esi, esi
je 0x4059f4
push edi
push str.Failed_to_delete
lea eax, [esp + 0x10]
push str._s_HKEY_LOCAL_MACHINE_Registry_Key_n_s.
push eax
call fcn.0040f09b
mov eax, dword [0x4397d0]
add esp, 0x10
test eax, eax
je 0x4059f4
push 0x30
lea ecx, [esp + 0xc]
push str.RegDeleteKey_Failed
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x104
ret 8
Function at 0x405cf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [esp + 0x11c]
push eax
push 0xf003f
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x405dc2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x405d79
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, ebp
call fcn.00405cf0
mov esi, eax
test esi, esi
jne 0x405df3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0x104
push eax
push esi
push ecx
call edi
mov esi, eax
test esi, esi
je 0x405d46
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
mov dword [esp + 0x10], 0
jne 0x405dc2
mov ecx, dword [esp + 0x11c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
test esi, esi
je 0x405dc2
mov eax, dword [0x4397d0]
test eax, eax
je 0x405dc2
push 0x30
push str.MySHDeleteKey_Failed
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, 2
je 0x405de4
test esi, esi
je 0x405de4
mov eax, dword [0x4397d0]
test eax, eax
je 0x405de4
push 0x30
push str.MySHDeleteKey_Failed
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
Function at 0x405e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x405f19
push str.HARDWAREDEVICEMAPSERIALCOMM
call fcn.00405810
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f19
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
mov eax, 0x104
push edx
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
push 0
lea ecx, [esp + 0x134]
mov eax, esi
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
inc esi
call ebx
test eax, eax
jne 0x405f0b
cmp dword [esp + 0x10], 4
jb 0x405e5d
mov edi, 0x437600
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push 0x437600
push eax
call fcn.0040f100
add esp, 0xc
test eax, eax
jne 0x405e5d
mov edi, 0x437600
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x20]
push ecx
call fcn.0040f338
add esp, 4
test eax, eax
jbe 0x405e5d
cmp eax, 0x100
ja 0x405e5d
dec eax
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
mov al, 1
lea edx, [edx + ebp + 0x28]
shl al, cl
or byte [edx], al
jmp 0x405e5d
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x218
ret
Function at 0x405f30
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 8], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406038
push ebx
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Desktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ecx, 0xffffffff
mov edi, str..__
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
pop edi
add esp, 0x110
ret 4
Function at 0x406110
Capabilities:
Access peb ldr_data
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42abbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d], bl
push ecx
lea ecx, [esp + 0xc]
call fcn.0041f391
push str.:Mos24Ser
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], ebx
call fcn.0041f617
push ebx
lea ecx, [esp + 0xc]
call fcn.0041f63e
call fcn.004200c7
cmp eax, ebx
je 0x406196
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x406198
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], 0x410
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
call fcn.004277a0
mov eax, dword [eax + 0x10]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x2a], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea ecx, [esp + 8]
mov dword [esp + 0x138], 0xffffffff
call fcn.0041f323
mov ecx, dword [esp + 0x130]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x40f3e2
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x42e968
call fcn.00412d90
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40f599
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x40f43f
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40f599
mov eax, dword [esi + 0x10]
mov dword [0x43b810], eax
mov eax, dword [esi + 4]
mov dword [0x43b81c], eax
mov eax, dword [esi + 8]
mov dword [0x43b820], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x43b814], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x43b810], 2
je 0x40f47d
or byte [0x43b815], 0x80
mov eax, dword [0x43b81c]
shl eax, 8
add eax, dword [0x43b820]
mov dword [0x43b818], eax
call fcn.0040f386
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004144d4
pop ecx
test eax, eax
jne 0x40f4ae
push 0x1c
call fcn.0040f362
pop ecx
call fcn.004126ae
test eax, eax
jne 0x40f4bf
push 0x10
call fcn.0040f362
pop ecx
mov dword [ebp - 4], ebx
call fcn.004142a6
test eax, eax
jge 0x40f4d3
push 0x1b
call fcn.0040f33d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43d360], eax
call fcn.00414180
mov dword [0x43b7f4], eax
call fcn.004140df
test eax, eax
jge 0x40f4f9
push 8
call fcn.0040f33d
pop ecx
call fcn.00413e95
test eax, eax
jge 0x40f50a
push 9
call fcn.0040f33d
pop ecx
call fcn.00410c6d
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40f51d
push eax
call fcn.0040f33d
pop ecx
call fcn.00413e2c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x40f530
movzx eax, word [ebp - 0x40]
jmp 0x40f533
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.0041df47
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x40f554
push esi
call fcn.00410d82
call fcn.00410da4
jmp 0x40f586
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x40f59e
mov eax, 0xff
call fcn.00412dcb
ret
Function at 0x413b17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x438ba0]
je 0x413b2f
inc eax
cmp eax, 0x12
jb 0x413b20
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x438ba0]
mov dword [ebp + 8], esi
jne 0x413c75
mov eax, dword [0x43b7fc]
cmp eax, 1
push ebx
je 0x413c45
test eax, eax
jne 0x413b64
cmp dword [0x438654], 1
je 0x413c45
cmp ecx, 0xfc
je 0x413c74
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x43b878
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x43b892
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x43b996], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413bb2
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x43b892
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413bb7
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x413bea
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413bcb
sub eax, edx
push 3
lea eax, [eax + 0x43b857]
push 0x42f2a4
push eax
call fcn.00417710
add esp, 0xc
mov edx, 0x43b878
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413bf2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x438ba4]
mov esi, 0x42f2a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413c0d
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413c19
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00418409
add esp, 0xc
pop edi
jmp 0x413c74
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x413c74
mov esi, dword [esi + 0x438ba4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x413c5c
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x415bbe
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.00410700
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415c59
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 [0x43b810]
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 0x415c59
cmp eax, 1
je 0x415c7a
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 0x415c59
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x415c26
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x415c55
xor eax, eax
inc eax
jmp 0x415c99
cmp edi, eax
jae 0x415c5d
xor eax, eax
jmp 0x415c99
cmp eax, esi
jae 0x415c64
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 [0x43b810]
jmp 0x415c7d
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 0x415ca1
Capabilities:
Get disk information

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x415d42
push ebx
call fcn.00415ca1
test eax, eax
pop ecx
jne 0x415d13
call fcn.00410f62
mov dword [eax], 0xf
call fcn.00410f4f
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
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 0x415d55
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415d0c
inc eax
cmp eax, esi
ja 0x415d0c
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x415d87
cmp eax, dword [ebp + 0x10]
jg 0x415d6d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040fb96
mov edi, eax
test edi, edi
pop ecx
jne 0x415d9c
call fcn.00410f4f
mov dword [eax], 0xc
jmp 0x415d0c
cmp eax, dword [ebp + 0x10]
jle 0x415d9c
call fcn.00410f4f
mov dword [eax], 0x22
jmp 0x415d0c
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x415da8
mov eax, edi
jmp 0x415d0e
Function at 0x4178f7
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 0x417925
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 0x41792c
cmp ebx, dword [eax + 4]
jae 0x41792c
xor eax, eax
jmp 0x417b1c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41793d
xor eax, eax
inc eax
jmp 0x417b1b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417953
cmp ecx, edx
jae 0x417a98
cmp dword [eax + 4], 0
je 0x41795c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417944
cmp dword [ebp + 8], 0
je 0x41797e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417a98
cmp eax, esi
jae 0x417a98
mov eax, dword [0x43bed8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4179a3
cmp dword [esi*4 + 0x43bee0], edi
je 0x417a9c
inc esi
cmp esi, eax
jl 0x417991
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417b18
cmp dword [ebp - 8], 0x1000000
jne 0x417b18
test byte [ebp - 0xc], 0xcc
je 0x417a21
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417b18
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417b18
cmp word [eax + 0x18], 0x10b
jne 0x417b18
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417b18
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417a21
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417a21
test byte [ecx + 0x27], 0x80
jne 0x417a98
push 1
push 0x43bf20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417935
mov ecx, dword [0x43bed8]
test ecx, ecx
mov edx, ecx
jle 0x417a55
lea eax, [ecx*4 + 0x43bedc]
cmp dword [eax], edi
je 0x417a55
dec edx
sub eax, 4
test edx, edx
jg 0x417a49
test edx, edx
jne 0x417a86
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417a62
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417a7a
lea eax, [edx*4 + 0x43bee0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417a68
cmp ecx, 0x10
jge 0x417a86
inc ecx
mov dword [0x43bed8], ecx
push 0
push 0x43bf20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417935
xor eax, eax
jmp 0x417b1b
test esi, esi
jle 0x417935
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43bf20
call ebx
test eax, eax
jne 0x417935
cmp dword [esi*4 + 0x43bee0], edi
je 0x417af2
mov eax, dword [0x43bed8]
lea esi, [eax - 1]
test esi, esi
jl 0x417ae0
cmp dword [esi*4 + 0x43bee0], edi
je 0x417adc
dec esi
jns 0x417ad0
test esi, esi
jge 0x417af0
cmp eax, 0x10
jge 0x417aeb
inc eax
mov dword [0x43bed8], eax
lea esi, [eax - 1]
jmp 0x417af2
je 0x417b0a
xor ecx, ecx
test esi, esi
jl 0x417b0a
lea eax, [ecx*4 + 0x43bee0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417af8
push 0
push 0x43bf20
call ebx
jmp 0x417935
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret