joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a4678
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x41a470f
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [sym.imp.adortl60.bpl__Adodb_TADOQuery_]
call sub.adortl60.bpl__Adodb_TADOQuery__bctr_qqrp18Classes_TComponent
mov ebx, eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 4]
push eax
call sub.VEDatasets.bpl__Vedataset_FirmaNo_qqrv
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call sub.VEDatasets.bpl__Vedataset_DonemNo_qqrv
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x41a4728
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
push eax
mov eax, ebx
call sub.adortl60.bpl__Adodb_TADOQuery_GetSQL_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a4716
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41b147c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41b14dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x41b14c6
push 3
push 0x41b14e8
push 0x41b14e8
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0x41b14ec
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b14e3
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret

Function at 0x41b52d8
Capabilities:
Reference sql statements

Disassembly:
push ebx
add esp, 0xffffffd0
xor ebx, ebx
mov eax, 0x41b5384
mov dword [esp], eax
mov eax, 0x41b53a0
mov dword [esp + 4], eax
mov eax, 0x41b53c0
mov dword [esp + 8], eax
mov eax, 0x41b53e0
mov dword [esp + 0xc], eax
mov eax, 0x41b53fc
mov dword [esp + 0x10], eax
mov eax, 0x41b541c
mov dword [esp + 0x14], eax
mov eax, 0x41b543c
mov dword [esp + 0x18], eax
mov eax, 0x41b545c
mov dword [esp + 0x1c], eax
mov eax, 0x41b547c
mov dword [esp + 0x20], eax
mov eax, 0x41b549c
mov dword [esp + 0x24], eax
mov eax, 0x41b54bc
mov dword [esp + 0x28], eax
mov eax, 0x41b54dc
mov dword [esp + 0x2c], eax
mov eax, esp
mov edx, 0xb
call fcn.041aab88
mov edx, 0x41b54fc
mov eax, 0x41b698c
call fcn.041aaf48
mov edx, 0x41b69ac
mov eax, 0x41b7100
call fcn.041aaf48
mov eax, ebx
add esp, 0x30
pop ebx
ret
Function at 0x805f48
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805f4e
pop ebp
sub ebp, 6
sub ebp, 0x405f48
jmp 0x805fac
jb 0x805ff9
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, cr3
xchg ebp, eax
pop edx
fcom dword [esi + 0x6a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
mov eax, dword [0xb8803add]
dec eax
pop edi
inc eax
add byte [ebx], al
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x633], bh
jmp 0x805fb5
mov eax, 0x405f48
add eax, ebp
add eax, 0x93
mov ecx, 0x633
mov edx, 0x595378d7
xor byte [eax], dl
inc eax
dec ecx
jne 0x805fcc
jmp 0x805fdf
add al, 0
add byte [eax], al
std
or ebp, dword [edx - 0x406842f1]
xlatb
invalid
bsr edx, dword [edi - 0x28382841]
mov ebp, 0xc7d7bf97
xlatb
xlatb
mov edi, 0xd7fb1bd7
push esi
daa
jb 0x805f8c
aam 0x23
push esi
daa
jb 0x805f92
aam 0x23
in al, 0x17
xchg dword [eax], ebp
inc edx
xlatb
push es
loope 0x805fd7
xchg dword [edx + ebx + 0x5c], ebx
pop esi
jmp 0x805fde
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x405a09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x809dac]
jne 0x405a13
repz ret
jmp fcn.00408ffc

