joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002620
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10008968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000d024]
push ebx
push ebp
push esi
mov ebx, dword [eax*4 + 0x1000d4d8]
xor eax, eax
sub ebx, 0x2e8
xor ecx, ecx
mov dword [esp + 0x29], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x2d], ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x3d], cx
mov byte [esp + 0x14], al
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], al
mov byte [esp + 0x3f], cl
mov dword [esp + 0x18], eax
lea ebp, [ebx + 0x73]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [ebp - 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edx
push 1
push eax
push ecx
mov dword [esp + 0x4c], edx
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
and edx, 0xff
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call esi
push eax
call edi
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
push eax
call edi
push 0
lea edx, [esp + 0x14]
push 2
lea eax, [ebp + 4]
push edx
push eax
call esi
push eax
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x1000270d
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10002738
mov eax, dword [esp + 0x18]
add ebx, 0x7c
add ebp, 0x7c
inc eax
cmp eax, 0x2e
mov dword [esp + 0x18], eax
jl 0x1000268e
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0x3ee
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], eax
call fcn.10002520
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100015f0
add esp, 0x20
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
and edx, 0xffff
mov dword [esp + 0x48], edi
push edx
push str.vv__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x5c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
cmp ax, 2
jae 0x100027c0
push edi
lea edx, [esp + 0x18]
push 1
mov byte [esp + 0x1c], 0
push edx
dec ebx
jmp 0x100027e7
cmp ax, 0x3e8
jbe 0x100027cd
add eax, 0xfc18
jmp 0x100027d8
cmp ax, 0x64
jae 0x100027dc
add eax, 0xffff
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 2
push eax
add ebx, 0x77
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call fcn.10007404
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x10002820
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10008988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000d024]
push ebx
push ebp
push esi
mov ebx, dword [eax*4 + 0x1000d5a0]
xor eax, eax
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x29], ecx
push edi
mov dword [esp + 0x31], ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x35], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x39], ecx
mov byte [esp + 0x14], al
mov word [esp + 0x3d], cx
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], al
mov byte [esp + 0x3f], cl
mov dword [esp + 0x18], eax
lea ebp, [ebx + 0x73]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [ebp - 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edx
push 1
push eax
push ecx
mov dword [esp + 0x4c], edx
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
and edx, 0xff
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call esi
push eax
call edi
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
push eax
call edi
push 0
lea edx, [esp + 0x14]
push 2
lea eax, [ebp + 4]
push edx
push eax
call esi
push eax
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x10002907
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10002932
mov eax, dword [esp + 0x18]
add ebx, 0x7c
add ebp, 0x7c
inc eax
cmp eax, 0x28
mov dword [esp + 0x18], eax
jl 0x10002888
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0x450
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], eax
call fcn.10002520
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100015f0
add esp, 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
and edx, 0xffff
mov dword [esp + 0x48], edi
push edx
push str.vv__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
cmp ax, 2
jae 0x100029ba
push edi
lea edx, [esp + 0x18]
push 1
mov byte [esp + 0x1c], 0
push edx
dec ebx
jmp 0x100029e1
cmp ax, 0x3e8
jbe 0x100029c7
add eax, 0xfc18
jmp 0x100029d2
cmp ax, 0x64
jae 0x100029d6
add eax, 0xffff
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 2
push eax
add ebx, 0x77
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.10007404
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x10003d00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x124
mov eax, dword [ecx + 0x28]
cmp eax, 1
jg 0x10003d22
mov eax, dword [ecx + 0x24]
lea ecx, [esp + 8]
push eax
push 0x1000dbec
push ecx
jmp 0x10003d31
mov edx, dword [ecx + eax*4 + 0x28]
lea eax, [esp + 8]
push edx
push 0x1000dbec
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp], 0x104
push ebx
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Logical_Disk_Manager_Service
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003de0
lea edx, [esp + 4]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003de0
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10003de0
cmp byte [ebx], 0
jne 0x10003dd3
mov al, byte [esp + 0x24]
test al, al
je 0x10003dd3
push esi
push edi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x124
ret
xor eax, eax
pop ebx
add esp, 0x124
ret

Function at 0x10003e00
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
push 0x128
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003e7e
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll__strcmpi]
lea edi, [esi + 0x24]
push ebx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x10003e55
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10003e7e
push ebx
push edi
call ebp
add esp, 8
test eax, eax
je 0x10003e4c
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003e64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x10004830
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x10004850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10007ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10007b51
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10007b51
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10007b3a
jmp 0x10007b51
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0xb3f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b3f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb3f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3f06a
add dl, dl
jne 0xb3f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3f0dc
xor eax, eax
add dl, dl
jne 0xb3f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3f17d
add dl, dl
jne 0xb3f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb3f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb3f075
mov eax, 1
add dl, dl
jne 0xb3f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3f0e1
sub eax, ebx
mov ebx, 1
jne 0xb3f128
mov ecx, 1
add dl, dl
jne 0xb3f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb3f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3f136
cmp eax, 0x7d00
jae 0xb3f16d
cmp eax, 0x500
jb 0xb3f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3f075
cmp eax, 0x7f
ja 0xb3f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb3f19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb3f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4069f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x406a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406a08
mov eax, 1
add ebx, ebx
jne 0x406a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406a20
jne 0x406a3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406a20
xor ecx, ecx
sub eax, 3
jb 0x406a50
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406ac2
mov ebp, eax
add ebx, ebx
jne 0x406a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406a68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x406a8c
inc ecx
add ebx, ebx
jne 0x406a78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x406a6d
jne 0x406a89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406a6d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x406aac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x406a9d
jmp 0x406a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x406aac
add edi, ecx
jmp 0x406a0e
pop esi
mov edi, esi
mov ecx, 0x10
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x406aca
cmp byte [edi], 1
jne 0x406aca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x406acf
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x406b47
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x68bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x68f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406afc
mov ecx, edi
jns 0x406b2b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x68fc]
or eax, eax
je 0x406b41
mov dword [ebx], eax
add ebx, 4
jmp 0x406b19
call dword [esi + 0x6904]
mov ebp, dword [esi + 0x6900]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x406b7b
sub esp, 0xffffff80
jmp 0x40120c

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4014a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x178
push esi
mov esi, eax
cmp word [esi + 0xa], 0x3a
jne 0x4015ac
mov edx, 0x418a04
lea ecx, [esp + 0x30]
lea ecx, [ecx]
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x4014d9
mov word [ecx], ax
add ecx, 2
lea eax, [esp + 0x4e]
cmp ecx, eax
jb 0x4014c0
mov eax, dword [0x42df08]
test eax, eax
mov word [ecx], 0
mov cx, word [esi + 8]
mov word [esp + 0x30], cx
je 0x40150d
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
call eax
jmp 0x401553
mov edx, dword [0x42deec]
push 0
push 0
push 0x104
lea eax, [esp + 0x7c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
push 0
push edx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401575
mov eax, dword [esp + 8]
mul dword [esp + 4]
mov ecx, dword [esp + 0xc]
push 0
push ecx
push edx
push eax
call fcn.00414970
pop esi
add esp, 0x178
ret
mov esi, dword [sym.imp.kernel32.dll_SetFilePointer]
push 2
push 0
push 0
push edi
call esi
push 1
push 0x42dcd4
push 0
push edi
call esi
cmp eax, 0xffffffff
mov dword [0x42dcd0], eax
je 0x40162d
mov edx, dword [0x42dcd4]
pop esi
add esp, 0x178
ret
mov esi, dword [sym.imp.kernel32.dll_DeviceIoControl]
push 0
lea edx, [esp + 0x14]
push edx
push 0x20
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0x74004
push edi
call esi
test eax, eax
je 0x4015e0
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
pop esi
add esp, 0x178
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x18
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x70000
push edi
call esi
test eax, eax
je 0x40162d
mov eax, dword [esp + 0x24]
mul dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push ecx
push edx
push eax
call fcn.00414970
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.00414970
pop esi
add esp, 0x178
ret
xor eax, eax
xor edx, edx
pop esi
add esp, 0x178
ret
Function at 0x4021e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x200
lea ecx, [esp]
lea esp, [esp]
movzx eax, word [edx]
add edx, 2
test ax, ax
je 0x40220c
mov word [ecx], ax
add ecx, 2
lea eax, [esp + 0x1fe]
cmp ecx, eax
jb 0x4021f0
mov word [ecx], 0
cmp word [esp], 0
lea eax, [esp]
je 0x402229
jmp 0x402220
add eax, 2
cmp word [eax], 0
jne 0x402220
lea ecx, [esp]
sub eax, ecx
sar eax, 1
cmp word [esp + eax*2 - 2], 0x5c
lea eax, [esp + eax*2 - 2]
jne 0x402241
mov word [eax], 0
push esi
mov esi, dword [sym.imp.kernel32.dll_GetVolumeInformationW]
push 0
push 0
push 0
push 0
push 0
push 0x100
push edi
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
jne 0x4022c8
cmp word [esp + 4], 0
mov edx, 0x418a74
lea eax, [esp + 4]
je 0x402290
lea ecx, [esp + 0x202]
cmp eax, ecx
jae 0x4022ac
add eax, 2
cmp word [eax], 0
jne 0x402274
cmp eax, ecx
jae 0x4022ac
lea esp, [esp]
movzx ecx, word [edx]
add edx, 2
test cx, cx
je 0x4022ac
mov word [eax], cx
add eax, 2
lea ecx, [esp + 0x202]
cmp eax, ecx
jb 0x402290
push 0
push 0
push 0
push 0
push 0
push 0x100
push edi
lea edx, [esp + 0x20]
push edx
mov word [eax], 0
call esi
pop esi
add esp, 0x200
ret
Function at 0x404560
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x108
cmp word [edi], 0
je 0x4046a6
cmp byte [esp + 0x10c], 0
jne 0x404594
mov eax, dword [edi + 0x208]
push 0x2bf20
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x4046a6
cmp dword [edi + 0x20c], 0
je 0x404686
push ebx
push ebp
push esi
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebp, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
add eax, 0x2bf20
mov dword [esp + 0xc], eax
nop
mov eax, dword [0x42dedc]
test eax, eax
push 0
push 0
je 0x4045dd
push 4
push 0
push 0
push 0x40000000
push edi
call eax
jmp 0x40460b
mov edx, dword [0x42deec]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push edi
push 0
push edx
call ebp
push 0
push 0
push 4
push 0
push 0
push 0x40000000
lea eax, [esp + 0x28]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x404649
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 3
je 0x404679
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
mov ecx, dword [esp + 0xc]
sub ecx, eax
test ecx, ecx
jle 0x404679
call esi
xor edx, edx
mov ecx, 0x64
div ecx
add edx, 0x32
push edx
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4045c0
push 2
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov eax, dword [edi + 0x20c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [edi + 0x210]
push ecx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ebp
mov dword [edi + 0x20c], 0
pop ebx
cmp byte [esp + 0x10c], 0
jne 0x4046a6
mov edx, dword [edi + 0x208]
add esp, 0x108
mov dword [esp + 4], edx
jmp dword [sym.imp.kernel32.dll_ReleaseMutex]
add esp, 0x108
ret 4
Function at 0x404820
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x42dedc]
sub esp, 0x104
test eax, eax
push 0
push 0
je 0x404843
push 3
push 0
push 1
push 0x80000000
push ecx
call eax
jmp 0x404879
push 0x104
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push ecx
mov ecx, dword [0x42deec]
push 0
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4048ed
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
test eax, eax
mov dword [esi + 8], eax
jne 0x4048a7
mov eax, 0x418f2c
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
xor eax, eax
add esp, 0x104
ret
mov eax, dword [esi]
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x4048ed
push 0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
je 0x4048ed
mov ecx, dword [esi + 8]
add ecx, eax
mov dword [esi + 0x14], ecx
xor eax, eax
add esp, 0x104
ret
push ebp
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [esi], 0xffffffff
mov ebp, eax
je 0x40493c
cmp dword [esi + 8], 0
push edi
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
je 0x404930
cmp dword [esi + 4], 0
je 0x404930
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404923
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov edx, dword [esi + 4]
push edx
call edi
mov dword [esi + 4], 0
mov eax, dword [esi]
push eax
call edi
mov dword [esi], 0xffffffff
pop edi
mov eax, ebp
pop ebp
add esp, 0x104
ret