joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.0040f4d0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call fcn.00404620
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
shr edx, 8
or cl, al
xor dl, al
movsx ecx, cl
movsx edx, dl
imul edx, ecx
mov cl, al
shl cl, 4
or cl, al
add dl, cl
mov byte [ebp + eax - 0x50c08], dl
inc eax
cmp eax, 0x50bfe
jb 0x402d53
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040371d
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c40
call fcn.0040f4d0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call fcn.00404620
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
shr edx, 8
xor cl, al
xor dl, al
add dl, cl
mov cl, al
shl cl, 4
xor cl, al
add dl, cl
mov byte [ebp + eax - 0x50c08], dl
inc eax
cmp eax, 0x50bfe
jb 0x402eb3
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040371d
mov esp, ebp
pop ebp
ret
Function at 0x402f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c44
call fcn.0040f4d0
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call fcn.00404620
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr edx, 9
and dl, al
shr ecx, 5
movsx edx, dl
and cl, al
movsx ecx, cl
imul edx, ecx
movsx ecx, al
movsx edx, dl
imul edx, ecx
movsx ecx, al
and dl, al
mov dword [ebp - 0x50c24], edx
mov edx, eax
shr edx, 4
xor dl, 8
movsx ebx, dl
mov edx, eax
imul ebx, ecx
shr edx, 3
movsx ecx, al
movsx edx, dl
imul edx, ecx
mov ecx, dword [ebp - 0x50c24]
and bl, dl
or cl, bl
mov byte [ebp + eax - 0x50c08], cl
inc eax
cmp eax, 0x50bfe
jb 0x403014
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c40], 0x50bfe
mov dword [ebp - 0x50c44], eax
lea eax, [ebp - 0x50c44]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c3c], 0
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c44]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c44]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040371d
mov esp, ebp
pop ebp
ret
Function at 0x408ef4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00408bb4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0xee94c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee94d2
pushal
call 0xee94d8
pop ebp
sub ebp, 0x10
sub ebp, 0xae94c8
jmp 0xee94ee
mov eax, 0xae94c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ab
mov edx, 0x95549424
xor byte [eax], dl
inc eax
dec ecx
jne 0xee9505
jmp 0xee9518
scasd eax, dword es:[edi]
jmp 0x250742cd

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x48706c]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esp + 4], esi
call fcn.004245a0
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x19c]
mov eax, esi
mov dword [0x48a76c], esi
pop esi
xor ecx, esp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret
Function at 0x4033c0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x48706c]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x47d720]
mov eax, dword [0x48a76c]
cmp dword [eax + 0x130], 0x10
lea ecx, [eax + 0x11c]
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x10], 0x22
movaps xmm0, xmmword [0x47d6f0]
movups xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [0x47d730]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x47d700]
movups xmmword [ebp - 0x20], xmm0
jb 0x40342e
mov ecx, dword [ecx]
add eax, 0xd4
cmp dword [eax + 0x14], 0x10
jb 0x40343b
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x150]
push 0x100
push eax
call fcn.00401430
add esp, 0x14
lea eax, [ebp - 0x198]
push 0x44
push 0
push eax
call fcn.00443a00
add esp, 0xc
lea eax, [ebp - 0x1b0]
xorps xmm0, xmm0
movaps xmmword [ebp - 0x1b0], xmm0
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4034d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x48706c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
movaps xmm0, xmmword [0x47d720]
cmovae eax, dword [ebp + 8]
push eax
movups xmmword [ebp - 0x38], xmm0
lea eax, [ebp - 0x38]
mov byte [ebp - 8], 0
movaps xmm0, xmmword [0x47d6f0]
push eax
movups xmmword [ebp - 0x28], xmm0
lea eax, [ebp - 0x138]
movaps xmm0, xmmword [0x47d710]
push 0x100
push eax
movups xmmword [ebp - 0x18], xmm0
call fcn.00401430
push 0x44
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.00443a00
add esp, 0x1c
lea eax, [ebp - 0x190]
xorps xmm0, xmm0
movups xmmword [ebp - 0x190], xmm0
push eax
lea eax, [ebp - 0x180]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x138]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x18c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4035ba
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4035b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035c8
push edx
push ecx
call fcn.0042bafb
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret
call fcn.0044acc1
int3
Function at 0x404350
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 0x40437b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404e30
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 0x40439d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40439f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x404423
jg 0x4043b4
test esi, esi
je 0x404423
test ecx, ecx
jl 0x4043fd
jg 0x4043be
test eax, eax
je 0x4043fd
cmp edi, ecx
jg 0x4043d2
jl 0x4043c8
cmp esi, eax
jae 0x4043d2
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.00442f00
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 0x404400
mov edx, dword [ebp + 8]
test edi, edi
jl 0x404423
jg 0x40440a
test esi, esi
je 0x404423
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404423
push eax
push esi
push 1
push edx
call fcn.00449eb1
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 0x404440
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 0x40446b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404f10
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 0x40448d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40448f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40452e
jg 0x4044ac
test esi, esi
je 0x40452e
test ecx, ecx
jl 0x4044f9
jg 0x4044b6
test eax, eax
je 0x4044f9
cmp ebx, ecx
jg 0x4044ca
jl 0x4044c0
cmp esi, eax
jae 0x4044ca
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.00442f00
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 0x404500
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40452e
jg 0x40450a
test esi, esi
je 0x40452e
cmp dword [edi + 0x4c], 0
je 0x40452e
mov ecx, edi
call fcn.00406100
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0044a695
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 0x404890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48706c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4048c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4048fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4048fc
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.0042bab5
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4049e1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404924
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 0x404957
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00446827
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.0042bab5
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], 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 - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4049e1
cmp eax, 1
jle 0x4049b4
cmp eax, 3
jne 0x4049e1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004020d0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4049d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00449eb1
add esp, 0x10
cmp edi, eax
jne 0x4049e1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4048e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bab5
mov esp, ebp
pop ebp
ret 4
Function at 0x406130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48706c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4061d1
cmp byte [esi + 0x3d], 0
je 0x4061d1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406187
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 0x406199
sub eax, 1
je 0x40619d
sub eax, 2
je 0x4061d1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4061ba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00449eb1
add esp, 0x10
cmp edi, eax
jne 0x406187
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042bab5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042bab5
mov esp, ebp
pop ebp
ret

Function at 0x407380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4676f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042bacb
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042997d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
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 eax, dword [edi + 0x20]
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 eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ed30
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.Exploit.0
cmp dword [esi + 0x38], 0
je 0x40ed6f
push ebx
push edi
mov edi, 0x64
dec edi
lea eax, [esi + 0x28]
cmp dword [esi + 0x3c], 0x10
jb 0x40ed53
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ed6d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x40ed46
pop edi
pop ebx
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x10
jb 0x40ed9f
mov eax, dword [esi + 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x40ed95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40edf5
mov eax, edx
push ecx
push eax
call fcn.0042bafb
add esp, 8
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0xf
mov byte [esi + 0x28], 0
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x40ede1
mov eax, dword [esi + 4]
inc ecx
cmp ecx, 0x1000
jb 0x40edd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40edf5
mov eax, edx
push ecx
push eax
call fcn.0042bafb
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
pop esi
ret
call fcn.0044acc1
int3
Function at 0x41c6f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x48706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
mov dword [ebx + 4], 0
lea esi, [ebx + 8]
mov dword [ebx], vtable.LoggerLocal.0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
cmp esi, eax
je 0x41c766
cmp dword [ebp + 0x1c], 0x10
mov ecx, esi
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.00405f60
push 1
push 0x47a494
mov ecx, esi
call fcn.00403bd0
mov edi, eax
cmp edi, 0xffffffff
je 0x41c80e
nop
cmp dword [esi + 0x10], edi
mov ecx, edi
mov dword [ebp - 0x14], 0
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
jb 0x41c7a5
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00405f60
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.0044a47c
mov edx, dword [ebp - 0x10]
add esp, 4
cmp edx, 0x10
jb 0x41c7f3
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c7e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c860
push edx
push ecx
call fcn.0042bafb
add esp, 8
lea eax, [edi + 1]
mov ecx, esi
push eax
push 0x47a494
call fcn.00403bd0
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c780
push 0x47a2d9
mov ecx, ebx
call fcn.0041cba0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x41c84a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41c840
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c860
push edx
push ecx
call fcn.0042bafb
add esp, 8
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 0x18
call fcn.0044acc1
int3