joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487a54
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
jmp 0x487bd7
mov byte [ebp - 0x29], 0
xor eax, eax
push ebp
push 0x487bc3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x130]
call fcn.00486b18
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00486b08
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x487ac9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
jne 0x487b61
push 2
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xc]
jle 0x487b0f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x487b45
cmp dword [ebp - 0x10], 1
jge 0x487b3b
mov dword [ebp - 0x10], 0xffffffff
call fcn.00404be8
jmp 0x487bee
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0xc], eax
jmp 0x487ba1
cmp dword [ebp - 0x28], 0xffffffff
jne 0x487b8f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x2742
je 0x487b81
cmp dword [ebp - 0x24], 0x2736
jne 0x487ba1
mov dword [ebp - 0x10], 0xfffffffe
call fcn.00404be8
jmp 0x487bee
cmp byte [ebp + 8], 0
je 0x487b9b
mov byte [ebp - 0x29], 1
jmp 0x487ba1
mov eax, dword [ebp + 0xc]
sub dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487bca
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x487bc2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 4]
ret
cmp dword [ebp - 0xc], 0
jle 0x487bee
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jb 0x487a88
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x487bf8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x32], 0
je 0x487c25
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x18], 0x3e8
mov dword [ebp - 0x24], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 1
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0xc], 0
jle 0x487e09
xor eax, eax
push ebp
push 0x487d5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x487c7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x487d1d
lea eax, [ebp - 0x134]
call fcn.00486b18
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00486b08
lea eax, [ebp - 0x30]
push eax
push 0
push 0
lea eax, [ebp - 0x134]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x487cfe
push 2
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x14], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x14], eax
jmp 0x487d39
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x1c], 0
jne 0x487d39
mov dword [ebp - 0x1c], 0x2733
mov eax, dword [ebp - 0x1c]
push eax
call sub.wsock32.dll_WSASetLastError
jmp 0x487d39
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487d62
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x487d5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov edx, dword [eax]
call dword [edx + 4]
ret
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
test dl, dl
je 0x487e62
add esp, 0xfffffff0
call fcn.004045ec
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov byte [eax + 8], 4
mov eax, dword [0x51d310]
call fcn.004056ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
cmp byte [ebp + 0xc], 0
je 0x487f2d
push 0
push 0
push 0x32
push 0x32
push 0
push 0
mov eax, dword [0x52a7f8]
push eax
push 0
mov edx, 0x487f74
xor ecx, ecx
mov eax, dword [ebp - 0x10]
call fcn.0040847c
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x487ef1
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xfffffffe
jmp 0x487f51
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffeb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SetWindowLongA
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_ShowWindow
push 0x30
push 0x400
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x487f35
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00487e18
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x1000
mov eax, dword [ebp - 4]
mov byte [eax + 8], 3
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x487f69
call fcn.00404644
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x487fc4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
cmp byte [ebp - 5], 0
je 0x487fdd
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x487fe4
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_setsockopt
mov esp, ebp
pop ebp
ret
Function at 0x488000
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x488012
add esp, 0xfffffff0
call fcn.004045ec
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404298
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 0
mov al, byte [ebp - 6]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [0x51d314]
push eax
push 2
call sub.wsock32.dll_socket
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00487e50
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x488066
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x48807c
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
jmp 0x4880db
cmp dword [0x51d314], 2
jne 0x4880c2
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
push 0x2003
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockopt
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0x40
jge 0x4880cc
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x40
jmp 0x4880cc
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x1000
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4880f3
call fcn.00404644
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x48b3f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x48b457
lea eax, [ebp - 4]
push eax
push 0x40
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x48b42b
call fcn.0040f7f8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 6
call fcn.00403014
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x48b457
call fcn.0040f7f8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490638
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x490662
cmp dword [ebx + 0x64], 0
jne 0x490662
cmp dword [ebx + 0x6c], 0
jne 0x490662
mov edi, esi
jmp 0x4906e9
cmp edi, 0xffffffff
jne 0x49066a
dec edi
jmp 0x4906e9
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4906e9
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0048f234
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4906b7
mov cx, word [esp]
sub cx, si
jmp 0x4906b9
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4906a0
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4906df
mov cx, word [esp]
sub cx, si
jmp 0x4906e1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4906c8
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x490746
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004903d4
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x490731
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x490746
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x490642
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4959e4
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
push ecx
shr ecx, 2
je 0x4959fe
cld
mov eax, dword [edi]
xor dword [esi], eax
add esi, 4
add edi, 4
dec ecx
jne 0x4959f1
pop ecx
and ecx, 3
je 0x495a0d
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
dec ecx
jne 0x495a04
pop edi
pop esi
ret
Function at 0x495bfc
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov eax, 0x51f770
mov ecx, 0x48
call fcn.00403014
mov edx, dword [ebp - 4]
add edx, 0x48
mov eax, 0x51f7b8
mov ecx, 0x1000
call fcn.00403014
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
shl eax, 8
mov edx, dword [ebp - 0xc]
movzx edx, byte [ebp + edx - 0x2c]
or eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jl 0x495c6c
xor eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jne 0x495c4b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
xor dword [eax + edx*4], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x12
jne 0x495c41
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov cl, 1
call fcn.00495a34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4 + 4], ecx
add dword [ebp - 8], 2
cmp dword [ebp - 8], 0x11
jle 0x495c99
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov cl, 1
call fcn.00495a34
mov eax, dword [ebp - 0xc]
shl eax, 7
mov edx, dword [ebp - 4]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edx*4 + 0x48], ecx
mov eax, dword [ebp - 0xc]
shl eax, 7
mov edx, dword [ebp - 4]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4 + 0x4c], ecx
add dword [ebp - 8], 2
cmp dword [ebp - 8], 0xff
jle 0x495cd3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x495cce
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x495e58
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040569c
xor eax, eax
push ebp
push 0x495f3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0047c7b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00405280
jmp 0x495ea4
lea eax, [ebp - 8]
mov edx, 0x495f50
call fcn.004054b4
mov eax, dword [ebp - 8]
call fcn.004054a8
cmp eax, 0x10
jl 0x495e97
jmp 0x495ec5
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.0040574c
mov eax, dword [ebp - 8]
call fcn.004054a8
cmp eax, 0x10
jg 0x495eb3
lea eax, [ebp - 8]
call fcn.00405704
lea edx, [ebp - 0x18]
mov ecx, 0x10
call fcn.00403014
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, 0x1048
call fcn.00403a94
mov eax, dword [ebp - 4]
lea edx, [eax + 0x104c]
mov eax, 0x51f7b8
mov ecx, 8
call fcn.00403014
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
lea eax, [ebp - 0x18]
call fcn.00495bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495f44
lea eax, [ebp - 0x1c]
call fcn.004051e8
lea eax, [ebp - 8]
call fcn.004051e8
ret

