joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x100b0040]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
mov esi, dword [0x100b31d4]
mov ebp, edx
push edi
mov edi, ecx
test esi, esi
je 0x1004d855
mov esi, dword [esi + 0x78]
jmp 0x1004d857
xor esi, esi
push 0xbe2
call dword [0x100b3248]
push 0x8006
call dword [0x100b31f8]
push 0x303
push 1
push 0x303
push 0x302
call dword [0x100b3200]
push 0xb44
call dword [0x100b3238]
push 0xb71
call dword [0x100b3238]
push 0xb90
call dword [0x100b3238]
push 0xc11
call dword [0x100b3248]
cmp dword [esi], 0x136
jb 0x1004d8c3
push 0x8f9d
call dword [0x100b3238]
push 0x1b02
push 0x408
call dword [0x100b32a0]
cmp byte [esi + 0x58], 0
mov bl, 1
je 0x1004d903
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x935c
call dword [0x100b3268]
xor eax, eax
movzx ebx, bl
cmp dword [esp + 0x10], 0x8ca2
cmove ebx, eax
push dword [esp + 0x5c]
push ebp
push 0
push 0
call dword [0x100b32c8]
movss xmm6, dword [edi + 0x1c]
movss xmm4, dword [edi + 0x20]
movaps xmm5, xmm6
movaps xmm3, xmm4
addss xmm5, dword [edi + 0x24]
addss xmm3, dword [edi + 0x28]
test bl, bl
jne 0x1004d939
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm2, dword [0x100a5eb0]
movaps xmm1, xmm5
subss xmm1, xmm6
mov dword [esp + 0x3c], 0xbf800000
movaps xmm0, xmm2
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x3f800000
divss xmm0, xmm1
movss dword [esp + 0x14], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmm4
subss xmm0, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmm5
movss dword [esp + 0x28], xmm2
addss xmm0, xmm6
subss xmm6, xmm5
divss xmm0, xmm6
movss dword [esp + 0x44], xmm0
movaps xmm0, xmm3
addss xmm0, xmm4
subss xmm3, xmm4
divss xmm0, xmm3
movss dword [esp + 0x48], xmm0
push dword [esi + 0x30]
call dword [0x100b32c0]
push 0
push dword [esi + 0x34]
call dword [0x100b32b8]
lea eax, [esp + 0x14]
push eax
push 0
push 1
push dword [esi + 0x38]
call dword [0x100b32bc]
cmp dword [esi], 0x14a
jae 0x1004d9f4
cmp byte [esi + 0x25], 0
je 0x1004d9fe
push 0
push 0
call dword [0x100b31ec]
push dword [esp + 0x60]
call dword [0x100b31f4]
push dword [esi + 0x48]
push 0x8892
call dword [0x100b31e8]
push dword [esi + 0x4c]
push 0x8893
call dword [0x100b31e8]
push dword [esi + 0x3c]
call dword [0x100b324c]
push dword [esi + 0x40]
call dword [0x100b324c]
push dword [esi + 0x44]
call dword [0x100b324c]
push 0
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x3c]
call dword [0x100b32c4]
push 8
push 0x14
push 0
push 0x1406
push 2
push dword [esi + 0x40]
call dword [0x100b32c4]
push 0x10
push 0x14
push 1
push 0x1401
push 4
push dword [esi + 0x44]
call dword [0x100b32c4]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10050e66
add esp, 0x48
ret
Function at 0x1004e6d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, dword [0x100b31d4]
push esi
test eax, eax
je 0x1004e6df
mov esi, dword [eax + 0x74]
jmp 0x1004e6e1
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1004e704
mov dword [esi], eax
pop esi
ret
Function at 0x1005508c
Capabilities:
Parse pe header

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

Function at 0x1005a491
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006ba00
mov eax, dword [0x100b0040]
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.10060573
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005a4d3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005a62f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006b810
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 + 0x100b1978]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10060aa3
mov ecx, dword [esi*4 + 0x100b1978]
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 0x1005a628
cmp eax, dword [ecx + edi + 0x24]
jne 0x1005a628
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 0x1005a628
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10060aa3
add esp, 0x14
test edx, edx
jl 0x1005a628
jg 0x1005a59e
test eax, eax
jb 0x1005a628
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005a628
jl 0x1005a5b8
cmp dword [ebp - 0x1008], eax
ja 0x1005a628
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005a5d6
test ebx, ebx
je 0x1005a60f
cmp ecx, edi
jae 0x1005a60f
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005a5f0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005a5fc
cmp byte [ecx + 1], 0xa
jne 0x1005a5fc
inc ecx
jmp 0x1005a5fc
movzx eax, al
movsx eax, byte [eax + 0x100b0288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005a5d6
cmp edx, ebx
jne 0x1005a5d6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005a62d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10050e66
leave
ret
Function at 0x1005f986
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100740f4
push 0x100740ec
push str.FlsAlloc
push 0x1f
call fcn.1005f862
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005f9ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x10071258]
call esi
jmp 0x1005f9c0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005fa04
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10074104
push 0x100740fc
push str.FlsGetValue
push 0x21
call fcn.1005f862
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005fa3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10071258]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005fa43
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1007410c
push 0x10074104
push str.FlsSetValue
push 0x22
call fcn.1005f862
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005fa7d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10071258]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10060b1f
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 + 0x100b1978]
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 0x10060b5f
cmp byte [ebx], 0xa
jne 0x10060b5f
or byte [edi + eax + 0x28], 4
jmp 0x10060b64
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 0x10060c63
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10060c46
inc eax
cmp dl, 0xd
je 0x10060b90
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10060bb6
cmp eax, ecx
jae 0x10060bc4
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 0x10060b78
jmp 0x10060c63
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 0x10060c41
cmp dword [ebp - 0x10], 0
je 0x10060c41
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b1978]
test byte [eax + edi + 0x28], 0x48
je 0x10060c1b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10060c06
mov byte [esi], dl
jmp 0x10060c17
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b1978]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10060c63
cmp byte [ebp - 1], 0xa
jne 0x10060c2a
cmp esi, ebx
jne 0x10060c2a
mov byte [esi], 0xa
jmp 0x10060c62
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10060ac1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10060c63
mov byte [esi], 0xd
jmp 0x10060c62
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b1978]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10060c60
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10060c63
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10060c6c
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 + 0x100b1978]
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 0x10060cb2
cmp word [ebx], dx
jne 0x10060cb2
or byte [eax + edi + 0x28], 4
jmp 0x10060cb7
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 0x10060e1a
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 0x10060dfa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10060cf8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10060d2e
cmp eax, edx
jae 0x10060d3c
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 0x10060cd3
jmp 0x10060e1a
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 0x10060df5
cmp dword [ebp - 0x18], 0
je 0x10060df5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b1978]
test byte [eax + edi + 0x28], 0x48
je 0x10060dcb
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 0x10060d8f
mov word [esi], cx
jmp 0x10060dc6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b1978]
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 + 0x100b1978]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b1978]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10060e1a
pop eax
cmp word [ebp - 4], ax
jne 0x10060ddb
cmp esi, ebx
jne 0x10060ddb
mov word [esi], ax
jmp 0x10060e17
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10060ac1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10060e1a
push 0xd
pop eax
jmp 0x10060dd6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b1978]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10060e14
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10060e1a
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 0x100650d8
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 0x10065175
push ebx
push esi
call fcn.100650a1
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.10065035
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10065122
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10065174
push edi
push eax
call fcn.10060799
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10065142
call fcn.1005f70f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10065173
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10065035
add esp, 0x20
test eax, eax
jne 0x10065161
push edi
call fcn.1005f70f
jmp 0x10065169
push ebx
call fcn.1005f70f
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 0x10069691
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.1006960d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10069800
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10069800
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100697b5
jg 0x100696ed
test eax, eax
je 0x100697ab
push 1
push 0x1000
call fcn.1005f6b2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10069710
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100697a2
push 0x8000
push ebx
call fcn.1006953e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10069739
jg 0x10069734
cmp ecx, 0x1000
jb 0x10069739
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10061f97
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006977e
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 0x10069734
jl 0x10069765
test ecx, ecx
jne 0x10069726
push dword [ebp - 0xc]
push ebx
call fcn.1006953e
push esi
call fcn.1005f70f
add esp, 0xc
xor ebx, ebx
jmp 0x1006980e
cmp byte [edi + 0x24], 0
je 0x10069795
cmp dword [edi + 0x20], 5
jne 0x10069795
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100697a0
mov ebx, dword [edi + 0x18]
jmp 0x100697a2
xor ebx, ebx
push esi
call fcn.1005f70f
pop ecx
jmp 0x1006980e
test ecx, ecx
jg 0x10069777
jl 0x100697b5
test eax, eax
jae 0x10069777
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10060ac1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100697d5
cmp byte [edi + 0x1c], 0
je 0x10069777
jmp 0x10069806
push ebx
call fcn.100666d0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10069777
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 0x1006980e
cmp byte [edi + 0x1c], 0
je 0x1006980b
mov ebx, dword [edi + 0x18]
jmp 0x1006980e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10060ac1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1006b7d0
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x409e9b
pop dword [ebp - 0x50]
mov eax, 0x4ee6b17e
add eax, 0xb159ed1d
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd190cde1
sub dword [ebp - 0x60], 0x833e8896
mov dword [ebp - 0x5c], 0xf84070f1
add dword [ebp - 0x5c], 0x39f2db54
mov dword [ebp - 0x58], 0xaa5fdaec
sub dword [ebp - 0x58], 0x5e1396be
mov dword [ebp - 0x54], 0x14fa4ca
sub dword [ebp - 0x54], 0x14fa4ca
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x5187dec7
add dword [ebp - 0x60], 0x22ea8a8f
mov dword [ebp - 0x5c], 0xa99c9a8d
sub dword [ebp - 0x5c], 0x68303918
mov dword [ebp - 0x58], 0x6086cd04
sub dword [ebp - 0x58], 0xfd176098
mov dword [ebp - 0x54], 0xc2a0c5a8
add dword [ebp - 0x54], 0x3d5f3a58
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x53f35ef1
sub eax, 0x53b28ea5
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3e412
push 0
call eax
mov ecx, 0x6bf76be1
add ecx, 0x9408ee98
xor ebx, ebx
add ebx, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x50]
mov edi, 0x34822fdc
sub edi, 0x7410faa2
mov esi, dword [edx]
add dword [ebp - 0x34], 0x6dfdbc31
xor esi, edi
add dword [ebp - 0x38], 0xe29df2df
mov dword [ebx], esi
sub dword [ebp - 0x10], esi
add ebx, 4
add edx, 0xfb730b8f
add edx, 0x48cf475
loop 0x409fb4
add eax, 0x9ec79045
add eax, 0x6139cc72
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4013b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
cmp dword [0x1ddebf8], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x2c], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x4013eb
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x41a308]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a30c]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x28], eax
call fcn.004013ab
mov ecx, dword [0x41a310]
mov eax, dword [0x41a314]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x1ddebf8], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1ddebf4]
cmove eax, edx
xor edx, edx
cmp dword [0x1ddebf8], 0x3eb
mov dword [0x1ddebf4], eax
mov eax, dword [0x1dde5e4]
cmove eax, edx
add ecx, ebx
mov dword [0x1dde5e4], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [0x1ddebf8]
xor eax, edx
mov dword [0x1ddebf0], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40151f
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0xc4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x1ddebf8]
sub edi, eax
cmp ecx, 0xc
jne 0x40152d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.004013b2
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x401579
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401429
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret