joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x28
push esi
lea ecx, [esp + 8]
xor eax, eax
push ecx
push 0x423f2c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x408c30
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.always
push ecx
call esi
test eax, eax
jne 0x408bb4
cmp dword [esp + 0xc], 1
je 0x408c0b
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1e]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push str.lasttime
push ecx
call esi
test eax, eax
jne 0x408c20
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x10]
je 0x408c25
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.lasttime
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x28
ret
cmp eax, 2
je 0x408bf0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x28
ret

Function at 0x408c40
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push ebx
mov dword [esp + 0xc], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
ja 0x408c64
xor eax, eax
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0040b381
mov esi, eax
add esp, 4
test esi, esi
je 0x408cc3
push edi
push 0
push esi
call fcn.004120b0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408cba
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x423640
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x408ccb
push esi
call fcn.0040b44b
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
mov edi, dword [esp + 0x18]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._u._u._u._u
mov eax, 0x104
call fcn.00403420
push esi
call fcn.0040b44b
add esp, 0x18
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x408d10
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x24], eax
xor eax, eax
push esi
push str.GetNativeSystemInfo
push str.kernel32.dll
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408d6b
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x408d76
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
cmp ax, 9
je 0x408d86
cmp ax, 6
jne 0x408d9b
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b0a0
add esp, 0x28
ret

Function at 0x408db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.004120b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x408e03
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x118
ret
mov eax, dword [esp + 4]
mov dword [0x428634], 0x63
cmp eax, 5
jne 0x408e2d
cmp dword [esp + 8], 1
jne 0x408e82
call fcn.00408d10
test eax, eax
jne 0x408e82
mov dword [0x428634], eax
jmp 0x408e82
cmp eax, 6
jne 0x408e63
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x408e49
call fcn.00408d10
neg eax
sbb eax, eax
neg eax
inc eax
jmp 0x408e7d
cmp eax, 2
je 0x408e53
cmp eax, 3
jne 0x408e82
call fcn.00408d10
neg eax
sbb eax, eax
neg eax
add eax, 3
jmp 0x408e7d
cmp eax, 0xa
jne 0x408e82
cmp dword [esp + 8], 0
jne 0x408e82
call fcn.00408d10
neg eax
sbb eax, eax
neg eax
add eax, 5
mov dword [0x428634], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0040b0a0
add esp, 0x118
ret
Function at 0x40b0a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427074]
jne 0x40b0aa
repz ret
jmp fcn.0040ca53

Function at 0x4176d2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413931
and dword [ebp - 4], 0
cmp dword [0x429224], 0
mov ebx, eax
jne 0x417783
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417834
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417834
push eax
call fcn.004138bf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429224], eax
call esi
push eax
call fcn.004138bf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429228], eax
call esi
push eax
call fcn.004138bf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42922c], eax
call esi
push eax
call fcn.004138bf
pop ecx
mov dword [0x429234], eax
test eax, eax
je 0x417783
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004138bf
pop ecx
mov dword [0x429230], eax
mov eax, dword [0x429230]
cmp eax, ebx
je 0x4177db
cmp dword [0x429234], ebx
je 0x4177db
push eax
call fcn.0041393a
push dword [0x429234]
mov esi, eax
call fcn.0041393a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4177db
test edi, edi
je 0x4177db
call esi
test eax, eax
je 0x4177d2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4177d2
test byte [ebp - 0xc], 1
jne 0x4177db
or dword [ebp + 0x10], 0x200000
jmp 0x417814
mov eax, dword [0x429228]
cmp eax, ebx
je 0x417814
push eax
call fcn.0041393a
pop ecx
test eax, eax
je 0x417814
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417814
mov eax, dword [0x42922c]
cmp eax, ebx
je 0x417814
push eax
call fcn.0041393a
pop ecx
test eax, eax
je 0x417814
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429224]
call fcn.0041393a
pop ecx
test eax, eax
je 0x417834
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417836
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41aae0
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4249e8
push 0x4109d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x427074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x41ab25
mov dword [ebp - 0x1c], 0x10000
jmp 0x41ab30
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004120b0
add esp, 0xc
jmp 0x41ab4b
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x41ab68
jmp 0x41ac87
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x41ab7c
jmp 0x41ac87
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x41ab8c
jmp 0x41ac87
cmp dword [ebp - 0x28], 0x1000
jne 0x41abad
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x41abad
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x41abaf
jmp 0x41ab42
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41abdc
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ab42
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x41abf6
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x41abf6
cmp dword [ebp - 0x44], 0x40
jae 0x41ac02
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ab42
push 0
push pe_nt_image_headers32
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41ac2e
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ab42
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x41ac45
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ab42
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x41ac89
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0040b0a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x78a1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0078a140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0078a140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0078a140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0078a140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x78abfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x78ac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x79c87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x78ac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x78ac52
xor eax, eax
pop esi
leave
ret 4

Function at 0x401db4
Capabilities:
Encode data using xor

Disassembly:
push 0x401ea0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add ch, dh
dec edi
fadd qword [eax]
jae 0x401dc4
add byte [ebp - 0x76], al
pop ecx
je 0x401dd9
lodsd eax, dword [esi]
out 0x24, al
jmp 0x401de4
add byte [eax], al
add dword [eax], eax
add byte [eax], al
sub eax, 0x30303043
sub eax, 0xf2d0ccb3
iretd
Function at 0x43e37d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esp
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0043cef5
mov bh, 0xec
adc al, al
lea eax, [ebp - 0x72c]
push eax
call fcn.0043cf05
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0043ceba
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.0043cef5
add ch, byte [edx]
pop es
pop ebp
lea eax, [ebp - 0x718]
push eax
push 0x40
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.0043ce66
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.0043cef5
pop es
in eax, dx
mov esp, fs
and dword [ebp - 0x700], 0
jmp 0x43e475
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x43e48e
mov eax, dword [ebp - 0x700]
and byte [ebp + eax - 0x394], 0
jmp 0x43e468
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x18]
push eax
lea eax, [ebp - 0x540]
push eax
call fcn.0043ce66
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x540]
sub ecx, eax
mov dword [ebp - 0x540], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043ce66
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x10]
push eax
lea eax, [ebp - 0x400]
add ah, bh
invalid
call dword [eax - 0x18]
arpl cx, bp
invalid
inc dword [ebx - 0x41f0f33c]
inc ebp
clc
mov ecx, dword [ebp - 0x400]
sub ecx, eax
mov dword [ebp - 0x400], ecx
call fcn.0043cef5
js 0x43e52e
sbb ebp, dword ss:[edx + 4]
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0xc]
add esp, esi
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.0043ce66
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x54c]
sub ecx, eax
mov dword [ebp - 0x54c], ecx
call fcn.0043cef5
invalid
Function at 0x430dfc
Capabilities:
Read file on windows

Disassembly:
push ebp
jns 0x430e13
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x430e1c
call fcn.00428d6d
mov dword [eax], 0x3ad80016
call 0x57428ffb
jmp 0x430f17
in al, 0x81
call dword [esi - 0x17]
sti
add byte [eax], al
add byte [ebx - 0x7c57f3b9], cl
mov eax, dword [edi + 0xc]
test al, 0x83
je 0x24430f17
test al, 0x40
jne 0x430f17
test al, 2
je 0x430e3e
or eax, 0x20
mov dword [edi + 0xc], eax
jmp 0x3a430f17
or eax, 1
mov dword [edi + 0xc], eax
test eax, 0x10c
jne 0x430e54
push edi
call fcn.00436239
pop ecx
jmp 0x430e59
mov eax, dword [edi + 8]
mov dword [edi], eax
push dword [edi + 0x18]
push dword [edi + 8]
push edi
call fcn.0042491b
pop ecx
push eax
call fcn.00430f9c
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x430f06
cmp eax, 0xffffffff
je 0x430f06
test byte [edi + 0xc], 0x82
jne 0x430eda
push edi
call fcn.0042491b
pop ecx
cmp eax, 0xffffffff
je 0x430ec5
push edi
call fcn.0042491b
pop ecx
cmp eax, 0xfffffffe
je 0x430ec5
push esi
push edi
call fcn.0042491b
mov esi, eax
push edi
sar esi, 5
call fcn.0042491b
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [esi*4 + 0x4c49e0]
pop ecx
pop esi
jmp 0x430eca
mov eax, 0x4bfe90
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x430eda
or dword [edi + 0xc], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x430ef9
test byte [edi + 0xc], 8
je 0x430ef9
test dword [edi + 0xc], 0x400
jne 0x430ef9
mov dword [edi + 0x18], 0x1000
mov ecx, dword [edi]
dec dword [edi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
jmp 0x430f1a
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [edi + 0xc], eax
and dword [edi + 4], 0
or eax, 0xffffffff
pop ebp
pop ebp
ret

Function at 0x45d076
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x353a8f9c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp - 0x3fccff78]
mov dword [esp + 0x5c], edi
mov eax, dword [edi + 0x28]
mov dword [esp - 0x3fccff78], eax
mov eax, dword [edi + 0x2c]
mov dword [esp - 0x3fccff74], eax
mov eax, dword [edi + 0x30]
mov dword [esp - 0x3fccff70], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x560394], eax
inc dword [eax]
lea eax, [ebp + 0xc]
push eax
call fcn.00407ca2
shl byte [esi + 8], 0x8d
dec esp
and al, 0x60
push dword [esp - 0x3fccff78]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
call 0x8a407f55
inc edi
dec edi
cmp al, 0x8d
inc esp
and al, 0x60
push eax
call 0x8a409fd1
inc edi
invalid

Function at 0x468a85
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c4190]
jne 0x468a97
call 0x36168b27
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0x89ffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468ada
fadd qword [0x4bbac8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bbaa0]
mov esp, ebp
pop ebp
ret
Function at 0x402a2c
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.00403fa4
test esi, esi
jne 0x402a62
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.00404094
jmp 0x402a80
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402940
mov edi, eax
test esi, esi
je 0x402a80
cmp dword [ebx], 0
je 0x402a80
dec esi
jmp 0x402a69
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x452020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40317c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40315c
xor eax, eax
push ebp
push 0x403155
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 0x403198
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 0x40315c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x452020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x452020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e28
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403e89
cmp word [0x45421c], 0xd7b2
jne 0x403e51
cmp dword [0x454224], 0
jbe 0x403e51
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45206c
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 0x403eb0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452030], 0
jne 0x403ea5
push 0
push 0x452064
push 0x45206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405204
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405434
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405287
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405434
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405287
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405450
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405310
xor eax, eax
push ebp
push 0x405309
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040504c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405470
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405310
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40542a
cmp byte [ebp - 0xd], 0
jne 0x405357
cmp byte [ebp - 0x12], 0
je 0x40542a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405370
dec ebx
cmp byte [ebx], 0x2e
je 0x40537f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40536f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40542a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4053bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40542a
cmp byte [ebp - 0xd], 0
je 0x40542a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40542a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret