joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fbe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
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.0040f336
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f2eb
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.0040f336
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040f2eb
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040f326
cmp esi, esp
je 0xfb0da31c
invalid

Function at 0x414510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44aa81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
push 0x457c4c
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x34], 0
call fcn.00401100
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x30]
mov dword [esi], vtable.boost::system::system_error.0
mov dword [esi + 0x2c], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc
Function at 0x41bbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [eax + 8], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax + 0xc], edx
call fcn.0041f530
mov dword [esp + 0x38], esi
mov edi, ebx
lea esi, [esp + 0xc]
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bc5a
mov eax, dword [eax]
test eax, eax
je 0x41bc5a
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41bd10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [eax + 8], ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov dword [eax + 0xc], edx
call fcn.0041f5a0
mov dword [esp + 0x38], esi
mov edi, ebx
lea esi, [esp + 0xc]
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41bd9a
mov eax, dword [eax]
test eax, eax
je 0x41bd9a
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push 0x20
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
mov al, 0xab
mov byte [esp + 8], 0x6e
mov byte [esp + 9], 0x39
mov byte [esp + 0xa], 0xa1
mov byte [esp + 0xb], 0x5e
mov byte [esp + 0xc], 0x8b
mov byte [esp + 0xd], 0x2e
mov byte [esp + 0xe], 0x47
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0xad
mov byte [esp + 0x12], 0x45
mov byte [esp + 0x13], 0x5c
mov byte [esp + 0x14], 0x3f
mov byte [esp + 0x15], 0xa3
mov byte [esp + 0x16], 0x6f
mov byte [esp + 0x17], 0x27
xor esi, esi
jmp 0x4225a0
movzx eax, byte [esp + esi + 8]
mov ecx, eax
and ecx, reloc.WS2_32.dll_ntohs
jns 0x4225b4
dec ecx
or ecx, 0xfffffff0
inc ecx
mov dl, byte [ecx + str.0123456789ABCDEFincomplete_message_information__rejected_]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFincomplete_message_information__rejected_]
push eax
mov ecx, edi
mov byte [esp + 8], dl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
mov ecx, dword [esp + 4]
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::push_back_char_]
inc esi
cmp esi, 0x10
jl 0x4225a0
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
mov eax, edi
call fcn.00449014
add esp, 0x18
ret
Function at 0x426aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ecx]
mov dword [esp + 0xc], 0
test eax, eax
je 0x426aeb
push 0
lea edx, [esp + 0x18]
push edx
add ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [eax]
push ecx
call eax
add esp, 0xc
lea esi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.004271e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x426b21
mov eax, dword [eax]
test eax, eax
je 0x426b21
lea ecx, [esp + 0x14]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x42a790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a109
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax + 0x3c]
mov esi, dword [eax + 0x10]
mov ecx, dword [eax + 0x40]
mov dword [esi], edx
mov esi, dword [eax + 0x20]
sub ecx, edx
mov dword [esi], edx
mov edx, dword [eax + 0x30]
push 1
xor ebx, ebx
push ebx
mov dword [edx], ecx
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
and dword [esp + eax + 0x1c], 0xfffffffe
mov ecx, dword [esp + 0xc]
lea eax, [esp + eax + 0xc]
mov eax, dword [ecx + 4]
lea eax, [esp + eax + 0xc]
push edx
lea ecx, [esp + 0x10]
mov dword [eax + 0x14], 6
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_int__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x42a841
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
cmp eax, 0xffffffff
jne 0x42a841
mov bl, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x48
ret 8
Function at 0x42b090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a7f9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46e02c]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool__unsigned_int_]
mov eax, dword [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
mov edx, edi
call fcn.00434c50
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char____class_std::_String_const_iterator_char__struct_std::char_traits_char___class_std::allocator_char____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00449014
add esp, 0x30
ret 0x14

Function at 0x42b360
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
xor esi, esi
push edi
cmp dword [0x4757bc], esi
jne 0x42b39e
call ebp
test eax, eax
jns 0x42b394
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4757b8], eax
mov dword [0x4757bc], 1
mov eax, dword [0x4757b8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42b3b7
push ebx
push eax
call edi
mov esi, eax
test esi, esi
jne 0x42b3f2
mov eax, dword [0x4757c0]
test eax, eax
jne 0x42b3ea
call ebp
test eax, eax
jns 0x42b3d4
mov eax, dword [0x45b4c4]
push eax
call dword [0x45b4c0]
jmp 0x42b3e1
mov ecx, dword [str.Kernel32.dll]
push ecx
call dword [0x45b4b8]
test eax, eax
je 0x42b3f2
mov dword [0x4757c0], eax
push ebx
push eax
call edi
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x42b6f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45054f
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x18], 2
call fcn.0042c2f0
mov dword [esi + 0x2a0], edi
mov dword [esi + 0x2a4], edi
mov dword [esi + 0x2a8], edi
mov dword [esi + 0x2ac], edi
mov dword [esi + 0x2b0], edi
mov dword [esi + 0x2d0], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x436140
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44a6c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x436180
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449004
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push edi
push esi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jne 0x4361c2
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 4], esi
jmp 0x4361db
mov ecx, dword [esp + 0x2c]
push edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [0x475580]
mov eax, dword [0x47557c]
mov dword [ebp + 4], ecx
push edi
mov dword [ebp], eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, ebp
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x436270
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
test byte [0x475920], 1
push esi
mov ebx, vtable.system_error_category.0
jne 0x4362a0
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], ebx
call fcn.004490d5
add esp, 4
test byte [0x475920], 1
mov esi, 0x475908
mov dword [esp + 0x10], ebp
jne 0x4362cc
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], ebx
call fcn.004490d5
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], 8
mov dword [esp + 0x14], esi
jb 0x4362df
mov eax, dword [ebx + 4]
jmp 0x4362e2
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436301
mov dword [edi + 4], esi
mov byte [edi + 8], 1
mov dword [edi], ebp
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x475594]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0xb7
jne 0x43634e
mov eax, ebx
lea esi, [esp + 0x10]
lea ebx, [esp + 0x1c]
call fcn.00436080
cmp dword [esp + 0x1c], 3
jne 0x43634e
mov ecx, dword [0x47557c]
mov edx, dword [0x475580]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov byte [edi + 8], 0
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [edi], ebp
pop ebp
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov eax, edi
pop ebx
add esp, 0xc
ret
Function at 0x436370
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, 1
push esi
mov dword [esp + 0x10], 0
test byte [0x475920], al
jne 0x4363ac
or dword [0x475920], eax
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
lea esi, [esp + 0x10]
mov eax, ebp
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0x475908
call fcn.00436080
mov eax, dword [esp + 0x10]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.00419db0
je 0x4363e7
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x436409
mov eax, dword [0x47557c]
mov ecx, dword [0x475580]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp eax, 3
jne 0x436441
cmp dword [ebp + 0x18], 8
jb 0x436419
mov ebp, dword [ebp + 4]
jmp 0x43641c
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x436474
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [ebp + 0x18], 8
jb 0x43644c
mov ebp, dword [ebp + 4]
jmp 0x43644f
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x436474
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x475580]
mov edx, dword [0x47557c]
pop esi
pop ebp
mov dword [edi + 4], eax
mov dword [edi], edx
mov eax, edi
pop ebx
add esp, 0xc
ret

