joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b2af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100ab9e8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005b2ef
cmp byte [ebx], 0xa
jne 0x1005b2ef
or byte [edi + eax + 0x28], 4
jmp 0x1005b2f4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1005b3f3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005b3d6
inc eax
cmp dl, 0xd
je 0x1005b320
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005b346
cmp eax, ecx
jae 0x1005b354
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005b308
jmp 0x1005b3f3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005b3d1
cmp dword [ebp - 0x10], 0
je 0x1005b3d1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ab9e8]
test byte [eax + edi + 0x28], 0x48
je 0x1005b3ab
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005b396
mov byte [esi], dl
jmp 0x1005b3a7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ab9e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005b3f3
cmp byte [ebp - 1], 0xa
jne 0x1005b3ba
cmp esi, ebx
jne 0x1005b3ba
mov byte [esi], 0xa
jmp 0x1005b3f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005b251
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005b3f3
mov byte [esi], 0xd
jmp 0x1005b3f2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ab9e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005b3f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005b3f3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005b3fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100ab9e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005b442
cmp word [ebx], dx
jne 0x1005b442
or byte [eax + edi + 0x28], 4
jmp 0x1005b447
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1005b5aa
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1005b58a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005b488
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005b4be
cmp eax, edx
jae 0x1005b4cc
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005b463
jmp 0x1005b5aa
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005b585
cmp dword [ebp - 0x18], 0
je 0x1005b585
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100ab9e8]
test byte [eax + edi + 0x28], 0x48
je 0x1005b55b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1005b51f
mov word [esi], cx
jmp 0x1005b556
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100ab9e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100ab9e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ab9e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005b5aa
pop eax
cmp word [ebp - 4], ax
jne 0x1005b56b
cmp esi, ebx
jne 0x1005b56b
mov word [esi], ax
jmp 0x1005b5a7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005b251
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005b5aa
push 0xd
pop eax
jmp 0x1005b566
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100ab9e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005b5a4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005b5aa
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005f864
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005f901
push ebx
push esi
call fcn.1005f82d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005f7c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005f8ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f900
push edi
push eax
call fcn.1005af29
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005f8ce
call fcn.10059e9f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005f8ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005f7c1
add esp, 0x20
test eax, eax
jne 0x1005f8ed
push edi
call fcn.10059e9f
jmp 0x1005f8f5
push ebx
call fcn.10059e9f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10063e21
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10063d9d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10063f90
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10063f90
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10063f45
jg 0x10063e7d
test eax, eax
je 0x10063f3b
push 1
push 0x1000
call fcn.10059e42
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10063ea0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10063f32
push 0x8000
push ebx
call fcn.10063cce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10063ec9
jg 0x10063ec4
cmp ecx, 0x1000
jb 0x10063ec9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005c723
add esp, 0x10
cmp eax, 0xffffffff
je 0x10063f0e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10063ec4
jl 0x10063ef5
test ecx, ecx
jne 0x10063eb6
push dword [ebp - 0xc]
push ebx
call fcn.10063cce
push esi
call fcn.10059e9f
add esp, 0xc
xor ebx, ebx
jmp 0x10063f9e
cmp byte [edi + 0x24], 0
je 0x10063f25
cmp dword [edi + 0x20], 5
jne 0x10063f25
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10063f30
mov ebx, dword [edi + 0x18]
jmp 0x10063f32
xor ebx, ebx
push esi
call fcn.10059e9f
pop ecx
jmp 0x10063f9e
test ecx, ecx
jg 0x10063f07
jl 0x10063f45
test eax, eax
jae 0x10063f07
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005b251
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10063f65
cmp byte [edi + 0x1c], 0
je 0x10063f07
jmp 0x10063f96
push ebx
call fcn.10060e5c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10063f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10063f9e
cmp byte [edi + 0x1c], 0
je 0x10063f9b
mov ebx, dword [edi + 0x18]
jmp 0x10063f9e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1005b251
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10065f60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10065f8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10065f8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
mov eax, str.__c
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4056a0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push esi
push edi
push 0x4291e8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4291fc]
push 0
push 0
push 0
push 0xffffffffffffffff
lea edi, [eax*4]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x4291dc], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6b1
add esp, 4
mov dword [0x4291e0], eax
xor esi, esi
test edi, edi
jle 0x405724
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [eax]
push 0
push 0
push dword [0x4291dc]
push 0x405dc0
push 0
push 0
call ebx
mov ecx, dword [0x4291e0]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, edi
jl 0x405700
pop ebx
mov eax, dword [0x4291dc]
pop edi
mov dword [0x4291e4], eax
pop esi
ret

Function at 0x405800
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp eax, 0xffffffff
je 0x405909
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x425358
call esi
xor ecx, ecx
add eax, 0x20
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6b1
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x425358
call esi
add eax, 0x20
push eax
push 2
push ebx
call fcn.0040a6b0
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
push edi
push ebx
push dword [ebp - 0x14]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x425358
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0040d6ac
add esp, 4
push 0x425358
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cmp dword [ebp - 8], eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x412b9a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041285a

Function at 0x42b9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42b9e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b9d8
mov eax, 1
add ebx, ebx
jne 0x42b9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b9f0
jne 0x42ba0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b9f0
xor ecx, ecx
sub eax, 3
jb 0x42ba20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ba92
mov ebp, eax
add ebx, ebx
jne 0x42ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ba5c
inc ecx
add ebx, ebx
jne 0x42ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ba3d
jne 0x42ba59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ba3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ba7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ba6d
jmp 0x42b9de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ba7c
add edi, ecx
jmp 0x42b9de
pop esi
mov edi, esi
mov ecx, 0x2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ba9a
cmp byte [edi], 2
jne 0x42ba9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ba9f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bb0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b178]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bacc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b180]
or eax, eax
je 0x42bb08
mov dword [ebx], eax
add ebx, 4
jmp 0x42bae9
call dword [esi + 0x2b17c]
mov ebp, dword [esi + 0x2b184]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42bb42
sub esp, 0xffffff80
jmp 0x401219
Function at 0x10012ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10012ec4
xor eax, eax
jmp 0x10012f44
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10012edb
xor eax, eax
jmp 0x10012f44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10012f27
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10012f27
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x10012efe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10012f33
xor eax, eax
jmp 0x10012f44
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10012f41
xor eax, eax
jmp 0x10012f44
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10015480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x10113004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.100b45c0
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10017fb0
test eax, eax
je 0x100154f7
push 0x100e726c
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x1001553f
push 1
lea eax, [ebp - 0x424]
push eax
call fcn.100aad90
add esp, 8
lea ecx, [ebp - 0x424]
call fcn.100086f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x424]
call fcn.1000f3c0
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.100b45c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x428], eax
push str._PopMgrStub.log
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x100e729c
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.1000ee20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x42c]
push edx
mov ecx, 0x10116d7c
call fcn.10017a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.1000f3c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001abec
mov esp, ebp
pop ebp
ret
Function at 0x10017640
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x10113004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov ebx, ecx
push 0
push eax
call fcn.100b45c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10017fb0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
lea eax, [ebp - 0x20c]
je 0x1001769c
push str.Halowp
jmp 0x100176a1
push str.S_9DAD19F1_152D_4144_AEE5_2B4B4259C8BF
push eax
call edi
push esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100b45c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.LogPopMgr.log.on
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x208
mov dword [0x10116d78], eax
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.100b45c0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push str._popmgr.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x100e909c
lea eax, [ebp - 0x20c]
push eax
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
pop esi
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10017750
sub eax, edx
lea ecx, [ebx + 0x2c]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10012d10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001abec
mov esp, ebp
pop ebp
ret
Function at 0x10017a10
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x10017a74
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x10017a66
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x10017a66
push edx
call fcn.10010070
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10017a5f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x10017a73
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.10012d10
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017ada
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x10017ada
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10017ac1
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x10017ada
jg 0x10017ad2
cmp dword [ebp - 8], 0x40000000
jbe 0x10017ada
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10017d20
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x10017d44
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x10017db0
push 0
push 0
call fcn.100bbc5d
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret

Function at 0x10017fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10113004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x10116cfc]
push edi
xor edi, edi
test esi, esi
je 0x1001803a
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.100b45c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.Halowp.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1001abec
mov esp, ebp
pop ebp
ret