joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403400
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42ca68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x439f34]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
mov bl, 2
push 0x5c
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.004228b6
cmp eax, 0xffffffff
je 0x40346f
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0042283e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.004238b5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.004237c8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.004238b5
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.004228b6
cmp eax, 0xffffffff
je 0x403502
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.0042283e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.004238b5
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.004237c8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.00414b25
add esp, 8
test eax, eax
je 0x4034f1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
cmp eax, edi
jle 0x4034f1
push ecx
call esi
push 0x5c
lea ecx, [esp + 0x10]
call fcn.004228b6
cmp eax, 0xffffffff
jne 0x40349b
pop edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.004237c8
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.004237c8
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004237c8
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp method.CDialog.virtual_184
mov eax, 0x42e02c
call fcn.00416574
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042ad9b
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x425157
call fcn.0042ad9b
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x425165
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x425173
or eax, 0xffffffff
jmp 0x42525b
mov ecx, esi
call fcn.0042508e
mov dword [ebp - 0x14], eax
call fcn.00425ea4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4251aa
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4251aa
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00425e58
push dword [ebp - 0x14]
call fcn.004259a6
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00424e26
cmp eax, edi
je 0x42521d
test byte [esi + 0x24], 0x10
je 0x4251eb
push 4
mov ecx, esi
pop ebx
call fcn.00423e85
test ah, 1
je 0x4251e3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004279ab
cmp dword [esi + 0x1c], edi
je 0x42521d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00423ee0
jmp 0x42521d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425231
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42524a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42524a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004250c8
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406310
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42cfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x439f34]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
mov dword [esp + 0x80], ebx
call fcn.00406140
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 1
call fcn.004238b5
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], bl
call fcn.004237c8
mov eax, dword [0x439f34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x42fb24
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
push 0xa
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 4
call fcn.004069f0
mov edi, 0x42fb20
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 5
mov dword [esp + 0x20], edi
call fcn.00404410
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x80], 6
mov esi, 1
call fcn.00404410
test al, al
je 0x40643c
push str.IR_ZCD
lea ecx, [esp + 0x20]
call fcn.00404640
test al, al
je 0x40643c
mov ebp, dword [esp + 0x40]
xor ecx, ecx
cmp ebp, ebx
push str.Prog
setne cl
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004046a0
test al, al
je 0x40643c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.00406100
mov eax, dword [eax]
push eax
call fcn.00415347
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004237c8
xor eax, eax
cmp esi, ebx
sete al
mov ebp, eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x42fb14
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x7c], 0xa
cmp eax, ebx
je 0x406495
mov ecx, dword [esp + 0x60]
xor edi, edi
cmp ecx, ebx
jbe 0x406495
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x40648c
lea edx, [esi + 8]
push 1
push edx
call fcn.00422ddf
mov esi, dword [esi]
cmp esi, ebx
jne 0x406477
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
inc edi
cmp edi, ecx
jb 0x406470
push eax
call fcn.00423dd8
mov ecx, dword [esp + 0x70]
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00422f13
lea eax, [esp + 0x28]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x42fb24
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x7c], 0xb
cmp eax, ebx
je 0x4064dd
push eax
call fcn.00423dd8
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 7
call fcn.004237c8
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.004237c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x7c], 0xffffffff
call fcn.004237c8
mov ecx, dword [esp + 0x74]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x406520
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42cff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [0x439f34]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x120], 1
mov dword [esp + 8], eax
mov byte [esp + 0x120], 2
call fcn.0042ad9b
mov ecx, dword [eax + 4]
call fcn.00424a25
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.00423905
push 0x4380c0
lea ecx, [esp + 0xc]
call fcn.00422c71
call fcn.0042ad9b
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xc0]
cmp dword [edx - 8], esi
je 0x4065c6
call fcn.0042ad9b
mov eax, dword [eax + 4]
lea ecx, [esp + 8]
add eax, 0xc0
push eax
call fcn.004238b5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esp + 8]
push esi
push eax
lea ecx, [esp + 0x14]
push str._sir_ext_temp__d
push ecx
call fcn.00422c5e
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call edi
cmp eax, 0xffffffff
je 0x4065f3
inc esi
jmp 0x4065cc
call fcn.0042ad9b
mov ecx, dword [eax + 4]
call fcn.00424a3a
mov esi, dword [esp + 0x128]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042353d
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.004237c8
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0
call fcn.004237c8
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x406660
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d00b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov eax, dword [0x439f34]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x298]
xor ecx, ecx
mov dword [esp + 0x10], ecx
sub eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], ebx
mov word [esp + 0x72], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], 1
je 0x4066f0
dec eax
je 0x4066e7
dec eax
jne 0x4066f7
mov word [esp + 0x70], 3
jmp 0x4066f7
mov word [esp + 0x70], 6
jmp 0x4066f7
mov word [esp + 0x70], 5
mov esi, dword [esp + 0x28c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x406723
mov edx, dword [esp + 0x288]
lea eax, [esp + 0x84]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406742
mov ecx, dword [esp + 0x288]
push esi
push ecx
lea edx, [esp + 0x8c]
push str.__s___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [esp + 0x290]
push esi
call edi
test eax, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x88]
push ecx
jne 0x406764
push ebx
jmp 0x406765
push esi
push ebx
push 0x20
push ebx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x406789
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x40682c
cmp dword [esp + 0x294], ebx
je 0x406821
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push ebx
push eax
push 1
call edi
cmp eax, 1
jne 0x406821
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call esi
test eax, eax
jle 0x40680a
mov eax, dword [esp + 0x2c]
cmp eax, 0x200
je 0x4067fa
cmp eax, 0x201
je 0x4067fa
cmp eax, 0x202
je 0x4067fa
lea edx, [esp + 0x28]
push edx
call ebp
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call esi
test eax, eax
jg 0x4067cf
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push ebx
push edx
push 1
call edi
cmp eax, 1
je 0x4067bf
pop ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x280], 0xffffffff
call fcn.004237c8
mov ecx, dword [esp + 0x278]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x278
ret
Function at 0x4081e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x198]
push ecx
mov ecx, esi
call fcn.004083c0
mov ecx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [esi + 0x1a0]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
mov dl, byte [esi + 0x19f]
mov byte [esp + 8], dl
mov eax, dword [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004083c0
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x408770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d385
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x3c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00423836
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x4087b4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00423836
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4087eb
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0042353d
mov dword [esp + 8], 1
jmp 0x408919
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408814
push 0x43851c
lea ecx, [esp + 0x44]
call fcn.00422c71
mov cl, byte [0x42fce0]
push ecx
lea ecx, [esp + 0x44]
call fcn.00423b7f
push 0x43851c
lea ecx, [esp + 0x10]
call fcn.00422c71
mov eax, dword [0x439f34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x42fc5c
call fcn.0040c560
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x40888e
mov al, byte [esi + 4]
test al, al
je 0x408888
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0040c760
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x4088b0
lea eax, [esp + 0xc]
jmp 0x4088b0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.00408550
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.00423b94
test bl, 4
mov dword [esp + 0x30], 9
je 0x4088d7
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.004237c8
test bl, 2
mov dword [esp + 0x30], 8
je 0x4088f4
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.004237c8
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0042353d
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.0040c4e0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004237c8
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.004237c8
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x40bdc0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42d838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004092a0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040d070
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.004092e0
mov edx, dword [esi + 4]
mov ecx, 0x438ac4
cmp edx, dword [ecx]
je 0x40beac
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004092d0
xor al, al
jmp 0x40bf3f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00409310
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d070
test bp, bp
je 0x40bef8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00409310
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d070
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x40bf20
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00409310
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0040d070
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.004092d0
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40c830
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x42d9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x439f34]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x42fc5c
call fcn.0040c560
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.0040cd10
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x50], 6
call esi
test eax, eax
jne 0x40c92e
push 0x43851c
lea ecx, [esp + 0x48]
call fcn.00422c71
push 0x5c
lea ecx, [esp + 0x48]
call fcn.00423b7f
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
call esi
test eax, eax
jne 0x40c92e
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.004237c8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040c4e0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0x44]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x3c], 5
call fcn.004237c8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040c4e0
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x40c980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x40c999
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00423daf
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x40c9c2
push edi
xor bl, bl
call fcn.00423dd8
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00423905
push edi
call fcn.00423dd8
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40c9e0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x40ca90
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42da10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x439f34]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x42fc5c
call fcn.0040c560
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0040cd10
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.004237c8
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040c4e0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40cb40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42da58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x439f34]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x42fc5c
call fcn.0040c560
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0040cd10
push 0x43851c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.00422c71
push 0x5c
lea ecx, [esp + 0x30]
call fcn.00423b7f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
setne bl
call fcn.004237c8
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040c4e0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40cc40
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40cc63
mov al, byte [esp + 0xc]
test al, al
je 0x40cc67
push esi
push 0x71
call fcn.0040b130
add esp, 8
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x40cc70
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40cc98
mov al, byte [esp + 0x10]
test al, al
je 0x40cc9c
push esi
push 0x72
call fcn.0040b130
add esp, 8
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x40cdd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42dad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.00423836
mov cl, byte [0x42fce0]
mov dword [esp + 0x2c], 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00422cc4
mov eax, dword [0x439f34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x42fc5c
call fcn.0040c560
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 6
call fcn.00409130
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x34], 7
call fcn.004145a6
add esp, 8
or esi, 0xffffffff
test eax, eax
je 0x40ce8d
mov edx, dword [esp + 0x34]
push edx
call fcn.0040ca60
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x40ce8d
xor bl, bl
jmp 0x40ce8f
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.004237c8
test bl, bl
lea ecx, [esp + 0xc]
jne 0x40cf46
lea eax, [esp + 8]
push eax
call fcn.00409130
mov eax, dword [eax]
mov byte [esp + 0x2c], 8
push eax
call fcn.0040cdd0
add esp, 4
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x2c], 6
call fcn.004237c8
test bl, bl
je 0x40cf08
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0040c4e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004237c8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040ccb0
add esp, 4
lea ecx, [esp + 0xc]
test al, al
jne 0x40cf46
mov byte [esp + 0x2c], al
call fcn.0040c4e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004237c8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov byte [esp + 0x2c], 0
call fcn.0040c4e0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004237c8
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret