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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x7ef4c0]
push edi
jae 0x69ed1d
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x7ef4e0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x69ed1d
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x69ebf1
test dl, 2
jne 0x69ebf1
test dl, 0x48
je 0x69ebbb
cmp byte [eax + 5], 0xa
je 0x69ebbb
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x69ec04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x69ebec
mov dword [0x7ee734], ecx
jmp 0x69ed24
cmp eax, 0x6d
jne 0x69ebf8
xor eax, eax
jmp 0x69ed31
push eax
call fcn.0069ff5b
pop ecx
jmp 0x69ed2e
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x69ed18
test eax, eax
je 0x69ec2b
cmp byte [ebx], 0xa
jne 0x69ec2b
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x69ec34
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x69ed12
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x69ed02
cmp al, 0xd
je 0x69ec66
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x69ecf4
dec ecx
cmp dword [ebp - 8], ecx
jae 0x69ec80
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x69ec7b
add dword [ebp - 8], 2
jmp 0x69ecd4
mov dword [ebp - 8], eax
jmp 0x69ecf0
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x69eca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x69ecf0
cmp dword [ebp - 0x10], 0
je 0x69ecf0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x69ecc9
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x69ecd4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x69ecf3
cmp ebx, dword [ebp + 0xc]
jne 0x69ecd9
cmp byte [ebp - 1], 0xa
jne 0x69ecd9
mov byte [ebx], 0xa
jmp 0x69ecf3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006a1589
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x69ecf4
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x69ec4a
jmp 0x69ed12
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x69ed12
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x69ed31
and dword [0x7ee734], 0
mov dword [0x7ee730], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x69ed36
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6fb3d0]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x7ef4c0]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x69eed8
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x7ef4e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x69eed8
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x69edac
xor eax, eax
jmp 0x69eeec
test al, 0x20
je 0x69edbf
push 2
push 0
push 0
push ecx
call fcn.006a1589
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x69ee54
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x69eeb5
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x69ee19
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x69ee0a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x69edec
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x69ee79
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x69ee82
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x69ede1
jmp 0x69ee82
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x69ee79
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x69ee82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x69eed3
cmp dword [ebp - 0x68], eax
je 0x69eeb2
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x69eea7
mov dword [0x7ee730], 9
mov dword [0x7ee734], eax
jmp 0x69eee9
push dword [ebp - 0x68]
call fcn.0069ff5b
pop ecx
jmp 0x69eee9
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x69eec7
cmp byte [edi], 0x1a
je 0x69eda5
mov dword [0x7ee730], 0x1c
jmp 0x69eee2
sub eax, dword [ebp - 0x7c]
jmp 0x69eeec
mov dword [0x7ee730], 9
and dword [0x7ee734], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0069b68c
add ebp, 0x3a4
leave
ret
Function at 0x69efe7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x69f015
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x69f01c
cmp ebx, dword [eax + 4]
jae 0x69f01c
xor eax, eax
jmp 0x69f20c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x69f02d
xor eax, eax
inc eax
jmp 0x69f20b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x69f043
cmp ecx, edx
jae 0x69f188
cmp dword [eax + 4], 0
je 0x69f04c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x69f034
cmp dword [ebp + 8], 0
je 0x69f06e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x69f188
cmp eax, esi
jae 0x69f188
mov eax, dword [0x7eea10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x69f093
cmp dword [esi*4 + 0x7eea18], edi
je 0x69f18c
inc esi
cmp esi, eax
jl 0x69f081
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x69f208
cmp dword [ebp - 8], 0x1000000
jne 0x69f208
test byte [ebp - 0xc], 0xcc
je 0x69f111
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x69f208
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x69f208
cmp word [eax + 0x18], 0x10b
jne 0x69f208
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x69f208
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x69f111
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x69f111
test byte [ecx + 0x27], 0x80
jne 0x69f188
push 1
push 0x7eea58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x69f025
mov ecx, dword [0x7eea10]
test ecx, ecx
mov edx, ecx
jle 0x69f145
lea eax, [ecx*4 + 0x7eea14]
cmp dword [eax], edi
je 0x69f145
dec edx
sub eax, 4
test edx, edx
jg 0x69f139
test edx, edx
jne 0x69f176
push 0xf
pop ebx
cmp ecx, ebx
jg 0x69f152
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x69f16a
lea eax, [edx*4 + 0x7eea18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x69f158
cmp ecx, 0x10
jge 0x69f176
inc ecx
mov dword [0x7eea10], ecx
push 0
push 0x7eea58
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x69f025
xor eax, eax
jmp 0x69f20b
test esi, esi
jle 0x69f025
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x7eea58
call ebx
test eax, eax
jne 0x69f025
cmp dword [esi*4 + 0x7eea18], edi
je 0x69f1e2
mov eax, dword [0x7eea10]
lea esi, [eax - 1]
test esi, esi
jl 0x69f1d0
cmp dword [esi*4 + 0x7eea18], edi
je 0x69f1cc
dec esi
jns 0x69f1c0
test esi, esi
jge 0x69f1e0
cmp eax, 0x10
jge 0x69f1db
inc eax
mov dword [0x7eea10], eax
lea esi, [eax - 1]
jmp 0x69f1e2
je 0x69f1fa
xor ecx, ecx
test esi, esi
jl 0x69f1fa
lea eax, [ecx*4 + 0x7eea18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x69f1e8
push 0
push 0x7eea58
call ebx
jmp 0x69f025
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x69fbd4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x69fbed
or eax, 0xffffffff
jmp 0x69fc4e
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x69fc4a
push 0x3d
push esi
call fcn.006a1653
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x69fc4a
cmp esi, eax
je 0x69fc4a
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x7ee75c]
sete cl
cmp eax, dword [0x7ee760]
mov dword [ebp - 4], ecx
jne 0x69fc30
mov edi, eax
call fcn.0069fb73
mov dword [0x7ee75c], eax
cmp eax, ebx
jne 0x69fc89
cmp dword [ebp + 0xc], ebx
je 0x69fc52
cmp dword [0x7ee764], ebx
je 0x69fc52
call fcn.0069b5cb
test eax, eax
je 0x69fc89
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x69fc5b
xor eax, eax
jmp 0x69fc4d
push 4
call fcn.0069772a
cmp eax, ebx
pop ecx
mov dword [0x7ee75c], eax
je 0x69fc4a
mov dword [eax], ebx
cmp dword [0x7ee764], ebx
jne 0x69fc89
push 4
call fcn.0069772a
cmp eax, ebx
pop ecx
mov dword [0x7ee764], eax
je 0x69fc4a
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x7ee75c]
sub edi, esi
push esi
call fcn.0069fb26
mov edi, eax
test edi, edi
pop ecx
jl 0x69fcf0
cmp dword [ebx], 0
je 0x69fcf0
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00697680
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x69fcd0
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x69fd31
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x69fcc7
mov eax, edi
shl eax, 2
push eax
push dword [0x7ee75c]
call fcn.00699013
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x69fd31
jmp 0x69fd2c
cmp dword [ebp - 4], 0
jne 0x69fd98
test edi, edi
jge 0x69fd00
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x7ee75c]
call fcn.00699013
test eax, eax
pop ecx
pop ecx
je 0x69fc4a
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x7ee75c], eax
cmp dword [ebp + 0xc], 0
je 0x69fd83
push esi
call fcn.0069b540
inc eax
inc eax
push eax
call fcn.0069772a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x69fd83
push esi
push edi
call fcn.0069e970
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x69fd7c
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00697680
pop ecx
cmp dword [ebp - 4], 0
je 0x69fd90
push esi
call fcn.00697680
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x69fc4d
push esi
call fcn.00697680
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x69fc57
Function at 0x6a0520
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.006977b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6a05bb
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x7ee73c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x6a05bb
cmp eax, 1
je 0x6a05dc
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x6a05bb
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x6a0588
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x6a05b7
xor eax, eax
inc eax
jmp 0x6a05fb
cmp edi, eax
jae 0x6a05bf
xor eax, eax
jmp 0x6a05fb
cmp eax, esi
jae 0x6a05c6
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x7ee73c]
jmp 0x6a05df
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x6a06cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x7eea6c], ebx
push esi
push edi
jne 0x6a074b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6a0786
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6e3df4
push edi
call esi
test eax, eax
mov dword [0x7eea6c], eax
je 0x6a0786
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x7eea70], eax
call esi
cmp dword [0x7ee73c], 2
mov dword [0x7eea74], eax
jne 0x6a074b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x7eea7c], eax
je 0x6a074b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x7eea78], eax
mov eax, dword [0x7eea78]
test eax, eax
je 0x6a0790
call eax
test eax, eax
je 0x6a0777
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x7eea7c]
test eax, eax
je 0x6a0777
test byte [ebp - 8], 1
jne 0x6a0790
cmp dword [0x7ee748], 4
jb 0x6a078a
or byte [ebp + 0x12], 0x20
jmp 0x6a07af
xor eax, eax
jmp 0x6a07bf
or byte [ebp + 0x12], 4
jmp 0x6a07af
mov eax, dword [0x7eea70]
test eax, eax
je 0x6a07af
call eax
mov ebx, eax
test ebx, ebx
je 0x6a07af
mov eax, dword [0x7eea74]
test eax, eax
je 0x6a07af
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x7eea6c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6a16ba
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.006977b0
mov eax, dword [0x6fb3d0]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x7ef4c0]
mov dword [ebp - 4], eax
jae 0x6a1805
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x7ef4e0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x6a1805
push 1
push esi
push ebx
call fcn.0069ef5b
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x6a180f
push 2
push esi
push ebx
call fcn.0069ef5b
add esp, 0xc
cmp eax, 0xffffffff
je 0x6a180f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x6a17af
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.006a04c0
push 0x8000
push ebx
call fcn.00699903
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x6a176b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0069ed36
add esp, 0xc
cmp eax, 0xffffffff
je 0x6a1789
sub edi, eax
test edi, edi
jg 0x6a1760
jmp 0x6a179f
cmp dword [0x7ee734], 5
jne 0x6a179c
mov dword [0x7ee730], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.00699903
pop ecx
pop ecx
jmp 0x6a17ef
jge 0x6a17ef
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0069ef5b
push ebx
call fcn.006a0148
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x6a17ef
mov dword [0x7ee730], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x7ee734], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0069ef5b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x6a1812
mov dword [0x7ee730], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0069b68c
leave
ret
Function at 0x6a83b0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push edi
push esi
push esi
rdtsc
mov esi, dword [esp + 0x10]
mov ecx, eax
rdtsc
mov esi, dword [esi]
mov edi, eax
rdtsc
sub eax, edi
sub edi, ecx
mov edx, eax
lea esi, [edi*4]
shr edi, 2
add edi, esi
xor eax, eax
sub edi, edx
setge al
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop esi
pop edi
ret

Function at 0x6b7ddb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x6b7e09
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x6b7e0e
cmp eax, 1
je 0x6b7e0e
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x6b7e12
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6fb3d0]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x6b7ea2
push ebx
call fcn.006b7ddb
test eax, eax
pop ecx
jne 0x6b7e77
mov dword [0x7ee734], 0xf
mov dword [0x7ee730], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0069b68c
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x6b7eb1
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x6b7e5e
inc eax
cmp eax, 0x104
ja 0x6b7e5e
test edi, edi
mov ecx, edi
jne 0x6b7eed
cmp eax, dword [ebp + 0xa0]
jg 0x6b7ed1
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0069772a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x6b7f04
mov dword [0x7ee730], 0xc
jmp 0x6b7e5e
cmp eax, dword [ebp + 0xa0]
jle 0x6b7f04
mov dword [0x7ee730], 0x22
jmp 0x6b7e5e
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0069e970
pop ecx
pop ecx
jmp 0x6b7e60
Function at 0xeb6370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xeb638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xedf074
push ecx
mov edi, eax
call fcn.00eca198
mov esi, eax
add esp, 8
test esi, esi
jne 0xeb63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00eca02e
push esi
call fcn.00ec9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xeb9850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xeb98ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xee4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xeb98ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00eca1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xeb98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xee4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xeb992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ecb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xeb9957
mov word [eax], si
add eax, 2
push eax
call fcn.00ecb030
add esp, 4
jmp 0xeb9959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xeb98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xeb98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xeb9ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xeba080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xeba0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xedf458
push ecx
call fcn.00eca1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00eca1e1
add esp, 0x10
jmp 0xeba0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00eca20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ec9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00eba050
mov eax, dword [0xee4728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xeba13b
push esi
call fcn.00eb9fb0
add esp, 4
mov dword [0xee4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xeba14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00eb9ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xebd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xebd4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xebd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xebd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xebd47e
add edx, ecx
cmp ebx, edx
jb 0xebd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xebd467
xor ecx, ecx
jmp 0xebd4a2
test eax, eax
jne 0xebd492
xor ecx, ecx
jmp 0xebd4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ebd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret