joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b8e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b86f
add esp, 0xfffffff0
call fcn.0040356c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004194b0
mov eax, dword [0x450f40]
cmp word [eax + 2], 0
jne 0x44b897
mov eax, dword [0x450f40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044cf30
mov eax, dword [0x450fec]
cmp word [eax + 2], 0
jne 0x44b8b1
mov eax, dword [0x450fec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d128
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4117a8]
call fcn.00403230
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4117a8]
call fcn.00403230
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b684]
call fcn.004212cc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ba38
mov eax, dword [0x450e64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042169c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44d6c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x450e64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c344
test eax, eax
je 0x44b9a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call 0x40863c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c36c
test eax, eax
je 0x44b9ba
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404208
mov eax, dword [0x450d68]
cmp byte [eax], 0
jne 0x44b9ee
mov eax, ebx
call fcn.0044bb60
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d8a4
mov eax, ebx
call fcn.0044e268
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ba2e
call fcn.004035c4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bde0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x452bb0]
cmp dword [eax + 0x30], 0
je 0x44be8a
cmp dword [ebx + 0x94], 0
jne 0x44be84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44bd70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44be84
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44be4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44be84
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44be59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c9ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ca21
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x44ca2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44da80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44dac1
mov eax, esi
call fcn.00434304
test al, al
je 0x44dac1
mov eax, dword [ebx + 0x84]
call fcn.004340a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44dac1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004340a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44e5c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e6bc
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x43
mov eax, ebx
call fcn.0044e54c
test al, al
je 0x44e694
mov byte [ebp - 7], bl
mov byte [ebp - 6], 0x3a
mov byte [ebp - 5], 0
lea eax, [ebp - 7]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
cmp esi, 2
jne 0x44e652
lea eax, [ebp - 0x10]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00402b60
mov edx, 0x44e6cc
lea eax, [ebp - 0x14]
mov cl, 2
call fcn.00402b30
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.004041fc
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp esi, 3
jne 0x44e694
lea eax, [ebp - 0x10]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00402b60
mov edx, 0x44e6cc
lea eax, [ebp - 0x14]
mov cl, 2
call fcn.00402b30
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.004041fc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp bl, 0x5b
jne 0x44e5eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e6c3
lea eax, [ebp - 0x18]
call fcn.00403f98
lea eax, [ebp - 0xc]
call fcn.00403f98
ret
Function at 0x44e8b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x44e8bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x44ea2e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x44ea04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x44e9f6
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x44ea44
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x44ea5c
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, 0x44ea80
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, 0x44ea98
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.004042a4
mov eax, dword [ebp - 0x1c]
mov edx, 6
call fcn.004082b4
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x28]
push 0x44eaac
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404318
mov eax, dword [ebp - 0x24]
call fcn.00404458
push eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x2c]
call fcn.00404458
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec dword [ebp - 8]
jne 0x44e906
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ea0b
ret
Function at 0x44e934
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x44e8bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x44ea2e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x44ea04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x44e9f6
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x44ea44
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x44ea5c
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, 0x44ea80
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, 0x44ea98
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.004042a4
mov eax, dword [ebp - 0x1c]
mov edx, 6
call fcn.004082b4
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x28]
push 0x44eaac
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404318
mov eax, dword [ebp - 0x24]
call fcn.00404458
push eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x2c]
call fcn.00404458
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec dword [ebp - 8]
jne 0x44e906
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ea0b
ret
Function at 0x40806b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b400]
jne 0x408075
repz ret
jmp fcn.0040de9c

Function at 0x40aea1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406410
and dword [ebp - 0x14], 0
cmp dword [0x45cfd0], 0
mov dword [ebp - 0x18], eax
jne 0x40af54
push 0x402228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40affc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40221c
push ebx
call edi
test eax, eax
je 0x40affc
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40220c
push ebx
mov dword [0x45cfd0], eax
call edi
push eax
call esi
push 0x4021f8
push ebx
mov dword [0x45cfd4], eax
call edi
push eax
call esi
push 0x4021dc
push ebx
mov dword [0x45cfd8], eax
call edi
push eax
call esi
mov dword [0x45cfe0], eax
test eax, eax
je 0x40af54
push 0x4021c4
push ebx
call edi
push eax
call esi
mov dword [0x45cfdc], eax
mov eax, dword [0x45cfdc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40afad
cmp dword [0x45cfe0], ecx
je 0x40afad
push eax
call esi
push dword [0x45cfe0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40afad
test ebx, ebx
je 0x40afad
call edi
test eax, eax
je 0x40afa4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40afa4
test byte [ebp - 8], 1
jne 0x40afad
or dword [ebp + 0x10], 0x200000
jmp 0x40afe0
mov eax, dword [0x45cfd4]
cmp eax, dword [ebp - 0x18]
je 0x40afe0
push eax
call esi
test eax, eax
je 0x40afe0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40afe0
mov eax, dword [0x45cfd8]
cmp eax, dword [ebp - 0x18]
je 0x40afe0
push eax
call esi
test eax, eax
je 0x40afe0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45cfd0]
call esi
test eax, eax
je 0x40affc
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40affe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040806b
leave
ret
Function at 0x4149e0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Get uefi variable
Read pipe
Write pipe

Disassembly:
mov eax, 0x1004
call fcn.0040ed70
cmp dword [0x59c924], 0x37
jne 0x414aac
push 0x4035a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403564
push 0x40358c
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push 0x403620
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
lea eax, [esp + 0x408]
push eax
push 0x40363c
push 0x403668
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea ecx, [esp + 0xc08]
push ecx
push 0x4036b4
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x59cd38]
mov ecx, dword [0x59c408]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x1004
ret
Function at 0x4150f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x59c924]
sub esp, 0x884
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x415176
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403980
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x4039c0
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x45c690]
mov dword [0x59c924], eax
jne 0x415115
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x45c684]
mov dword [0x59cd38], edx
call fcn.00414d40
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x44
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.00406a60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00406a60
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
push 0x28
push 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x409631
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40963b
repz ret
jmp fcn.0040e01c

Function at 0x41224c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b6bf
and dword [ebp - 0x14], 0
cmp dword [0x46b6ac], 0
mov dword [ebp - 0x18], eax
jne 0x4122ff
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4123a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x46b6ac], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x46b6b0], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x46b6b4], eax
call edi
push eax
call esi
mov dword [0x46b6bc], eax
test eax, eax
je 0x4122ff
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x46b6b8], eax
mov eax, dword [0x46b6b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412358
cmp dword [0x46b6bc], ecx
je 0x412358
push eax
call esi
push dword [0x46b6bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412358
test ebx, ebx
je 0x412358
call edi
test eax, eax
je 0x41234f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41234f
test byte [ebp - 8], 1
jne 0x412358
or dword [ebp + 0x10], 0x200000
jmp 0x41238b
mov eax, dword [0x46b6b0]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41238b
mov eax, dword [0x46b6b4]
cmp eax, dword [ebp - 0x18]
je 0x41238b
push eax
call esi
test eax, eax
je 0x41238b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b6ac]
call esi
test eax, eax
je 0x4123a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409631
leave
ret
Function at 0x4141c0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413820
cmp dword [0x80b804], 0x37
jne 0x414251
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fc4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x80c3e8]
mov edx, dword [0x808864]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x40221e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420158]
jne 0x402228
repz ret
jmp fcn.00403341

Function at 0x40a472
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.0040391b
and dword [ebp - 4], 0
cmp dword [0x423e5c], 0
mov ebx, eax
jne 0x40a523
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a5d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a5d4
push eax
call fcn.004038a9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e5c], eax
call esi
push eax
call fcn.004038a9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e60], eax
call esi
push eax
call fcn.004038a9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e64], eax
call esi
push eax
call fcn.004038a9
pop ecx
mov dword [0x423e6c], eax
test eax, eax
je 0x40a523
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004038a9
pop ecx
mov dword [0x423e68], eax
mov eax, dword [0x423e68]
cmp eax, ebx
je 0x40a57b
cmp dword [0x423e6c], ebx
je 0x40a57b
push eax
call fcn.00403924
push dword [0x423e6c]
mov esi, eax
call fcn.00403924
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a57b
test edi, edi
je 0x40a57b
call esi
test eax, eax
je 0x40a572
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a572
test byte [ebp - 0xc], 1
jne 0x40a57b
or dword [ebp + 0x10], 0x200000
jmp 0x40a5b4
mov eax, dword [0x423e60]
cmp eax, ebx
je 0x40a5b4
push eax
call fcn.00403924
pop ecx
test eax, eax
je 0x40a5b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5b4
mov eax, dword [0x423e64]
cmp eax, ebx
je 0x40a5b4
push eax
call fcn.00403924
pop ecx
test eax, eax
je 0x40a5b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e5c]
call fcn.00403924
pop ecx
test eax, eax
je 0x40a5d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a5d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418ca3
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x40a9b3c]
push ebx
push esi
inc eax
mov esi, 0xff
and eax, esi
cmp dword [0x40a9b44], 0x13ca
mov dword [0x40a9b3c], eax
jne 0x418cce
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov eax, dword [0x40a9b3c]
lea ecx, [eax + 0x40a5068]
mov dl, byte [ecx]
movzx eax, dl
add eax, dword [0x40a9b38]
and eax, esi
mov dword [0x40a9b38], eax
lea eax, [eax + 0x40a5068]
mov bl, byte [eax]
mov byte [eax], dl
mov byte [ecx], bl
movzx eax, byte [eax]
movzx ecx, bl
add eax, ecx
and eax, esi
mov al, byte [eax + 0x40a5068]
pop esi
pop ebx
ret