joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x406b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00401d70
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
sub eax, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], eax
call fcn.00405c50
fimul dword [esp + 0x48]
lea ecx, [esp + 0xc]
fidiv dword [esp + 0x44]
fstp qword [esp + 0x1c]
call fcn.00405d30
fadd qword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xc]
fstp qword [esp + 0x14]
call fcn.00405d70
fstp qword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.00405c70
fimul dword [esp + 0x4c]
lea ecx, [esp + 4]
fidiv dword [esp + 0x44]
fsubr qword [esp + 0x1c]
fstp qword [esp + 0x1c]
call sub.MFC42.DLL_COleDispatchDriver::COleDispatchDriver
push 0
push str.MapObjects2.Point
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_COleDispatchDriver::CreateDispatch
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0xc]
call fcn.00402960
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00405bf0
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov esi, dword [esp + 4]
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x402630
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x406b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov word [esp + 0xc], 0
call sub.MFC42.DLL_COleVariant::operator
lea ecx, [esp + 8]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x28], 0
call fcn.00402a40
lea eax, [esp + 8]
mov byte [esp + 0x20], 2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 4]
call fcn.004029e0
lea ecx, [esp]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x405e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4073af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_2
movsx eax, word [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x4aa8e4
push ecx
push 8
push 2
push 3
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_COleDispatchDriver::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.00406240
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x402212
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41b758]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41c818], 0
jne 0x4022bc
push 0x104
lea eax, [ebp - 0x804]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402252
sub eax, edx
push esi
push edi
jne 0x40226f
mov esi, str.c:_temp_
lea edi, [ebp - 0x804]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x402289
cmp byte [ebp + eax - 0x805], 0x5c
je 0x402289
mov byte [ebp + eax - 0x804], 0x5c
mov byte [ebp + eax - 0x803], 0
lea edi, [ebp - 0x804]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402290
mov esi, str.memory.log
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x804]
push 0x413bcc
push eax
movsb byte es:[edi], byte [esi]
call fcn.00406f22
pop ecx
pop ecx
pop edi
mov dword [0x41c818], eax
pop esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push eax
call fcn.00406e47
lea eax, [ebp - 0x804]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022db
push 0
sub eax, edx
lea ecx, [ebp - 0x808]
push ecx
push eax
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x804]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
mov eax, dword [0x41c818]
test eax, eax
je 0x402336
push eax
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.00406d3e
push dword [0x41c818]
call fcn.00406bc8
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405adf
leave
ret
Function at 0x403d41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x41b758]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x20
mov eax, 0x412150
call fcn.00405aee
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [esi], vtable.LObject.0
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp + 0x114]
push eax
mov dword [esi], vtable.LCommon::System::Manager.0
mov dword [ebp + 0x114], 0x114
call fcn.004041a5
pop ecx
test eax, eax
jne 0x403dcb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], str.__thiscall_LCommon::System::Manager::Manager_void_
mov dword [ebp - 0x14], 0x58
mov dword [ebp - 0x10], eax
push 0x4194a4
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], vtable.LCommon::System::WindowsErrorException.0
call fcn.00405dcb
xor eax, eax
cmp dword [ebp + 0x124], 2
setne al
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x118]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x11c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x120]
mov dword [esi + 0x10], eax
lea eax, [ebp]
push eax
call fcn.00404ac9
pop ecx
test eax, eax
jne 0x403e23
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], str.__thiscall_LCommon::System::Manager::Manager_void_
mov dword [ebp - 0x14], 0x69
mov dword [ebp - 0x10], 1
jmp 0x403db6
xor eax, eax
cmp dword [ebp + 0x10], 2
push str.ntdll.dll
setne al
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call fcn.004043b6
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
je 0x403e60
push str.NtQuerySystemInformation
push eax
call edi
mov dword [esi + 0x24], eax
push str.kernel32.dll
call fcn.004043b6
mov ebx, eax
test ebx, ebx
jne 0x403e94
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], str.__thiscall_LCommon::System::Manager::Manager_void_
mov dword [ebp - 0x14], 0x80
jmp 0x403db3
push str.GetNativeSystemInfo
push ebx
call edi
push str.IsWow64Process
push ebx
mov dword [esi + 0x28], eax
call edi
push str.Wow64DisableWow64FsRedirection
push ebx
mov dword [esi + 0x2c], eax
call edi
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [esi + 0x30], eax
call edi
xor ecx, ecx
mov dword [esi + 0x34], eax
cmp dword [esi + 0x30], ecx
je 0x403ecb
cmp eax, ecx
jne 0x403ed1
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.00405adf
add ebp, 0x22c
leave
ret
Function at 0x403fa0
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x4121dc
call fcn.00405aee
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x403ffd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x28], eax
push 0x4194a4
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], str.class_LUnicodeStringArray___thiscall_LCommon::System::Manager::GetProgramArguments_void_
mov dword [ebp - 0x2c], 0x39a
mov dword [ebp - 0x40], vtable.LCommon::System::WindowsErrorException.0
call fcn.00405dcb
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
xor esi, esi
cmp dword [ebp - 0x10], edi
jle 0x404038
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebx + esi*4]
call fcn.00401228
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00403582
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x404014
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040375f
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x24]
call fcn.00401a78
mov eax, dword [ebp + 8]
call fcn.00405b8d
ret 4

