joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ee90
Capabilities:
Delete file
Delete registry key
Print debug messages
Terminate process

Disassembly:
sub esp, 0x608
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.ActiveX
call esi
mov eax, dword [0x1001cfe0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x1001cfe4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
push 0x1001b978
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
push edx
call fcn.1000cf30
add esp, 4
lea eax, [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x110]
push ecx
push str._s_lang.ini
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
xor esi, esi
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x1000ef40
lea ecx, [esp + 0x110]
push ecx
call edi
test eax, eax
jne 0x1000ef46
inc esi
cmp esi, 0xa
jl 0x1000ef27
push 0x1001d104
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x218]
push str.SoftwareMicrosoftActive_SetupInstalled_Components_
lea edx, [esp + 0x21c]
push str._s_s
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x214]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x3e8
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000efa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x114], eax
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.1000f060
test al, al
je 0x1000f01b
lea esi, [esp + 0x10]
lea eax, [esp + 0x11c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000f003
test cl, cl
je 0x1000efff
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000f003
add eax, 2
add esi, 2
test cl, cl
jne 0x1000efdb
xor eax, eax
jmp 0x1000f008
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000f01b
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0x108
push 0x1001b9a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 0x108
mov ecx, 0x42
lea esi, [esp + 0x224]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.1000f160
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x108
ret 0x108
Function at 0x1000f420
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x444
xor eax, eax
lea edx, [esp]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x111
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x454]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.1000f270
test al, al
je 0x1000f484
mov ecx, 0x111
lea edi, [esp + 0xc]
lea esi, [esp + 0x454]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x1000f4ac
push 0x1001b9a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 0x444
mov ecx, 0x111
lea esi, [esp + 0x898]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1000f4c0
pop edi
pop esi
pop ebx
add esp, 0x444
ret 0x444

Function at 0x1000f6f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x1000f670
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000f900
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.Winlogon
mov esi, eax
call fcn.1000f8b0
add esp, 4
test eax, eax
jne 0x1000f923
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x1000f947
push esi
call fcn.1000f840
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x4015d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x12828], 0
push edi
jne 0x40160e
push dword [esi + 4]
lea eax, [esi + 0xc]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x40164d
push 0x42de80
mov ecx, esi
call fcn.00401166
jmp 0x40164d
cmp dword [esi + 0x12844], 4
jae 0x401623
push 0x42de80
mov ecx, esi
call fcn.00401166
mov eax, dword [esi + 0x12840]
add eax, dword [esi + 0x12848]
push 4
push eax
lea edi, [esi + 0xc]
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
add dword [esi + 0x12848], 4
mov dword [esi + 0x1283c], eax
xor ebx, ebx
cmp dword [esi + 0xc], ebx
je 0x40176f
mov ecx, esi
call fcn.00401375
mov ecx, esi
call fcn.004011f1
lea edi, [esi + 0x18]
mov ecx, 0x3f1
mov eax, 0x20202020
rep stosd dword es:[edi], eax
cmp dword [esi + 0xc], ebx
mov edi, 0xfc4
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ebx
jbe 0x40176f
mov ebx, 0xfff
jmp 0x401693
mov edi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00401398
cmp eax, 0x100
mov dword [ebp - 0xc], eax
jge 0x4016df
cmp byte [esi + 0x12828], 0
jne 0x4016bb
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_putc]
pop ecx
pop ecx
jmp 0x4016cd
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
lea ecx, [esi + 0x1282c]
call fcn.00402ae0
mov al, byte [ebp - 0xc]
mov byte [esi + edi + 0x18], al
inc edi
and edi, ebx
inc dword [ebp - 8]
mov dword [ebp - 0x10], edi
jmp 0x401754
mov ecx, esi
call fcn.004014bd
and dword [ebp - 0x14], 0
sub edi, eax
mov eax, dword [ebp - 0xc]
dec edi
add eax, 0xffffff03
and edi, ebx
test eax, eax
mov dword [ebp - 0x18], eax
jle 0x401754
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, edi
and eax, ebx
cmp byte [esi + 0x12828], 0
movzx eax, byte [eax + esi + 0x18]
mov dword [ebp - 0xc], eax
jne 0x401727
push dword [esi + 8]
push eax
call dword [sym.imp.MSVCRT.dll_putc]
pop ecx
pop ecx
jmp 0x401739
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
lea ecx, [esi + 0x1282c]
call fcn.00402ae0
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 0xc]
mov byte [esi + eax + 0x18], cl
inc eax
and eax, ebx
inc dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x401701
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, eax
jbe 0x401766
add eax, 0x400
mov dword [esi + 0x14], eax
cmp ecx, dword [esi + 0xc]
jb 0x401690
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
and dword [esp], 0
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 1
pop ebp
xor eax, eax
mov ax, bp
push 3
push eax
push ebx
call edi
mov esi, eax
test esi, esi
je 0x401a05
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x8a8
je 0x401a21
cmp eax, 0x2e8
jne 0x4019ff
mov dword [esp + 0x10], ebp
inc ebp
cmp ebp, 8
jl 0x4019d4
cmp dword [esp + 0x10], 0
jne 0x401a10
xor eax, eax
jmp 0x401a34
movzx eax, word [esp + 0x10]
push 3
push eax
push ebx
call edi
mov esi, eax
test esi, esi
je 0x401a0c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a0c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x401a3c
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x401a80
test esi, esi
mov ecx, dword [ebp + 8]
mov dword [0x4051a0], ecx
mov dword [0x4051a4], eax
jne 0x401a6a
xor ecx, ecx
jmp 0x401a6d
mov ecx, dword [esi + 0x20]
push ecx
push 0x401997
push 0xe
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
test eax, eax
jne 0x401a8f
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x401b6a
push edi
push dword [0x42de7c]
mov ecx, esi
push dword [0x4051a4]
call fcn.004019bd
mov esi, eax
test esi, esi
je 0x401b5f
and dword [0x42de74], 0xfffffffe
push dword [0x42de74]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x42de78]
test eax, eax
je 0x401ae1
push 0x8a8
lea eax, [eax + 0x40d5b8]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x405054
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x401b5f
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 0
push 2
push edi
call esi
push edi
push 0x8000
push 1
mov ebx, 0x4055b4
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push 0
push 0
push edi
call esi
push edi
push dword [0x4051ac]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push 1
push 0x40d5b8
call edi
push 2
push 0
push dword [ebp - 4]
call esi
add esp, 0x44
push dword [ebp - 4]
push 0x8000
push 1
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402161
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x404558
push 1
push 0
push 0x404548
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4021af
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x404568
push eax
call dword [ecx]
test eax, eax
jge 0x4021b3
xor eax, eax
leave
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
nop
push 1
pop eax
leave
ret

Function at 0x402811
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
nop
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push 0x80
push 0
call esi
test eax, eax
je 0x402871
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push 0
call ebx
test eax, eax
je 0x402871
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call edi
test eax, eax
je 0x402871
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
movzx eax, ax
push 3
push eax
push 0
call esi
mov esi, eax
test esi, esi
je 0x402871
push esi
push 0
call ebx
test eax, eax
je 0x402871
push eax
call edi
mov edi, eax
test edi, edi
jne 0x402875
xor al, al
jmp 0x40288f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push 0x42d5c0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4030fc
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.00404e34
test esi, esi
jne 0x403132
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.00404f24
jmp 0x403150
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403000
mov edi, eax
test esi, esi
je 0x403150
cmp dword [ebx], 0
je 0x403150
dec esi
jmp 0x403139
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40315c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403d2c
Capabilities:
Query or enumerate registry value

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

Function at 0x404c00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x481048], 0
je 0x404c61
cmp word [0x48121c], 0xd7b2
jne 0x404c29
cmp dword [0x481224], 0
jbe 0x404c29
mov eax, 0x481218
call dword [0x481234]
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 0x404c88
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47f030], 0
jne 0x404c7d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404db8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x47f038], 0
je 0x404dde
mov edx, esi
mov eax, ebx
call dword [0x47f038]
jmp 0x404ded
mov eax, 8
call fcn.00402d04
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x481049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d80
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406504
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 0x406734
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406587
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406734
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406587
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406750
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406610
xor eax, eax
push ebp
push 0x406609
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406340
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 0x4065ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406770
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4065ee
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 0x406610
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 0x40672a
cmp byte [ebp - 0xd], 0
jne 0x406657
cmp byte [ebp - 0x12], 0
je 0x40672a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406670
dec ebx
cmp byte [ebx], 0x2e
je 0x40667f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40666f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40672a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4066bc
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 0x40672a
cmp byte [ebp - 0xd], 0
je 0x40672a
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 0x40672a
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
Function at 0x408bec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408c7c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408c7c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408c2f
test edx, 3
jne 0x408c1e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408c29
jmp 0x408c2f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408c2f
cmp dword [ecx - 8], 1
je 0x408c39
mov edx, ebx
or edx, 3
call fcn.00405580
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408c4b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e34

Function at 0x408c88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408d18
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408d18
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408ccb
test edx, 3
jne 0x408cba
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408cc5
jmp 0x408ccb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408ccb
cmp dword [ecx - 8], 1
je 0x408cd5
mov edx, ebx
or edx, 3
call fcn.00405580
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408ce7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e34

Function at 0x40bf68
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 0x40bfa1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f24
jmp 0x40bfaa
mov eax, ebx
mov edx, esi
call fcn.00404e88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bfb4
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 0x40bfd6
movzx eax, byte [esp]
jmp 0x40bfd8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c668
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c4e0
mov eax, dword [0x480e00]
cmp byte [eax], 0
je 0x40c6e4
mov eax, dword [0x480bd0]
call fcn.004034cc
call fcn.00402e60
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.004096b4
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 0x40c72c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c71a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x480b74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4837f4]
call fcn.004062e8
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 0x40cf78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d04e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ecc
lea eax, [ebp - 4]
call fcn.00405348
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004052f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d038
mov eax, ebx
call fcn.00402d04
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d031
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 - 4]
call fcn.004052f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d01b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d060
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d01b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d038
mov eax, dword [ebp - 0x10]
call fcn.00402d20
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d055
lea eax, [ebp - 4]
call fcn.00404e34
ret

Function at 0x4224c4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x422512
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00422200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42252b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret