joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6490ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x64a27064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x64a2705c]
sub esp, 4
test ebx, ebx
je 0x6490aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6490ab9e
test esi, esi
je 0x6490ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6490ab80
mov dword [esp], 0x64a27064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6490aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x64900000], 0x5a4d
jne 0x6490af05
mov ecx, dword [0x6490003c]
cmp dword [ecx + 0x64900000], 0x4550
lea edx, [ecx + 0x64900000]
je 0x6490af10
ret
cmp word [ecx + 0x64900018], 0x10b
jne 0x6490af05
push esi
movzx eax, word [ecx + 0x64900014]
push ebx
movzx esi, word [ecx + 0x64900006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x64900000
test si, si
je 0x6490af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6490af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6490af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6490af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x64910290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x64a270c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x64a270c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x64910300
mov dword [esp + 4], 0x649101a0
mov dword [esp], eax
mov dword [0x64a270bc], eax
call fcn.64919b50
test eax, eax
jne 0x649d6d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x649102ea
Function at 0x64919b70
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x64a2702c]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp], 1
mov ebx, dword [esp + 0x40]
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
sub esp, 4
test eax, eax
je 0x64919bad
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
test eax, eax
jne 0x64919be0
mov dword [esp], 0x649df176
mov ecx, ebx
call fcn.649a2e80
sub esp, 4
mov eax, dword [esp + 0x2c]
sub eax, dword [0x64a2702c]
jne 0x64919c53
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov esi, eax
test eax, eax
je 0x64919c48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
test eax, eax
je 0x64919c48
mov dword [esp], eax
lea edi, [esp + 0x14]
mov ecx, edi
call fcn.649a2e80
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp], edi
mov ecx, ebx
call fcn.649a2790
mov ecx, edi
sub esp, 4
call fcn.649a3660
jmp 0x64919bbe
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x64919bad
call fcn.64901590
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x6491c170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x649e0df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x649e0e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6490b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.64919a70
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.649d5980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x649de248], 0
jne 0x6491c296
mov byte [0x649de248], 1
call fcn.649d35a0
test eax, eax
je 0x6491c264
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6490a340
mov dword [esp], 2
mov esi, dword [fcn.649192d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6491c254
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x649e15f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x649d6164
jmp 0x649d615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6491c21a
mov dword [esp], 2
call dword [0x649dd0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x649d6157
mov dword [esp], 2
call dword [0x649dd0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x649e15a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.64919a38
call fcn.649d38d0
call fcn.649d3490
call fcn.649d35d0
jmp 0x649d6157
Function at 0x649b8160
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov esi, dword [edi]
mov eax, dword [0x64a2702c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esp], esi
call fcn.6499e0d0
lea eax, [esi + 0xc]
lea ecx, [ebx + 0xc]
sub esp, 4
mov dword [esp], eax
call fcn.6499be10
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
sub esp, 4
mov dword [esp], eax
call fcn.6499d230
lea eax, [esi + 0x24]
lea ecx, [ebx + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.6499c180
mov eax, dword [esi + 0x30]
vmovdqu xmm0, xmmword [esi + 0x40]
vmovdqu xmm1, xmmword [esi + 0x50]
sub esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
vmovdqu xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
vmovdqu xmmword [ebx + 0x50], xmm1
mov dword [ebx + 0x38], eax
movzx eax, byte [esi + 0x3c]
mov byte [ebx + 0x3c], al
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x64a2702c]
jne 0x649b8206
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
call fcn.64901590
nop
nop
nop
nop
nop

Function at 0x649b8840
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov esi, dword [edi]
mov eax, dword [0x64a2702c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esp], esi
call fcn.6499e0d0
lea eax, [esi + 0xc]
lea ecx, [ebx + 0xc]
sub esp, 4
mov dword [esp], eax
call fcn.6499be10
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
sub esp, 4
mov dword [esp], eax
call fcn.6499d620
lea eax, [esi + 0x24]
lea ecx, [ebx + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.6499c180
mov eax, dword [esi + 0x30]
vmovdqu xmm0, xmmword [esi + 0x40]
vmovdqu xmm1, xmmword [esi + 0x50]
sub esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
vmovdqu xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
vmovdqu xmmword [ebx + 0x50], xmm1
mov dword [ebx + 0x38], eax
movzx eax, byte [esi + 0x3c]
mov byte [ebx + 0x3c], al
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x64a2702c]
jne 0x649b88e6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
call fcn.64901590
nop
nop
nop
nop
nop
Function at 0x649b8f60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov esi, dword [edi]
mov eax, dword [0x64a2702c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esp], esi
call fcn.6499e0d0
lea eax, [esi + 0xc]
lea ecx, [ebx + 0xc]
sub esp, 4
mov dword [esp], eax
call fcn.6499be10
lea eax, [esi + 0x18]
lea ecx, [ebx + 0x18]
sub esp, 4
mov dword [esp], eax
call fcn.6499d230
lea eax, [esi + 0x24]
lea ecx, [ebx + 0x24]
sub esp, 4
mov dword [esp], eax
call fcn.6499c180
mov eax, dword [esi + 0x30]
vmovdqu xmm0, xmmword [esi + 0x40]
vmovdqu xmm1, xmmword [esi + 0x50]
sub esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
vmovdqu xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
vmovdqu xmmword [ebx + 0x50], xmm1
mov dword [ebx + 0x38], eax
movzx eax, byte [esi + 0x3c]
mov byte [ebx + 0x3c], al
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x64a2702c]
jne 0x649b9006
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 4
call fcn.64901590
nop
nop
nop
nop
nop
Function at 0x4188aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437c20]
jne 0x4188b4
repz ret
jmp fcn.0041d16b

Function at 0x427c7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041d440
and dword [ebp - 4], 0
cmp dword [0x43babc], 0
mov ebx, eax
jne 0x427d30
push 0x42f6dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427de1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42f6d0
push edi
call esi
test eax, eax
je 0x427de1
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6c0
push edi
mov dword [0x43babc], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f6ac
push edi
mov dword [0x43bac0], eax
call esi
push eax
call fcn.0041d3ce
mov dword [esp], 0x42f690
push edi
mov dword [0x43bac4], eax
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bacc], eax
test eax, eax
je 0x427d30
push 0x42f678
push edi
call esi
push eax
call fcn.0041d3ce
pop ecx
mov dword [0x43bac8], eax
mov eax, dword [0x43bac8]
cmp eax, ebx
je 0x427d88
cmp dword [0x43bacc], ebx
je 0x427d88
push eax
call fcn.0041d449
push dword [0x43bacc]
mov esi, eax
call fcn.0041d449
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x427d88
test edi, edi
je 0x427d88
call esi
test eax, eax
je 0x427d7f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427d7f
test byte [ebp - 0xc], 1
jne 0x427d88
or dword [ebp + 0x10], 0x200000
jmp 0x427dc1
mov eax, dword [0x43bac0]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427dc1
mov eax, dword [0x43bac4]
cmp eax, ebx
je 0x427dc1
push eax
call fcn.0041d449
pop ecx
test eax, eax
je 0x427dc1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43babc]
call fcn.0041d449
pop ecx
test eax, eax
je 0x427de1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427de3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40894a
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov eax, 0x7b3584a0
push edi
pop eax
call fcn.0040897d
and edi, eax
xor dword [edx], esi
add edx, 1
sub eax, edi
add eax, 1
cmp edx, ecx
jne fcn.0040894a
push eax
pop eax
add edi, edi
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push 4
push 0x3000
push 0x3b9aca00
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x40109f
push ebx
push esi
push edi
mov edi, 9
mov ebx, 0xee6b280
mov eax, 0x4ec4ec4f
imul edi
mov eax, 0x3e8
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
sub eax, 1
jne 0x401046
mov dword [ecx], esi
add edi, 0x1f
add ecx, 4
sub ebx, 1
jne 0x401030
mov ecx, 0x5f
lea edi, [ebp - 0x180]
mov esi, 0x402008
rep movsd dword es:[edi], dword [esi]
push 0x40
push 0x3000
push 0x17e
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x401096
mov edi, eax
lea esi, [ebp - 0x180]
mov ecx, 0x5f
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4036d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4036fb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404260
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40371d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40371f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4037a3
jg 0x403734
test esi, esi
je 0x4037a3
test ecx, ecx
jl 0x40377d
jg 0x40373e
test eax, eax
je 0x40377d
cmp edi, ecx
jg 0x403752
jl 0x403748
cmp esi, eax
jae 0x403752
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0040a840
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x403780
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4037a3
jg 0x40378a
test esi, esi
je 0x4037a3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4037a3
push eax
push esi
push 1
push edx
call fcn.00411827
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4037c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4037eb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x40380d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40380f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4038ae
jg 0x40382c
test esi, esi
je 0x4038ae
test ecx, ecx
jl 0x403879
jg 0x403836
test eax, eax
je 0x403879
cmp ebx, ecx
jg 0x40384a
jl 0x403840
cmp esi, eax
jae 0x40384a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0040a840
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x403880
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4038ae
jg 0x40388a
test esi, esi
je 0x4038ae
cmp dword [edi + 0x4c], 0
je 0x4038ae
mov ecx, edi
call fcn.004054e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00411a74
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43b068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403c40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093ee
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403c7c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x403c7c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093ee
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403d63
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403ca4
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 0x403cd7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004109e6
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.004093ee
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
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 [edx + 0x1c]
test eax, eax
js 0x403d63
cmp eax, 1
jle 0x403d36
cmp eax, 3
jne 0x403d63
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004109e6
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.004093ee
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403d53
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00411827
add esp, 0x10
cmp edi, eax
jne 0x403d63
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403c67
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093ee
mov esp, ebp
pop ebp
ret 4
Function at 0x4055a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43b068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x405641
cmp byte [esi + 0x3d], 0
je 0x405641
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4055f7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405609
sub eax, 1
je 0x40560d
sub eax, 2
je 0x405641
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093ee
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40562a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00411827
add esp, 0x10
cmp edi, eax
jne 0x4055f7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004093ee
mov esp, ebp
pop ebp
ret

Function at 0x4058f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429480
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43b068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040940d
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040837f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
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 ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
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 dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.00405660
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 4

Function at 0x419536
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb