joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487d20
Capabilities:
Access peb ldr_data
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
cmp dword [ebx + 0xc], 0
je 0x487e1f
cmp dword [ebx + 8], 0
je 0x487e1f
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x487e18
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.0048826c
mov ecx, dword [ebx + 8]
mov eax, ecx
xor edx, edx
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], edx
mov eax, ecx
call fcn.00402714
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov esi, dword [ebx + 0xc]
dec esi
test esi, esi
jl 0x487dcb
inc esi
call fcn.00402bec
fild qword [ebp + 8]
fmulp st(1)
call fcn.00402a24
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
call fcn.00461aac
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x487dc8
call fcn.00403740
jmp 0x487e1f
dec esi
jne 0x487d84
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x30]
fild qword [ebx + 0x30]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, ebx
call fcn.00487cb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487e1f
mov eax, dword [ebp - 0x14]
call fcn.0040272c
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48e8bc
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0x48e854
ret
dec ecx
dec esi
je 0x48e90a
jb 0x48e916
jo 0x48e927
jb 0x48e847
inc eax
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
test dl, dl
je 0x48e8d1
add esp, 0xfffffff0
call fcn.00403248
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404030
push eax
call sub.wininet.dll_InternetOpenA
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
jne 0x48e911
mov ecx, 0x48e9a0
mov dl, 1
mov eax, dword [0x407654]
call fcn.0040ab70
idiv edi
call fcn.004036a0
push 0
push 0
push 3
push 0
add ebp, dword [edx]
push 0
mov ax, word [ebp + 8]
push eax
mov eax, edi
call fcn.00404030
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wininet.dll_InternetConnectA
mov esi, eax
mov dword [ebx + 0xc], esi
test esi, esi
jne 0x48e968
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xb
movzx eax, word [ebp + 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, 0x48e9cc
mov dl, 1
mov eax, dword [0x407654]
call fcn.0040abac
call fcn.004036a0
mov eax, 0x4000
call fcn.00402714
mov dword [ebx + 4], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48e98c
call fcn.004032a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48eabc
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48ec6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov word [eax + 0x14], 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
mov eax, edi
call fcn.00404030
push eax
mov eax, dword [ebp - 8]
call fcn.00404030
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
test esi, esi
je 0x48ec4f
xor edx, edx
push ebp
push 0x48ec48
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x48ec88
push dword [ebp + 0x10]
push 0x48eca0
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
call fcn.00403e6c
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x48ecac
call fcn.004090ac
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f2c
mov eax, ebx
call fcn.00403e6c
push eax
mov eax, ebx
call fcn.00404030
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403e6c
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404030
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x48ebbd
call fcn.00403740
jmp 0x48ec4f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.0048ea34
mov ebx, eax
mov eax, dword [ebp - 4]
mov word [eax + 0x14], bx
cmp bx, 0xc8
jne 0x48ec2e
lea eax, [ebp - 0x14]
push eax
push 0x4000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.wininet.dll_InternetReadFile
neg eax
sbb eax, eax
neg eax
test al, al
je 0x48ec2e
cmp dword [ebp - 0x14], 0
jbe 0x48ec2e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax], 0
je 0x48ec2e
cmp dword [ebp - 0x14], 0x4000
jae 0x48ec28
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ec4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ec74
lea eax, [ebp - 0x18]
call fcn.00403bd0
lea eax, [ebp - 0x10]
call fcn.00403bd0
ret
Function at 0x430001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x30b873fd
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x375d01c2
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x4d2d2edb
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x43cb5df6
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x418970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41809e
lea edi, [esi - 0x1709e]
push edi
or ebp, 0xffffffff
jmp 0x418992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418988
mov eax, 1
add ebx, ebx
jne 0x4189ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4189a0
jne 0x4189bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4189a0
xor ecx, ecx
sub eax, 3
jb 0x4189d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418a42
mov ebp, eax
add ebx, ebx
jne 0x4189db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4189e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x418a0c
inc ecx
add ebx, ebx
jne 0x4189f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4189ed
jne 0x418a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4189ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418a2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x418a1d
jmp 0x41898e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418a2c
add edi, ecx
jmp 0x41898e
pop esi
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418a8b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18058]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418a49
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x180c0]
or eax, eax
je 0x418a85
mov dword [ebx], eax
add ebx, 4
jmp 0x418a66
call dword [esi + 0x180c4]
popal
jmp section.UPX0
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - reloc.crtdll.dll_printf], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call fcn.00401271
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401213
mov edi, dword [ebp - 0xc]
push reloc.mscms.dll_SetColorProfileHeader
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
add eax, 0x18
push 0x3000
add eax, ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push eax
pop ebx
mov dword [ebp - 8], ebx
or ebx, ebx
je 0x401650
push reloc.mscms.dll_SetColorProfileHeader
push edi
pop edx
push ebx
pop ecx
call fcn.00401730
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x3c]
movzx eax, word [esi + 0x14]
add ecx, ebx
push eax
mov edx, esi
mov dword [ebp - 4], ecx
jmp 0x4828c8
push edi
pop ecx
call fcn.00401790
mov ecx, esi
call fcn.00401790
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x403ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x405dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftPowerShell
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e16
push 0x41121c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f320
add esp, 8
jmp 0x405fb2
mov edx, 1
test edx, edx
je 0x405e90
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e69
jmp 0x405e90
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040f320
add esp, 8
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
jmp 0x405e16
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREMicrosoftPowerShell_
lea eax, [ebp - 0x108]
push eax
call fcn.0040f320
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040f660
add esp, 8
push str.ShellIdsMicrosoft.PowerShell
lea eax, [ebp - 0x108]
push eax
call fcn.0040f660
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x108]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405f20
push 0x41126c
mov eax, dword [ebp + 8]
push eax
call fcn.0040f320
add esp, 8
jmp 0x405fb2
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push str.Path
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0
je 0x405f7d
push str.powershell.exe
mov edx, dword [ebp + 8]
push edx
call fcn.0040f320
add esp, 8
jmp 0x405fb2
push 0x411294
mov eax, dword [ebp + 8]
push eax
call fcn.0040f320
add esp, 8
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f660
add esp, 8
push 0x411298
mov eax, dword [ebp + 8]
push eax
call fcn.0040f660
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40bbcc
xor eax, eax
jmp 0x40bcaf
mov dword [ebp - 0x214], 0x200
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x40bc1c
xor eax, eax
jmp 0x40bcaf
push str.ScriptEngine
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x210]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40bc61
xor eax, eax
jmp 0x40bcaf
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
jne 0x40bcad
mov eax, 1
jmp 0x40bcaf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f030
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 4], 0
jmp 0x40f04b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jge 0x40f091
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x4116f0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f042
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x40f0ab
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40f0e9
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40f0a2
mov esp, ebp
pop ebp
ret