Function at 0x49bcf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0049c310
test al, al
jne 0x49bd29
lea eax, [ebp - 0x214]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
jmp 0x49bd37
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 4]
call fcn.0040ab8c
lea eax, [ebp - 0x110]
push eax
mov al, byte [ebp - 5]
xor al, 1
and eax, 0x7f
push eax
push 0x49bd6c
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x110]
call fcn.0040ad0c
mov esp, ebp
pop ebp
ret
Function at 0x49bdec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bea5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040a880
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x1c]
mov eax, 0x49bebc
call fcn.004057f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x49be8f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49be44
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
inc edx
lea eax, [ebp - 0x1c]
call fcn.0040574c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x49be6d
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x15]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.0040abb4
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49beac
lea eax, [ebp - 0x1c]
call fcn.004051e8
ret

Function at 0x49bec0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49bfad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 4]
call fcn.0040a748
lea eax, [ebp - 0x128]
mov edx, 0x49bfcc
call fcn.004054b4
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
call fcn.0040ab8c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x49bf94
xor eax, eax
push ebp
push 0x49bf70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
imul dword [ebp - 0x14]
imul dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49bf94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bfb4
lea eax, [ebp - 0x128]
call fcn.004051e8
ret
Function at 0x49c11c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c2e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040a748
cmp dword [ebp - 0x18], 0
jne 0x49c16d
lea eax, [ebp - 0x1c]
call fcn.0040aa90
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040a748
lea eax, [ebp - 0x18]
mov edx, 0x49c300
call fcn.004054b4
mov eax, dword [ebp - 4]
call fcn.0049c988
sub al, 2
jb 0x49c18d
je 0x49c1a0
jmp case.default.0x49c200
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x49c200
mov edx, dword [ebp - 4]
mov eax, 0x49c30c
call fcn.004057f0
dec eax
jne 0x49c1e3
push ebp
call fcn.0049c0bc
pop ecx
test al, al
je 0x49c1d0
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049bfd0
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x49c200
mov dword [ebp - 0x10], 0x7fffffff
mov dword [ebp - 0xc], 0
jmp case.default.0x49c200
mov eax, dword [ebp - 0x18]
call fcn.004056ac
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 6
ja case.default.0x49c200
jmp dword [eax*4 + 0x49c207]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x49c200
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x49c200
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x49c200
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049bec0
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x49c200
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049c098
pop ecx
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x49c200
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049bec0
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x49c200
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049bfd0
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49c2a8
cmp dword [ebp - 0x10], 0xffffffff
jb 0x49c2bd
jmp 0x49c2aa
jl 0x49c2bd
cmp dword [ebp - 0xc], 0
jne 0x49c2bb
cmp dword [ebp - 0x10], 0x7fffffff
jbe 0x49c2c6
jmp 0x49c2bd
jle 0x49c2c6
mov dword [ebp - 8], 0x7fffffff
jmp 0x49c2cc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c2ee
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040520c
ret