joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ec6
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x402ece
mov eax, dword [esp + 0xc]
push esi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x402efd
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x40305f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00402f83
mov edi, eax
cmp edi, esi
je 0x40309c
cmp dword [ebp - 4], esi
je 0x403098
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x403109
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4030ba
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 4]
call fcn.0040305f
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x403110
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
je 0x4030a4
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4030f0
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x403107
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 4], esi
je 0x40311e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x403109

Function at 0x404559
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4045b1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40b25c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4045a4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4045b3
xor eax, eax
pop esi
leave
ret 4
Function at 0x404da6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b2f8
call fcn.00405020
mov edi, 0x94
mov eax, edi
call fcn.00407300
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40ea6c], ecx
mov eax, dword [esi + 4]
mov dword [0x40ea78], eax
mov edx, dword [esi + 8]
mov dword [0x40ea7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40ea70], esi
cmp ecx, 2
je 0x404e06
or esi, 0x8000
mov dword [0x40ea70], esi
shl eax, 8
add eax, edx
mov dword [0x40ea74], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404e41
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404e41
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404e59
cmp eax, 0x20b
je 0x404e46
mov dword [ebp - 0x1c], esi
jmp 0x404e6d
cmp dword [ecx + 0x84], 0xe
jbe 0x404e41
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404e67
cmp dword [ecx + 0x74], 0xe
jbe 0x404e41
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00405852
pop ecx
test eax, eax
jne 0x404e81
push 0x1c
call fcn.00404d82
pop ecx
call fcn.00407287
test eax, eax
jne 0x404e92
push 0x10
call fcn.00404d82
pop ecx
call fcn.00407170
mov dword [ebp - 4], esi
call fcn.00406f72
test eax, eax
jge 0x404eab
push 0x1b
call fcn.00404d5d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40f398], eax
call fcn.00406e50
mov dword [0x40ea5c], eax
call fcn.00406dae
test eax, eax
jge 0x404ed1
push 8
call fcn.00404d5d
pop ecx
call fcn.00406b7b
test eax, eax
jge 0x404ee2
push 9
call fcn.00404d5d
pop ecx
call fcn.004053ef
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x404ef5
push eax
call fcn.00404d5d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406b12
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x404f16
movzx eax, word [ebp - 0x34]
jmp 0x404f19
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004010cd
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404f37
push edi
call fcn.00405527
call fcn.00405549
jmp 0x404f69
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040505b
ret
Function at 0x40767c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ed24], ebx
push esi
push edi
jne 0x4076fc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407737
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40ed24], eax
je 0x407737
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ed28], eax
call esi
cmp dword [0x40ea6c], 2
mov dword [0x40ed2c], eax
jne 0x4076fc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ed34], eax
je 0x4076fc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ed30], eax
mov eax, dword [0x40ed30]
test eax, eax
je 0x407741
call eax
test eax, eax
je 0x407728
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ed34]
test eax, eax
je 0x407728
test byte [ebp - 8], 1
jne 0x407741
cmp dword [0x40ea78], 4
jb 0x40773b
or byte [ebp + 0x12], 0x20
jmp 0x407760
xor eax, eax
jmp 0x407770
or byte [ebp + 0x12], 4
jmp 0x407760
mov eax, dword [0x40ed28]
test eax, eax
je 0x407760
call eax
mov ebx, eax
test ebx, ebx
je 0x407760
mov eax, dword [0x40ed2c]
test eax, eax
je 0x407760
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ed24]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409078
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407300
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40910d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40ea6c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x40910d
cmp eax, 1
je 0x409125
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40910d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4090e2
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x409109
xor eax, eax
inc eax
jmp 0x409141
cmp esi, ebx
jae 0x409111
xor eax, eax
jmp 0x409141
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40ea6c]
jmp 0x409127
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401680
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6726
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 6
jb 0x401749
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push eax
push 6
push str.title
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.00401920
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
add esp, 4
mov dword [ebp - 0x2c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret 0x18
call fcn.00401490
int3
Function at 0x436640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x43666c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x436694
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x43669a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x436702
jg 0x4366b1
test esi, esi
je 0x436702
test ecx, ecx
jl 0x4366fd
jg 0x4366bb
test eax, eax
je 0x4366fd
cmp edi, ecx
jg 0x4366cf
jl 0x4366c5
cmp esi, eax
jae 0x4366cf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x436705
mov ecx, dword [ebp + 8]
jmp 0x43670f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x436729
jg 0x43670f
test esi, esi
je 0x436729
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x436729
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x43676c
jl 0x436760
test ecx, ecx
jne 0x43676c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x436785
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4367cd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4367d3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4367d3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x436846
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4367fc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x436834
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x436846
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x436810
test edi, edi
je 0x436846
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x436b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4e400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x436b90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x436bc0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x436bc0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x436c98
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x436be9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x436bf5
movsx eax, bl
jmp 0x436c2d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x436c57
sub eax, 1
je 0x436c57
sub eax, 2
jne 0x436c98
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x436c75
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x436c98
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b543e
mov esp, ebp
pop ebp
ret 4
Function at 0x43bdf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x43beac
cmp byte [esi + 0x3d], 0
je 0x43beac
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x43be9a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x43be61
sub eax, 1
je 0x43be65
sub eax, 2
jne 0x43be9a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43be83
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x43be9a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b543e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004b543e
mov esp, ebp
pop ebp
ret
Function at 0x4adb80
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb9cd
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4e400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x70], esi
call fcn.004b0210
mov dword [ebp - 4], 0
push ecx
push 0xff
call fcn.004b0170
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.004a4320
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.004a4330
test eax, eax
jne 0x4adc29
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x30]
add eax, 0x76c
push dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
inc eax
push eax
push dword [ebp - 0x28]
push str._.02u_.02u_.04u_.02u_.02u_.02u.dmp
push ecx
lea ecx, [ebp - 0x54]
call fcn.004b0200
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
push ecx
push 0x12
lea ecx, [ebp - 0x54]
call fcn.004b0170
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x54]
call fcn.004b01f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4adc9a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
push 0x1901
push edi
push esi
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x70]
mov eax, dword [esi]
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
cdq
push edx
push eax
call fcn.00402c60
mov byte [ebp - 4], 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x70], esp
mov edx, str.SEH_Error_capturado_no_endereco:_0x
push eax
call fcn.0043d500
add esp, 4
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00401bf0
push 0x4e1b54
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4b5f75
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b5fb4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b5fb4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b5fb4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b5fb4
cmp dword [ecx + 0x74], 0xe
jbe 0x4b5fb4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bd61
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040bde0
jae 0x40bd6d
xor ecx, ecx
call fcn.0040bde0
jae 0x40bd97
xor eax, eax
call fcn.0040bde0
jae 0x40bda8
mov al, 0x10
call fcn.0040bde0
adc al, al
jae 0x40bd89
jne 0x40bdd5
stosb byte es:[edi], al
jmp 0x40bd6e
call fcn.0040bdec
dec ecx
loop 0x40bdb4
mov eax, ebp
call fcn.0040bdea
jmp 0x40bdd6
lodsb al, byte [esi]
shr eax, 1
je 0x40bdfc
adc ecx, 2
mov ebp, eax
jmp 0x40bdd6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040bdea
cmp eax, 0x7d00
jae 0x40bdd4
cmp eax, 0x500
jae 0x40bdd5
cmp eax, 0x7f
ja 0x40bdd6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40bd6e
pop ebp
ret 8

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x42229c
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
or al, 0xfe
cli
mov byte [edi + 0x24735128], bh
sub al, 0x1f
pop ds
sbb cl, byte [edi]
xor dword [edi + 0x1b9418a9], ebx
dec edx
shl byte [ecx - 0x2a], cl
out dx, eax
lea esp, [ebx + 0x1326901b]
test cl, ah
cwde
xlatb
dec edx
cmp byte [eax - 0x44e4c50d], dl
xor cl, bl
aam 2
inc ebx
cmc
neg byte [esi - 0x5a]
inc ecx
rol dword [edi], cl
nop
mov dh, 0x9a
insd dword es:[edi], dx
leave
cmc
cld
test dword [eax], edi
sbb edi, dword [ebp - 0x21]
add eax, 0x2bb180b2
mov ebx, 0x136b26fc
push ss
jmp 0x40102e
invalid
Function at 0x4016d6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [fcn.00404b69]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov edx, dword [ebx]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], edi
test edx, edx
je 0x4017d9
call fcn.00401052
test eax, eax
je 0x4017d9
xor eax, eax
cmp byte [ebp + 0x10], al
push 0x40
setne al
pop ecx
lea edi, [ebp - 0x104]
lea eax, [eax + eax - 1]
mov dword [ebp - 0x10c], eax
xor eax, eax
cmp byte [ebp + 0x14], al
sete al
dec eax
rep stosd dword es:[edi], eax
jmp 0x401753
cmp byte [ebp + 0x14], 0
je 0x401743
xor ecx, ecx
jmp 0x401748
mov ecx, 0xff
movsx eax, al
mov byte [ebp + eax - 0x104], cl
inc esi
mov al, byte [esi]
test al, al
jne 0x401739
cmp byte [ebp + 0x10], 0
mov eax, dword [ebx + 4]
lea esi, [edx + eax*2 + 0xc]
mov eax, dword [edx + 4]
mov byte [ebp - 0x104], 0xff
lea ecx, [edx + eax*2 + 0xc]
je 0x401778
mov eax, esi
jmp 0x40177f
lea eax, [ecx - 2]
cmp eax, esi
jb 0x4017d1
cmp eax, ecx
jae 0x4017b2
movzx edx, word [eax]
mov edi, 0xff
cmp dx, di
jbe 0x401796
movzx edx, byte [ebp + 0x14]
jmp 0x4017a1
movzx edx, dx
movzx edx, byte [ebp + edx - 0x104]
test edx, edx
jne 0x4017b2
mov edx, dword [ebp - 0x10c]
lea eax, [eax + edx*2]
cmp eax, esi
jae 0x40177f
cmp byte [ebp + 0x10], 0
je 0x4017d1
sub eax, esi
sar eax, 1
push eax
push esi
mov ecx, dword [ebp - 0x108]
call fcn.0040163b
mov eax, dword [ebp - 0x108]
jmp 0x4017e2
sub ecx, eax
sar ecx, 1
push ecx
push eax
jmp 0x4017be
and dword [edi], 0
and dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b69
leave
ret 0x10