Function at 0x40f0f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40f15d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f144
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40f139
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40f144
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40f119
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40f158
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40f188
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f185
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40f17a
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x40f188
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40f15d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401130
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x41c]
push 0x20a
push 0
push eax
mov ebx, ecx
call fcn.00411960
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [esi + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x4012c7
push edi
lea eax, [ebp - 0x41c]
push eax
lea edi, [esi + 0x21e]
push 0x105
push edi
call fcn.0040bca0
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011b0
sub ecx, edx
xor eax, eax
sar ecx, 1
push edi
mov word [esi + ecx*2 + 0x21c], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [esi + 4], eax
cmp eax, 2
je 0x4011e1
cmp eax, 3
jne 0x4012b2
push 0x104
lea eax, [esi + 0x14]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
push 0x105
lea eax, [esi + 0x632]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ax, word [0x4237e8]
movq xmm0, qword [str.._]
push 0x200
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push 0
push eax
movq qword [ebp - 0x210], xmm0
call fcn.00411960
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0040bbe5
add esp, 0x18
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x218], eax
cmp eax, 0xffffffff
je 0x4012b2
push 0
lea ecx, [ebp - 0x42c]
push ecx
push 0xc
lea ecx, [ebp - 0x428]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0x424]
mov dword [esi + 0x10], eax
push dword [ebx + 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4
Function at 0x4026e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x28], 0x4f435101
mov dword [ebp - 0x24], 0x6166204d
mov dword [ebp - 0x20], 0x64207473
mov dword [ebp - 0x1c], 0x6c6e776f
mov dword [ebp - 0x18], 0x2064616f
mov dword [ebp - 0x14], 0x746f7270
mov dword [ebp - 0x10], 0x6c6f636f
mov dword [ebp - 0xc], 0x736f6820
mov byte [ebp - 8], 0x74
mov byte [ebp - 7], al
mov word [ebp - 6], 0x102
mov word [ebp - 0x454], 0x17
push edi
mov edi, ecx
cmp al, 2
jbe 0x402757
mov byte [ebp - 5], 0x11
mov byte [edi + 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
call fcn.0040ab60
test eax, eax
jne 0x40279a
cmp dword [ebp - 0x450], eax
jle 0x40279a
cmp byte [ebp - 0x44c], 2
je 0x4027ae
mov ecx, dword [edi]
call fcn.0040aa60
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x402760
mov ecx, dword [edi]
call fcn.0040aa60
cmp esi, 0xa
je 0x40281e
push str.Got_hello_response_n
call fcn.0040bab2
add esp, 4
cmp esi, 0xa
jge 0x40281e
nop dword [eax]
mov ecx, dword [edi]
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x450], 0x424
push eax
push 2
lea eax, [ebp - 0x454]
push eax
call fcn.0040ab60
cmp dword [ebp - 0x450], 0
jle 0x40280a
cmp byte [ebp - 0x44c], 0x18
je 0x402836
mov ecx, dword [edi]
call fcn.0040aa60
push 0x1f4
call ebx
inc esi
cmp esi, 0xa
jl 0x4027d0
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret 4