joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ba6f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8b63
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x102a100c]
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 ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.10019ce0
mov ecx, eax
test ecx, ecx
je 0x100ba7f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x100ba76a
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1001d1a0
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x104
push esi
push ebx
push edi
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.1002e75f
add esp, 8
test eax, eax
js 0x100ba7e6
cmp eax, dword [esi - 8]
jg 0x100ba7e6
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.1002f549
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, eax
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100ba7c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.1001e823
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10019bb0
push 0x80004005
call fcn.10019bb0
int3
Function at 0x100bd030
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c8de7
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x102a100c]
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 ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push str.BBCF_IMDownload
call ebx
push 0
push str.BBCF_IMPalettes
call ebx
mov eax, dword [0x102ac0d8]
xor ebx, ebx
sub eax, dword [0x102ac0d4]
sar eax, 3
imul eax, eax, 0xaaaaaaab
test eax, eax
jle 0x100bd216
mov byte [ebp - 0x2c], bl
mov ecx, ebx
call fcn.1008e4c0
mov esi, eax
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100bd0a7
mov eax, dword [esi]
mov edi, dword [esi + 0x10]
add edi, eax
cmp ecx, 0x10
jb 0x100bd0b3
mov esi, dword [esi]
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x44]
mov eax, edi
mov dword [ebp - 0x34], 0
sub eax, esi
mov dword [ebp - 0x30], 7
push eax
call fcn.1000d1c0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push edi
push esi
call fcn.1000d340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
push 0x11
xor eax, eax
mov dword [ebp - 0x5c], 0
push 0x102937c8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.1000e550
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.1001ddc0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x100bd16e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bd164
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bd232
push edx
push ecx
call fcn.1001ee69
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x100bd1af
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bd1a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bd232
push edx
push ecx
call fcn.1001ee69
add esp, 8
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 edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100bd1f9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100bd1ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100bd232
push edx
push ecx
call fcn.1001ee69
add esp, 8
mov eax, dword [0x102ac0d8]
inc ebx
sub eax, dword [0x102ac0d4]
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp ebx, eax
jl 0x100bd094
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.1001e823
mov esp, ebp
pop ebp
ret
call fcn.1002d424
int3
Function at 0x100c1340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102a100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push edi
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.10022000
add esp, 0xc
push 0
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001e823
mov esp, ebp
pop ebp
ret
Function at 0x402f09
Capabilities:
Terminate process

Disassembly:
jmp 0x6a2323
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x6a2334
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00404bfb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402fe5
Capabilities:
Query environment variable

Disassembly:
jmp 0x6a570e
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6a571f
pop esi
ret
push ebx
push edi
push esi
call fcn.006a55f5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403760
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6a5747
push ebx
push esi
push edi
call fcn.00404a4d
add esp, 0xc
push 0
call fcn.00405349
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x404aed
Capabilities:
Parse pe header

Disassembly:
jmp 0x66b32e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x66b36d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x66b36d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x66b36d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x66b36d
cmp dword [ecx + 0x74], 0xe
jbe 0x66b36d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x6790d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x679112
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x679112
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x679112
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x679112
cmp dword [ecx + 0x74], 0xe
jbe 0x679112
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x6a3638
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6d7100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x6a3683
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.006a3bef
test al, al
jne 0x6a367d
sub edx, 2
cmp edx, edi
jne 0x6a3663
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x6a36a5
lea eax, [edi + 2]
cmp edx, eax
je 0x6a36a5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.006a3231
add esp, 0x10
jmp 0x6a379f
push esi
lea ecx, [ebp - 0x255]
call fcn.006a3bef
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6a36e8
push dword [ebp - 0x25c]
jmp 0x6a3695
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x6a3725
cmp word [ebp - 0x226], 0
je 0x6a3746
cmp word [ebp - 0x226], ax
jne 0x6a3725
cmp word [ebp - 0x224], 0
je 0x6a3746
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.006a3231
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x6a3792
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x6a36ff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x6a377a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x6a379f
push 0x6a2b17
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004048fe
add esp, 0x10
jmp 0x6a376f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402aa4
leave
ret

Function at 0x6aaf19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00403a12
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6aaf88
cmp esi, dword [ebp - 4]
je 0x6aaf83
cmp dword [ebp + 0xc], 0
je 0x6aaf83
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x6aaf60
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.006aa941
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x6aaf8a
xor eax, eax
inc eax
jmp 0x6aaf8a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x6bb6fb
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 + 0x6d92a0]
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 0x6bb73b
cmp byte [ebx], 0xa
jne 0x6bb73b
or byte [edi + eax + 0x28], 4
jmp 0x6bb740
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 0x6bb83f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x6bb822
inc eax
cmp dl, 0xd
je 0x6bb76c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x6bb792
cmp eax, ecx
jae 0x6bb7a0
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 0x6bb754
jmp 0x6bb83f
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 0x6bb81d
cmp dword [ebp - 0x10], 0
je 0x6bb81d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6d92a0]
test byte [eax + edi + 0x28], 0x48
je 0x6bb7f7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x6bb7e2
mov byte [esi], dl
jmp 0x6bb7f3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6d92a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6bb83f
cmp byte [ebp - 1], 0xa
jne 0x6bb806
cmp esi, ebx
jne 0x6bb806
mov byte [esi], 0xa
jmp 0x6bb83e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401771
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6bb83f
mov byte [esi], 0xd
jmp 0x6bb83e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6d92a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6bb83c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6bb83f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6bb89b
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 + 0x6d92a0]
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 0x6bb8e1
cmp word [ebx], dx
jne 0x6bb8e1
or byte [eax + edi + 0x28], 4
jmp 0x6bb8e6
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 0x6bba49
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 0x6bba29
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x6bb927
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6bb95d
cmp eax, edx
jae 0x6bb96b
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 0x6bb902
jmp 0x6bba49
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 0x6bba24
cmp dword [ebp - 0x18], 0
je 0x6bba24
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6d92a0]
test byte [eax + edi + 0x28], 0x48
je 0x6bb9fa
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 0x6bb9be
mov word [esi], cx
jmp 0x6bb9f5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6d92a0]
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 + 0x6d92a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6d92a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x6bba49
pop eax
cmp word [ebp - 4], ax
jne 0x6bba0a
cmp esi, ebx
jne 0x6bba0a
mov word [esi], ax
jmp 0x6bba46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401771
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x6bba49
push 0xd
pop eax
jmp 0x6bba05
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6d92a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x6bba43
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x6bba49
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 0x1000658c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102172f0]
jne 0x10006596
repz ret
jmp fcn.1000683d

Function at 0x10007af0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.10007af0]
mov dword [ebp - 8], eax
mov dword [0x102172cc], 0x1189
jmp 0x10007b37
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10007b5b
jmp 0x10007b35
mov al, 1
test al, 1
jne 0x10007b37
jmp 0x10007b52
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop ebp
ret
jmp 0x10007b69
mov eax, dword [ebp - 8]
mov cx, word [eax]
mov word [ebp - 0xe], cx
mov ax, word [ebp - 0xe]
movzx ecx, ax
cmp ecx, 0x5a4d
je 0x10007b0b
jmp 0x10007b69
mov dword [ebp - 4], 0
jmp 0x10007b27
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x10007b27
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
jmp 0x10007b1f
Function at 0x10007e50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x102172cc], 0x2433
mov dword [ebp - 8], 0
mov dword [0x102172d0], 0xb4
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x10007ed5
mov eax, dword [0x102172d0]
sub eax, 0x20b3
mov dword [0x102172cc], eax
mov dword [ebp - 4], 1
jmp 0x10007fed
jmp 0x10007fcc
mov dword [0x102172cc], 0x46e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
je 0x10007e92
jmp 0x10007ead
jmp 0x10007fd3
cmp dword [ebp - 0x10], 0x104
jge 0x10007f1a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movzx edx, word [eax + ecx*2]
cmp edx, 0
jne 0x10007efe
jmp 0x10007f1a
mov eax, dword [0x102172cc]
sub eax, 0x2d4
mov dword [0x102172d0], eax
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10007ed5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x10007fd7
mov dword [0x102172cc], 0x1dcf
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x10007fd5
mov dword [0x102172d0], 0x1819
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x10007fd3
mov eax, dword [0x102172cc]
add eax, 0x11ea
mov dword [0x102172cc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x64
jne 0x10007ed0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
jne 0x10007fce
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
sete dl
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x1d]
test al, 1
jne 0x10007eb2
jmp 0x10007fcc
jmp 0x10007fce
jmp 0x10007ed0
jmp 0x10007fd5
jmp 0x10007fd7
mov eax, dword [0x102172cc]
add eax, 0x1a27
mov dword [0x102172cc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x20
pop ebp
ret
Function at 0x10001420
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3f0
cmp eax, 1
push edi
jne 0x100015e0
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x201]
mov byte [esp + 0x200], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x10007178]
mov dl, byte [0x1000717c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.eXlneg]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, 0x7a
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x200]
lea edi, [esp + 0xc]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
call fcn.10001690
add esp, 0xc
lea edx, [esp + 0x200]
push edx
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [esp + 8], eax
je 0x100015e0
mov eax, dword [esp + 0x3f8]
push ebx
push ebp
push esi
push str.user32.dll
mov dword [0x10009b98], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ChangeDisplaySettingsA
push edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
push 0x40
push 4
push esi
call ebp
push str.ClipCursor
push edi
mov dword [esi], 0x8c2
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 4
push esi
call ebp
push str.RegisterClassA
push edi
mov dword [esi], 0x4c2
call ebx
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40
push 0xa
push esi
call ebp
mov edx, esi
mov ecx, 0x90909090
add esi, 5
push str.GetCursorPos
mov dword [edx], ecx
push edi
lea eax, [esi + 6]
mov byte [edx + 4], cl
mov ecx, 0x10001280
sub ecx, esi
mov dword [0x10009ba4], eax
sub ecx, 5
mov dword [esi], 0xe9
mov dword [esi + 1], ecx
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 5
push esi
call ebp
mov ecx, 0x10001370
lea eax, [esi + 5]
sub ecx, esi
mov dword [0x10009bac], eax
sub ecx, 5
push str.SetCursorPos
mov dword [esi], 0xe9
push edi
mov dword [esi + 1], ecx
call ebx
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x40
push 5
push esi
call ebp
mov edx, dword [esp + 0x14]
mov ecx, 0x100012e0
lea eax, [esi + 5]
sub ecx, esi
mov dword [0x10009ba8], eax
sub ecx, 5
mov dword [esi], 0xe9
push edx
mov dword [esi + 1], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x3f0
ret 0xc
mov eax, 1
pop edi
add esp, 0x3f0
ret 0xc
Function at 0x40106d
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xd
xor ebp, ebp
pop ecx
lea ebx, [esi + 0x14]
mov dword [esi + 0xd0], eax
push ebp
xor eax, eax
mov edi, ebx
push ebp
push 0x406
rep stosd dword es:[edi], eax
push dword [esi + 0xd0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], 0x34
call edi
push ebp
push ebp
push 0x407
mov dword [esi + 4], eax
push dword [esi + 0xd0]
call edi
push ebx
push ebp
push 0x164
mov dword [esi + 8], eax
push dword [esi + 4]
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xffffffffffffffeb
push dword [esi + 0x44]
call edi
push esi
push 0xffffffffffffffeb
push dword [esi + 0xd0]
call edi
push 0x4011c2
push 0xfffffffffffffffc
push dword [esi + 0x44]
call edi
push 0x401111
push 0xfffffffffffffffc
push dword [esi + 0xd0]
mov dword [esi + 0xc8], eax
call edi
push 1
mov dword [esi + 0xcc], eax
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x401ccc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov eax, 0x309
xor ebx, ebx
cmp dword [ebp + 0xc], eax
push esi
push edi
mov esi, ecx
jne 0x401d0b
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call fcn.0040209e
cmp dword [esi + 0x44], ebx
je 0x401e77
push 3
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 0x6f1
cmp dword [ebp + 0xc], eax
jne 0x401df0
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x401d4a
mov ecx, dword [esi + 0x70]
cmp ecx, ebx
je 0x401d4a
mov eax, dword [ecx]
push ebx
push ebx
push ecx
call dword [eax + 0x3c]
mov esi, dword [esi + 0x70]
push 1
push ebx
push esi
mov eax, dword [esi]
call dword [eax + 0x3c]
jmp 0x401e77
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4b0600
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401e77
lea edx, [ebp - 8]
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push edx
push 0x4ac328
push 2
push eax
call dword [ecx + 0x3c]
cmp dword [ebp - 8], ebx
je 0x401e77
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401ea3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x401dab
mov eax, dword [ecx]
mov dword [ebp - 0x18], ecx
invalid