joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408190
cmp ax, 0xffff
jne 0x490e41
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
mov dword [ebp - 8], ebx
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x490ec2
push eax
push edi
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x490ec2
push eax
call sub.kernel32.dll_LockResource
mov ebx, eax
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x490e88
inc eax
movzx edx, word [ebx]
add edx, edx
add ebx, edx
add ebx, 2
dec eax
jne 0x490e7b
movzx esi, word [ebx]
add ebx, 2
cmp dword [ebp - 4], 0
je 0x490ec2
cmp dword [ebp + 8], 0
jle 0x490ec2
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042fef0
mov esi, eax
test esi, esi
jle 0x490eb9
mov ecx, esi
add ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004081a4
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x491c4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x491cb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404db0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040aa78
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491cb7
lea eax, [ebp - 0xc]
call fcn.00404b38
ret

Function at 0x491d54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x491db0
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x491d7f
call fcn.0040f90c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402d04
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x491db0
call fcn.0040f90c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x49435c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x56a788]
cmp dword [eax], 1
jne 0x494372
mov eax, ebx
call fcn.00496370
pop ebx
ret
mov eax, ebx
call fcn.004054b8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x494388
test al, 0x10
je 0x49438c
xor eax, eax
jmp 0x49438e
mov al, 1
pop ebx
ret
Function at 0x49889c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404b38
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4988eb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404db0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a63c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405014
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a63e6
test byte [ebp - 0xc], 0x10
jne 0x4a63ea
xor eax, eax
jmp 0x4a63ec
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4a654c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405870
xor eax, eax
push ebp
push 0x4a65e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4a65c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [0x56a788]
cmp dword [eax], 1
jne 0x4a6597
mov eax, dword [ebp - 4]
call fcn.00496370
mov byte [ebp - 5], al
jmp 0x4a65bd
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a65b4
test byte [ebp - 0xc], 0x10
je 0x4a65b8
xor eax, eax
jmp 0x4a65ba
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a65d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a65ee
lea eax, [ebp - 4]
call fcn.00405280
ret

Function at 0x4a9cd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405014
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a9d36
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
call fcn.004a9594
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a9d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
dec al
je 0x4a9d64
dec al
je 0x4a9d6d
dec al
je 0x4a9d76
dec al
je 0x4a9d7f
jmp 0x4a9d88
mov dword [ebp - 0x14], 1
jmp 0x4a9d8d
mov dword [ebp - 0x14], 2
jmp 0x4a9d8d
mov dword [ebp - 0x14], 4
jmp 0x4a9d8d
mov dword [ebp - 0x14], 3
jmp 0x4a9d8d
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405014
push eax
mov eax, dword [ebp - 4]
call fcn.004a9964
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8

Function at 0x4aa654
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x4aa7f4
push 1
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00406c10
mov ecx, eax
mov edx, 0x4aa804
mov eax, 0x567520
call fcn.004c76e4
test al, al
je 0x4aa7e6
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4aa6b0
cmp byte [0x567e2c], 0
je 0x4aa6b0
push 0
push 0x16
mov edx, 0x4aa81c
mov eax, 0xfffffffb
call fcn.004a5eb4
push 0
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406c10
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x4aa6f2
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
jne 0x4aa7e6
mov edx, 0x567550
mov eax, dword [ebp - 8]
call fcn.004a6d5c
test al, al
je 0x4aa7e6
cmp byte [0x567e2c], 0
je 0x4aa730
push 0
push 6
mov edx, 0x4aa81c
mov eax, 0xfffffffb
call fcn.004a5eb4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4aa744
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00406c10
push 0x4aa7f4
push 1
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00406c10
mov ecx, eax
mov edx, 0x4aa804
mov eax, 0x567520
call fcn.004c76e4
test al, al
je 0x4aa7e6
cmp byte [0x567e2c], 0
je 0x4aa787
push 0
push 7
mov edx, 0x4aa81c
mov eax, 0xfffffffb
call fcn.004a5eb4
push 0
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406c10
push eax
push 0x567560
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x4aa7ca
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
cmp byte [0x567e2c], 0
je 0x4aa7e6
push 0
push 8
mov edx, 0x4aa81c
mov eax, 0xfffffffb
call fcn.004a5eb4
pop ecx
pop ecx
pop ebp
ret
Function at 0x4ae01c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
xor eax, eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4ae25d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentProcessId
mov edx, eax
mov eax, 8
call fcn.0049d964
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4ae227
push 0
push 0xa0a0a0
mov edx, 0x4ae270
mov eax, 0xfffffffb
call fcn.004a5eb4
mov dword [ebp - 0x240], 0x224
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.0049d984
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4ae214
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x220]
mov ecx, pe_nt_image_headers32
call fcn.00404db0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.004a6b1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x120]
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4ae1f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4ae27c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4ae1f5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4ae2a0
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov dword [ebp - 0x258], eax
mov byte [ebp - 0x254], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
mov dword [ebp - 0x250], eax
mov byte [ebp - 0x24c], 0
lea edx, [ebp - 0x258]
mov ecx, 1
mov eax, 0x4ae2bc
call fcn.0040b73c
push dword [ebp - 0x248]
push 0x4ae2d0
lea eax, [ebp - 0x244]
mov edx, 3
call fcn.00404edc
mov eax, dword [ebp - 0x244]
call fcn.00405014
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4ae1f5
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call fcn.00404e1c
mov edx, 0x14
sub edx, eax
lea ecx, [ebp - 0x25c]
mov al, 0x20
call fcn.00405204
push dword [ebp - 0x25c]
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 0x10]
call fcn.00404d38
push dword [ebp - 0x260]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404edc
push 0
push 0xa0a0a0
mov edx, dword [ebp - 0x1c]
mov eax, 0xfffffffb
call fcn.004a5eb4
mov eax, dword [ebp - 0xc]
call fcn.004a6b40
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.0049d9a4
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4ae0aa
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae264
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x1c]
call fcn.00404b38
ret
Function at 0x4b29d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b38
mov eax, 0x105
call fcn.004a6b1c
mov dword [ebp - 8], eax
push 0x104
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x4b2a47
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404d38
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404e1c
test eax, eax
jle 0x4b2a47
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404e1c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b2a47
mov eax, dword [ebp - 4]
mov edx, 0x4b2a5c
call fcn.00404e24
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004a6b40
pop ecx
pop ecx
pop ebp
ret

Function at 0x4bc5c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bc6cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
jmp 0x4bc6a8
cmp dword [ebp - 0x14], 5
jne 0x4bc60d
mov byte [ebp - 0x15], 1
jmp 0x4bc6a8
inc dword [ebp - 0x14]
inc dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x4bc632
mov byte [ebp - 0x15], 1
jmp 0x4bc6a8
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, 0x1fe
call fcn.004a68f0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bc68d
mov eax, dword [ebp - 0x1c]
call fcn.00403d2c
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404d38
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004bc404
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x15], 1
jmp 0x4bc6a8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x2c]
mov ecx, 0x4bc6e8
mov eax, dword [ebp - 4]
call fcn.004bc404
cmp byte [ebp - 0x15], 0
je 0x4bc5fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc6d4
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00404b5c
ret
Function at 0x4bc6ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bc7c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4bc7ae
lea eax, [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov eax, 0x1ff
call fcn.004a68f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4bc793
mov eax, dword [ebp - 0x14]
call fcn.00403d2c
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00404d38
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004bc404
mov byte [ebp - 0xd], 1
jmp 0x4bc7ae
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 0xc]
call fcn.00404d38
mov edx, dword [ebp - 0x24]
mov ecx, 0x4bc7e4
mov eax, dword [ebp - 4]
call fcn.004bc404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc7d0
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404b5c
ret

Function at 0x4bd0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405004
xor eax, eax
push ebp
push 0x4bd181
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404b38
mov eax, 0x105
call fcn.004a6b1c
mov dword [ebp - 0xc], eax
mov eax, 0x105
call fcn.004a6b1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4bd153
lea eax, [ebp - 0x44]
push eax
mov ecx, 9
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405074
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x3d]
call fcn.0040b060
mov eax, dword [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x3d]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4bd153
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d38
mov eax, dword [ebp - 0x10]
call fcn.004a6b40
mov eax, dword [ebp - 0xc]
call fcn.004a6b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd188
lea eax, [ebp - 0x44]
call fcn.00404b38
lea eax, [ebp - 4]
call fcn.00404b38
ret
Function at 0x4c042c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd58
xor edx, edx
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c053e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b38
mov dl, 1
mov eax, dword [0x4a5cb0]
call fcn.00403cfc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4c050a
push pe_nt_image_headers32
lea eax, [ebp - 0x2a4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x4c0505
lea eax, [ebp - 0x2a4]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c0505
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4c04e6
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + edx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x2a8]
call fcn.00404d38
mov edx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp dword [eax + edx*4], 0
jne 0x4c04b8
cmp dword [ebp - 0x14], 0
jne 0x4c0505
mov edx, 0x4c0554
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 0x10]
call fcn.004bffd4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00403d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0545
lea eax, [ebp - 0x2a8]
call fcn.00404b38
ret

Function at 0x4c7938
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405004
xor eax, eax
push ebp
push 0x4c79af
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004c7828
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
je 0x4c7999
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
je 0x4c7989
dec eax
je 0x4c7992
jmp 0x4c7999
mov dword [ebp - 8], 1
jmp 0x4c7999
mov dword [ebp - 8], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c79b6
lea eax, [ebp - 4]
call fcn.00404b38
ret
Function at 0x4cf518
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov byte [ebp - 0x1e], cl
mov byte [ebp - 0x1d], dl
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + eax*8 + 0x344], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 7
jne 0x4cf52c
mov eax, dword [ebp - 4]
add eax, 0x340
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 2
mov eax, dword [ebp - 0xc]
mov edx, 0x4cf630
call fcn.00404b8c
mov eax, dword [ebp - 0xc]
add eax, 0xc
call fcn.00404b38
mov eax, dword [ebp - 4]
add eax, 0x368
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 2
mov eax, dword [ebp - 0x10]
mov edx, 0x4cf650
call fcn.00404b8c
mov eax, dword [ebp - 0x10]
add eax, 0xc
call fcn.00404b38
mov eax, dword [ebp - 4]
add eax, 0x3e0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x14]
mov edx, 0x4cf668
call fcn.00404b8c
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
add eax, 0x408
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x18]
mov edx, 0x4cf680
call fcn.00404b8c
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
add eax, 0x430
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x1c]
mov edx, 0x4cf69c
call fcn.00404b8c
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d14cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405004
xor eax, eax
push ebp
push 0x4d1654
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404b38
cmp byte [ebp - 9], 0
je 0x4d1519
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004cf6b0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4d1631
mov eax, 0x105
call fcn.004a6b1c
mov dword [ebp - 0x10], eax
mov eax, 0x105
call fcn.004a6b1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4d15d5
lea eax, [ebp - 0x48]
push eax
mov ecx, 9
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405074
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x41]
call fcn.0040b060
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x41]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [ebp - 0x10]
call fcn.004bc6ec
test al, al
je 0x4d15aa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404d38
jmp 0x4d15d5
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x41]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [ebp - 0x10]
call fcn.004bc5c0
test al, al
je 0x4d15d5
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404d38
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4d1621
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
call fcn.00404d38
push dword [ebp - 0x4c]
push dword [ebp - 8]
lea eax, [ebp - 0x50]
call fcn.004b1a80
push dword [ebp - 0x50]
push 0x4d166c
mov eax, dword [ebp + 8]
mov edx, 4
call fcn.00404edc
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov ecx, dword [ebp - 8]
call fcn.004bc404
mov eax, dword [ebp - 0x10]
call fcn.004a6b40
mov eax, dword [ebp - 0x14]
call fcn.004a6b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d165b
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404b5c
lea eax, [ebp - 8]
call fcn.00404b38
ret