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

Disassembly:
push 0xffffffffffffffff
push 0x416b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0
mov eax, dword [ebp + 0x270]
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x34]
push 0
push 0
push 0
mov esi, eax
push 0
lea edi, [ebp + 0x250]
push ecx
push esi
push 1
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::InsertItem
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x18]
push 0xa
push edx
mov eax, dword [ebx]
mov dword [esp + 0x34], 0
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea ecx, [ebx + 4]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::CTime
lea edx, [esp + 0x38]
push str._Y__m__d____H:_M:_S
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00414486
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.00414462
lea eax, [esp + 0x18]
mov ecx, edi
push eax
push 1
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x10]
push ecx
push 2
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea edx, [ebx + 0xc]
mov ecx, edi
push edx
push 3
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
add ebx, 0x110
mov ecx, edi
push ebx
push 4
push esi
call sub.MFC42.DLL_CListCtrl::SetItemText
call fcn.00402740
mov eax, dword [eax + 0x128]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push esi
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItem
push 2
push 2
push 0
mov ecx, edi
call sub.MFC42.DLL_CListCtrl::SetItemState
mov eax, dword [ebp + 0x270]
push esi
push 0
push 0x1043
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40de92
call fcn.00402740
mov ecx, dword [eax + 0x128]
mov edx, dword [eax + 0x104]
mov eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [eax + 0x2c]
call sub.MFC42.DLL_CStringList::AddTail_1
mov ecx, ebp
call fcn.0040d490
mov ecx, ebp
call fcn.0040d320
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00414462
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x40f890
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x40f8c9
cmp dword [esp + 8], 5
jb 0x40f8d8
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x40f8d8
xor eax, eax
pop esi
add esp, 0x94
ret
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x40fef0
Capabilities:
Connect to http server
Create http request
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x416ec3
push eax
mov eax, 0x101c
mov dword fs:[0], esp
call fcn.00414ad0
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x1034], ebp
mov dword [esp + 0x1c], ebp
call fcn.00402740
mov edi, dword [esp + 0x1040]
mov eax, dword [eax + 0xf4]
push edi
push eax
mov ecx, esi
call fcn.004103e0
push ebp
push edi
push ebp
push 1
push str.Example
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x40ff68
push 0x8a5
call fcn.00402740
mov ecx, eax
call fcn.00402780
push 1
push 0x8000000
push 1
push str.welcome
push str.fujixerox
push 0x15
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
mov dword [esp + 0x20], edi
jne 0x40ffa0
push 0x8a5
call fcn.00402740
mov ecx, eax
call fcn.00402780
push 1
push 2
push 0x40000000
push str.Hanabi.dlb
push edi
call dword [sym.imp.WININET.dll_FtpOpenFileA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40ffce
push 0x8a5
call fcn.00402740
mov ecx, eax
call fcn.00402780
mov eax, dword [esp + 0x103c]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x14], edi
jge 0x40ffff
push 0x8a5
call fcn.00402740
mov ecx, eax
call fcn.00402780
push edi
call dword [sym.imp.MSVCRT.dll__filelength]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x14]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push 0x1000
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__read]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4100e6
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, 1
je 0x41006e
push 0x8a5
call fcn.00402740
mov ecx, eax
call fcn.00402780
add ebp, edi
push 0
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [esp + 0x2c]
mov dword [esi + 0x90], eax
push eax
mov eax, dword [esi + 0xf8]
push 0x402
push eax
call ebx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x90]
lea edx, [esp + 0x10]
push ecx
push 0x41f588
push edx
mov byte [esp + 0x1040], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esi + 0x118]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x10]
mov byte [esp + 0x1034], 0
call fcn.00414462
jmp 0x410013
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__close]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
lea ecx, [esp + 0x103c]
mov dword [esp + 0x1034], 0xffffffff
call fcn.00414462
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1028
ret 8
Function at 0x4103e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416f18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
push 0x837
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
push 0xe001
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::LoadStringA
push 0x7d6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator
push 0x41f2b4
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x34], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_operator
push 0x41f2ac
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 8
call fcn.00414486
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 7
call fcn.00414462
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.00414462
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 5
call fcn.00414462
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 4
call fcn.00414462
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.00414462
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 4]
lea ecx, [esi + 0x98]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.00414462
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00414462
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00414462
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00414462
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x410590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
push 0xe019
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
push 0xe001
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::LoadStringA
push 0x7d6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator
push 0x41f2b4
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x34], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_operator
push 0x41f2ac
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 8
call fcn.00414486
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 7
call fcn.00414462
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.00414462
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 5
call fcn.00414462
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 4
call fcn.00414462
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.00414462
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 4]
lea ecx, [esi + 0x98]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.00414462
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00414462
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00414462
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00414462
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x410750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
push 0x839
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
push 0xe001
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::LoadStringA
push 0x7d6
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_operator
push 0x41f2b4
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x34], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_operator_1
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_operator
push 0x41f2ac
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], 7
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 8
call fcn.00414486
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 7
call fcn.00414462
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.00414462
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 5
call fcn.00414462
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 4
call fcn.00414462
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.00414462
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 4]
lea ecx, [esi + 0x98]
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.00414462
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00414462
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.00414462
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00414462
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x414240
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, dword [esi + 4]
inc edi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x414289
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 2
push 0
push 0
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x41428f
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edi
push ebx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x4142bc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
pop ecx
ret 8

Function at 0x4142d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
mov dword [esp], eax
mov eax, dword [ecx + 4]
push edx
push 1
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4142fd
xor eax, eax
add esp, 8
ret 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret 0xc

Function at 0x4143e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41443d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x41f690
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414430
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41443f
xor eax, eax
pop esi
leave
ret 4
Function at 0x4030c8
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.00404c34
test esi, esi
jne 0x4030fe
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.00404d24
jmp 0x40311c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fcc
mov edi, eax
test esi, esi
je 0x40311c
cmp dword [ebx], 0
je 0x40311c
dec esi
jmp 0x403105
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403c28
Capabilities:
Query or enumerate registry value

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

Function at 0x404ab4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cb048], 0
je 0x404b15
cmp word [0x4cb21c], 0xd7b2
jne 0x404add
cmp dword [0x4cb224], 0
jbe 0x404add
mov eax, 0x4cb218
call dword [0x4cb234]
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 0x404b3c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e030], 0
jne 0x404b31
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060c4
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 0x4062f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4062f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4061d0
xor eax, eax
push ebp
push 0x4061c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f00
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 0x4061ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4061ae
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 0x4061d0
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 0x4062ea
cmp byte [ebp - 0xd], 0
jne 0x406217
cmp byte [ebp - 0x12], 0
je 0x4062ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406230
dec ebx
cmp byte [ebx], 0x2e
je 0x40623f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40622f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4062ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40627c
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 0x4062ea
cmp byte [ebp - 0xd], 0
je 0x4062ea
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 0x4062ea
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 0x4086c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408758
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408758
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40870b
test edx, 3
jne 0x4086fa
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408705
jmp 0x40870b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40870b
cmp dword [ecx - 8], 1
je 0x408715
mov edx, ebx
or edx, 3
call fcn.00405380
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 0x408727
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404c34

Function at 0x408764
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4087f4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4087f4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4087a7
test edx, 3
jne 0x408796
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4087a1
jmp 0x4087a7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4087a7
cmp dword [ecx - 8], 1
je 0x4087b1
mov edx, ebx
or edx, 3
call fcn.00405380
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 0x4087c3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404c34

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050f8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409019
test al, 0x10
je 0x40901d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ba44
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 0x40ba7d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d24
jmp 0x40ba86
mov eax, ebx
mov edx, esi
call fcn.00404c88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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