joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c4a
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x43494f
call fcn.0042bee2
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
xor esi, esi
cmp eax, esi
je 0x402c9b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], esi
je 0x402c9b
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 4], esi
call section..text
cmp dword [ebp - 0x20], esi
pop ecx
pop ecx
je 0x402c93
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
jne 0x402ca5
lea esi, [ebp - 0x24]
call fcn.0040365f
xor eax, eax
call fcn.0042bfba
ret 4
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 0
je 0x402d1c
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp esi, eax
jae 0x402d1c
mov eax, dword [ebp - 0x20]
lea eax, [eax + esi*4]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00401343
pop ecx
pop ecx
lea edi, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040302c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402d0f
inc esi
jmp 0x402cbc
lea eax, [edi - 0x10]
call fcn.004050ec
jmp 0x402c93
lea eax, [edi - 0x10]
call fcn.004050ec
lea esi, [ebp - 0x24]
call fcn.0040365f
xor eax, eax
inc eax
jmp 0x402c9d

Function at 0x405006
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40501d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405052
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40504e
cmp edi, eax
jae 0x405052
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405040
cmp edi, eax
jb 0x405056
xor eax, eax
jmp 0x405060
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405124
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405187
cmp dword [ebp + 0xc], 1
je 0x405160
cmp dword [ebp + 0xc], 2
je 0x405160
push 0xd
pop eax
jmp 0x405187
test edi, edi
mov eax, dword [ebp - 4]
je 0x405181
test eax, eax
je 0x40517d
test al, 1
jne 0x40515b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x405181
jmp 0x40515b
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x406a17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0xc
mov eax, 0x432b2b
call fcn.0042bee2
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor esi, esi
push str.SOFTWAREClassesCLSID_
lea ecx, [ebp]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP80.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__]
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [ebp]
call dword [0x4371a4]
push str.Implemented_Categories_
lea ecx, [ebp]
call dword [0x4371a4]
push str.A5F7140E_4311_4ef9_AABC_F55941B5EBE5
lea ecx, [ebp]
call dword [0x4371a4]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov dword [ebp - 0x10], esi
jae 0x406a90
lea eax, [ebp + 4]
lea ecx, [ebp - 0x10]
push ecx
push 0x201
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x406adc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP80.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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0042b7ea
add ebp, 0xa0
leave
ret
push 0x7e
lea eax, [ebp + 0x1e]
push esi
push eax
mov word [ebp + 0x1c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.idex
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 0x80
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x406b27
lea eax, [ebp + 0x1c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.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__]
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406aaa

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4077d3
test al, 0x10
jne 0x4077d3
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40784c
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x188], eax
test esi, esi
mov eax, dword [ebp + 0x194]
mov dword [ebp - 0x80], eax
je 0x4078d4
test edi, edi
je 0x4078d4
push esi
call fcn.004077bc
test al, al
pop ecx
je 0x4078d4
and word [ebp - 0x78], 0
push 0x1fe
lea eax, [ebp - 0x76]
push 0
push eax
mov dword [ebp - 0x7c], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x78]
push eax
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4078cf
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP80.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__]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
jmp 0x4078d9
mov eax, 0x80004005
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
call fcn.0042b7ea
add ebp, 0x18c
leave
ret

Function at 0x407b34
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x407b55
mov eax, 0x80004005
jmp 0x407bd8
push edi
call fcn.004077bc
test al, al
pop ecx
je 0x407b4b
and word [ebp - 0x804], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov ebx, 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x407bd5
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.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 eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
je 0x407bd3
push 0x437880
mov ecx, esi
call dword [sym.imp.MSVCP80.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__::append_wchar_t_const__]
xor ebx, ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b7ea
leave
ret
Function at 0x407c5f
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x78c]
sub esp, 0x80c
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x788], eax
test edi, edi
mov eax, dword [ebp + 0x794]
push esi
mov dword [ebp - 0x80], eax
je 0x407cef
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x407cef
push edi
call fcn.004077bc
test al, al
pop ecx
je 0x407cef
and word [ebp - 0x78], 0
push 0x7fe
lea eax, [ebp - 0x76]
push 0
push eax
mov dword [ebp - 0x7c], 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x78]
push eax
push 0
push esi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x407cea
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP80.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__]
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
jmp 0x407cf4
mov eax, 0x80004005
mov ecx, dword [ebp + 0x788]
xor ecx, ebp
pop esi
call fcn.0042b7ea
add ebp, 0x78c
leave
ret

Function at 0x407efb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
xor eax, eax
cmp dword [esp + 8], eax
je 0x407f53
push edi
movzx ecx, byte [esi]
mov dx, ax
dec dword [esp + 0xc]
shr dx, 0xc
movzx edx, dl
shl eax, 4
mov edi, ecx
shr edi, 4
xor edx, edi
xor ax, word [edx*2 + 0x43cf58]
and ecx, 0xf
movzx eax, ax
mov dx, ax
shr dx, 0xc
movzx edx, dl
shl eax, 4
xor edx, ecx
xor ax, word [edx*2 + 0x43cf58]
inc esi
cmp dword [esp + 0xc], 0
movzx eax, ax
jne 0x407f07
pop edi
pop esi
ret
Function at 0x408146
Capabilities:
Encode data using xor

Disassembly:
push 0x24
mov eax, 0x432d80
call fcn.0042bf4b
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x408161
xor eax, eax
jmp 0x408214
push 0x28
push ebx
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp eax, ebx
je 0x4081a3
cmp byte [eax], 0
mov ecx, eax
je 0x4081a3
mov al, byte [ecx]
cmp al, 0x41
jl 0x40819d
cmp al, 0x5a
jg 0x40819d
add al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x40818f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push ebx
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
call fcn.00407efb
mov edi, dword [ebp - 0x18]
cmp edi, 0x25
movzx eax, ax
pop ecx
mov dword [ebp - 0x30], eax
jbe 0x4081c7
push 0x25
pop edi
push edi
push 0
lea ecx, [ebp - 0x2c]
lea ebx, [esi + 3]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
push eax
push ebx
call sub.MSVCR80.dll_memcpy
lea eax, [edi + 2]
mov byte [esi], al
mov ax, word [ebp - 0x30]
add esp, 0xc
test ebx, ebx
mov word [esi + 1], ax
je 0x408204
test edi, edi
je 0x408204
xor eax, eax
test edi, edi
jbe 0x408204
xor byte [eax + ebx], 0x5a
inc eax
cmp eax, edi
jb 0x4081fb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
inc eax
call fcn.0042bfce
ret
Function at 0x4083a2
Capabilities:
Read file via mapping

Disassembly:
push 0x20
mov eax, 0x434794
call fcn.0042bf4b
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor edi, edi
push str.Global_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.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__]
cmp dword [0x449bf4], 8
mov eax, dword [0x449be0]
jae 0x4083dd
mov eax, 0x449be0
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4371a4]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4083f3
lea eax, [ebp - 0x28]
cmp dword [esi + 4], edi
jne 0x40842b
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [esi], eax
je 0x40842e
push 0x3fe0
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x408428
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x40842e
mov dword [esi + 4], eax
xor edi, edi
inc edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
call fcn.0042bfce
ret

Function at 0x408443
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
push esi
jne 0x408462
xor esi, esi
jmp 0x4084d5
and dword [ebp - 0x74], 0
and dword [ebp - 0x70], 0
lea edx, [ebp - 0x74]
push edx
lea esi, [eax + 0x20]
lea edx, [ebp - 0x70]
call fcn.00408332
mov esi, dword [ebp - 0x74]
test esi, esi
pop ecx
je 0x4084d5
mov eax, dword [ebp - 0x70]
add eax, 0x2c
push 0x10
push eax
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x7a
inc eax
cmp eax, 0x10
jb 0x408498
test esi, esi
je 0x4084d5
and word [ebp - 0x5c], 0
push 0x48
lea eax, [ebp - 0x5a]
push 0
push eax
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x5c]
add esp, 0xc
push eax
lea eax, [ebp - 0x6c]
call fcn.00407ea6
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.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 [ebp - 8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b7ea
leave
ret 4
Function at 0x4084e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x294], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x72]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x74], di
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x408528
mov esi, dword [esi + 4]
jmp 0x40852b
add esi, 4
cmp dword [0x449c2c], 8
mov eax, dword [0x449c18]
jae 0x40853e
mov eax, 0x449c18
push esi
push eax
push 0x43cfb0
lea eax, [ebp - 0x74]
push 0x104
push eax
call fcn.0040b3ef
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x74]
push eax
push 0x80000002
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40857d
mov eax, 0xe00c0012
jmp 0x4085f8
mov esi, 0xfe
push esi
lea eax, [ebp + 0x196]
push edi
push eax
mov dword [ebp - 0x7c], edi
mov word [ebp + 0x194], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push str.Name
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x4085e8
cmp dword [ebp - 0x7c], 1
jne 0x4085e8
push str..Pipe_
mov ecx, ebx
call dword [sym.imp.MSVCP80.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__]
lea eax, [ebp + 0x194]
push eax
mov ecx, ebx
call dword [0x4371a4]
jmp 0x4085ed
mov esi, 0xe00c001f
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp + 0x294]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b7ea
add ebp, 0x298
leave
ret

Function at 0x4089c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x4089f2
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4089fe
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x4089c9
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c0009
jmp 0x4089f9

Function at 0x408a05
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
jmp 0x408a37
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408a43
add esi, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
jne 0x408a0e
xor eax, eax
pop esi
leave
ret 0xc
mov eax, 0xe00c000b
jmp 0x408a3e
Function at 0x408d35
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x449030]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call sub.MSVCR80.dll_memset
push 0x206
lea eax, [ebp - 0x42]
push esi
push eax
mov word [ebp - 0x44], si
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], str.runas
mov dword [ebp - 0x64], 5
mov dword [ebp - 0x6c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp + 0x1c4]
xor ecx, ebp
pop esi
call fcn.0042b7ea
add ebp, 0x1c8
leave
ret

Function at 0x40902f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4364bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x449030]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push str.kdump.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
je 0x4090a3
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4090a3
push esi
push esi
push eax
push 0x406b35
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, esi
je 0x4090a3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x10]
call fcn.00408f46
cmp eax, 1
je 0x4090b4
xor eax, eax
jmp 0x4090e2
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
call fcn.0040561a
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], esi
call fcn.004056df
or dword [esp + 0x28], 0xffffffff
mov esi, eax
lea eax, [esp + 0xc]
push eax
call fcn.0040569e
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41965f
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x434587
call fcn.0042bee2
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [0x449644]
mov ecx, 0x449644
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00403dac
add eax, 0x10
push ebx
mov dword [edi], eax
push 0x80000002
lea eax, [ebp - 0x14]
push eax
call fcn.004197ca
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040302c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x4196f4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4196f4
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00419873
lea eax, [edi - 0x10]
call fcn.004050ec
mov eax, ebx
jmp 0x4197c2
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00403dac
add eax, 0x10
push ebx
mov dword [edi], eax
push 0x80000001
lea eax, [ebp - 0x14]
push eax
call fcn.004197ca
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040302c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x419745
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4196d9
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x14], esp
mov edi, esp
call fcn.00403dac
add eax, 0x10
push 1
mov dword [edi], eax
push 0x80000002
lea eax, [ebp - 0x14]
push eax
call fcn.004197ca
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0040302c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004050ec
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
je 0x4197aa
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4197aa
mov ebx, dword [ebp + 8]
mov eax, edi
push eax
call fcn.00419873
lea eax, [esi - 0x10]
jmp 0x4196e8
push 0x43822c
push dword [ebp + 8]
call fcn.00402fa8
lea eax, [esi - 0x10]
call fcn.004050ec
mov eax, dword [ebp + 8]
call fcn.0042bfba
ret 4