joyce8/EMBER2024-capa huggingface dataset:
Function at 0x594a00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5e632c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x238], 0
mov eax, dword [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x238], eax
mov word [ebp - 0x22c], 0
push 0x208
push 0
lea ecx, [ebp - 0x22a]
push ecx
call fcn.004bbbe0
add esp, 0xc
push 0
lea edx, [ebp - 0x22c]
push edx
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0x104
jae 0x594aab
cmp dword [ebp - 0x234], 0
jne 0x594ab0
jmp 0x594b32
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x594ac4
jmp 0x594b32
push str.newdev.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x594ada
jmp 0x594b32
push str.UpdateDriverForPlugAndPlayDevicesW
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x594afa
jmp 0x594b32
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea ecx, [ebp + 8]
call fcn.004287b0
push eax
push 0
call dword [ebp - 0x230]
test eax, eax
jne 0x594b23
jmp 0x594b32
mov dword [ebp - 0x14], 1
xor eax, eax
jne 0x594a40
cmp dword [ebp - 0x10], 0
je 0x594b42
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042f130
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b9002
mov esp, ebp
pop ebp
ret
Function at 0x5965c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b4e5
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5e632c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5c76d4
lea ecx, [ebp - 0x14]
call fcn.004053f0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x596661
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
call fcn.004054d0
push str.hahahaha1218
lea ecx, [ebp - 0x14]
call fcn.0040a390
lea ecx, [ebp - 0x14]
call fcn.004287b0
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00596410
add esp, 8
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0042f130
lea ecx, [ebp - 0x44]
call fcn.00450a60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00450af0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00452510
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004287b0
push eax
lea ecx, [ebp - 0x64]
call fcn.00401ce0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x10]
call fcn.004525b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00401d20
mov dword [ebp - 0x70], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00401ce0
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp - 0x70]
push edx
call fcn.0041ddf0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00452590
mov byte [ebp - 0x65], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.00401d20
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x596778
push str.zip_open_success_________________
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0xa8]
call fcn.00401ce0
mov byte [ebp - 4], 6
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004525d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.00401d20
mov byte [ebp - 0xa9], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00452570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00450ad0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042f130
mov al, byte [ebp - 0xa9]
jmp 0x5967d5
mov byte [ebp - 0xaa], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00452570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00450ad0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042f130
mov al, byte [ebp - 0xaa]
jmp 0x5967d5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x4075b4
push eax
mov dword [esp + 0x10], 0
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401bc1
pop esi
mov eax, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
push 0x4075a8
push ecx
call esi
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401bed
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 2
pop esi
pop ebx
pop ecx
ret 8
push ebp
push edi
push 0x2001
call sub.MFC42.DLL_operatornew
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ebx
mov edi, eax
push 0x2000
push 1
push edi
call ebp
mov esi, eax
add esp, 0x14
test esi, esi
je 0x401c8e
mov edx, dword [esp + 0x18]
push edx
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, esi
jb 0x401c7c
mov cl, byte [0x4079c8]
test cl, cl
jne 0x401c86
mov ecx, dword [0x407eac]
push 0
shr eax, 1
add ecx, eax
mov dword [0x407eac], ecx
sar ecx, 0x14
movsx eax, cx
mov ecx, dword [0x407ec0]
push eax
push 0x402
mov edx, dword [ecx + 0x84]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x2000
push 1
push edi
call ebp
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x401c15
jmp 0x401c8e
mov dword [esp + 0x10], 3
jmp 0x401c8e
mov dword [esp + 0x10], 4
push edi
call sub.MFC42.DLL_operatordelete
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4028a0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, 0x40704c
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push eax
push 0x407da4
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call ebx
add esi, 4
cmp esi, 0x407080
jl 0x4028ba
mov eax, dword [str.syoku.tof]
lea ecx, [esp + 0xc]
push eax
push 0x407da4
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call ebx
mov esi, 0x407084
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push eax
push 0x407da4
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call ebx
add esi, 4
cmp esi, str.patch9.xp3
jl 0x402909
push 0x407da4
lea eax, [esp + 0x10]
push 0x4075b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push ebx
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a14
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
push ebx
push esi
push edx
call edi
test eax, eax
jne 0x4029ff
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
ja 0x4029ff
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x4029ff
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
push esi
push edx
call edi
test eax, eax
jne 0x4029ff
mov ebx, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test eax, eax
je 0x402a14
xor eax, eax
pop ebx
ret
mov eax, ebx
pop ebx
ret
Function at 0x402a20
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0x4079cc
push 0
push edx
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402aac
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x402a83
mov edx, dword [esp + 0x18]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
jmp 0x402aa8
cmp eax, 4
jne 0x402aa4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x402aa8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402aae
xor esi, esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402ac1
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x402b30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x248
push ebx
push esi
mov esi, dword [esp + 0x254]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
lea eax, [esp + 0x14]
push str._s
push eax
mov dword [esp + 0x18], 1
call edi
add esp, 0xc
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402b84
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x248
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x118]
and eax, 0x10
cmp al, 0x10
je 0x402bc0
lea ecx, [esp + 0x144]
lea edx, [esp + 0x14]
push ecx
push esi
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
jne 0x402bc0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x118]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402b8b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
pop ebp
neg eax
sbb eax, eax
pop edi
pop esi
and eax, ecx
pop ebx
add esp, 0x248
ret
Function at 0x402c30
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x405870
push 1
push esi
push 0x405860
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402d23
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x405880
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x402d19
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jl 0x402d0f
mov ecx, dword [esp + 0x220]
test ecx, ecx
je 0x402ca7
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x224]
test ecx, ecx
je 0x402cbd
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x228]
test ecx, ecx
je 0x402cd3
mov eax, dword [esp + 4]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov ecx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x402d0f
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
jl 0x402d0f
mov esi, 1
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 0x210
ret

Function at 0x4038a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
mov eax, dword [str.syoku.exe]
push edi
push eax
push 0x407a98
lea ecx, [esp + 0x60]
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x14], edx
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov dword [esp + 0xc], edx
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x407a98
push 0
push 0
push 0
push 0
lea eax, [esp + 0x74]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x403926
call fcn.00402bf0
add esp, 0x158
ret
mov ecx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
add esp, 0x158
ret
Function at 0x403078
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.004047fc
test esi, esi
jne 0x4030ae
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.004048ec
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4037f0
Capabilities:
Query or enumerate registry value

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

Function at 0x40467c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x501048], 0
je 0x4046dd
cmp word [0x50121c], 0xd7b2
jne 0x4046a5
cmp dword [0x501224], 0
jbe 0x4046a5
mov eax, 0x501218
call dword [0x501234]
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 0x404704
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x462030], 0
jne 0x4046f9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408354
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4083e4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4083e4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408397
test edx, 3
jne 0x408386
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408391
jmp 0x408397
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408397
cmp dword [ecx - 8], 1
je 0x4083a1
mov edx, ebx
or edx, 3
call fcn.00404f48
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 0x4083b3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047fc

Function at 0x4083f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408480
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408480
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408433
test edx, 3
jne 0x408422
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40842d
jmp 0x408433
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408433
cmp dword [ecx - 8], 1
je 0x40843d
mov edx, ebx
or edx, 3
call fcn.00404f48
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 0x40844f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047fc

Function at 0x40b980
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 0x40b9b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048ec
jmp 0x40b9c2
mov eax, ebx
mov edx, esi
call fcn.00404850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bef8
mov eax, dword [0x500454]
cmp byte [eax], 0
je 0x40c0fc
mov eax, dword [0x500258]
call fcn.0040317c
call fcn.00402de8
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.00409008
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 0x40c144
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c132
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5001fc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5037f4]
call fcn.00405b2c
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 0x40c990
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 0x40ca66
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404894
lea eax, [ebp - 4]
call fcn.00404d10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca50
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca49
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.00404cc0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca33
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca78
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca33
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 0x40ca50
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca6d
lea eax, [ebp - 4]
call fcn.004047fc
ret
Function at 0x41b6c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x504300
cmp dword [edi], 0
jne 0x41b740
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5042fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x462b58
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b69c
lea eax, [esi + 5]
call fcn.0041b6bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b6bc
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 0x41b715
mov dword [0x5042fc], 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 0x41ed78
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.00404cc0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41edd0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x500578]
mov dl, 1
mov eax, dword [0x41e89c]
call fcn.0040c240
call fcn.00404244
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e9a4
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 0x41fc2c
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 0x41fc32
ret