Function at 0x405adf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b758]
jne 0x405ae9
repz ret
jmp fcn.0040a1dc
Function at 0x40e171
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409c24
xor ebx, ebx
cmp dword [0x41d348], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40e246
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40e1b1
xor eax, eax
jmp 0x40e30a
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40e1aa
push eax
call fcn.00409bc1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d348], eax
call esi
push eax
call fcn.00409bc1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d34c], eax
call esi
push eax
call fcn.00409bc1
mov dword [0x41d350], eax
lea eax, [ebp - 8]
push eax
call fcn.00408a54
test eax, eax
pop ecx
pop ecx
je 0x40e214
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a2ea
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40e246
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00409bc1
cmp eax, ebx
pop ecx
mov dword [0x41d358], eax
je 0x40e246
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409bc1
pop ecx
mov dword [0x41d354], eax
mov eax, dword [0x41d354]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40e2bf
cmp dword [0x41d358], esi
je 0x40e2bf
push eax
call fcn.00409c2d
pop ecx
call eax
cmp eax, ebx
je 0x40e28c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41d358]
call fcn.00409c2d
pop ecx
call eax
test eax, eax
je 0x40e28c
test byte [ebp - 0x18], 1
jne 0x40e2bf
lea eax, [ebp - 0xc]
push eax
call fcn.00408a8b
test eax, eax
pop ecx
je 0x40e2a7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a2ea
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40e2b6
or dword [ebp + 0x10], 0x200000
jmp 0x40e2f0
or dword [ebp + 0x10], 0x40000
jmp 0x40e2f0
mov eax, dword [0x41d34c]
cmp eax, esi
je 0x40e2f0
push eax
call fcn.00409c2d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40e2f0
mov eax, dword [0x41d350]
cmp eax, esi
je 0x40e2f0
push dword [ebp - 4]
push eax
call fcn.00409c2d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41d348]
call fcn.00409c2d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0xef01c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef01ca
pushal
call 0xef01d0
pop ebp
sub ebp, 0x10
sub ebp, 0xaf01c0
jmp 0xef01e6
mov eax, 0xaf01c0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ab
mov edx, 0x62be6284
xor byte [eax], dl
inc eax
dec ecx
jne 0xef01fd
jmp 0xef0210
cmovns ecx, dword [edi]
or eax, 0x848484b8
add eax, 0x84847c45
test byte [edi - 0x7b7dc3b7], al
test byte [esi + edi - 0x7b7b7b54], al
jae 0xef0292
xchg dword [edi + ecx + 5], ecx
mov byte [esp + eax*4 - 0x2bbe787c], al
or eax, esp
mov al, byte [0xa0800d78]
in al, dx
cld
sub byte [ebp - 0x2e3c137c], ah
or dword [ebp + eax*4 - 0xf135f58], eax
invalid
test byte [esp + eax*4 - 0x5ad70314], al
test ah, ch
ret
Function at 0x1000a61a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014704]
jne 0x1000a624
repz ret
jmp fcn.1000ae86

Function at 0x1000ab43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000ab52
pop dword [ebp - 0x20]
mov eax, 0xe56ec9fe
add eax, 0x2a91e154
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xd56bc395
sub dword [ebp - 0x30], 0x87197e4a
mov dword [ebp - 0x2c], 0x51895ea
sub dword [ebp - 0x2c], 0xd2e549a5
mov dword [ebp - 0x28], 0xda323984
add dword [ebp - 0x28], 0x721a0aaa
mov dword [ebp - 0x24], 0x1a3df91f
add dword [ebp - 0x24], 0xe5c206e1
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xd57d0aaf
sub dword [ebp - 0x30], 0x610aa159
mov dword [ebp - 0x2c], 0xfd28ea3c
add dword [ebp - 0x2c], 0x44437739
mov dword [ebp - 0x28], 0x8b394b16
add dword [ebp - 0x28], 0xd8362156
mov dword [ebp - 0x24], 0x1bcb3481
add dword [ebp - 0x24], 0xe434cb7f
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xc6da10d
sub eax, 0xfc6cd01d
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x377df
push 0
call eax
mov ecx, 0x77bb3b07
add ecx, 0x884509fe
mov ebx, eax
mov esi, 0xd77b867c
sub esi, 0xc779ea7c
add esi, dword [ebp - 0x20]
mov edx, 0x932316b6
add dword [ebp - 0xc], esi
mov edi, dword [esi]
sub dword [ebp - 0xc], ebx
xor edi, edx
sub dword [ebp - 0x14], edx
mov dword [ebx], edi
add dword [ebp - 0x14], 0x68df6db5
add ebx, 0xc85a90f6
add ebx, 0x37a56f0e
add esi, 4
loop 0x1000ac69
add eax, 0x106e7
xor ebx, ebx
add ebx, eax
add eax, 0x1829a0b
sub eax, 0x1829a06
mov ecx, 0xdeada333
add ecx, 0x31525ccd
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x43a83b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x43a84a
pop dword [ebp - 0x1c]
mov eax, 0xba8400d1
add eax, 0x45bfa779
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x1c907069
add dword [ebp - 0x2c], 0x31c1d4e2
mov dword [ebp - 0x28], 0x47e6f8d4
add dword [ebp - 0x28], 0xea4c5371
mov dword [ebp - 0x24], 0x352289f5
sub dword [ebp - 0x24], 0xe8d645c7
mov dword [ebp - 0x20], 0x37d63146
add dword [ebp - 0x20], 0xc829ceba
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x3591d858
add eax, 0xcab3d80c
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xde53ed0
add dword [ebp - 0x2c], 0x668d2a86
mov dword [ebp - 0x28], 0xe14eddf4
add dword [ebp - 0x28], 0x601d8381
mov dword [ebp - 0x24], 0x7594a93f
add dword [ebp - 0x24], 0xeddac32d
mov dword [ebp - 0x20], 0xebfcbdf2
sub dword [ebp - 0x20], 0xebfcbdf2
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc9a24b09
sub eax, 0xc95c9a89
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x4f45f
push 0
call eax
mov ecx, 0x5f72ab44
sub ecx, 0x5f725b5c
mov edx, eax
mov edi, 0x1dfddeef
add edi, 0xe2498111
add edi, dword [ebp - 0x1c]
mov esi, 0x91e2e99d
sub esi, 0x637d5486
add dword [ebp - 4], edi
mov ebx, dword [edi]
xor dword [ebp - 0x14], eax
sub ebx, esi
xor dword [ebp - 0x18], edx
mov dword [edx], ebx
sub dword [ebp - 0xc], edi
add edx, 0x46e1f92f
add edx, 0xb91e06d5
add edi, 0x7865a49d
add edi, 0x879a5b67
loop 0x43a96c
add eax, 0x712838e9
add eax, 0x8ed8f98a
mov ebx, eax
add eax, 5
mov ecx, 0xdbc661b3
add ecx, 0x24799e4d
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402b54
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.004046dc
test esi, esi
jne 0x402b8a
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.004047cc
jmp 0x402ba8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a68
mov edi, eax
test esi, esi
je 0x402ba8
cmp dword [ebx], 0
je 0x402ba8
dec esi
jmp 0x402b91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403758
Capabilities:
Query or enumerate registry value

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

Function at 0x4044bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e04c], 0
je 0x40451d
cmp word [0x48e220], 0xd7b2
jne 0x4044e5
cmp dword [0x48e228], 0
jbe 0x4044e5
mov eax, 0x48e21c
call dword [0x48e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48c090
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 0x404544
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c030], 0
jne 0x404539
push 0
push 0x48c088
push 0x48c090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402820
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404658
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405d30
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 0x405f60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405db3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405db3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e3c
xor eax, eax
push ebp
push 0x405e35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b78
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 0x405e1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e1a
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 0x405e3c
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 0x405f56
cmp byte [ebp - 0xd], 0
jne 0x405e83
cmp byte [ebp - 0x12], 0
je 0x405f56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e9c
dec ebx
cmp byte [ebx], 0x2e
je 0x405eab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ee8
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 0x405f56
cmp byte [ebp - 0xd], 0
je 0x405f56
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 0x405f56
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