joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107453a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1074712
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1092680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1074712
test cl, 0x48
je 0x10745a7
cmp byte [eax + 5], 0xa
je 0x10745a7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10745f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10745e1
call fcn.010249b4
mov dword [eax], 9
call fcn.010249c2
mov dword [eax], esi
jmp 0x10745f1
cmp eax, 0x6d
je 0x1074712
push eax
call fcn.010249d0
pop ecx
or eax, 0xffffffff
jmp 0x1074714
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x107470d
test eax, eax
je 0x1074620
cmp byte [ebx], 0xa
jne 0x1074620
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1074629
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1074707
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10746f7
cmp al, 0xd
je 0x107465b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10746e9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1074675
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1074670
add dword [ebp + 0x10], 2
jmp 0x10746c9
mov dword [ebp + 0x10], eax
jmp 0x10746e5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x107469d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10746e5
cmp dword [ebp - 0xc], 0
je 0x10746e5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10746be
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10746c9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10746e8
cmp ebx, dword [ebp + 0xc]
jne 0x10746ce
cmp byte [ebp - 1], 0xa
jne 0x10746ce
mov byte [ebx], 0xa
jmp 0x10746e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.010276bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10746e9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x107463f
jmp 0x1074707
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1074707
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1074714
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x346237e4
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..7LWLf
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0xb087e35
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x1001b7c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x244]
call dword [sym.imp.ulib.dll_public:_void___thiscall_PATH::constructor_void_]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1001bd7
mov eax, dword [esi]
cmp edi, ebx
je 0x1001bc6
push edi
push 0x1001254
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x14
jmp 0x1001bd7
push 0x1001253
push 1
push dword [ebp + 8]
push esi
call dword [eax + 8]
add esp, 0x10
cmp byte [esi + 0x90], bl
je 0x1001bff
mov eax, dword [esi + 0x98]
cmp eax, ebx
jne 0x1001bf1
push ebx
push 0x5221
jmp 0x1001c0f
push eax
push 0x1001250
push ebx
push 0x521f
jmp 0x1001c24
mov eax, dword [esi + 0x9c]
cmp eax, ebx
jne 0x1001c18
push ebx
push 0x5220
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x1001c2d
push eax
push 0x1001250
push ebx
push 0x521e
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
add esp, 0x14
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x100211d
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x21c]
mov esi, ecx
lea edi, [edi + edi + 2]
cmp edi, dword [esi + 0xb0]
jbe 0x1002153
push edi
lea ebx, [esi + 0xac]
push dword [ebx]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [ebx], eax
mov dword [esi + 0xb0], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x21c]
lea ebx, [ebx + ebx + 2]
cmp ebx, dword [esi + 0xb8]
jbe 0x100217f
push ebx
lea edi, [esi + 0xb4]
push dword [edi]
call dword [sym.imp.ulib.dll_void____stdcall_UlibRealloc_void___unsigned_long_int_]
mov dword [edi], eax
mov dword [esi + 0xb8], ebx
xor ebx, ebx
cmp dword [esi + 0xac], ebx
je 0x1002191
cmp dword [esi + 0xb4], ebx
jne 0x10021a0
push 8
push ebx
push 0x5241
mov ecx, esi
call fcn.01001b7c
mov eax, dword [esi + 0xb0]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.ulib.dll_public:_unsigned_short_int____thiscall_WSTRING::QueryWSTR_unsigned_long_int__unsigned_long_int__unsigned_short_int___unsigned_long_int__unsigned_char_const]
push 1
shr eax, 1
push eax
push dword [esi + 0xac]
add ecx, 0x210
push 0xffffffffffffffff
push ebx
call edi
mov eax, dword [esi + 0xb8]
mov ecx, dword [ebp + 0xc]
push 1
shr eax, 1
push eax
push dword [esi + 0xb4]
add ecx, 0x210
push 0xffffffffffffffff
push ebx
call edi
push ebx
push dword [esi + 0xb4]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1002209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.01001c3c
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
Function at 0x10026ec
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xa4]
call dword [sym.imp.ulib.dll_public:_void___thiscall_FSN_FILTER::constructor_void_]
lea edi, [esi + 0xa4]
push edi
lea eax, [esi + 0xa0]
push eax
push dword [esi + 0x88]
mov ecx, esi
call fcn.01001e9c
lea eax, [ebp - 0xa8]
push eax
push dword [esi + 0x8c]
mov ecx, esi
call fcn.01001fb1
xor ebx, ebx
cmp byte [esi + 0x95], bl
je 0x10027d7
mov eax, dword [esi]
push ebx
push 0x5222
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.01001c8f
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::DisableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [eax]
push ebx
lea ecx, [ebp - 0xac]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov ecx, dword [esi + 0xbc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_KEYBOARD::EnableLineMode_void_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0xac]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xd
mov ecx, eax
call dword [edx + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edx, dword [eax]
push 0xa
mov ecx, eax
call dword [edx + 0x28]
cmp word [ebp - 0xac], 3
jne 0x10027d7
push 3
call dword [sym.imp.msvcrt.dll_exit]
push dword [edi]
mov ecx, esi
push dword [esi + 0xa0]
call fcn.01001ff4
mov edi, dword [ebp - 0xa8]
push ebx
push edi
mov dword [esi + 0xa8], eax
push esi
cmp byte [esi + 0x93], bl
je 0x1002836
call fcn.010026b8
lea ecx, [ebp - 0xa4]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::Initialize_void_]
push ebx
push ebx
push 0x10
lea ecx, [ebp - 0xa4]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::SetAttributes_unsigned_long_int__unsigned_long_int__unsigned_long_int_]
push fcn.010026b8
push ebx
lea eax, [ebp - 0xa4]
push eax
push esi
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::Traverse_void___class_FSN_FILTER___class_PATH___unsigned_char____stdcall___void___class_FSNODE___class_PATH___const]
jmp 0x100283b
call fcn.010026b8
cmp edi, ebx
je 0x1002847
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [ebp - 0xa4]
call dword [sym.imp.ulib.dll_public_virtual:_void___thiscall_FSN_FILTER::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.01002b83
leave
ret
Function at 0x1002b74
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003060
call fcn.01002d14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002989
cmp eax, esi
jne 0x100297c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100298c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002963
xor esi, esi
inc esi
mov eax, dword [0x100439c]
cmp eax, esi
jne 0x100299f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10029da
mov eax, dword [0x100439c]
test eax, eax
jne 0x10029d4
mov dword [0x100439c], esi
push 0x10011c4
push 0x10011b8
call fcn.010028e0
pop ecx
pop ecx
test eax, eax
je 0x10029da
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002aa4
mov dword [0x1004060], esi
mov eax, dword [0x100439c]
cmp eax, esi
jne 0x10029fe
push 0x10011b4
push 0x10011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100439c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002a0b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043a4], ebx
je 0x1002a2c
push 0x10043a4
call fcn.01002c89
pop ecx
test eax, eax
je 0x1002a2c
push ebx
push 2
push ebx
call dword [0x10043a4]
push dword [0x1004048]
push dword [0x100404c]
push dword [0x1004044]
call fcn.01002869
add esp, 0xc
mov dword [0x100405c], eax
cmp dword [0x1004050], ebx
jne 0x1002a8a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004060], ebx
jne 0x1002a98
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100405c]
call fcn.01002d59
ret
call fcn.01002e61
jmp 0x1002941
Function at 0x401501
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor ecx, ecx
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov edx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add edx, edi
mov ebp, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
test eax, eax
je 0x401562
mov edx, dword [edx + ecx*4]
add edx, edi
xor esi, esi
jmp 0x40154b
movzx eax, al
or eax, 0x60
add esi, eax
inc edx
add esi, esi
mov al, byte [edx]
test al, al
jne 0x401540
cmp esi, dword [esp + 0x10]
je 0x40156c
mov edx, dword [esp + 0x18]
inc ecx
cmp ecx, dword [esp + 0x14]
jb 0x401537
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx eax, word [ebp + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x401564
Function at 0x402c90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aed6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43e070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00412824
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00411b0b
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLM
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059f3
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4059f3
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x43e070]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
sub eax, 2
je 0x40eebe
sub eax, 0x10e
jne 0x40eec5
mov dword [esi], edi
jmp 0x40eec5
mov dword [esi + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40f02e
mov eax, dword [ecx]
push 1
push edi
call dword [eax + 8]
mov ecx, dword [esi + 4]
push 0x3fd
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0x3fe
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0x3e8
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbb8
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbbc
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbc0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbc4
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbc8
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbcc
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbba
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbbe
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbc2
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbc6
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbca
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
push 0xbce
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
test edx, edx
jle 0x40efe7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
test eax, eax
jle 0x40efe7
push 0
push eax
push edx
push ecx
push dword [esp + 0x2c]
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004127dd
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.0040dcc0
push 6
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [esp + 8], 0x14
movups xmmword [esp + 0xc], xmm0
lea eax, [esp + 8]
mov dword [esp + 0xc], edi
push eax
mov dword [esp + 0x14], 0xe
mov dword [esp + 0x18], 0x3e8
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_FlashWindowEx]
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004127dd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x20]
test eax, 0xfffffffe
jne 0x40f470
push 2
lea ecx, [ebx + 0x20]
call fcn.0040b620
nop
mov edi, dword [ebx + 0x24]
sub edi, dword [ebx + 0x20]
sar edi, 1
cmp dword [ebx + 0x14], 8
jb 0x40f482
mov ecx, dword [ebx]
jmp 0x40f484
mov ecx, ebx
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x20]
sub eax, edx
sar eax, 1
je 0x40f4e0
push ecx
mov ecx, dword [ebp + 0x10]
push edi
push edx
call fcn.00408000
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00408000
mov ecx, dword [ebp + 8]
push eax
call fcn.00408000
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
lea ecx, [edi - 1]
cmp edx, ecx
jne 0x40f4c3
lea eax, [edi + edi]
push eax
jmp 0x40f467
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
sub eax, ecx
sar eax, 1
pop edi
pop esi
pop ebx
je 0x40f4e0
push edx
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00405060
pop ebp
ret 0x10
push str.invalid_vector_T__subscript
call fcn.00411863
int3

Function at 0x411570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bea0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x220], esi
mov edx, dword [eax]
mov eax, dword [0x43fe18]
cmp eax, dword [edx + 4]
jle 0x411607
push 0x43fe18
call fcn.004129a8
add esp, 4
cmp dword [0x43fe18], 0xffffffff
jne 0x411607
xor eax, eax
mov dword [0x43fe30], 7
push 0x42c0f0
mov dword [0x43fe2c], 0
mov word [0x43fe1c], ax
call fcn.00412cff
push 0x43fe18
call fcn.00412969
add esp, 8
mov dword [ebp - 4], 0
cmp dword [0x43fe2c], 0
jne 0x411681
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00415690
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411681
cmp word [ebp - 0x21c], 0
jne 0x411652
xor ecx, ecx
jmp 0x41166f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411660
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, 0x43fe1c
push eax
call fcn.00405060
push 0xffffffffffffffff
push 0
push 0x43fe1c
mov ecx, esi
call fcn.00405520
jmp 0x41169f
cmp dword [esi + 0x10], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004127dd
mov esp, ebp
pop ebp
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.00404464
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404464
test esi, esi
jne 0x402e9b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404554
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403564
Capabilities:
Query or enumerate registry value

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

Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452044], 0
je 0x404341
cmp word [0x452218], 0xd7b2
jne 0x404309
cmp dword [0x452220], 0
jbe 0x404309
mov eax, 0x452214
call dword [0x452230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x450070
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 0x404368
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x450034], 0
jne 0x40435d
push 0
push 0x450068
push 0x450070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret