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

Disassembly:
push 0xffffffffffffffff
push 0x42cf78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x439f2c]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.00422dd6
cmp eax, 0xffffffff
je 0x4035fc
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00422d5e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00423dd5
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.00423ce8
push 0x4380c0
lea ecx, [esp + 0xc]
call fcn.00423191
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00422dd6
cmp eax, 0xffffffff
pop esi
je 0x40366d
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00422d5e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.00423dd5
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.00423ce8
mov edx, dword [esp]
push 0
push edx
call fcn.00415263
add esp, 8
test eax, eax
jne 0x40366d
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00415055
add esp, 8
test eax, eax
je 0x40366d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.00423ce8
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.00423ce8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00423ce8
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4036b0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42cfb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x439f2c]
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.00422dd6
cmp eax, 0xffffffff
je 0x40371f
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00422d5e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.00423dd5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.00423ce8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.00423dd5
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.00422dd6
cmp eax, 0xffffffff
je 0x4037b2
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00422d5e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.00423dd5
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.00423ce8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.00415055
add esp, 8
test eax, eax
je 0x4037a1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
cmp eax, edi
jle 0x4037a1
push ecx
call esi
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00422dd6
cmp eax, 0xffffffff
jne 0x40374b
pop edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00423ce8
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00423ce8
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423ce8
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp method.CDialog.virtual_184
mov eax, 0x42e64c
call fcn.00416aa4
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.0042b2c5
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x425677
call fcn.0042b2c5
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 0x425685
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x425693
or eax, 0xffffffff
jmp 0x42577b
mov ecx, esi
call fcn.004255ae
mov dword [ebp - 0x14], eax
call fcn.004263c1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4256ca
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4256ca
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.00426375
push dword [ebp - 0x14]
call fcn.00425ec3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00425346
cmp eax, edi
je 0x42573d
test byte [esi + 0x24], 0x10
je 0x42570b
push 4
mov ecx, esi
pop ebx
call fcn.004243a5
test ah, 1
je 0x425703
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00427ecb
cmp dword [esi + 0x1c], edi
je 0x42573d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00424400
jmp 0x42573d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425751
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42576a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x42576a
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.004255e8
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 0x406660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42d500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x439f2c]
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.00406490
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 1
call fcn.00423dd5
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], bl
call fcn.00423ce8
mov eax, dword [0x439f2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x42fb2c
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.00406d80
mov edi, 0x42fb28
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 5
mov dword [esp + 0x20], edi
call fcn.00404710
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x80], 6
mov esi, 1
call fcn.00404710
test al, al
je 0x40678c
push str.IR_ZCD
lea ecx, [esp + 0x20]
call fcn.00404940
test al, al
je 0x40678c
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.004049a0
test al, al
je 0x40678c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.00406450
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00423ce8
xor eax, eax
cmp esi, ebx
sete al
mov ebp, eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x42fb1c
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x7c], 0xa
cmp eax, ebx
je 0x4067e5
mov ecx, dword [esp + 0x60]
xor edi, edi
cmp ecx, ebx
jbe 0x4067e5
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x4067dc
lea edx, [esi + 8]
push 1
push edx
call fcn.004232ff
mov esi, dword [esi]
cmp esi, ebx
jne 0x4067c7
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
inc edi
cmp edi, ecx
jb 0x4067c0
push eax
call fcn.004242f8
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.00423433
lea eax, [esp + 0x28]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x42fb2c
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x7c], 0xb
cmp eax, ebx
je 0x40682d
push eax
call fcn.004242f8
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 7
call fcn.00423ce8
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.00423ce8
lea ecx, [esp + 0x10]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00423ce8
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 0x406870
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42d540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x439f2c]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x120], 1
mov dword [esp + 8], eax
mov byte [esp + 0x120], 2
call fcn.0042b2c5
mov ecx, dword [eax + 4]
call fcn.00424f40
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.00423e25
push 0x4380c0
lea ecx, [esp + 0xc]
call fcn.00423191
call fcn.0042b2c5
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xc0]
cmp dword [edx - 8], esi
je 0x406916
call fcn.0042b2c5
mov eax, dword [eax + 4]
lea ecx, [esp + 8]
add eax, 0xc0
push eax
call fcn.00423dd5
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.0042317e
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call edi
cmp eax, 0xffffffff
je 0x406943
inc esi
jmp 0x40691c
call fcn.0042b2c5
mov ecx, dword [eax + 4]
call fcn.00424f55
mov esi, dword [esp + 0x128]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00423a5d
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00423ce8
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0
call fcn.00423ce8
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x4069b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d55b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov eax, dword [0x439f2c]
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 0x406a40
dec eax
je 0x406a37
dec eax
jne 0x406a47
mov word [esp + 0x70], 3
jmp 0x406a47
mov word [esp + 0x70], 6
jmp 0x406a47
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 0x406a73
mov edx, dword [esp + 0x288]
lea eax, [esp + 0x84]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406a92
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
push ecx
jne 0x406aad
push ebx
jmp 0x406aae
push esi
push ebx
push 0x20
push ebx
push ebx
lea edx, [esp + 0xa0]
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x406ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x406b7c
cmp dword [esp + 0x294], ebx
je 0x406b71
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 0x406b71
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 0x406b5a
mov eax, dword [esp + 0x2c]
cmp eax, 0x200
je 0x406b4a
cmp eax, 0x201
je 0x406b4a
cmp eax, 0x202
je 0x406b4a
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 0x406b1f
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push ebx
push edx
push 1
call edi
cmp eax, 1
je 0x406b0f
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.00423ce8
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 0x4085f0
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.004087e0
mov edx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1a0]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.004087e0
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x408bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d935
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.00423d56
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x408bf4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00423d56
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408c2b
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00423a5d
mov dword [esp + 8], 1
jmp 0x408d59
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408c54
push 0x438524
lea ecx, [esp + 0x44]
call fcn.00423191
mov cl, byte [0x42fce8]
push ecx
lea ecx, [esp + 0x44]
call fcn.0042409f
push 0x438524
lea ecx, [esp + 0x10]
call fcn.00423191
mov eax, dword [0x439f2c]
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], 0x42fc60
call fcn.0040ca90
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x408cce
mov al, byte [esi + 4]
test al, al
je 0x408cc8
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0040cc90
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x408cf0
lea eax, [esp + 0xc]
jmp 0x408cf0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.00408970
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.004240b4
test bl, 4
mov dword [esp + 0x30], 9
je 0x408d17
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.00423ce8
test bl, 2
mov dword [esp + 0x30], 8
je 0x408d34
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00423ce8
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00423a5d
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.0040ca10
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00423ce8
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.00423ce8
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x40c2f0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42de58
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.00409730
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.0040d5b0
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.00409770
mov edx, dword [esi + 4]
mov ecx, 0x438ac0
cmp edx, dword [ecx]
je 0x40c3dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409760
xor al, al
jmp 0x40c46f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004097a0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d5b0
test bp, bp
je 0x40c428
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004097a0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d5b0
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x40c450
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004097a0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0040d5b0
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.00409760
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 0x40cd60
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x42dfe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x439f2c]
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], 0x42fc60
call fcn.0040ca90
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d250
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 0x40ce63
push 0x438524
lea ecx, [esp + 0x48]
call fcn.00423191
mov cl, byte [0x42fce8]
push ecx
lea ecx, [esp + 0x48]
call fcn.0042409f
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
call esi
test eax, eax
jne 0x40ce63
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.00423ce8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040ca10
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.00423ce8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040ca10
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x40ceb0
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 0x40cec9
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.004242cf
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x40cef2
push edi
xor bl, bl
call fcn.004242f8
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00423e25
push edi
call fcn.004242f8
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40cf10
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 0x40cfc0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42e030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x439f2c]
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], 0x42fc60
call fcn.0040ca90
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0040d250
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.00423ce8
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040ca10
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40d070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42e078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x439f2c]
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], 0x42fc60
call fcn.0040ca90
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0040d250
push 0x438524
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.00423191
mov dl, byte [0x42fce8]
lea ecx, [esp + 0x2c]
push edx
call fcn.0042409f
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
setne bl
call fcn.00423ce8
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0040ca10
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40d180
Capabilities:
Delete file

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

Function at 0x40d1b0
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 0x40d1d8
mov al, byte [esp + 0x10]
test al, al
je 0x40d1dc
push esi
push 0x72
call fcn.0040b650
add esp, 8
mov al, 1
pop esi
ret
xor al, al
pop esi
ret