joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x63bc17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x6595f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x6595f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x6583fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63bc1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x404240
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c4
call fcn.0040a010
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44b368]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x44b36c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404230
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x44b370]
mov edx, dword [0x44b374]
add edi, 0x23f
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x452afc]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4042cc
mov dword [0x452af8], 0xedeb2e40
jmp 0x4042e7
cmp eax, 0x3eb
jne 0x4042e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x452588], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x452afc], 0x9e6
mov dword [0x452af4], 0xf4ea3dee
jne 0x404320
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x452afc], 0x213
jne 0x4043d0
push 0
lea eax, [ebp - 0x4c4]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x14c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0x403ed8
push 0x403f24
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x452afc], 0xc
jne 0x4043e4
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042a0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404430
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040a010
mov eax, dword [0x452afc]
mov ecx, dword [0x45258c]
shr eax, 3
test eax, eax
jbe 0x40454c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x452afc], 0x959
jne 0x404532
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404240
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406f80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a5f8]
jne 0x406f8a
repz ret
jmp fcn.0040bc1e

Function at 0x40b845
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408bf4
and dword [ebp - 4], 0
cmp dword [0x450578], 0
mov ebx, eax
jne 0x40b8f6
push 0x401c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401c40
push edi
call esi
test eax, eax
je 0x40b9a7
push eax
call fcn.00408b82
mov dword [esp], 0x401c30
push edi
mov dword [0x450578], eax
call esi
push eax
call fcn.00408b82
mov dword [esp], 0x401c1c
push edi
mov dword [0x45057c], eax
call esi
push eax
call fcn.00408b82
mov dword [esp], 0x401c00
push edi
mov dword [0x450580], eax
call esi
push eax
call fcn.00408b82
pop ecx
mov dword [0x450588], eax
test eax, eax
je 0x40b8f6
push 0x401be8
push edi
call esi
push eax
call fcn.00408b82
pop ecx
mov dword [0x450584], eax
mov eax, dword [0x450584]
cmp eax, ebx
je 0x40b94e
cmp dword [0x450588], ebx
je 0x40b94e
push eax
call fcn.00408bfd
push dword [0x450588]
mov esi, eax
call fcn.00408bfd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b94e
test edi, edi
je 0x40b94e
call esi
test eax, eax
je 0x40b945
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b945
test byte [ebp - 0xc], 1
jne 0x40b94e
or dword [ebp + 0x10], 0x200000
jmp 0x40b987
mov eax, dword [0x45057c]
cmp eax, ebx
je 0x40b987
push eax
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b987
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b987
mov eax, dword [0x450580]
cmp eax, ebx
je 0x40b987
push eax
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b987
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450578]
call fcn.00408bfd
pop ecx
test eax, eax
je 0x40b9a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100bcce0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100bcecd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x78000]
push edi
or ebp, 0xffffffff
jmp 0x100bcd0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100bcd11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100bcd00
mov eax, 1
add ebx, ebx
jne 0x100bcd23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100bcd34
jne 0x100bcd53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100bcd53
dec eax
add ebx, ebx
jne 0x100bcd40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100bcd18
add ebx, ebx
jne 0x100bcd4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100bcda5
xor ecx, ecx
sub eax, 3
jb 0x100bcd6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100bcdda
sar eax, 1
mov ebp, eax
jmp 0x100bcd76
add ebx, ebx
jne 0x100bcd76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100bcd44
inc ecx
add ebx, ebx
jne 0x100bcd84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100bcd44
add ebx, ebx
jne 0x100bcd91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100bcd86
jne 0x100bcda2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100bcd86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100bcdc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100bcdb6
jmp 0x100bcd06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100bcdc4
add edi, ecx
jmp 0x100bcd06
pop esi
mov edi, esi
mov ecx, 0x36bd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100bcde2
cmp byte [edi], 0x12
jne 0x100bcde2
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 0x100bcde7
lea edi, [esi + 0xb5000]
mov eax, dword [edi]
or eax, eax
je 0x100bce5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbc904]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbc9e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100bce14
mov ecx, edi
jns 0x100bce43
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 + 0xbc9e4]
or eax, eax
je 0x100bce59
mov dword [ebx], eax
add ebx, 4
jmp 0x100bce31
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100bce90
cmp al, 0xef
ja 0x100bce83
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100bce65
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100bce72
mov ebp, dword [esi + 0xbc9e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x100bcec4
sub esp, 0xffffff80
jmp 0x1005df44
Function at 0x403390
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040d2e0
mov eax, dword [0x4411c4]
mov ecx, dword [0x441138]
shr eax, 3
test eax, eax
jbe 0x4034c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4033e0
cmp dword [0x4411c4], 0x959
jne 0x4034a4
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x820]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x1024]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0x402cc4
push 0x402ce0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004031d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4033e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x408373
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430a94]
jne 0x40837d
repz ret
jmp fcn.0040ab37

Function at 0x408e2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406e25
and dword [ebp - 4], 0
cmp dword [0x431f74], 0
mov ebx, eax
jne 0x408edf
push 0x401a7c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408f90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a70
push edi
call esi
test eax, eax
je 0x408f90
push eax
call fcn.00406db3
mov dword [esp], 0x401a60
push edi
mov dword [0x431f74], eax
call esi
push eax
call fcn.00406db3
mov dword [esp], 0x401a4c
push edi
mov dword [0x431f78], eax
call esi
push eax
call fcn.00406db3
mov dword [esp], 0x401a30
push edi
mov dword [0x431f7c], eax
call esi
push eax
call fcn.00406db3
pop ecx
mov dword [0x431f84], eax
test eax, eax
je 0x408edf
push 0x401a18
push edi
call esi
push eax
call fcn.00406db3
pop ecx
mov dword [0x431f80], eax
mov eax, dword [0x431f80]
cmp eax, ebx
je 0x408f37
cmp dword [0x431f84], ebx
je 0x408f37
push eax
call fcn.00406e2e
push dword [0x431f84]
mov esi, eax
call fcn.00406e2e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408f37
test edi, edi
je 0x408f37
call esi
test eax, eax
je 0x408f2e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408f2e
test byte [ebp - 0xc], 1
jne 0x408f37
or dword [ebp + 0x10], 0x200000
jmp 0x408f70
mov eax, dword [0x431f78]
cmp eax, ebx
je 0x408f70
push eax
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f70
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408f70
mov eax, dword [0x431f7c]
cmp eax, ebx
je 0x408f70
push eax
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f70
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x431f74]
call fcn.00406e2e
pop ecx
test eax, eax
je 0x408f90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408f92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a97
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x403c23
Capabilities:
Create directory

Disassembly:
mov eax, 0x4280e8
call fcn.004272c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403c46
mov al, 1
jmp 0x403c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403c57
xor al, al
jmp 0x403c8b
lea ecx, [ebp - 0x44]
call fcn.0040406d
lea ecx, [ebp - 0x1c]
call fcn.004025a5
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040409f
test al, al
je 0x403c80
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004020c6
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40409e
or eax, eax
ret

Function at 0x40451d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x428170
call fcn.004272c0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401ea7
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4045eb
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404559
mov eax, ebx
add eax, eax
push eax
call fcn.0040209f
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4045e4
cmp ebx, dword [ebp - 0x14]
ja 0x4045e4
lea ecx, [ebp - 0x2c]
call fcn.004025a5
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4045cc
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4045c1
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.004026e4
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00401ab2
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x404597
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.004020c6
push esi
call fcn.004020c6
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4045ed
push esi
call fcn.004020c6
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404655
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40467b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40467b
xor al, al
jmp 0x40469b
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004275c0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40cdcc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4289ea
call fcn.004272c0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004025a5
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040ce1b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40ce78
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x428a35
call fcn.004272c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040f1da
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040cec3
push dword [esi + 0x24]
call fcn.004020c6
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00411a11
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040d392
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x410463
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x42b754
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret

Function at 0x411469
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x429190
call fcn.004272c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42bf84
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.004025a5
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004025a5
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.004025a5
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004025a5
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.004025a5
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42bf4c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret