joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a468
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x46a4db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa]
mov edx, 0xa
call fcn.00403694
push 4
lea eax, [ebp - 0xa]
push eax
push 3
test ebx, ebx
jns 0x46a4a5
call sub.rtl160.bpl__System__BoundErr_qqrv
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xa]
mov ecx, 5
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x10]
mov edx, esi
call sub.rtl160.bpl__System_Sysutils_LowerCase_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a4e2
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System__UStrClr_qqrpv
ret

Function at 0x470a60
Capabilities:
Inspect section memory permissions

Disassembly:
xor eax, eax
test edx, 0x20000000
je 0x470a98
test edx, 0x40000000
je 0x470a84
test edx, 0x80000000
je 0x470a7f
or eax, 0x40
jmp 0x470ac2
or eax, 0x20
jmp 0x470ac2
test edx, 0x80000000
je 0x470a93
or eax, 0x80
jmp 0x470ac2
or eax, 0x10
jmp 0x470ac2
test edx, 0x40000000
je 0x470ab2
test edx, 0x80000000
je 0x470aad
or eax, 4
jmp 0x470ac2
or eax, 2
jmp 0x470ac2
test edx, 0x80000000
je 0x470abf
or eax, 8
jmp 0x470ac2
or eax, 1
test edx, 0x4000000
je 0x470acf
or eax, 0x200
ret

Function at 0x470bdc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
lea eax, [ebx + 0x44]
mov edx, 0xf8
call fcn.00403694
lea edx, [ebx + 4]
mov ecx, 0x40
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
xor ecx, ecx
mov edx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebx + 0x44]
mov ecx, 4
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0x48]
mov ecx, 0x14
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx ecx, word [ebx + 0x58]
lea edx, [ebx + 0x5c]
mov eax, dword [ebx + 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebx + 4], 0x5a4d
jne 0x470c64
cmp dword [ebx + 0x44], 0x4550
jne 0x470c64
cmp word [ebx + 0x48], 0x14c
je 0x470c7a
mov ecx, 0x470c8c
mov dl, 1
mov eax, dword [0x46d288]
call sub.rtl160.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl160.bpl__System__RaiseExcept_qqrv
pop esi
pop ebx
pop ebp
ret
Function at 0x481328
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov byte [ebp - 1], 0
mov dl, 1
mov eax, dword [sym.imp.AxComponentsRTL.bpl__Auslogics_System_Win_Registry_TRegistry_]
call sub.rtl160.bpl__System_Win_Registry_TRegistry__bctr_qqrv
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4813cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0x20019
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Win_Registry_TRegistry_SetRootKey_qqrp6HKEY__
xor ecx, ecx
mov edx, dword [0x535f50]
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Win_Registry_TRegistry_OpenKey_qqrx20System_UnicodeStringo
test al, al
je 0x4813b5
xor eax, eax
push ebp
push 0x4813ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Win_Registry_TRegistry_ValueExists_qqrx20System_UnicodeString
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4813b5
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Win_Registry_TRegistry_CloseKey_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4813d2
lea eax, [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
Function at 0x4a0fbc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], eax
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x536210
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp al, 7
ja 0x4a0fea
and eax, 0x7f
movzx edx, byte [edx + 0x10]
bt edx, eax
jae 0x4a10e4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.advapi32.dll_OpenEventLogW
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a10dd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4a10c6
push ebp
call fcn.004a0f80
pop ecx
mov ebx, eax
test ebx, ebx
jle 0x4a10c6
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4a0a94]
call fcn.004a1138
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a10bf
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4a108d
mov eax, dword [ebp - 8]
cmp word [eax + 0xa], 0
je 0x4a1068
lea ecx, [ebp - 0x11]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
push ebp
call fcn.004a0f80
pop ecx
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.004a1444
cmp byte [ebp - 0x11], 0
je 0x4a108d
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x4a10f5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004a10fc
test al, al
jne 0x4a104f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a10c6
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a10e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseEventLog
ret
inc dword [ebp - 0xc]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0xc], 3
jne 0x4a0fd6
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa5d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4aa5e4
add esp, 0xfffffff0
call sub.rtl160.bpl__System__ClassCreate_qqrpvzc
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4aa67a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call sub.rtl160.bpl__System_TObject__bctr_qqrv
lea eax, [edi + 8]
mov edx, esi
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [edi + 0xc]
mov edx, dword [ebp + 0x10]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [edi + 0x10]
mov edx, dword [ebp + 0xc]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov byte [edi + 4], 1
mov byte [edi + 0x34], 1
push 1
lea edx, [ebp - 4]
mov eax, dword [0x4ab278]
call fcn.004ac398
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4a8f6c]
call fcn.004abd20
mov dword [edi + 0x14], eax
mov byte [edi + 0x2c], 0
lea eax, [edi + 0x30]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa681
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret
Function at 0x4afdfc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4afea4
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4afe3a
call sub.kernel32.dll_GetTickCount
xor edx, edx
sub eax, dword [ebx + 0x20]
sbb edx, dword [ebx + 0x24]
jno 0x4afe2f
call sub.rtl160.bpl__System__IntOver_qqrv
push edx
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x30]
jmp 0x4afe3c
xor eax, eax
test al, al
jne 0x4afe89
mov eax, dword [ebx + 0xc]
call fcn.004ad314
lea edx, [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4afec0
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebx + 0xc]
call fcn.004ad314
mov edx, eax
test edx, edx
jns 0x4afe81
call sub.rtl160.bpl__System__BoundErr_qqrv
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afeab
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret

Function at 0x4aff58
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4affd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
call fcn.004ad9bc
call sub.kernel32.dll_GetTickCount
xor edx, edx
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
jno 0x4aff8c
call sub.rtl160.bpl__System__IntOver_qqrv
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
lea eax, [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_IntToStr_qqrj
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4afff4
call sub.rtl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4affe0
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x4b5874
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
test dl, dl
je 0x4b588f
add esp, 0xfffffff0
call sub.rtl160.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b59d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call sub.rtl160.bpl__System_TObject__bctr_qqrv
push esi
push 0x4b653c
mov eax, dword [0x536a38]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0x5369cc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov edx, 1
call sub.AxComponentsRTL.bpl__Auslogics_Project_Eventnotifier_EventNotifier_Register_qqrynpqqrr24Winapi_Messages_TMessage_vpxuixi
mov ecx, esi
mov dl, 1
mov eax, dword [0x4b0b7c]
call fcn.004b7c70
mov dword [esi + 0x1c], eax
lea edx, [ebp - 0xc]
mov eax, dword [0x4beccc]
call fcn.004c5300
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0xc]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x10]
mov eax, dword [0x4beccc]
call fcn.004c531c
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0x10]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 1
lea edx, [ebp - 0x14]
mov eax, dword [0x4b8194]
call fcn.004b9ccc
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4b2c3c]
call fcn.004b8f90
mov dword [esi + 0x30], eax
push 1
lea edx, [ebp - 0x18]
mov eax, dword [0x4b8478]
call fcn.004b9cf0
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4b4174]
call fcn.004b960c
mov dword [esi + 0x34], eax
push 1
lea edx, [ebp - 0x1c]
mov eax, dword [0x4b8768]
call fcn.004b9d14
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4b5608]
call fcn.004b9c88
mov dword [esi + 0x38], eax
push 1
lea edx, [ebp - 0x20]
mov eax, dword [0x4b083c]
call fcn.004b0740
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4af70c]
call fcn.004b06fc
mov dword [esi + 0x3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b59d8
lea eax, [ebp - 0x20]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x1c]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x18]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x14]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret
Function at 0x4c5040
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, ebx
cmp esi, 6
jbe 0x4c505c
call sub.rtl160.bpl__System__BoundErr_qqrv
mov eax, dword [esi*4 + 0x53c0f8]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
test eax, eax
jg 0x4c50e1
lea eax, [ebp - 0xa0]
mov edx, 0xa0
call fcn.00403694
push 0x50
lea eax, [ebp - 0xa0]
push eax
mov eax, ebx
add eax, 0x2a
jno 0x4c5091
call sub.rtl160.bpl__System__IntOver_qqrv
test eax, eax
jns 0x4c509a
call sub.rtl160.bpl__System__BoundErr_qqrv
push eax
push 0x400
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4c50d0
push 1
lea eax, [ebp - 0xa0]
push eax
call sub.user32.dll_CharUpperBuffW
lea eax, [esi*4 + 0x53c0f8]
lea edx, [ebp - 0xa0]
mov ecx, 0x50
call sub.rtl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
jmp 0x4c50e1
lea eax, [esi*4 + 0x53c0f8]
mov edx, 0x4c5104
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, edi
mov edx, dword [esi*4 + 0x53c0f8]
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d9eac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4d9ec1
add esp, 0xfffffff0
call sub.rtl160.bpl__System__ClassCreate_qqrpvzc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d9f31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, esi
call fcn.004aa5d0
lea eax, [ebp - 8]
call fcn.004c8ff8
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
lea eax, [esi + 0x38]
call sub.rtl160.bpl__System__IntfCopy_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInte
lea eax, [esi + 0x30]
mov edx, 0x4d9f64
call sub.rtl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9f38
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret

Function at 0x51749c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 0x2000005b
push 0x400
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jg 0x5174c3
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 0xffffff0c
sub eax, 1
setb al
pop ecx
pop ebp
ret
Function at 0x402fb4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403690
Capabilities:
Query or enumerate registry value

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

Function at 0x40451c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f2048], 0
je 0x40457d
cmp word [0x4f221c], 0xd7b2
jne 0x404545
cmp dword [0x4f2224], 0
jbe 0x404545
mov eax, 0x4f2218
call dword [0x4f2234]
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 0x4045a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x404599
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407ffc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40808c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40808c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40803f
test edx, 3
jne 0x40802e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408039
jmp 0x40803f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40803f
cmp dword [ecx - 8], 1
je 0x408049
mov edx, ebx
or edx, 3
call fcn.00404de8
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 0x40805b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x408098
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408128
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408128
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080db
test edx, 3
jne 0x4080ca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080d5
jmp 0x4080db
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080db
cmp dword [ecx - 8], 1
je 0x4080e5
mov edx, ebx
or edx, 3
call fcn.00404de8
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 0x4080f7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040469c

Function at 0x40b30c
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 0x40b345
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040478c
jmp 0x40b34e
mov eax, ebx
mov edx, esi
call fcn.004046f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b884
mov eax, dword [0x4f1898]
cmp byte [eax], 0
je 0x40ba88
mov eax, dword [0x4f16ac]
call fcn.00403058
call fcn.00402df8
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.00408aa4
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 0x40bad0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40babe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f1654]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f47f4]
call fcn.0040581c
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 0x40c31c
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 0x40c3f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404734
lea eax, [ebp - 4]
call fcn.00404bb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c3dc
mov eax, ebx
call fcn.00402c9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c3d5
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.00404b60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c3bf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c404
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c3bf
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 0x40c3dc
mov eax, dword [ebp - 0x10]
call fcn.00402cb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3f9
lea eax, [ebp - 4]
call fcn.0040469c
ret
Function at 0x41b100
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f5300
cmp dword [edi], 0
jne 0x41b17c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f52fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45cad8
mov ecx, 2
call fcn.00402e8c
mov edx, 0x41b0d8
lea eax, [esi + 5]
call fcn.0041b0f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b0f8
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 0x41b151
mov dword [0x4f52fc], 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 0x41d6a8
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.00404b60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d700
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f19b8]
mov dl, 1
mov eax, dword [0x41d1cc]
call fcn.0040bbcc
call fcn.004040e4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d2d4
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 0x41e55c
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 0x41e562
ret