Function at 0x436490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44ba13
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.004082d0
mov dword [esp + 0x30], 1
call fcn.00435f90
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
Function at 0x448ac0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.SwitchBoardLauncher
call esi
test eax, eax
je 0x448ada
mov al, 1
pop esi
pop ecx
ret
push 0
push 0x45b59c
call esi
test eax, eax
jne 0x448aec
xor al, al
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x448a00
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
cmp esi, dword [esp + 4]
pop esi
setne al
pop ecx
ret
Function at 0x449014
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e02c]
jne 0x44901e
repz ret
jmp fcn.0044957d

Function at 0x40891c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add edi, 0x80e2dd38
mov ebx, 0x97f6a7db
call fcn.0040894c
dec ebx
mov edi, 0x3d363882
xor dword [ecx], esi
inc ecx
and edi, edi
or edi, ebx
cmp ecx, eax
jne fcn.0040891c
dec edi
sub ebx, 0xf920b564
ret
Function at 0x402ae4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404214
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404304
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403290
Capabilities:
Query or enumerate registry value

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

Function at 0x403ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e604c], 0
je 0x404055
cmp word [0x4e6220], 0xd7b2
jne 0x40401d
cmp dword [0x4e6228], 0
jbe 0x40401d
mov eax, 0x4e621c
call dword [0x4e6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e0070
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 0x40407c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e0034], 0
jne 0x404071
push 0
push 0x4e0068
push 0x4e0070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027b0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404190
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc