joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6f031
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4f74708]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
push edx
push 0xf003f
push 0
push ecx
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4f6f0c9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x100
jmp 0x4f6f093
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.04f6f031
push edi
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x4f6f081
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.04f72e95
leave
ret 8

Function at 0x4f6f1ae
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4f74708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x40c], ecx
cmp edi, ebx
je 0x4f6f216
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.04f6d059
push 0x4f638d4
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.04f6f0dc
push edi
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.04f6f0dc
lea eax, [ebp - 0x404]
push ebx
lea ecx, [ebp - 0x408]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4f6f270
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x40c]
push 1
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x408]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.04f72e95
leave
ret 8

Function at 0x4f7219e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi], eax
je 0x4f721ac
inc eax
pop esi
ret
cmp dword [esi + 8], eax
jne 0x4f721b8
mov eax, 0x80004005
pop esi
ret
lea ecx, [esi + 4]
push ecx
push eax
push esi
push 0x4f7218b
push eax
push eax
mov dword [esi + 0x2c], 0x80004005
mov byte [esi + 0x30], al
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov dword [esi], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
ret

Function at 0x47b008
Capabilities:
Encode data using xor

Disassembly:
pop ebp
push ebp
mov esi, 0x47b01e
mov al, 0xff
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10
Function at 0x401b60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4915a3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov dword [ebp - 4], edi
mov ecx, 0x4ae00c
lea edi, [esi + 8]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], 0xb
call fcn.0042b2c0
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00401890
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1a
push str.TERA_360_DOWNLOADER_1_45_
mov ecx, edi
call fcn.004016f0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea ecx, [esi + 4]
call fcn.00401890
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042b410
push str._ssleay32.dll
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call fcn.004019e0
mov eax, dword [eax]
mov ebx, 1
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], ebx
call fcn.00428890
add esp, 0x14
test al, al
je 0x401cb7
push 0x4976cc
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004019e0
mov eax, dword [eax]
mov ebx, 3
push eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x14], ebx
call fcn.00428890
add esp, 0x10
mov byte [ebp - 0xd], 1
test al, al
jne 0x401cbb
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 5
test bl, 2
je 0x401cec
mov eax, dword [ebp - 0x1c]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 4
test bl, 1
je 0x401d17
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x18]
setne cl
add eax, 0xfffffff0
mov byte [esi], cl
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4043eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404422
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40441e
jmp 0x404410
cmp esi, eax
jae 0x404422
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404410
cmp esi, eax
jb 0x404429
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4068e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49189b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00460283
push 4
mov dword [ebp - 4], 0
call fcn.00461610
mov edi, eax
add esp, 4
test edi, edi
je 0x406960
call fcn.0045fd95
mov dword [edi], eax
call fcn.0045fad6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0045f93f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406956
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0045f967
jmp 0x406962
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491c58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x408ab1
cmp byte [edi + 0x49], bl
je 0x408ab1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x408aa5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x408a05
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x408a1d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x408a46
dec eax
je 0x408a4a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x408aa0
jmp 0x408aac
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x408a5a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x408a83
cmp ebx, 0x10
jae 0x408a69
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00462ff6
add esp, 0x10
cmp esi, eax
jne 0x408a9d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x408aa9
test esi, esi
jne 0x408a11
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402770
jmp 0x408a0b
lea ecx, [ebp - 0x2c]
call fcn.00402690
xor al, al
jmp 0x408ab3
lea ecx, [ebp - 0x2c]
call fcn.00402690
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x4092d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491dd5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401460
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.00401460
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [ebp - 4], 1
call fcn.00401460
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [ebp - 4], 2
call fcn.00401460
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [ebp - 4], 3
call fcn.00401460
add eax, 0x10
add esp, 0x14
mov dword [esi + 0x10], eax
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ebp - 4], 4
mov byte [ecx], 0
call fcn.00402b00
mov eax, dword [edi + 0x30]
sub eax, 0x10
push eax
mov byte [ebp - 4], 5
call fcn.00401460
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
sub eax, 0x10
push eax
mov byte [ebp - 4], 6
call fcn.00401460
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
sub eax, 0x10
push eax
mov byte [ebp - 4], 7
call fcn.00401460
add esp, 0xc
add eax, 0x10
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov al, byte [edi + 0x44]
mov byte [esi + 0x44], al
mov cl, byte [edi + 0x45]
mov byte [esi + 0x45], cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409f40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f12
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x409f95
mov dword [edi], 0x4979a8
mov dword [edi + 0x10], 0x4979a0
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov dword [edi + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
add ebx, edi
mov ecx, ebx
call fcn.00406050
lea esi, [edi + 0x18]
push 0x20
mov ecx, ebx
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], 0
call fcn.00407570
cmp dword [ebx + 0x38], 0
mov byte [ebx + 0x40], al
jne 0x409fe7
mov eax, dword [ebx + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, ebx
call fcn.00405f00
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx + 4]
mov dword [edi + edx + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [ebp - 4], 5
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004068e0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
mov dword [edx], ecx
mov eax, dword [esi + 0x34]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov dword [edx], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
mov dword [edx], ecx
mov dword [esi + 0x54], ecx
mov eax, dword [0x4af7d0]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a190
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f87
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x40a1de
mov dword [ebx], 0x4979b8
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00406050
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00407570
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40a22a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00405f00
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004068e0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4af7d0]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492067
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x40a7be
mov dword [ebx], 0x4979dc
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
call fcn.00406050
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00407570
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40a810
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00405f00
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004068e0
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4af7d0]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4921b3
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401020
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00401460
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
push 0xf
push str.fndlhistory.dat
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004016f0
push 1
lea ecx, [ebp - 0xc0]
call fcn.0040a770
mov esi, dword [ebp - 0x10]
push 0x40
push 1
push esi
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.004088b0
test eax, eax
jne 0x40b3e6
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xb4]
lea ecx, [ebp + ecx - 0xc0]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40b407
or eax, 4
jmp 0x40b407
mov ecx, dword [ebp - 0xc0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x88]
lea ecx, [ebp + ecx - 0xc0]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.00405f00
cmp dword [ebp - 0x5c], 0
je 0x40b456
lea ecx, [ebp - 0xb0]
call fcn.004099a0
test eax, eax
jne 0x40b44f
mov edx, dword [ebp - 0xc0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0xb4]
lea ecx, [ebp + ecx - 0xc0]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40b447
or eax, 4
push 0
push eax
call fcn.00405f00
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040a8a0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00460133
lea eax, [esi - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret