joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4760cc
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405590
xor eax, eax
push ebp
push 0x4761d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405178
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4d7674
push 0x4d7670
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4d767c
push 0x4d7678
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4d7684
push 0x4d7680
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403690
mov dword [ebp - 0x58], 0x44
mov eax, dword [0x4d7670]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4d767c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4d7684]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0x101
mov word [ebp - 0x28], 0
push 0x4d7688
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x100010
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004055a0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4761dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405104
ret
Function at 0x4763e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405590
mov eax, dword [ebp - 8]
call fcn.00405590
mov esi, dword [0x483798]
xor eax, eax
push ebp
push 0x47659e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4765b0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x4765bc
call fcn.004053ec
mov eax, dword [ebp - 0xc]
call fcn.004055a0
push eax
mov eax, dword [0x4d76ac]
call fcn.004055a0
push eax
push 0x4765c4
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x47656f
xor ebx, ebx
cmp byte [esi], 0
je 0x476460
call fcn.0046ff6c
call fcn.004207ec
test al, al
je 0x476470
call fcn.00420804
mov ebx, eax
cmp bl, 0xd
jne 0x4764ee
cmp dword [ebp - 8], 0
je 0x4764ee
call fcn.004762b8
push 0x4765d4
push dword [ebp - 8]
push 0x4765f4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00476848
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fdiv dword [0x4765f8]
fdiv dword [0x4765f8]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x18]
call fcn.0040ace4
mov eax, dword [ebp - 0x18]
mov ecx, 6
mov edx, 1
call fcn.00405600
push dword [ebp - 0x14]
push 0x476604
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.00405460
mov eax, dword [ebp - 0x10]
call fcn.00470148
jmp 0x47656f
cmp bl, 0x20
jne 0x476507
call fcn.0046ffc0
cmp byte [esi], 0
je 0x476502
mov byte [esi], 0
jmp 0x47656f
mov byte [esi], 1
jmp 0x47656f
mov eax, ebx
call fcn.00402f20
cmp al, 0x1b
jne 0x476552
call fcn.004762b8
mov eax, 0x476614
call fcn.00470148
call fcn.00420804
mov ebx, eax
mov eax, ebx
call fcn.0046fcbc
mov eax, ebx
call fcn.00402f20
cmp al, 0x53
jne 0x47656f
mov eax, 0x476648
call fcn.00476a64
mov eax, 0x47665c
call fcn.00470148
xor ebx, ebx
jmp 0x476583
mov eax, ebx
call fcn.00402f20
add al, 0xd0
sub al, 0xa
jb 0x476565
add al, 0xf9
sub al, 0x1a
jae 0x47656f
mov eax, 0x476678
call fcn.00470338
mov eax, 0x476648
call fcn.00475f60
test al, al
jne 0x476454
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4765a5
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405104
ret
Function at 0x476998
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405590
mov eax, dword [ebp - 8]
call fcn.00405590
xor eax, eax
push ebp
push 0x476a4d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26]
xor ecx, ecx
mov edx, 0x1e
call fcn.00403690
mov dword [ebp - 0x22], 2
lea eax, [ebp - 0x2c]
mov ecx, 0x476a60
mov edx, dword [ebp - 4]
call fcn.004053ec
mov eax, dword [ebp - 0x2c]
call fcn.004055a0
mov dword [ebp - 0x1e], eax
lea eax, [ebp - 0x30]
mov ecx, 0x476a60
mov edx, dword [ebp - 8]
call fcn.004053ec
mov eax, dword [ebp - 0x30]
call fcn.004055a0
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x150
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476a54
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00405104
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405104
ret

Function at 0x476a64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405590
xor eax, eax
push ebp
push 0x476ad4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x476ae0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x476aec
call fcn.004053ec
mov eax, dword [ebp - 8]
call fcn.004055a0
push eax
push 0x476af4
push 0x476b00
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476adb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405104
ret
Function at 0x47a7d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47a8a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, ebx
call fcn.004052c8
lea eax, [ebp - 0x28]
mov edx, 0x47a8c0
call fcn.004053a8
mov eax, dword [ebp - 0x28]
call fcn.004055a0
push eax
call sub.kernel32.dll_GetDriveTypeA
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x1e
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.004052c8
lea eax, [ebp - 0x2c]
mov edx, 0x47a8c0
call fcn.004053a8
mov eax, dword [ebp - 0x2c]
call fcn.004055a0
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x22]
call fcn.0040a098
mov eax, dword [ebp - 0x30]
mov edx, 0x47a8cc
call fcn.004054ec
jne 0x47a883
mov eax, esi
mov edx, 0x47a8d8
call fcn.00405134
jmp 0x47a88d
mov edx, esi
lea eax, [ebp - 0x22]
call fcn.0040a098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a8af
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405104
ret

Function at 0x47a8e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47a94d
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004052c8
lea eax, [ebp - 8]
mov edx, 0x47a964
call fcn.004053a8
mov eax, dword [ebp - 8]
call fcn.004055a0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47a931
mov byte [ebp - 1], bl
inc ebx
cmp bl, 0x5b
jne 0x47a904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a954
lea eax, [ebp - 8]
call fcn.004050e0
ret

Function at 0x47abc4
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x47abcd
mov eax, dword [esp + 0x2000]
add esp, 4
mov ebx, eax
push 0
push 0x4d7ab0
push 0x2000
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x4d7ab4]
push eax
call sub.kernel32.dll_ReadFile_1
mov edi, ebx
mov esi, esp
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
add esp, 0x2000
pop edi
pop esi
pop ebx
ret
Function at 0x47cc00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405590
xor eax, eax
push ebp
push 0x47cca3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x47ccb8
mov edx, dword [0x4d7ab8]
call fcn.004053ec
push 0
push 0x47ccc8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x47ccd4
call fcn.004053ec
mov eax, dword [ebp - 0xc]
call fcn.004055a0
push eax
mov eax, dword [ebp - 8]
call fcn.004055a0
push eax
push 0x47ccd8
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x47cc7a
call fcn.0046ff6c
mov ax, 0x3e8
call fcn.00420a4c
mov eax, 0x47ccb8
call fcn.00475f60
test al, al
jne 0x47cc6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ccaa
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405104
ret
Function at 0x47ed68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x47ef19
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004762b8
mov eax, 0x47ef2c
call fcn.00477270
mov eax, dword [0x483518]
call fcn.00403dd8
call fcn.00402c94
mov eax, 0x47ef3c
call fcn.00477270
lea eax, [ebp - 4]
call fcn.00472480
cmp dword [ebp - 4], 0
jne 0x47edc6
mov eax, 0x47ef4c
call fcn.00477270
jmp 0x47eefe
mov eax, 0x47ef60
call fcn.00470148
lea eax, [ebp - 8]
call fcn.00472480
cmp dword [ebp - 8], 0
jne 0x47eded
mov eax, 0x47ef4c
call fcn.00477270
jmp 0x47eefe
call fcn.004762b8
mov eax, 0x47ef98
call fcn.00470148
lea eax, [ebp - 0x10]
call fcn.0047d1e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040943c
push dword [ebp - 8]
push 0x47efd0
push dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405460
mov eax, dword [0x483518]
call fcn.00403dd8
call fcn.00402c94
mov eax, 0x47efdc
call fcn.00470148
call fcn.004700c4
call fcn.00402f20
cmp al, 0x53
je 0x47ee52
cmp al, 0x4e
jne 0x47ee36
call fcn.004762b8
mov eax, 0x47f014
call fcn.00470148
push 0
push 0x47f048
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, 0x47f054
call fcn.004053ec
mov eax, dword [ebp - 0x14]
call fcn.004055a0
push eax
push 0x47f058
push 0x47f070
push 0
call sub.shell32.dll_ShellExecuteA
push 0x47f080
push dword [ebp - 4]
push 0x47f090
push dword [ebp - 8]
push 0x47f09c
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00405460
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004763e0
mov eax, 0x47f0a8
call fcn.00476a64
mov eax, 0x47f0bc
call fcn.00470148
mov eax, dword [ebp - 8]
call fcn.00409b2c
test al, al
jne 0x47eef4
mov eax, 0x47f0d8
call fcn.00470148
mov eax, 0x47f0f4
call fcn.00470148
jmp 0x47eefe
mov eax, 0x47f12c
call fcn.00470148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ef20
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405104
ret
Function at 0x40295c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402999
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029b9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404474
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404204
test esi, esi
jne 0x402b56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042f4
jmp 0x402b74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a34
mov edi, eax
test esi, esi
je 0x402b74
cmp dword [ebx], 0
je 0x402b74
dec esi
jmp 0x402b5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403244
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a0020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032bc
xor eax, eax
push ebp
push 0x4032b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a0020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a0020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404088
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a404c], 0
je 0x4040e9
cmp word [0x4a4220], 0xd7b2
jne 0x4040b1
cmp dword [0x4a4228], 0
jbe 0x4040b1
mov eax, 0x4a421c
call dword [0x4a4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404110
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a0030], 0
jne 0x404105
push 0
push 0x4a0064
push 0x4a006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406280
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4062e6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404474
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e08
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062ed
lea eax, [ebp - 0x10]
call fcn.00404204
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046c4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d99
test al, 0x10
jne 0x408d9d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b8fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b935
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f4
jmp 0x40b93e
mov eax, ebx
mov edx, esi
call fcn.00404258
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b948
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b969
mov al, byte [esp]
jmp 0x40b96b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bff0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be68
mov eax, dword [0x4a30f0]
cmp byte [eax], 0
je 0x40c06c
mov eax, dword [0x4a2e18]
call fcn.00402c38
call fcn.004028e8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040913c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c0b4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0a2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a2da4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a4668]
call fcn.00405778
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ca26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040429c
lea eax, [ebp - 8]
call fcn.00404714
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca10
mov eax, ebx
call fcn.00402780
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046c4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c9f3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c9f3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca10
mov eax, dword [ebp - 0x10]
call fcn.004027a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca2d
lea eax, [ebp - 8]
call fcn.00404204
ret

Function at 0x40cfe8
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 0x40d04c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
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.00404474
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004089e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d053
lea eax, [ebp - 0xc]
call fcn.00404204
ret

Function at 0x41fee4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a4888
cmp dword [edi], 0
jne 0x41ff60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a4884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a04a4
mov ecx, 2
call fcn.004029f4
mov edx, 0x41febc
lea eax, [esi + 5]
call fcn.0041fedc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fedc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ff35
mov dword [0x4a4884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4214ec
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4214f2
ret
Function at 0x4239c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423a11
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4239f8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4239e8
jmp 0x423a11
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4239f9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e8d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042e56c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004046c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42e932
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a2fb4]
mov dl, 1
mov eax, dword [0x42e464]
call fcn.0040c1b0
call fcn.00403c24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e93c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004046c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42e994
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a326c]
mov dl, 1
mov eax, dword [0x42e464]
call fcn.0040c1b0
call fcn.00403c24
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042e59c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4358b4
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x435800
call sub.user32.dll_EnumWindows
ret

Function at 0x4359d4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x435a51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00435434
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4359f9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00435034
cmp dword [ebp - 4], 0
je 0x435a3b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046c4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435a58
lea eax, [ebp - 4]
call fcn.00404204
ret