joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bd94
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45be68
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x45be52
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x45be7c
call fcn.004096f4
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be6f
lea eax, [ebp - 8]
call fcn.00404538
ret

Function at 0x45e1cc
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x462f7c]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x45e208
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x45e220
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45e219
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.0040300c
xor edx, edx
mov eax, 0x46317c
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x45e28a
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x45e23e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x45e4c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x45e4e1
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x45e4da
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x45e4f3
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45e4ec
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0045e0bc
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45e50d
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0045e1cc
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x45e592
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x45e5af
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0045e14c
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45e5d8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45e5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x45e609
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x45e602
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x45e61d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045dfb4
test bl, bl
jne 0x45e6f0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x464ccc
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45e654
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45e668
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045e4c8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x45e69a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x45e649
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45e6bd
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x45e6ce
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45e6e2
jmp 0x45e7ab
cmp bl, 1
jne 0x45e7ab
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x464d26
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45e710
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45e724
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045e4c8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x45e756
sub ebx, 6
inc dword [ebp - 8]
jne 0x45e705
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x45e77d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x45e78e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x45e7a2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045e038
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x45ee58
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x45ee71
mov eax, dword [0x463498]
mov eax, dword [eax]
call fcn.00456508
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x45ee9b
cmp eax, dword [esp]
pop edx
pop eax
ja 0x45ee65
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x45ee65
pop esi
pop ebx
ret

Function at 0x45f000
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], 0xffffffff
mov edx, 0x40
call fcn.00408bb4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45f054
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x45f03e
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f05b
mov eax, dword [ebp - 8]
call fcn.00408ccc
ret

Function at 0x45f064
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xfffffe08
mov esi, eax
mov eax, esi
call fcn.00404538
lea eax, [esp + 0x68]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x45f0c6
push 0x65
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
mov ebx, eax
test ebx, ebx
jne 0x45f0ae
mov eax, esi
mov edx, 0x45f0d8
call fcn.0040458c
jmp 0x45f0c1
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, esi
call fcn.00409178
call sub.wsock32.dll_WSACleanup
add esp, 0x1f8
pop esi
pop ebx
ret

Function at 0x45f0e4
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffc0
mov ebx, eax
call sub.kernel32.dll_GetCurrentProcess
push esp
push 0x28
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x45f188
push 0x45f19c
call sub.advapi32.dll_LookupPrivilegeValueA
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 2
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, ebx
mov edx, 0x45f1a8
call fcn.00404934
jne 0x45f17a
push 0
push 6
call sub.user32.dll_ExitWindowsEx
jmp 0x45f183
push 0
push 0xc
call sub.user32.dll_ExitWindowsEx
add esp, 0x40
pop ebx
ret
Function at 0x460ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x460c6a
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, ebx
call fcn.004049e8
push eax
call sub.kernel32.dll_WinExec
mov ebx, eax
cmp ebx, 0x20
jbe 0x460b3a
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 4]
call fcn.00408ad0
push dword [ebp - 4]
push 0x460c98
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
cmp ebx, 0x1f
jne 0x460b6b
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 8]
call fcn.00408ad0
push dword [ebp - 8]
push 0x460cb0
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
test ebx, ebx
jne 0x460b9b
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.00408ad0
push dword [ebp - 0xc]
push 0x460ce0
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
cmp ebx, 2
jne 0x460bcc
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00408ad0
push dword [ebp - 0x10]
push 0x460d0c
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
cmp ebx, 3
jne 0x460bfa
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00408ad0
push dword [ebp - 0x14]
push 0x460d38
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
cmp ebx, 0xb
jne 0x460c28
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00408ad0
push dword [ebp - 0x18]
push 0x460d64
mov eax, esi
mov edx, 3
call fcn.004048b0
jmp 0x460c4f
push 0x460c84
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00408ad0
push dword [ebp - 0x1c]
push 0x460d8c
mov eax, esi
mov edx, 3
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460c71
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.0040455c
ret
Function at 0x405409
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.00411f30
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp + 8]
call fcn.0040c9b0
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 1
jne 0x405482
mov edx, dword [esp]
mov ebp, dword [edx]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00411e80
pop edx
push eax
push edx
call fcn.00411f90
lea eax, [esp + 0xc]
push eax
call fcn.00411ff0
push dword [esp + 8]
push 1
push 0
call sub.KERNEL32.dll_CreateMutexW
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x405482
push 0xb7
call sub.KERNEL32.dll_ExitProcess
xor eax, eax
push dword [esp + 8]
call fcn.00412080
add esp, 0xc
pop ebx
pop ebp
ret 4

Function at 0x405a0f
Capabilities:
Get disk size

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x405a15
call fcn.00411f30
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.0040c060
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.0040c060
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x405b31
push edx
call fcn.00411e80
pop edx
push eax
push edx
call fcn.00411e80
pop edx
push eax
push dword [esp + 0xc]
call fcn.0040cfc0
call fcn.00411ec0
mov edx, 0x4152e0
mov ecx, dword [esp]
push ecx
call fcn.0040c160
pop ecx
add ecx, eax
call fcn.0040c1a0
je 0x405ab8
push dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
pop dword [esp + 0x10]
jmp 0x405b2c
mov edx, 0x4152dc
mov ecx, dword [esp]
push ecx
call fcn.0040c160
pop ecx
add ecx, eax
call fcn.0040c1a0
je 0x405ae2
push dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
pop dword [esp + 0x10]
jmp 0x405b2c
mov edx, 0x4152e4
mov ecx, dword [esp]
push ecx
call fcn.0040c160
pop ecx
add ecx, eax
call fcn.0040c1a0
je 0x405b1c
push dword [esp + 0x20]
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [eax]
sub dword [esp], edx
mov edx, dword [eax + 4]
sbb dword [esp + 4], edx
pop dword [esp + 0x10]
pop dword [esp + 0x10]
jmp 0x405b2c
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
call fcn.0040c190
lea eax, [esp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x405b40
push edx
push dword [esp + 8]
call fcn.00412080
push dword [esp + 4]
call fcn.00412080
pop edx
add esp, 0x20
pop ebx
ret 8
Function at 0x408121
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408128
call fcn.00411f30
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp + 0x10c]
call fcn.0040c9b0
mov dword [esp + 4], eax
push dword [ebp + 0x110]
call fcn.0040c9b0
push edx
push eax
fild qword [esp]
fstp qword [esp]
pop dword [esp + 0xc]
pop dword [esp + 0xc]
mov ebx, dword [esp + 4]
cmp ebx, 1
jne 0x408228
push edx
call fcn.00411e80
pop edx
push eax
push edx
call fcn.00411e80
pop edx
push eax
push 0x104
call fcn.0040caf0
lea eax, [esp + 0x14]
push eax
call fcn.00411ff0
push 0x104
push dword [esp + 0x14]
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.00411e80
pop edx
push eax
push edx
call fcn.00411e80
pop edx
push eax
push 1
push 1
mov eax, 0x415028
push eax
mov eax, str.WindowsSystem32
push eax
push dword [esp + 0x28]
call fcn.0040cb40
lea eax, [esp + 0x18]
push eax
call fcn.00411ff0
mov eax, 0x4152e0
push eax
push dword [esp + 0x18]
call fcn.00405a0f
push edx
push eax
pop dword [esp + 0x1c]
pop dword [esp + 0x1c]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
pop edx
mov dword [esp - 8], eax
mov dword [esp - 4], edx
fild qword [esp - 8]
fld qword [esp + 8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x408228
call fcn.004025a9
xor eax, eax
push dword [esp + 0x14]
call fcn.00412080
push dword [esp + 0x10]
call fcn.00412080
add esp, 0x20
pop ebx
pop ebp
ret 4

Function at 0x408baa
Capabilities:
Get disk information

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00411f30
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp + 0x48]
call fcn.0040c9b0
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 1
jne 0x408c0f
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp + 0x4c]
call fcn.0040c9b0
mov dword [esp + 8], eax
push 0
call sub.KERNEL32.dll_GetDriveTypeW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
cmp ebx, dword [esp + 8]
jne 0x408c05
jmp 0x408c11
push 0
call sub.KERNEL32.dll_ExitProcess
xor eax, eax
add esp, 0x10
pop ebx
pop ebp
ret 4
Function at 0x40c5e0
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x40c678
push edi
push 0x419720
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x419498]
test edi, edi
je 0x40c64c
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c645
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x419498
call fcn.00411702
pop ecx
pop ecx
jmp 0x40c647
mov edi, dword [edi]
test edi, edi
jne 0x40c61c
pop ebx
mov eax, dword [0x418b00]
mov esi, eax
inc eax
push 0x10
push 0x419498
mov dword [0x418b00], eax
call fcn.00411742
pop ecx
pop ecx
push 0x419720
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x40c762
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40c8d8
mov eax, dword [esp + 0x24]
dec eax
je 0x40c8bb
dec eax
jne 0x40c8d8
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040c71b
pop ecx
test eax, eax
je 0x40c819
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40c7dc
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40c8b7
dec ebx
je 0x40c8b3
dec ebx
je 0x40c892
dec ebx
je 0x40c84c
sub ebx, 4
jne 0x40c8d8
test edi, edi
jne 0x40c8d8
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40c8d8
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40c7dc
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40c7d7
sub edi, 0
je 0x40c884
dec edi
je 0x40c876
dec edi
je 0x40c868
dec edi
jne 0x40c8d8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40c8d8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40c8d8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40c8d8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40c8d8
sub edi, 0
je 0x40c8af
dec edi
je 0x40c8ab
dec edi
jne 0x40c8d8
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40c8d8
push 0x3c
jmp 0x40c8d7
push 0x32
jmp 0x40c8d7
push 0x14
jmp 0x40c8d7
push 5
jmp 0x40c8d7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40c8d5
cmp eax, 0xa
je 0x40c8d1
cmp eax, 0x5a
jne 0x40c8d8
push 0x28
jmp 0x40c8d7
push 0x1e
jmp 0x40c8d7
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x40de08
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x419748]
call fcn.00410eb8
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40df08
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x40de5e
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x40de56
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x40de9e
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x40dee0
push 0x22
pop edx
cmp cx, dx
je 0x40de90
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40de80
xor ecx, ecx
cmp word [eax], cx
je 0x40dee0
mov ecx, eax
add eax, 2
jmp 0x40dee2
test dx, dx
je 0x40dee8
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x40de90
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x40ded6
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x40dee0
cmp cx, dx
je 0x40ded3
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x40dec3
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x40dea8
jmp 0x40de90
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40deea
xor edx, edx
cmp dword [ebp], ebx
jne 0x40def3
test edi, edi
jne 0x40df10
test edx, edx
je 0x40def8
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40de4c
test edi, edi
jne 0x40df21
mov eax, ebx
jmp 0x40df25
test esi, esi
je 0x40df21
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x40df25
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40e013
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00412e20
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x419374]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x40e112
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.0040e502
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40e076
cmp esi, edi
jge 0x40e076
mov dword [esp + 0x34], ebp
jmp 0x40e078
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x40e0f7
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x40e0f7
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x40e0f7
xor esi, esi
inc esi
jmp 0x40e0fb
mov esi, dword [esp + 0x10]
push ebx
call fcn.0040e71c
pop ecx
push ebp
push 0
push dword [0x419374]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.00412e10
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10