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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov ebx, edx
mov edi, eax
mov esi, 0x4c806c
cmp dword [ebx + 8], 1
jne 0x49224f
mov dword [esp], 0x10
cmp dword [esi], 0
jne 0x4920b4
mov eax, 0x1020
jmp 0x4920bb
mov eax, 0x1020
sub eax, dword [esi]
cmp dword [ebx], 0x500
jne 0x4920e1
push esp
lea edx, [esp + 8]
push edx
push 0
push eax
mov eax, dword [esi]
add eax, 0x4c704c
push eax
mov eax, dword [0x4bc14c]
push eax
call sub.wsock32.dll_recvfrom
jmp 0x4920fd
push esp
lea edx, [esp + 8]
push edx
push 0
push eax
mov eax, dword [esi]
add eax, 0x4c704c
push eax
mov eax, dword [0x4bc150]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x49215d
call sub.wsock32.dll_WSAGetLastError
mov dword [0x4c8070], eax
cmp dword [0x4c8070], 0x2745
je 0x492128
cmp dword [0x4c8070], 0x274a
jne 0x49224f
inc dword [0x4bc184]
cmp dword [0x4bc184], 0x64
jle 0x49224f
xor eax, eax
mov dword [0x4bc184], eax
push 0
push 0
push 0x635
mov eax, edi
call fcn.004455d0
push eax
call sub.user32.dll_PostMessageA
jmp 0x49224f
xor edx, edx
mov dword [0x4bc184], edx
mov edx, dword [0x4bcd98]
cmp byte [edx], 0
je 0x492180
mov edx, dword [esp + 8]
cmp edx, dword [0x4c6ffc]
jne 0x4920a1
test eax, eax
jle 0x492186
add dword [esi], eax
cmp dword [esi], 0x20
jl 0x4920a1
mov eax, dword [0x4bc17c]
cmp dword [eax], 0x13572469
je 0x4921a0
xor eax, eax
mov dword [esi], eax
mov eax, dword [0x4bc17c]
mov eax, dword [eax + 4]
cmp eax, dword [esi]
jg 0x4920a1
xor eax, eax
mov dword [esi], eax
mov eax, dword [0x4bc17c]
mov edx, dword [eax + 4]
mov eax, dword [0x4bc17c]
call fcn.00455b1c
test al, 0xff
jne 0x49224f
mov eax, dword [0x4bc17c]
mov eax, dword [eax + 8]
cmp eax, dword [0x4bc180]
je 0x49224f
mov dword [0x4bc180], eax
mov eax, dword [0x4bc17c]
mov al, byte [eax + 0xd]
sub al, 0xa
je 0x4921f8
sub al, 2
je 0x49220e
jmp 0x4920a1
mov edx, 0x4c704c
mov eax, dword [0x4bcc2c]
mov eax, dword [eax]
call fcn.004a30ac
jmp 0x4920a1
mov eax, dword [0x4bc17c]
cmp byte [eax + 0xc], 0xd2
je 0x492227
mov eax, dword [0x4bcd98]
cmp byte [eax], 3
jne 0x4920a1
add dword [0x4bc15c], 1
adc dword [0x4bc160], 0
mov edx, 0x4c704c
mov eax, dword [0x4bcc2c]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
call fcn.004a1e30
jmp 0x4920a1
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x492278
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esp]
cmp dword [eax + 8], 1
jne 0x492406
mov dword [esp + 4], 0x10
mov edx, dword [ebx + 0x1034]
test edx, edx
jne 0x4922ab
mov eax, 0x1020
jmp 0x4922b2
mov eax, 0x1020
sub eax, edx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
lea eax, [ebx + edx + 0x14]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x49232d
call sub.wsock32.dll_WSAGetLastError
mov dword [0x4c8070], eax
cmp dword [0x4c8070], 0x2745
je 0x4922f8
cmp dword [0x4c8070], 0x274a
jne 0x492406
inc dword [0x4bc184]
cmp dword [0x4bc184], 0x64
jle 0x492406
xor eax, eax
mov dword [0x4bc184], eax
push 0
push 0
push 0x635
mov eax, edi
call fcn.004455d0
push eax
call sub.user32.dll_PostMessageA
jmp 0x492406
xor edx, edx
mov dword [0x4bc184], edx
mov edx, dword [0x4bcd98]
cmp byte [edx], 0
je 0x492350
mov edx, dword [esp + 0xc]
cmp edx, dword [0x4c6ffc]
jne 0x492292
test eax, eax
jle 0x49235a
add dword [ebx + 0x1034], eax
cmp dword [ebx + 0x1034], 0x20
jl 0x492292
lea esi, [ebx + 0x14]
cmp dword [esi], 0x13572469
je 0x49237a
xor eax, eax
mov dword [ebx + 0x1034], eax
mov eax, dword [esi + 4]
cmp eax, dword [ebx + 0x1034]
jg 0x492292
xor eax, eax
mov dword [ebx + 0x1034], eax
mov edx, dword [esi + 4]
mov eax, esi
call fcn.00455b1c
test al, 0xff
jne 0x492406
mov eax, dword [esi + 8]
cmp eax, dword [ebx + 0x10]
je 0x492406
mov dword [ebx + 0x10], eax
mov al, byte [esi + 0xd]
sub al, 0xa
je 0x4923ba
sub al, 2
je 0x4923cd
jmp 0x492292
mov eax, dword [0x4bcc2c]
mov eax, dword [eax]
mov edx, esi
call fcn.004a30ac
jmp 0x492292
cmp byte [esi + 0xc], 0xd2
je 0x4923e1
mov eax, dword [0x4bcd98]
cmp byte [eax], 3
jne 0x492292
add dword [0x4bc15c], 1
adc dword [0x4bc160], 0
mov eax, dword [0x4bcc2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.004a1e30
jmp 0x492292
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x492648
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403ff8
xor eax, eax
push ebp
push 0x4927b9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0xc], 0xffffffff
jne 0x4927a3
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00403c18
mov eax, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 0xffffffff
xor eax, eax
mov dword [ebx + 0x1034], eax
mov dl, 2
mov al, 2
call fcn.004077f8
mov esi, eax
lea eax, [ebp - 0x1b4]
push eax
push esi
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4927a3
cmp byte [ebp - 0x1b4], 2
jne 0x4926d4
mov ax, word [ebp - 0x1b4]
call fcn.00407818
cmp al, 2
je 0x4926de
call sub.wsock32.dll_WSACleanup
jmp 0x4927a3
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
test esi, esi
jl 0x4927a3
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0xffff
push esi
call sub.wsock32.dll_setsockopt
test eax, eax
jl 0x4927a3
mov word [ebp - 0x24], 2
mov ax, word [ebx + 8]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x22], ax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call sub.wsock32.dll_bind
test eax, eax
jge 0x492746
push esi
call sub.wsock32.dll_closesocket
jmp 0x4927a3
mov eax, dword [ebx + 4]
call fcn.00404008
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0x10], eax
push 8
lea eax, [ebp - 0x14]
push eax
push 5
push 0
push esi
call sub.wsock32.dll_setsockopt
test eax, eax
jge 0x49277d
push esi
call sub.wsock32.dll_closesocket
jmp 0x4927a3
push 0x23
push edi
mov eax, dword [0x4c6ff0]
call fcn.004455d0
push eax
push esi
call sub.wsock32.dll_WSAAsyncSelect
inc eax
jne 0x49279c
push esi
call sub.wsock32.dll_closesocket
jmp 0x4927a3
mov dword [ebx + 0xc], esi
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4927c0
lea eax, [ebp - 4]
call fcn.00403bc4
ret
Function at 0x493880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ff8
xor eax, eax
push ebp
push 0x4939cf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4939ae
mov eax, esi
call fcn.004088d0
mov edi, eax
test edi, edi
je 0x4939ae
mov eax, edi
xor ecx, ecx
mov edx, esi
call fcn.00402b84
push edi
push esi
push 0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4939ae
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4939e0
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4939ae
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x11d]
xor ecx, ecx
mov edx, 0x105
call fcn.00402b84
mov esi, dword [ebp - 0x14]
shr esi, 2
dec esi
test esi, esi
jl 0x4939a7
inc esi
push 0x493a04
push dword [ebp - 8]
push 0x493a20
xor eax, eax
mov al, bl
push dword [eax*4 + 0x4bc190]
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00403f04
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0x11d]
call fcn.004095a8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11d]
push eax
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4939a4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.00403d7c
dec esi
jne 0x493947
mov eax, edi
call fcn.0040279c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4939d6
lea eax, [ebp - 0x124]
call fcn.00403bc4
lea eax, [ebp - 8]
call fcn.00403bc4
ret
Function at 0x49cec4
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov ebx, ecx
mov ebp, edx
mov esi, eax
xor edi, edi
push edi
lea eax, [esp + 8]
push eax
mov ecx, 0x49d0e8
mov edx, 0x49d0ec
mov eax, esi
call fcn.0049cbbc
test al, al
jne 0x49cef8
xor eax, eax
jmp 0x49d0dc
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x9c
call fcn.00407838
mov word [esp + 0xd0], 0x9c
mov word [esp + 0xd2], 0
lea eax, [esp + 0xac]
push eax
mov eax, dword [0x4bc39c]
push eax
push 0
call sub.user32.dll_EnumDisplaySettingsA
mov dword [esp + 0xd4], 0x1c0000
test ebx, ebx
je 0x49cf7c
or dword [esp + 0xd4], 0x20
mov eax, dword [ebx]
lea edx, [esp + 0xd8]
mov dword [edx], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0xd8]
mov dword [edx + 4], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esp + 0x118], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x20
call fcn.00402b84
mov edx, 0x49d0fc
mov eax, esi
call fcn.0049cdd8
mov ebx, eax
test ebx, ebx
jne 0x49cfa8
xor eax, eax
jmp 0x49d0dc
push 0x49d108
push ebx
call sub.advapi32.dll_RegDeleteValueA
push 0x49d11c
push ebx
call sub.advapi32.dll_RegDeleteValueA
test ebp, ebp
je 0x49cfcb
mov dword [esp], 3
jmp 0x49cfd0
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x49d12c
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x49cff1
xor eax, eax
jmp 0x49d0dc
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x49d140
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x49d019
xor eax, eax
jmp 0x49d0dc
mov dword [esp], 1
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x49d15c
push ebx
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x49d041
xor eax, eax
jmp 0x49d0dc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov ebp, eax
xor edi, edi
test ebp, ebp
je 0x49d06e
push 0x2000000
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov edi, eax
test edi, edi
je 0x49d06e
push edi
call sub.user32.dll_SetThreadDesktop
cmp dword [esp + 0x114], 0x18
jne 0x49d083
mov dword [esp + 0x114], 0x20
push 0
push 1
push 0
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_ChangeDisplaySettingsExA
push esi
push edi
lea edi, [esi + 4]
lea esi, [esp + 0xb4]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [esi + 0xa0]
lea edx, [esp + 8]
mov ecx, 0x20
call fcn.00403df4
push ebp
call sub.user32.dll_SetThreadDesktop
test edi, edi
je 0x49d0d4
push edi
call sub.user32.dll_CloseDesktop
push ebx
call sub.advapi32.dll_RegCloseKey_1
mov al, 1
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49d170
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffeb8
mov ebx, eax
lea eax, [ebx + 0xa0]
call fcn.00403bc4
xor esi, esi
push esi
lea eax, [esp + 8]
push eax
mov ecx, 0x49d2b8
mov edx, 0x49d2bc
mov eax, ebx
call fcn.0049cbbc
test al, al
je 0x49d2ad
lea eax, [esp + 0xac]
xor ecx, ecx
mov edx, 0x9c
call fcn.00407838
mov word [esp + 0xd0], 0x9c
mov word [esp + 0xd2], 0
lea eax, [esp + 0xac]
push eax
mov eax, dword [0x4bc39c]
push eax
push 0
call sub.user32.dll_EnumDisplaySettingsA
mov dword [esp + 0xd4], 0x1c0000
mov byte [esp + 0xac], 0
mov edx, 0x49d2cc
mov eax, ebx
call fcn.0049cdd8
mov ebx, eax
test ebx, ebx
je 0x49d2ad
xor eax, eax
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push 0x49d2d8
push ebx
call sub.advapi32.dll_RegSetValueExA
push 0x49d2ec
push ebx
call sub.advapi32.dll_RegDeleteValueA
push 0x49d300
push ebx
call sub.advapi32.dll_RegDeleteValueA
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_GetThreadDesktop
mov edi, eax
xor esi, esi
test edi, edi
je 0x49d26a
push 0x2000000
push 0
push 0
call sub.user32.dll_OpenInputDesktop
mov esi, eax
test esi, esi
je 0x49d26a
push esi
call sub.user32.dll_SetThreadDesktop
cmp dword [esp + 0x114], 0x18
jne 0x49d27f
mov dword [esp + 0x114], 0x20
push 0
push 1
push 0
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x18]
push eax
call sub.user32.dll_ChangeDisplaySettingsExA
push edi
call sub.user32.dll_SetThreadDesktop
test esi, esi
je 0x49d2a7
push esi
call sub.user32.dll_CloseDesktop
push ebx
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x148
pop edi
pop esi
pop ebx
ret
Function at 0x49d688
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x4bc3b0
xor eax, eax
mov dword [0x4bc3ac], eax
xor eax, eax
mov dword [0x4c80d8], eax
xor eax, eax
mov dword [0x4c80dc], eax
xor eax, eax
mov dword [0x4c80e0], eax
xor eax, eax
mov dword [0x4c80e4], eax
xor eax, eax
mov dword [0x4c80e8], eax
xor eax, eax
mov dword [0x4c80d4], eax
xor eax, eax
mov dword [0x4c80ec], eax
xor eax, eax
mov dword [0x4c80f0], eax
xor eax, eax
mov dword [0x4c80f4], eax
xor eax, eax
mov dword [0x4c80f8], eax
cmp dword [ebx], 0
je 0x49d806
push 0x49d808
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80d8], eax
push 0x49d810
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80dc], eax
push 0x49d818
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80e0], eax
push 0x49d820
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80e4], eax
push 0x49d828
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80e8], eax
push 0x49d830
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80d4], eax
push 0x49d838
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80ec], eax
push 0x49d848
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80f0], eax
push 0x49d854
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80f4], eax
push 0x49d864
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c80f8], eax
cmp dword [0x4c80d8], 0
je 0x49d806
cmp dword [0x4c80dc], 0
je 0x49d806
cmp dword [0x4c80e0], 0
je 0x49d806
cmp dword [0x4c80e4], 0
je 0x49d806
cmp dword [0x4c80e8], 0
je 0x49d806
cmp dword [0x4c80d4], 0
je 0x49d806
mov dword [0x4bc3ac], 1
cmp dword [0x4c80ec], 0
je 0x49d806
cmp dword [0x4c80f0], 0
je 0x49d806
cmp dword [0x4c80f4], 0
je 0x49d806
cmp dword [0x4c80f8], 0
je 0x49d806
mov dword [0x4bc3ac], 2
pop ebx
ret

Function at 0x49e8bc
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov ebx, edx
mov esi, eax
test si, 2
jne 0x49e8da
test si, 1
jne 0x49e8da
test si, 8
je 0x49e936
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x49e936
lea eax, [esp + 0xc]
push eax
push 0x49e950
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x49e93e
or si, 4
push 0
movzx eax, si
push eax
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x49f794
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402b84
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 0x101
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x49f804
cmp byte [ebp - 1], 0
je 0x49f802
push 0x64
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x49f804
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a0570
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0
push 0x10
lea eax, [esp + 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
test eax, eax
je 0x4a059d
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00403df4
jmp 0x4a05a4
mov eax, ebx
call fcn.00403bc4
add esp, 0x108
pop ebx
ret
Function at 0x4a1910
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x448], edx
mov dword [ebp - 0x44c], edx
mov dword [ebp - 0x444], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a1a99
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [ebp - 0x400]
mov byte [ebx + 0xd], 0xa
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0x65
mov dword [ebx + 0x10], 0x410006c
mov dword [ebx + 0x14], 0x53530000
cmp byte [0x4bc49c], 0
jne 0x4a196d
add dword [ebx + 0x14], 0x10
mov eax, dword [0x4bcdc4]
cmp byte [eax], 0
je 0x4a197b
add dword [ebx + 0x14], 0x20
cmp byte [0x4bc4cc], 0
jne 0x4a1988
add dword [ebx + 0x14], 0x40
mov dword [ebp - 0x440], 0x40
lea eax, [ebp - 0x440]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0
push 0x100000
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
call fcn.004066b2
mov dword [ebx + 0x18], eax
mov eax, dword [0x4bc46c]
mov dword [ebx + 0x1c], eax
cmp dword [0x4c9288], 0
jne 0x4a19e5
lea eax, [ebp - 0x444]
call fcn.00457794
mov edx, dword [ebp - 0x444]
mov eax, 0x4c9288
call fcn.00403c18
mov eax, dword [0x4c9284]
call fcn.00404008
mov edx, eax
lea eax, [ebx + 0x20]
mov ecx, 0x1b
call fcn.00409574
lea eax, [ebx + 0x3c]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x44c]
call fcn.00457568
push dword [ebp - 0x44c]
push 0x4a1ab0
push dword [0x4c9288]
lea eax, [ebp - 0x448]
mov edx, 3
call fcn.00403f04
mov edx, dword [ebp - 0x448]
lea eax, [ebx + 0x40]
call fcn.004095a8
lea esi, [ebx + 0x40]
mov eax, esi
call fcn.004094e4
inc eax
add esi, eax
mov edx, dword [0x4c9280]
mov eax, esi
call fcn.004095a8
mov eax, esi
call fcn.004094e4
inc eax
add esi, eax
mov eax, dword [0x4c927c]
mov dword [esi], eax
add esi, 4
sub esi, ebx
mov dword [ebx + 4], esi
mov edx, ebx
mov eax, edi
call fcn.004a17c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1aa0
lea eax, [ebp - 0x44c]
mov edx, 3
call fcn.00403be8
ret
Function at 0x4a1be8
Capabilities:
Get disk information
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x368], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a1de6
push dword fs:[eax]
mov dword fs:[eax], esp
lea esi, [ebp - 0x220]
mov byte [esi + 0xd], 0xb
mov byte [esi + 0xe], 0
mov byte [esi + 0xc], 0xac
mov bl, 0x63
lea eax, [ebp - 0x264]
mov edx, ebx
call fcn.00403d6c
mov edx, dword [ebp - 0x264]
lea eax, [ebp - 4]
mov ecx, 0x4a1dfc
call fcn.00403e90
lea eax, [ebp - 4]
call fcn.00404014
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4a1cb1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00404014
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 0xc]
shr eax, 9
imul dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x800
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.0040666c
call fcn.004066b2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x4a1cbf
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov al, bl
mov edx, dword [ebp - 0x20]
mov dword [esi + eax*4 - 0x17c], edx
inc ebx
cmp bl, 0x67
jne 0x4a1c29
lea ebx, [esi + 0x20]
mov edx, ebx
lea eax, [esi + 0x10]
mov ecx, 0x10
call fcn.004572a0
mov dword [ebp - 0x260], 0x40
lea eax, [ebp - 0x260]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0
push 0x100000
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0x254]
call fcn.004066b2
mov dword [ebx + 0x10], eax
push 0
push 0x100000
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x24c]
call fcn.004066b2
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x368]
call fcn.0045771c
mov edx, dword [ebp - 0x368]
lea eax, [ebp - 0x364]
mov ecx, 0xff
call fcn.00403e20
lea edx, [ebp - 0x364]
lea eax, [ebx + 0x1c]
mov cl, 0x1f
call fcn.00402a60
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
mov eax, dword [0x4bcacc]
cmp byte [eax], 0
je 0x4a1d9b
mov eax, dword [0x4bc7dc]
push esi
push edi
mov esi, eax
lea edi, [ebx + 0x48]
mov ecx, 0x3f
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
jmp 0x4a1daa
lea eax, [ebx + 0x48]
xor ecx, ecx
mov edx, 0xfc
call fcn.00402b84
mov dword [esi + 4], 0x164
mov edx, esi
mov eax, edi
call fcn.004a17c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1ded
lea eax, [ebp - 0x368]
call fcn.00403bc4
lea eax, [ebp - 0x264]
call fcn.00403bc4
lea eax, [ebp - 4]
call fcn.00403bc4
ret