Function at 0x40882c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402b62
and dword [ebp - 4], 0
cmp dword [0x80e65c], 0
mov ebx, eax
jne LoadLibraryW
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je reloc.KERNEL32.dll_RemoveDirectoryW
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je reloc.KERNEL32.dll_RemoveDirectoryW
push eax
call fcn.00402af0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80e65c], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80e660], eax
call esi
push eax
call fcn.00402af0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80e664], eax
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x80e66c], eax
test eax, eax
je 0x4088dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402af0
pop ecx
mov dword [0x80e668], eax
mov eax, dword [0x80e668]
cmp eax, ebx
je 0x408935
cmp dword [0x80e66c], ebx
je 0x408935
push eax
call fcn.00402b6b
push dword [0x80e66c]
mov esi, eax
call fcn.00402b6b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408935
test edi, edi
je VirtualAlloc
call esi
test eax, eax
je reloc.KERNEL32.dll_WriteConsoleA
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je reloc.KERNEL32.dll_WriteConsoleA
test byte [ebp - 0xc], 1
jne 0x408935
or dword [ebp + 0x10], 0x200000
jmp 0x40896e
mov eax, dword [0x80e660]
cmp eax, ebx
je InterlockedExchangeAdd
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je 0x40896e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40896e
mov eax, dword [0x80e664]
cmp eax, ebx
je 0x40896e
push eax
call fcn.00402b6b
pop ecx
test eax, eax
je MoveFileA
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [FindFirstVolumeMountPointW]
call fcn.00402b6b
pop ecx
test eax, eax
je reloc.KERNEL32.dll_RemoveDirectoryW
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408990
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0xc]
and eax, 3
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
sub ecx, eax
je 0x40cbfd
rol edx, 5
xor edx, dword [esi + ebx]
add esi, 4
imul eax, edx, 0x9e3779b9
rol eax, 5
xor eax, 4
imul edx, eax, 0x9e3779b9
cmp esi, ecx
jb 0x40cbcc
jmp 0x40cbfd
movsx ecx, byte [esi + ebx]
rol edx, 5
xor edx, ecx
imul edx, edx, 0x9e3779b9
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40cbed
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x40dc4b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40dc80
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x40dcaa
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x40dcaa
test edi, edi
je 0x40dc77
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40dc77
test edi, edi
je 0x40dcb2
mov eax, edi
jmp 0x40dc79
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40dc79
mov esi, 0xc3
push esi
push str.c:_builds_moz2_slave_m_in_w32_d_0000000000000000000_build_src_mfbt_Poison.cpp
push str.no_usable_poison_region_identified
call fcn.00411872
add esp, 0xc
int3
Function at 0x4118a6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestEnumSet.exe_gMozillaPoisonSize], eax
call fcn.0040dc4b
pop ecx
mov ecx, dword [sym.TestEnumSet.exe_gMozillaPoisonSize]
mov dword [sym.TestEnumSet.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x4118de
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestEnumSet.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [esi - 9]
mov eax, dword [eax + 0x14]
test eax, eax
cmc
xor ecx, dword [ebx + 0x5051d54d]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test dword [eax + 0x5ddc0575], ecx
nop
or byte [eax], al
call esi
mov byte [ecx + 0x5e000afc], bh
pop ebp
ret 0xc008
xor eax, eax
xchg ebx, eax
sahf
or byte [0x4e0fb8], dh
add byte [ebp - 0x3e], bl
or dl, ah
mov ah, 0x90
nop
nop
nop
nop
nop
ret
Function at 0x4039cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d1020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a44
xor eax, eax
push ebp
push 0x403a3d
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 0x403a9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4d1020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d1020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404c4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d6054], 0
je 0x404cad
cmp word [0x4d6330], 0xd7b2
jne 0x404c75
cmp dword [0x4d6338], 0
jbe 0x404c75
mov eax, 0x4d632c
call dword [0x4d6348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404cd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d102c], 0
jne 0x404cc9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404e2c
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 [0x4d1030], 0
je 0x404e52
mov edx, esi
mov eax, ebx
call dword [0x4d1030]
jmp 0x404e61
mov eax, 8
call fcn.004030c0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d6055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404df4
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 0x408064
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409b04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4d8b30
push 0xa
push 0x409b98
mov eax, dword [0x4d8b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409b28
call fcn.00412c04
push ebx
mov eax, dword [0x4d8b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409b3f
call fcn.00412c04
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409b51
call fcn.00412c04
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4d8b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4d8b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4d8b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4d8b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4d8b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x4d8b48], edx
pop esi
pop ebx
ret

Function at 0x40b250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b2f9
test eax, edx
je 0x40b2fc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b279
push edx
mov edx, eax
mov eax, esp
call fcn.00405c90
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b28f
push eax
lea eax, [esp + 8]
call fcn.00405c90
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b29e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b2c5
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b2df
add ecx, 4
js 0x40b2b6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b2dc
push eax
mov eax, ecx
mov edx, 2
call fcn.00404ecc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b2c3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b2c5
xor eax, eax
ret
test eax, eax
je 0x40b30c
test edx, edx
jne 0x40b260
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b00
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c45a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c47b
cmp ebx, 3
je 0x40c47b
cmp ebx, 0x7b
je 0x40c47b
mov eax, esi
call fcn.0040c3fc
test al, al
jne 0x40c47f
xor eax, eax
jmp 0x40c481
mov al, 1
pop esi
pop ebx
ret
Function at 0x41031c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x410355
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405bb0
jmp 0x41035e
mov eax, ebx
mov edx, esi
call fcn.00405a74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410368
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41038a
movzx eax, word [esp]
jmp 0x41038c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410af0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00410928
mov eax, dword [0x4d5730]
cmp byte [eax], 0
je 0x410b82
mov eax, dword [0x4d5350]
call fcn.00403424
call fcn.00403228
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040c7dc
push eax
lea eax, [esp + 0x890]
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 0x410bd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410bbb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d52a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d8b20]
call fcn.00407390
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x411804
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 0x4118da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405ac8
lea eax, [ebp - 4]
call fcn.0040638c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b00
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4118c4
mov eax, ebx
call fcn.004030c0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4118bd
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.00405b00
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4118a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4118ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4118a7
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 0x4118c4
mov eax, dword [ebp - 0x10]
call fcn.004030dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4118e1
lea eax, [ebp - 4]
call fcn.00405a64
ret

Function at 0x412aac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004051e8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x412a56
mov eax, edi
add eax, eax
call fcn.004030c0
mov esi, eax
jmp 0x412a58
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x412a91
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x412a7b
mov eax, esp
cmp esi, eax
je 0x412a9e
mov eax, esi
call fcn.004030dc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x412ad8
cmp bl, 0
je 0x412ad4
cmp bl, 0x41
jl 0x412acf
cmp bl, 0x5a
jg 0x412acf
or bl, 0x20
xor al, bl
inc esi
jmp 0x412ab3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x412a18

Function at 0x42c6e8
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.0042c3ec
dec esi
jne 0x42c70a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42d8c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4dae64
cmp dword [edi], 0
jne 0x42d944
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4dae60]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d1ec0
mov ecx, 2
call fcn.00403278
mov edx, 0x42d8a0
lea eax, [esi + 5]
call fcn.0042d8c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042d8c0
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 0x42d919
mov dword [0x4dae60], 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 0x430718
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.00405b00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x430770
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d5940]
mov dl, 1
mov eax, dword [0x4301a0]
call fcn.00410cf0
call fcn.004046b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00430328
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 0x431a0c
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 0x431a12
ret