joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3a34
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b3bb9
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebx + 0x2be]
sub al, 2
jb 0x4b3b9e
cmp byte [ebx + 0x2b0], 0
je 0x4b3b9e
mov eax, dword [ebp - 4]
call fcn.00494c90
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x4b3b97
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp - 6]
sub ax, 8
je 0x4b3adb
dec ax
je 0x4b3ab1
sub ax, 0x12
jne 0x4b3af5
call fcn.00405140
jmp 0x4b3b9e
cmp byte [ebx + 0x2b1], 0
je 0x4b3b7d
mov eax, ebx
call fcn.004404f4
test al, al
je 0x4b3b7d
xor edx, edx
mov eax, ebx
call fcn.00440518
jmp 0x4b3b7d
mov eax, dword [esi]
call fcn.00406140
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00406334
jmp 0x4b3b7d
cmp byte [ebx + 0x2b1], 0
je 0x4b3b12
mov eax, ebx
call fcn.004404f4
test al, al
jne 0x4b3b12
mov dl, 1
mov eax, ebx
call fcn.00440518
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x4b3b2a
mov eax, esi
call fcn.00405f44
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 6]
call fcn.00406070
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.004061ac
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.004b3848
test al, al
je 0x4b3b7d
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 6]
call fcn.00406070
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040614c
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3b9e
mov eax, dword [ebp - 4]
movzx edx, word [ebp - 6]
call fcn.00494cc4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3bc0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405f5c
ret

Function at 0x4b67c4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, dword [0x55a678]
cmp byte [eax], 0
jne 0x4b67f2
mov ecx, 0xad
mov edx, 0x4b6840
mov eax, 0x4b6884
call fcn.00405668
mov eax, ebx
call fcn.00405f44
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4b6830
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406104
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b6898
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x55a678]
cmp byte [eax], 0
jne 0x4b68b9
mov ecx, 0xb9
mov edx, 0x4b68d0
mov eax, 0x4b6914
call fcn.00405668
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x4c11e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c12da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c12ec
mov eax, ebx
call fcn.00405bcc
push eax
mov eax, dword [0x55d7f8]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
jne 0x4c123f
lea eax, [ebp - 8]
mov ecx, ebx
mov edx, 0x4c1300
call fcn.00405a54
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4097ac]
call fcn.0040f954
call fcn.00405094
push eax
mov eax, dword [0x55d7f8]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
jne 0x4c1272
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x4c1300
call fcn.00405a54
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4097ac]
call fcn.0040f954
call fcn.00405094
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x4c12b5
push dword fs:[edx]
mov dword fs:[edx], esp
push eax
call sub.kernel32.dll_LockResource
cmp byte [eax], 0xff
jne 0x4c1297
lea edx, [eax + 1]
cmp byte [edx], 0xfe
je 0x4c12a6
cmp byte [eax], 0xfe
jne 0x4c12a2
inc eax
cmp byte [eax], 0xff
je 0x4c12a6
xor eax, eax
jmp 0x4c12a8
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c12bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c12e1
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405760
ret
Function at 0x4e672c
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ecx, eax
xor eax, eax
push ebp
push 0x4e67eb
push dword fs:[eax]
mov dword fs:[eax], esp
test ecx, ecx
setl byte [ebp - 1]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
test ebx, ebx
jns 0x4e6764
call fcn.004046a8
cmp byte [ebp - 1], 0
je 0x4e676d
dec ebx
not ebx
mov eax, esi
call fcn.0040573c
mov edi, ebx
and edi, 0xff
mov ecx, pe_nt_image_headers32
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00405924
mov edx, dword [ebp - 8]
mov ecx, dword [esi]
mov eax, esi
call fcn.00405a54
test ebx, ebx
jne 0x4e6774
cmp byte [ebp - 1], 0
jne 0x4e67d5
mov eax, 1
mov edx, dword [esi]
dec eax
test edx, edx
je 0x4e67ba
cmp eax, dword [edx - 4]
jb 0x4e67bf
call fcn.004046a8
inc eax
cmp byte [edx + eax - 1], 0x7f
jbe 0x4e67d5
mov ecx, dword [esi]
mov eax, esi
mov edx, 0x4e6804
call fcn.00405a54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e67f2
lea eax, [ebp - 8]
call fcn.0040573c
ret

Function at 0x4e86b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e873d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x560418
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e8727
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040f110
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4e8754
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x55acf0]
mov dl, 1
mov eax, dword [0x4e7eb8]
call fcn.0040fa4c
call fcn.00405094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8744
lea eax, [ebp - 0x1c]
call fcn.0040573c
ret

Function at 0x4e8d0c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x4e8d68]
cmp al, byte [ebx + 0x28]
je 0x4e8d30
mov esi, 0x401
mov eax, ebx
call fcn.004e8e58
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x4e8d68]
cmp al, byte [ebx + 0x28]
jne 0x4e8d60
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4e8dec
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004e8d0c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004049dc
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4e8e50
call fcn.004e85fc
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4e8e42
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004049dc
pop esi
pop ebx
ret

Function at 0x4e8e74
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00405bcc
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403b7c
test ebx, ebx
je 0x4e8ec3
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [esp + 4], cl
movzx ecx, byte [edx + 1]
mov byte [esp + 5], cl
movzx ecx, byte [edx + 2]
mov byte [esp + 6], cl
movzx eax, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4e8fa0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e8fd1
mov ecx, dword [0x55aaec]
mov dl, 1
mov eax, dword [0x4e7eb8]
call fcn.0040fa10
call fcn.00405094
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4e8ffe
mov ecx, dword [0x55aa04]
mov dl, 1
mov eax, dword [0x4e7eb8]
call fcn.0040fa10
call fcn.00405094
xor eax, eax
push ebp
push 0x4e907a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004049dc
cmp byte [ebp + 8], 0
je 0x4e9056
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e8f08
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
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 eax, dword [ebp - 4]
call fcn.004e8dec
jmp 0x4e9070
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004e88ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e9097
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e9270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004e8ba8
xor eax, eax
push ebp
push 0x4e93e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4e93cd
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e92bc
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e92c6
call fcn.00405140
jmp 0x4e93ea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fe20
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4e93c2
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e9375
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e9362
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004049dc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004e9228
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x4e93f8]
cmp dl, byte [eax + 0x28]
je 0x4e93c9
call fcn.0040f928
jmp 0x4e93c9
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fe40
jmp 0x4e93c9
cmp edi, ebx
jge 0x4e9391
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fe40
jmp 0x4e92c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fe20
cmp edx, dword [esp + 4]
jne 0x4e93b1
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e92c6
push ebp
call fcn.004e9228
pop ecx
jmp 0x4e93c9
push ebp
call fcn.004e9228
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e93ea
mov eax, dword [ebp - 4]
call fcn.004e8bb4
ret
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e93fc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e951e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e8ba8
xor eax, eax
push ebp
push 0x4e9501
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e944c
call fcn.00405140
jmp 0x4e9508
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e94eb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e94eb
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004049dc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e94eb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040f110
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4e9538
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x55acf0]
mov dl, 1
mov eax, dword [0x4e7eb8]
call fcn.0040fa4c
call fcn.00405094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9508
mov eax, dword [ebp - 4]
call fcn.004e8bb4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9525
lea eax, [ebp - 0x28]
call fcn.0040573c
ret
Function at 0x4e9584
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e96f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e8ba8
xor eax, eax
push ebp
push 0x4e96d8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e95e9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e95e9
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4e96c2
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e95fc
call fcn.00405140
jmp 0x4e96df
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x4e9623
cmp dword [ebp - 0x10], 0
jle 0x4e9623
cmp ebx, dword [ebp - 0x10]
jle 0x4e9623
mov ebx, dword [ebp - 0x10]
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4e96c2
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e96c2
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004049dc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4e96c2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.0040f110
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x4e9710
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x55acf0]
mov dl, 1
mov eax, dword [0x4e7eb8]
call fcn.0040fa4c
call fcn.00405094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e96df
mov eax, dword [ebp - 4]
call fcn.004e8bb4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e96fc
lea eax, [ebp - 0x2c]
call fcn.0040573c
ret
Function at 0x4ef23c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ef3ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ef388
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405924
lea eax, [ebp - 0x118]
mov edx, 0x4ef3c4
call fcn.00405a08
mov eax, dword [ebp - 0x118]
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4ef2fa
lea eax, [ebp - 0x111]
call fcn.0040ba64
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040582c
jmp 0x4ef301
mov eax, esi
call fcn.0040573c
cmp bl, 0x61
jae 0x4ef322
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00410804
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405790
jmp 0x4ef33c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.00410770
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405790
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4ef3d0
call fcn.0040c558
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef38f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4f345c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4f348c
cmp dword [esp + 4], 6
jb 0x4f348c
call fcn.0046a830
call fcn.0046a938
test al, al
je 0x4f348c
mov al, 1
jmp 0x4f348e
xor eax, eax
add esp, 0x94
ret

Function at 0x4fe788
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.00402f38
mov dword [ebp - 4], eax
mov eax, 0x104
call fcn.00402f38
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fe80e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00405bcc
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00405934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe815
mov eax, dword [ebp - 4]
call fcn.00402f54
mov eax, dword [ebp - 8]
call fcn.00402f54
ret
Function at 0x4fec44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040b500
test al, al
je 0x4fed02
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00405bcc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4fed02
mov eax, ebx
call fcn.00402f38
mov dword [ebp - 0xc], eax
push ebp
push 0x4fecfb
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4fece5
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, ebx
sub ecx, 0x34
test ecx, ecx
jns 0x4fecc4
call fcn.004046a8
test ecx, ecx
jle 0x4fecd6
mov eax, edx
cmp dword [eax], 0xfeef04bd
je 0x4fecd6
inc edx
dec ecx
jne 0x4fecc8
cmp dword [eax], 0xfeef04bd
jne 0x4fece5
movzx eax, word [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fed02
mov eax, dword [ebp - 0xc]
call fcn.00402f54
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fef7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ff07c
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax]
mov edx, 0x4ff094
call fcn.004fe830
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 1
jne 0x4fefcc
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0xc
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
jmp 0x4ff037
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 2
jne 0x4fefe9
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0x12c
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
jmp 0x4ff037
push 0x12d
lea eax, [ebp - 0x262]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 8]
push eax
push 0x12d
lea eax, [ebp - 0x135]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4ff037
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0xc
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0xc
ja 0x4ff054
mov eax, dword [ebp + 8]
lea edi, [eax - 0x2d]
mov esi, 0x4ff098
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x4ff066
mov eax, dword [ebp + 8]
lea edi, [eax - 0x2d]
mov esi, 0x4ff0b8
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff083
lea eax, [ebp - 4]
call fcn.0040573c
ret