joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407280
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x38], ebx
push edi
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
call fcn.004071c4
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add edi, 0x23f
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, dword [0x1a48304]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x407308
push 0x401188
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1a48304]
add eax, dword [ebp - 0x28]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a48348]
mov dword [ebp - 0x24], 0xedeb2e40
cmove eax, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
cmp ecx, 0x3eb
mov dword [0x1a48348], eax
mov eax, dword [0x1a48350]
cmove eax, dword [ebp - 0x24]
mov dword [0x1a48350], eax
lea eax, [edi + edx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x1a4834c], 0xf4ea3dee
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [ebp - 0x1c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 4], eax
cmp dword [0x1a48304], 0xb03
jne 0x4073df
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x40118c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4072d0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x38]
pop edi
pop esi
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407429
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x407467
cmp dword [0x1a48304], 0x959
jne 0x407457
push 0
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.00407280
add edi, 8
dec esi
jne 0x407439
pop edi
pop esi
pop ebp
ret 4
Function at 0x410c4f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4554e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a873
mov dword [ebp - 0x14], eax
cmp dword [0x1a490e8], esi
jne 0x410d42
push 0x800
push esi
push 0x40515c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410e22
push esi
push esi
push 0x40515c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410e22
push 0x405174
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410e22
push eax
call ebx
push 0x405180
push edi
mov dword [0x1a490e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x405190
push edi
mov dword [0x1a490ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4051a4
push edi
mov dword [0x1a490f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a490f8], eax
test eax, eax
je 0x410d3f
push 0x4051c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1a490f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x410d67
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410d5a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410d7c
push 4
pop eax
jmp 0x410e24
cmp dword [ebp - 0x14], esi
je 0x410d7c
push dword [0x1a490e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410d61
mov eax, dword [0x1a490f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x410dda
cmp dword [0x1a490f8], edi
je 0x410dda
push eax
call ebx
push dword [0x1a490f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410dda
test eax, eax
je 0x410dda
call ecx
test eax, eax
je 0x410dcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410dcf
test byte [ebp - 8], 1
jne 0x410dda
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e0a
mov eax, dword [0x1a490ec]
cmp eax, edi
je 0x410e07
push eax
call ebx
test eax, eax
je 0x410e07
call eax
mov esi, eax
test esi, esi
je 0x410e07
mov eax, dword [0x1a490f0]
cmp eax, edi
je 0x410e07
push eax
call ebx
test eax, eax
je 0x410e07
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1a490e8]
call ebx
test eax, eax
je 0x410e22
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410e24
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e1e
mov esp, ebp
pop ebp
ret
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10017670]
push ebx
push esi
mov esi, dword [0x1001766c]
push edi
push str.ZwProtectVirtualMemory
push str.ntdll
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30c
mov ebx, eax
call fcn.10001694
mov edi, eax
push 0x308
push 0
lea ecx, [edi + 4]
push ecx
call fcn.10002950
add esp, 0x10
mov dword [edi], esi
mov ecx, dword [0x10017664]
lea eax, [ebp - 0xc]
mov dword [edi + 4], ecx
mov dword [ebp - 0xc], 0x65536754
push eax
lea eax, [edi + 0x208]
mov dword [ebp - 8], 0x707574
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x10017668
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call ebx
push 0
push 0
push edi
push dword [0x10017670]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [0x100178a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001686
mov esp, ebp
pop ebp
ret
Function at 0x10001180
Capabilities:
Accept command line arguments
Create service
Modify service
Persist via windows service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jne 0x10001333
push eax
mov dword [0x10017674], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 2], 0x2d
je 0x10001327
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x128], str.Astrill_Redirector_service
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x10013cdc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
test ebx, ebx
jne 0x1000121e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000126a
push 1
push 0x100168b0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x10001283
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push 2
push 0x10
push 0xf01ff
push str.ASProxys
push 0x100168b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x10001273
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call esi
test edi, edi
je 0x10001292
jmp 0x1000132e
lea eax, [ebp - 0x128]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
push edi
call esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10001312
push 0xf01ff
push 0x100168b0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x100012dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001686
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10001306
cmp dword [ebp - 0x120], 1
jne 0x1000130c
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1000130c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001686
mov esp, ebp
pop ebp
ret 0xc
mov byte [0x10017660], 1
call fcn.10001350
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001686
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10016004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x10017674]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x2e
push eax
call fcn.10002400
add esp, 8
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
push 0x10017780
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..dat
push 0x10017780
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
push 0x10017678
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..cfg
push 0x10017678
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10013ce0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push 0x10017678
push eax
call fcn.10003677
add esp, 0xc
test eax, eax
jne 0x1000144e
push 2
push eax
push dword [ebp - 0x10c]
call fcn.1000397a
push dword [ebp - 0x10c]
call fcn.10003f8d
push 0
push 0
push dword [ebp - 0x10c]
mov dword [0x10017664], eax
call fcn.1000397a
push dword [0x10017664]
call fcn.100016c4
push dword [ebp - 0x10c]
mov dword [0x1001766c], eax
push dword [0x10017664]
push 1
push eax
call fcn.1000417e
add esp, 0x30
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x10001461
push eax
call fcn.10004330
add esp, 4
push 0x10013ce0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push 0x10017780
push eax
call fcn.10003677
add esp, 0xc
test eax, eax
jne 0x100014dc
push 2
push eax
push dword [ebp - 0x10c]
call fcn.1000397a
push dword [ebp - 0x10c]
call fcn.10003f8d
push 0
push 0
push dword [ebp - 0x10c]
mov dword [0x10017668], eax
call fcn.1000397a
push dword [0x10017668]
call fcn.100016c4
push dword [ebp - 0x10c]
mov dword [0x10017670], eax
push dword [0x10017668]
push 1
push eax
call fcn.1000417e
add esp, 0x30
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x100014ef
push eax
call fcn.10004330
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10001686
mov esp, ebp
pop ebp
ret

Function at 0x10006dc8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10006c3e
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403e59
pop dword [ebp - 0x30]
mov eax, 0xbc19f0db
sub eax, 0xbbd9b282
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5f448f44
sub dword [ebp - 0x40], 0x10f249f9
mov dword [ebp - 0x3c], 0x66e0d0a9
add dword [ebp - 0x3c], 0xcb527b9c
mov dword [ebp - 0x38], 0x81493342
sub dword [ebp - 0x38], 0x34fcef14
mov dword [ebp - 0x34], 0x58c8b14f
add dword [ebp - 0x34], 0xa7374eb1
lea eax, [ebp - 0x40]
push eax
mov eax, 0x75300a4e
add eax, 0x8b106616
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x9e822fe8
sub dword [ebp - 0x40], 0x2a0fc692
mov dword [ebp - 0x3c], 0x37aac394
add dword [ebp - 0x3c], 0x9c19de1
mov dword [ebp - 0x38], 0xda5d1dd6
sub dword [ebp - 0x38], 0x76edb16a
mov dword [ebp - 0x34], 0xab72ef8f
sub dword [ebp - 0x34], 0xab72ef8f
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xac2d2219
add eax, 0x54134e8f
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x35895
push 0
call eax
mov ecx, 0x32a6665c
sub ecx, 0x32a62334
mov esi, eax
mov edi, 0x410000
add edi, dword [ebp - 0x30]
mov edx, 0x10f54920
sub edx, 0x77ac42f0
xor dword [ebp - 0x20], 0x621f8d66
mov ebx, dword [edi]
mov dword [ebp - 0x1c], 0x26504596
add ebx, edx
xor dword [ebp - 0x18], ecx
mov dword [esi], ebx
xor dword [ebp - 0x1c], edi
add esi, 4
add edi, 4
loop 0x403f75
add eax, 0x4846f3d7
add eax, 0xb7ba0b9c
mov ebx, eax
add eax, 0xa65a4653
add eax, 0x59a5b9b2
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401a09
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00401113
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004010c8
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00401113
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004010c8
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00401103
xor esp, dword [edx - 0x46]
mov eax, dword [0xfacca580]
invalid

Function at 0x4028de
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x40290d
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x4028ae
and byte [ebp - 0x714], 0
and byte [ebp - 0x713], 0
mov byte [ebp - 0x712], 0x71
and byte [ebp - 0x711], 0
invalid
test eax, esi
clc
invalid
invalid
Function at 0x4041f8
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x405a94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405d30
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c1e
test edi, edi
je 0x405c1e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405b39
cmp edi, 0xffffffff
je 0x405af9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405af9
mov byte [esp], 0
jmp 0x405c1e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b39
test ebx, ebx
jne 0x405b2b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405b2b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c1e
lea eax, [esp + 0xc]
call fcn.00405844
dec ebp
test ebp, ebp
jg 0x405ade
cmp edi, 0xffffffff
je 0x405b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b5c
mov byte [esp], 0
jmp 0x405c1e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405aa2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405b5e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c8c
mov edx, eax
mov ebx, dword [0x4378f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405bc2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405bc0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405bc2
xor edi, edi
cmp byte [esp], 0
je 0x405be8
mov ebx, dword [esi]
test bl, 1
jne 0x405bfe
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405bc8
mov byte [esp + 1], 1
jmp 0x405bfe
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405be8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b75
cmp byte [esp], 0
je 0x405c1e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40679c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x437054], 0
je 0x406803
cmp word [0x437340], 0xd7b2
jne 0x4067c5
cmp dword [0x437348], 0
jbe 0x4067c5
mov eax, 0x43733c
call dword [0x437358]
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
mov eax, 0x406830
call fcn.00407040
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x435026], 0
jne 0x40681f
push 0
push 0x4359b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408388
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4084ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406a1c
cmp si, word [0x4359f0]
jb 0x408420
cmp si, word [0x435bf0]
ja 0x408420
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408420
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4359f0]
jae 0x4083fa
mov edi, ebx
dec edi
jmp 0x40841b
cmp si, word [ebx*8 + 0x4359f0]
jbe 0x40840a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40841b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4359f4]
call fcn.004082a8
jmp 0x408420
cmp edi, dword [ebp - 8]
jae 0x4083e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4084cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4084cf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004071d8
push dword [ebp - 0x160]
push 0x408508
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004071d8
push dword [ebp - 0x164]
push 0x408518
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004071d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406a7c
ret