joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000af20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
mov eax, 5
push edi
mov dword [ebp + 8], eax
add esi, dword [0x10a5a320]
test byte [esi + 0x14], 1
mov edi, dword [esi]
je 0x1000af4a
sub edi, eax
mov eax, 7
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000af67
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000af8c
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1000afad
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1000afad
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000afa7
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1000afad
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b050
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10136994]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000b137
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000b130
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000b116
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1000b116
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000b116
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000b0df
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x10a59608]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1000b12f
jmp 0x1000b108
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000b108
shl eax, 3
push eax
push ecx
push 0
push dword [0x10a59608]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000b12f
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000b0a0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000d4ed
mov esp, ebp
pop ebp
ret
Function at 0x1000b1f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1000b050
add esp, 4
cmp dword [esi], 0
je 0x1000b25c
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000b25b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000b254
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000b470
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000b222
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000b5b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x1000b600
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1000b5ef
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000b5e8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1000b5c5
pop ebx
push dword [edi]
push 0
push dword [0x10a59608]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x1001c021
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001bea0

Function at 0x100209b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10020674
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401443
pop dword [ebp - 0x34]
mov eax, 0x401443
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x20589919
add dword [ebp - 0x44], 0x2df9ac32
mov dword [ebp - 0x40], 0x4f19eab6
add dword [ebp - 0x40], 0xe319618f
mov dword [ebp - 0x3c], 0xf8a25fb9
sub dword [ebp - 0x3c], 0xac561b8b
mov dword [ebp - 0x38], 0x22de6fcd
add dword [ebp - 0x38], 0xdd219033
lea eax, [ebp - 0x44]
push eax
mov eax, 0xda0a552a
add eax, 0x26362b4e
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x315c8336
add dword [ebp - 0x44], 0x4315e620
mov dword [ebp - 0x40], 0xda46f919
add dword [ebp - 0x40], 0x6725685c
mov dword [ebp - 0x3c], 0xaecd6a87
add dword [ebp - 0x3c], 0xb4a201e5
mov dword [ebp - 0x38], 0x568afa40
add dword [ebp - 0x38], 0xa97505c0
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xa3a4ca22
sub eax, 0xa36449a6
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3d429
push 0
call eax
mov ecx, 0x2869b4fa
add ecx, 0xd796a68f
mov edi, eax
mov ebx, 0x11f16e96
add ebx, 0xee53a56a
add ebx, dword [ebp - 0x34]
mov esi, 0x54684bf5
xor dword [ebp - 0xc], 0xfaedc1ad
mov edx, dword [ebx]
sub dword [ebp - 0x18], ecx
xor edx, esi
mov dword [edi], edx
add dword [ebp - 0x2c], 0xa0eae61e
add edi, 0xb7b28bf3
sub edi, 0xb7b28bef
add ebx, 4
loop 0x40155a
add eax, 0x160f7
mov ebx, eax
add eax, 5
mov ecx, 0x57fcca8e
add ecx, 0xa8433572
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x403380
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 0x4033ab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403cd0
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 0x4033cd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4033cf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x403453
jg 0x4033e4
test esi, esi
je 0x403453
test ecx, ecx
jl 0x40342d
jg 0x4033ee
test eax, eax
je 0x40342d
cmp edi, ecx
jg 0x403402
jl 0x4033f8
cmp esi, eax
jae 0x403402
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.005c93b0
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 0x403430
mov edx, dword [ebp + 8]
test edi, edi
jl 0x403453
jg 0x40343a
test esi, esi
je 0x403453
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403453
push eax
push esi
push 1
push edx
call fcn.005cdbc8
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 0x403470
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 0x40349b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403db0
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 0x4034bd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4034bf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40355e
jg 0x4034dc
test esi, esi
je 0x40355e
test ecx, ecx
jl 0x403529
jg 0x4034e6
test eax, eax
je 0x403529
cmp ebx, ecx
jg 0x4034fa
jl 0x4034f0
cmp esi, eax
jae 0x4034fa
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.005c93b0
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 0x403530
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40355e
jg 0x40353a
test esi, esi
je 0x40355e
cmp dword [edi + 0x4c], 0
je 0x40355e
mov ecx, edi
call fcn.004043f0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005ce1b3
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 0x4038c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4038f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40392c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40392c
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.0055e6d4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403a11
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403954
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 0x403987
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005cd197
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.0055e6d4
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 0x403a11
cmp eax, 1
jle 0x4039e4
cmp eax, 3
jne 0x403a11
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00402050
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.0055e6d4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403a01
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cdbc8
add esp, 0x10
cmp edi, eax
jne 0x403a11
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403917
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x404551
cmp byte [esi + 0x3d], 0
je 0x404551
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404507
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 0x404519
sub eax, 1
je 0x40451d
sub eax, 2
je 0x404551
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40453a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cdbc8
add esp, 0x10
cmp edi, eax
jne 0x404507
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret
Function at 0x404730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6438
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6817dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00401e80
push 8
call fcn.0055e6ea
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.0055c6ba
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.00405050
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x404868
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x404868
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x404888
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00401e80
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 0xc
Function at 0x404b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6490
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6817dc]
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.0055e6ea
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0055c6ba
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 0x405ae0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6682
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x6817dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405baf
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005c9930
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x424]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b91
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405d50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e6d4
mov esp, ebp
pop ebp
ret 4

Function at 0x406900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406959
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406959
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406948
cmp esi, edx
jae 0x406959
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406936
cmp esi, edx
jae 0x406959
cmp word [esi], 0
je 0x406959
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x406e80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f67c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6817dc]
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 dword [ebp - 4], 0
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x406eec
cmp edx, 8
lea esi, [ebp + 8]
push 2
cmovae esi, dword [ebp + 8]
lea edi, [ecx + 1]
push 0x664eb4
mov dword [ebp + 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c9d10
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x406f04
push 1
push 0x664eb4
mov byte [ebp - 0x2c], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x2c]
push 1
call fcn.0040dcf0
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov ebx, dword [ebp + 8]
cmp edx, 8
mov edi, dword [ebp + 0x18]
cmovae ecx, ebx
test edi, edi
je 0x406f32
mov eax, edi
mov esi, ecx
nop
cmp word [esi], 0x5c
je 0x406ff5
add esi, 2
sub eax, 1
jne 0x406f20
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x407010
xor eax, eax
mov dword [ebp - 0x18], 0
cmp edi, esi
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 0x14], 7
cmovb ecx, edi
lea eax, [ebp + 8]
cmp edx, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.00405d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
inc esi
cmp dword [ebp + 0x1c], 8
cmovae ecx, ebx
cmp esi, edi
jae 0x406fae
mov eax, edi
sub eax, esi
lea esi, [ecx + esi*2]
je 0x406fae
nop
cmp word [esi], 0x5c
je 0x407006
add esi, 2
sub eax, 1
jne 0x406fa0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406fed
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fdd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40705c
push edx
push ecx
call fcn.0055e71a
mov edi, dword [ebp + 0x18]
add esp, 8
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
jmp 0x406f35
test esi, esi
je 0x406f32
sub esi, ecx
sar esi, 1
jmp 0x406f35
test esi, esi
je 0x406fae
sub esi, ecx
sar esi, 1
jmp 0x406fb1
cmp edx, 8
jb 0x407040
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x407036
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40705c
push edx
push ebx
call fcn.0055e71a
add esp, 8
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.0055e6d4
mov esp, ebp
pop ebp
ret
call fcn.005ce7a3
int3
Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f685b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x6817dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xc8]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
push str.ckbox_agree
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041a974
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0041a8bc
test bl, bl
je 0x407ad0
mov dword [ebp - 0x28], 0x9c049c0d
xor ecx, ecx
mov dword [ebp - 0x24], 0x9c1e9c12
mov dword [ebp - 0x20], 0x9c2c9c0a
mov dword [ebp - 0x1c], 0x9c129c15
mov dword [ebp - 0x18], 0x9c129c04
mov dword [ebp - 0x14], 0x9c1d
mov byte [ebp - 0x10], 1
nop dword [eax + eax]
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x28], ax
inc ecx
cmp ecx, 0xb
jb 0x407990
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
add esi, 0x2c
push eax
mov ecx, esi
call fcn.00414e05
mov ecx, eax
call fcn.00419bbb
mov bl, al
mov dword [ebp - 0x28], 0x9c049c0d
mov byte [ebp + 8], bl
xor ecx, ecx
mov dword [ebp - 0x24], 0x9c1e9c12
mov dword [ebp - 0x20], 0x9c2c9c0a
mov dword [ebp - 0x1c], 0x9c129c15
mov dword [ebp - 0x18], 0x9c129c04
mov dword [ebp - 0x14], 0x9c1d
mov byte [ebp - 0x10], 1
nop
lea eax, [ecx - 0x6392]
xor word [ebp + ecx*2 - 0x28], ax
inc ecx
cmp ecx, 0xb
jb 0x4079f0
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.00414e05
mov ecx, eax
call fcn.00413da4
test bl, bl
je 0x407a74
mov dword [ebp - 0x28], 0x9c1b9c0c
xor edx, edx
mov dword [ebp - 0x24], 0x9c2e9c1e
mov dword [ebp - 0x20], 0x9c1d9c1b
mov dword [ebp - 0x1c], 0x9c019c07
mov dword [ebp - 0x18], 0x9c1b9c17
mov dword [ebp - 0x14], 0x9c14
mov byte [ebp - 0x10], 1
lea eax, [edx - 0x6392]
xor word [ebp + edx*2 - 0x28], ax
inc edx
cmp edx, 0xb
jb 0x407a50
lea eax, [ebp - 0x28]
mov byte [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.00414e05
push 1
jmp 0x407ac6
mov dword [ebp - 0x44], 0x9c1b9c0c
xor eax, eax
mov dword [ebp - 0x40], 0x9c2e9c1e
mov dword [ebp - 0x3c], 0x9c1d9c1b
mov dword [ebp - 0x38], 0x9c019c07
mov dword [ebp - 0x34], 0x9c1b9c17
mov dword [ebp - 0x30], 0x9c14
mov byte [ebp - 0x2c], 1
lea ecx, [eax - 0x6392]
xor word [ebp + eax*2 - 0x44], cx
inc eax
cmp eax, 0xb
jb 0x407aa4
lea eax, [ebp - 0x44]
mov byte [ebp - 0x2c], 0
push eax
mov ecx, esi
call fcn.00414e05
push 0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xe0]
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