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

Disassembly:
mov eax, 0x406960
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x4098d8
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x404747
lea ecx, [ebp - 0x1c]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x404747
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x4098e4
push ecx
call esi
cmp eax, ebx
jne 0x404747
lea ecx, [ebp - 0x10]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x404747
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x4098f0
push ecx
call esi
cmp eax, ebx
jne 0x404747
lea ecx, [ebp - 0x18]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x404747
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x4098fc
push ecx
call esi
cmp eax, ebx
jne 0x404747
lea ecx, [ebp - 0x14]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x404778
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402e41
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402e41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402e41
jmp 0x4047f6
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x409904
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4047ba
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402e41
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4047e2
cmp dword [ebp + 0xc], ebx
jne 0x4047fd
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4047d2
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4047df
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x4047ec
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4047f6
push dword [ebp - 0x1c]
call esi
mov eax, 0x80004005
jmp 0x404836
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404810
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40481d
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40482a
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x404834
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404d63
Capabilities:
Delete registry value
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x409aa8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404dfb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x409ad0
push dword [ebp - 4]
call esi
push 0x409ae0
push dword [ebp - 4]
call esi
push 0x409ae8
push dword [ebp - 4]
call esi
push str.InstalledJREVersion
push dword [ebp - 4]
call esi
push str.NewJREVersion
push dword [ebp - 4]
call esi
push 0x409b14
push dword [ebp - 4]
call esi
push str.UpdateDetected
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyCnt
push dword [ebp - 4]
call esi
push str.UpdAvailNotifyTime
push dword [ebp - 4]
call esi
push str.UpdAvailElapsed
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x404dfd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
call esi
push str.OpenProcessToken
push edi
mov dword [ebp - 8], eax
call esi
push str.GetTokenInformation
push edi
mov dword [ebp - 0x18], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x10], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x28]
push 2
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
mov dword [ebp - 0x14], ebx
call dword [ebp - 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp dword [esi], ebx
mov dword [ebp - 8], ebx
jbe 0x404eec
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
jne 0x404eec
inc dword [ebp - 8]
add dword [ebp - 0x10], 8
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jb 0x404ecf
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, dword [esi]
push esi
setne al
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [ebp - 0x20]
cmp edi, ebx
je 0x404f1b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405194
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x27
xor eax, eax
pop ecx
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
xor ebx, ebx
push str.win32
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xb4], 0x9c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xb4]
push eax
call edi
test eax, eax
jne 0x4051f3
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x94
push eax
call edi
cmp dword [ebp - 0xa4], 2
jne 0x405270
cmp dword [ebp - 0xb0], 4
jne 0x40520f
push str.winnt
jmp 0x4052a7
cmp dword [ebp - 0xb0], 6
jne 0x405238
cmp dword [ebp - 0xac], ebx
jne 0x4052ad
cmp byte [ebp - 0x1a], 1
jne 0x405231
push str.winvista
jmp 0x4052a7
push str.winlong
jmp 0x4052a7
cmp dword [ebp - 0xb0], 5
jne 0x4052ad
cmp dword [ebp - 0xac], ebx
jne 0x405250
push str.win2000
jmp 0x4052a7
cmp dword [ebp - 0xac], 1
jne 0x405260
push str.winxp
jmp 0x4052a7
cmp dword [ebp - 0xac], 2
jne 0x4052ad
push str.win2003
jmp 0x4052a7
cmp dword [ebp - 0xa4], 1
jne 0x4052ad
cmp dword [ebp - 0xb0], 4
jne 0x4052a2
cmp dword [ebp - 0xac], 0xa
jne 0x405292
push str.win98
jmp 0x4052a7
cmp dword [ebp - 0xac], 0x5a
jne 0x4052a2
push str.winme
jmp 0x4052a7
push str.win95
lea eax, [ebp - 0x18]
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18]
push eax
push 0x409c94
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0xa0]
add esp, 0xc
test eax, eax
je 0x405313
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405313
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa0]
push str.Service_Pack__d
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp dword [ebp - 4], 0
jbe 0x405313
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
push str._s_sp_d
push dword [ebp + 8]
call ebx
add esp, 0x10
mov ebx, dword [ebp + 0x10]
and word [ebp - 0xd8], 0
push str.Unknown
push ebx
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405352
push str.GetNativeSystemInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405352
lea ecx, [ebp - 0xd8]
push ecx
call eax
jmp 0x40535f
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test edi, edi
je 0x40536a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0xd8]
test eax, eax
je 0x40538d
cmp eax, 6
je 0x405386
cmp eax, 9
jne 0x405395
push str.amd64
jmp 0x405392
push str.ia64
jmp 0x405392
push 0x409cec
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40603b
Capabilities:
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
mov edx, eax
pop ecx
mov edi, 0x40a950
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x20c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp edx, edi
je 0x4060af
push edx
call dword [sym.imp.MSVCRT.dll_asctime]
cmp eax, edi
pop ecx
je 0x4060af
push eax
lea eax, [ebp - 0x20c]
push str._n_s::
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x10c]
push ebx
push eax
push str.TMPDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x4060e1
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4060ef
lea eax, [ebp - 0x10c]
push 0x40a134
push eax
call esi
lea eax, [ebp - 0x10c]
push str.jusched.log
push eax
call esi
push edi
push 0x80
push 4
push edi
push 2
lea eax, [ebp - 0x10c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406173
push 2
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20c]
not ecx
dec ecx
push ecx
push eax
push ebx
call esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push dword [ebp + 8]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406178
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407228
push 0x406626
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0x94
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 2
jne 0x406217
cmp dword [ebp - 0xac], 5
jb 0x406217
mov dword [ebp - 4], esi
push 0x40a144
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xb4], eax
cmp eax, esi
je 0x40620e
push 0x40a150
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40620e
mov dword [ebp - 0x1c], 1
or dword [ebp - 4], 0xffffffff
call fcn.00406229
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 1
push esi
push 0x40a1c0
push 0x80000002
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40644b
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push esi
push str.ITCONFIG
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x40644b
movzx esi, byte [ebp - 0x208]
mov eax, esi
pop esi
leave
ret

Function at 0x406463
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor esi, esi
mov dword [ebp - 4], 0x200
call fcn.00406450
test eax, eax
jne 0x4064fb
call fcn.0040382a
test eax, eax
je 0x4064fb
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push 0x40a1f4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4064fe
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x40a21c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], esi
call fcn.00406178
test eax, eax
je 0x4064f0
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x20c]
push dword [ebp - 4]
push eax
call fcn.0040623f
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4064f6
mov eax, dword [ebp - 0x20c]
cmp eax, 0x64
jne 0x4064fe
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x406503
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x40a234
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40653a
push 0x40a25c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40653c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], 0x64
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4065cf
call fcn.00406178
test eax, eax
je 0x4065a2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.00406303
add esp, 0x10
jmp 0x4065ab
mov eax, dword [ebp - 8]
mov dword [ebp - 0x210], eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push str.EnableAutoUpdateCheck
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x402f24
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403480
Capabilities:
Query or enumerate registry value

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

Function at 0x403eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c044], 0
je 0x403f11
cmp word [0x40c218], 0xd7b2
jne 0x403ed9
cmp dword [0x40c220], 0
jbe 0x403ed9
mov eax, 0x40c214
call dword [0x40c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x403f38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b024], 0
jne 0x403f2d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40510c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404428
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405125
test al, 0x10
je 0x405129
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4052b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404284
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404418
xor eax, eax
push ebp
push 0x405330
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404428
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405337
lea eax, [ebp - 4]
call fcn.00404030
ret

Function at 0x406ed8
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 0x406f11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404120
jmp 0x406f1a
mov eax, ebx
mov edx, esi
call fcn.00404084
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406f24
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 0x406f46
movzx eax, byte [esp]
jmp 0x406f48
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4075d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407450
mov eax, dword [0x40baa4]
cmp byte [eax], 0
je 0x407654
mov eax, dword [0x40b9f8]
call fcn.00402f88
call fcn.00402dac
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.00406398
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 0x40769c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40768a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40b9d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e7f0]
call fcn.004047cc
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 0x408ce0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
lea edx, [esp + 0xc]
mov eax, dword [0x4109bc]
mov ecx, 0x40
call fcn.00402dfc
mov dword [0x410908], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x410908
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x408d0e
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x410908]
add eax, esi
add eax, edi
mov dword [esp + 4], 3
mov ecx, dword [esp + 4]
mov edx, eax
shl edx, cl
mov ecx, dword [esp + 4]
neg ecx
shr eax, cl
or edx, eax
mov eax, edx
mov esi, eax
mov dword [ebx*4 + 0x410908], esi
lea eax, [edi + esi]
mov dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + ebp*4 + 0xc]
add eax, esi
add eax, edi
shl eax, cl
mov ecx, dword [esp + 8]
neg ecx
mov edx, dword [esp + ebp*4 + 0xc]
add edx, esi
add edi, edx
shr edi, cl
or eax, edi
mov edi, eax
mov dword [esp + ebp*4 + 0xc], edi
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc ebp
and ebp, 0x8000000f
jns 0x408da6
dec ebp
or ebp, 0xfffffff0
inc ebp
dec dword [esp]
jne 0x408d2e
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408e30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edx, dword [0x4109b4]
sub dword [eax + 8], edx
mov edx, dword [0x4109b0]
sub dword [eax], edx
mov edx, 0x14
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov dword [eax + 0xc], ebx
mov ebx, dword [eax + 4]
mov dword [eax + 8], ebx
mov ebx, dword [eax]
mov dword [eax + 4], ebx
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov esi, 5
mov ecx, esi
mov edi, ebx
shl edi, cl
mov ecx, esi
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov esi, ecx
mov ecx, dword [eax + 4]
mov ebx, ecx
add ecx, ecx
inc ecx
imul ebx, ecx
mov dword [esp], 5
mov ecx, dword [esp]
mov edi, ebx
shl edi, cl
mov ecx, dword [esp]
neg ecx
shr ebx, cl
or edi, ebx
mov ecx, edi
mov ebx, ecx
mov ecx, dword [eax + 8]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x41090c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 8]
mov edi, dword [esp + 4]
shr edi, cl
mov ecx, dword [esp + 8]
neg ecx
mov ebp, dword [esp + 4]
shl ebp, cl
or edi, ebp
mov ecx, edi
xor ecx, esi
mov dword [eax + 8], ecx
mov ecx, dword [eax]
mov edi, edx
add edi, edi
sub ecx, dword [edi*4 + 0x410908]
mov dword [esp + 0xc], ecx
mov ecx, esi
mov edi, dword [esp + 0xc]
shr edi, cl
mov ecx, esi
neg ecx
mov esi, dword [esp + 0xc]
shl esi, cl
or edi, esi
mov ecx, edi
xor ecx, ebx
mov dword [eax], ecx
dec edx
test edx, edx
jne 0x408e4d
mov edx, dword [0x41090c]
sub dword [eax + 0xc], edx
mov edx, dword [0x410908]
sub dword [eax + 4], edx
mov al, 1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x4770c0]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402063
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.004029b8
lea ecx, [esp + 0x14]
call fcn.00401e1e
cmp eax, 0x8aafdc01
je 0x40207a
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a45
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x40202a
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c93
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d84
push eax
call fcn.00402ffd
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a45
jmp 0x402065