joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41224d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425da0
push 0x425d98
push str.FlsAlloc
push 0x1f
call fcn.004120b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412281
push dword [ebp + 8]
mov ecx, esi
call dword [0x422134]
call esi
jmp 0x412287
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4122cb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425db0
push 0x425da8
push str.FlsGetValue
push 0x21
call fcn.004120b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412302
push dword [ebp + 8]
mov ecx, esi
call dword [0x422134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41230a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425db8
push 0x425db0
push str.FlsSetValue
push 0x22
call fcn.004120b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412344
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414bee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405b30
mov eax, dword [0x42d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004112e2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414c30
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x414d8c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421590
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42e960]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004159ef
mov ecx, dword [esi*4 + 0x42e960]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x414d85
cmp eax, dword [ecx + edi + 0x24]
jne 0x414d85
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414d85
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004159ef
add esp, 0x14
test edx, edx
jl 0x414d85
jg 0x414cfb
test eax, eax
jb 0x414d85
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x414d85
jl 0x414d15
cmp dword [ebp - 0x1008], eax
ja 0x414d85
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414d33
test ebx, ebx
je 0x414d6c
cmp ecx, edi
jae 0x414d6c
mov al, byte [ecx]
cmp al, 0xd
jne 0x414d4d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x414d59
cmp byte [ecx + 1], 0xa
jne 0x414d59
inc ecx
jmp 0x414d59
movzx eax, al
movsx eax, byte [eax + 0x42d348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414d33
cmp edx, ebx
jne 0x414d33
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x414d8a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040525e
leave
ret
Function at 0x414e87
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 + 0x42e960]
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 0x414ec7
cmp byte [ebx], 0xa
jne 0x414ec7
or byte [edi + eax + 0x28], 4
jmp 0x414ecc
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 0x414fcb
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414fae
inc eax
cmp dl, 0xd
je 0x414ef8
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414f1e
cmp eax, ecx
jae 0x414f2c
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 0x414ee0
jmp 0x414fcb
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 0x414fa9
cmp dword [ebp - 0x10], 0
je 0x414fa9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42e960]
test byte [eax + edi + 0x28], 0x48
je 0x414f83
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x414f6e
mov byte [esi], dl
jmp 0x414f7f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e960]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414fcb
cmp byte [ebp - 1], 0xa
jne 0x414f92
cmp esi, ebx
jne 0x414f92
mov byte [esi], 0xa
jmp 0x414fca
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415a0d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414fcb
mov byte [esi], 0xd
jmp 0x414fca
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42e960]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414fc8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414fcb
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414fd4
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 + 0x42e960]
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 0x41501a
cmp word [ebx], dx
jne 0x41501a
or byte [eax + edi + 0x28], 4
jmp 0x41501f
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 0x415182
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 0x415162
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x415060
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415096
cmp eax, edx
jae 0x4150a4
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 0x41503b
jmp 0x415182
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 0x41515d
cmp dword [ebp - 0x18], 0
je 0x41515d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42e960]
test byte [eax + edi + 0x28], 0x48
je 0x415133
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 0x4150f7
mov word [esi], cx
jmp 0x41512e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42e960]
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 + 0x42e960]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42e960]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x415182
pop eax
cmp word [ebp - 4], ax
jne 0x415143
cmp esi, ebx
jne 0x415143
mov word [esi], ax
jmp 0x41517f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a0d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x415182
push 0xd
pop eax
jmp 0x41513e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42e960]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41517c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x415182
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 0x418e34
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 0x418ed1
push ebx
push esi
call fcn.00418dfd
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.00417aef
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418e7e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418ed0
push edi
push eax
call fcn.004137b7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418e9e
call fcn.00411dd9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418ecf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417aef
add esp, 0x20
test eax, eax
jne 0x418ebd
push edi
call fcn.00411dd9
jmp 0x418ec5
push ebx
call fcn.00411dd9
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 0x41b6a3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041189f
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 0x41b712
cmp esi, dword [ebp - 4]
je 0x41b70d
cmp dword [ebp + 0xc], 0
je 0x41b70d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41b6ea
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041b1f5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41b714
xor eax, eax
inc eax
jmp 0x41b714
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41b779
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041189f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041189f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41b7f0
cmp word [ecx], dx
je 0x41b7f0
mov eax, dword [0x4264a4]
push edi
dec eax
push eax
push 0x426390
call fcn.0041b718
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41b863
cmp word [eax], dx
je 0x41b863
mov eax, dword [edi]
test eax, eax
je 0x41b814
cmp word [eax], dx
je 0x41b814
lea eax, [ebp - 0x10]
push eax
call fcn.0041b0fb
jmp 0x41b81d
lea eax, [ebp - 0x10]
push eax
call fcn.0041b196
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41b88d
mov eax, dword [0x42638c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x426080
call fcn.0041b718
add esp, 0xc
test al, al
je 0x41b88d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41b858
cmp word [eax], di
je 0x41b858
lea eax, [ebp - 0x10]
push eax
call fcn.0041b0fb
pop ecx
jmp 0x41b88f
lea eax, [ebp - 0x10]
push eax
call fcn.0041b196
jmp 0x41b855
mov eax, dword [edi]
test eax, eax
je 0x41b87a
cmp word [eax], dx
je 0x41b87a
lea eax, [ebp - 0x10]
push eax
call fcn.0041b0b0
pop ecx
jmp 0x41b88d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41b958
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041b59d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41b958
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41b958
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41b958
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b8e5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041244a
test ebx, ebx
je 0x41b953
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041244a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b958
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41b958
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041f847
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41b95a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040525e
leave
ret
Function at 0x41ffb5
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.0041ff31
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x420124
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x420124
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4200d9
jg 0x420011
test eax, eax
je 0x4200cf
push 1
push 0x1000
call fcn.00411d7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420034
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4200c6
push 0x8000
push ebx
call fcn.0040ee12
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42005d
jg 0x420058
cmp ecx, 0x1000
jb 0x42005d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413097
add esp, 0x10
cmp eax, 0xffffffff
je 0x4200a2
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 0x420058
jl 0x420089
test ecx, ecx
jne 0x42004a
push dword [ebp - 0xc]
push ebx
call fcn.0040ee12
push esi
call fcn.00411dd9
add esp, 0xc
xor ebx, ebx
jmp 0x420132
cmp byte [edi + 0x24], 0
je 0x4200b9
cmp dword [edi + 0x20], 5
jne 0x4200b9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4200c4
mov ebx, dword [edi + 0x18]
jmp 0x4200c6
xor ebx, ebx
push esi
call fcn.00411dd9
pop ecx
jmp 0x420132
test ecx, ecx
jg 0x42009b
jl 0x4200d9
test eax, eax
jae 0x42009b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00415a0d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4200f9
cmp byte [edi + 0x1c], 0
je 0x42009b
jmp 0x42012a
push ebx
call fcn.00419674
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42009b
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 0x420132
cmp byte [edi + 0x1c], 0
je 0x42012f
mov ebx, dword [edi + 0x18]
jmp 0x420132
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00415a0d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4214bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4214bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x4093f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x409407
pop dword [ebp - 0x38]
mov eax, 0xbf8ec712
sub eax, 0xbf4e330b
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xda34d9b6
sub dword [ebp - 0x48], 0x8be2946b
mov dword [ebp - 0x44], 0x818260dc
sub dword [ebp - 0x44], 0x4f4f1497
mov dword [ebp - 0x40], 0xb334636b
sub dword [ebp - 0x40], 0x66e81f3d
mov dword [ebp - 0x3c], 0x30c197cc
add dword [ebp - 0x3c], 0xcf3e6834
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x3bc0bd81
sub dword [ebp - 0x48], 0xc74e542b
mov dword [ebp - 0x44], 0xdca38ef9
add dword [ebp - 0x44], 0x64c8d27c
mov dword [ebp - 0x40], 0xcfbd827f
add dword [ebp - 0x40], 0x93b1e9ed
mov dword [ebp - 0x3c], 0xb76cdba5
sub dword [ebp - 0x3c], 0xb76cdba5
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x26db405c
add eax, 0xd9658fec
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38666
push 0
call eax
mov ecx, 0x131cf5b7
add ecx, 0xece34dfd
mov edi, eax
mov edx, 0x7696b05c
add edx, 0x89aaffa4
add edx, dword [ebp - 0x38]
mov esi, 0xde9673af
add esi, 0x1cdb283b
add dword [ebp - 0x14], ebx
mov ebx, dword [edx]
xor dword [ebp - 4], 0x5a14379a
sub ebx, esi
sub dword [ebp - 8], edx
mov dword [edi], ebx
add edi, 4
add edx, 0x6ad00701
sub edx, 0x6ad006fd
loop 0x409524
add eax, 0x2749dcfb
sub eax, 0x2748db58
mov ebx, eax
add eax, 0xdcf88874
add eax, 0x23077791
mov ecx, 0x68d86d32
sub ecx, 0x68986d32
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1002aaee
pop dword [ebp - 0x50]
mov eax, 0x30c16d09
add eax, 0xdf413de5
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x40e4d412
add dword [ebp - 0x60], 0xd6d7139
mov dword [ebp - 0x5c], 0xbdbce492
add dword [ebp - 0x5c], 0x747667b3
mov dword [ebp - 0x58], 0x89e18304
add dword [ebp - 0x58], 0xc26ac12a
mov dword [ebp - 0x54], 0xb2792a
add dword [ebp - 0x54], 0xff4d86d6
lea eax, [ebp - 0x60]
push eax
mov eax, 0x47f13701
sub eax, 0x37ee76c9
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x617dcb92
add dword [ebp - 0x60], 0x12f49dc4
mov dword [ebp - 0x5c], 0x84c5dfeb
sub dword [ebp - 0x5c], 0x43597e76
mov dword [ebp - 0x58], 0x531987ed
add dword [ebp - 0x58], 0x1055e47f
mov dword [ebp - 0x54], 0xd96052bd
add dword [ebp - 0x54], 0x269fad43
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x34d90
push 0
call eax
mov ecx, 0x66a6c153
sub ecx, 0x66a67fce
mov ebx, eax
mov edx, 0x10039600
add edx, dword [ebp - 0x50]
mov edi, 0x208661cb
mov esi, dword [edx]
xor esi, edi
add dword [ebp - 0x24], esi
mov dword [ebx], esi
xor dword [ebp - 4], 0x24392f44
add ebx, 0x8a040ba7
add ebx, 0x75fbf45d
add edx, 0x89071cd4
add edx, 0x76f8e330
loop 0x1002abff
add eax, 0x697315f1
add eax, 0x968de2f6
xor ebx, ebx
add ebx, eax
add eax, 0x1999d0fc
add eax, 0xe6662f09
mov ecx, 0xc6ff25b0
sub ecx, 0xb6ff25b0
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x40993f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409997
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x409997
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x409997
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4099c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x409a2e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409a25
cmp dword [ebp - 0xc], 4
jne 0x409a25
cmp dword [ebp - 0x10], edi
je 0x409a25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x622bf8], edi
xor eax, eax
jmp 0x409a56
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x622bf8], edi
jge 0x409a51
mov dword [0x622bf8], edi
call fcn.0040999b
test eax, eax
je 0x409a51
emms
mov dword [0x622bf8], 1
mov eax, dword [0x622bf8]
pop edi
leave
ret

Function at 0x409b36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x409b6d
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x409b8f
cmp dword [ebp - 0x20], 4
ja 0x409b99
jne 0x409b89
cmp dword [ebp - 0x1c], 0xa
jb 0x409b89
cmp word [ebp - 0x18], 0x55d
jae 0x409b99
mov byte [ebp + 0x73], 1
jmp 0x409b99
cmp dword [ebp - 0x14], 2
jne 0x409baf
test bl, bl
je 0x409bca
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x409bba
dec eax
je 0x409bb3
sub eax, 3
jne 0x409baf
cmp byte [ebp + 0x73], 0
je 0x409bdb
xor eax, eax
jmp 0x409be3
call fcn.00409a59
jmp 0x409be3
cmp byte [ebp + 0x73], 0
jne 0x409baf
call fcn.00409a91
and eax, 4
jmp 0x409be3
cmp dword [ebp + 0x7c], 0xa
je 0x409bdb
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x409be3
call fcn.00409a91
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret