joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005690
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cbd2
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x100662bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xd8]
mov esi, dword [ebp + 0xc]
push 0xc8
push 0
mov dword [ebp - 0x100], edi
push eax
mov dword [ebp - 0xf4], 0
call fcn.1002de40
add esp, 0xc
lea eax, [ebp - 0xd8]
push 0
push 0x100
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005708
sub ecx, edx
jne 0x1000573d
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
mov byte [edi], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0xf4], 1
jmp 0x1000584d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100057bc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push esi
mov dword [ebp - 0xf8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0xfc], eax
test eax, eax
je 0x100057b5
push dword [ebp - 0xf8]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xf8], eax
test eax, eax
jne 0x100057f4
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xf4], 1
jmp 0x1000584d
push eax
lea ecx, [ebp - 0xf0]
call fcn.10008da0
mov dword [ebp - 4], 1
push dword [ebp - 0xf8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.10008ca0
mov dword [ebp - 0xf4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.1000fe50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002c259
mov esp, ebp
pop ebp
ret
Function at 0x100090d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d4df
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100662bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.10013218
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x10009181
push eax
push esi
call fcn.10013fd1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.100137ca
int3
Function at 0x10010960
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10010991
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10010980
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x10011040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ea4e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100662bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], 0
push 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0xc], 0
call fcn.1002c21b
mov esi, eax
add esp, 4
test esi, esi
je 0x100110dd
push 1
call fcn.10013ed4
add esp, 4
mov dword [esi + 4], eax
jmp 0x100110df
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 1
push eax
call fcn.10008210
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
mov ecx, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 0x14], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10011183
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x10011183
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1005019c]
mov ecx, edi
call esi
cmp dword [ebx + 0x38], 0
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x40], al
jne 0x100111a2
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
and eax, 0x13
or eax, 4
mov dword [ebx + 0xc], eax
and ecx, eax
jne 0x100111c5
cmp byte [ebp + 0xc], 0
je 0x100111b1
push ebx
call fcn.10018474
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100111d1
mov esi, str.ios_base::badbit_set
jmp 0x100111e1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.100113f0
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.100097f0
push 0x10062ff0
lea eax, [ebp - 0x34]
push eax
call fcn.1002d79d
int3
Function at 0x10013080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x100662bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
movups xmm1, xmmword [0x100520c0]
push esi
push edi
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov edi, dword [ebp + 8]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
mov dword [ebp - 0xa0], ecx
movzx ecx, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
mov dword [ebp - 0x9c], ecx
movzx ecx, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [ebp - 0x98], ecx
movups xmm0, xmmword [ebp - 0xa4]
pxor xmm1, xmm0
movups xmmword [ebp - 0x94], xmm1
nop dword [eax]
mov edx, dword [eax + 0x100520d0]
xor edx, dword [ebp + eax - 0x90]
xor edx, dword [ebp + eax - 0x8c]
xor edx, dword [ebp + eax - 0x88]
mov ecx, edx
shr ecx, 0x18
movzx esi, byte [ecx + 0x10051fc0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fc0]
or esi, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fc0]
or esi, ecx
movzx ecx, dl
shl esi, 8
movzx ecx, byte [ecx + 0x10051fc0]
or esi, ecx
mov edx, esi
mov ecx, esi
rol edx, 0xd
ror ecx, 9
xor edx, ecx
xor edx, dword [ebp + eax - 0x94]
xor edx, esi
mov dword [ebp + eax - 0x84], edx
mov dword [eax + edi], edx
add eax, 4
cmp eax, 0x80
jb 0x10013150
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002c259
mov esp, ebp
pop ebp
ret

Function at 0x1002bd1b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1003281a
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1002bd5a
sub eax, 1
je 0x1002bd55
sub eax, 1
je 0x1002bd51
xor eax, eax
leave
ret
push 3
jmp 0x1002bd5c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1003ae60
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003ae9f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003ae9f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003ae9f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1003ae9f
cmp dword [ecx + 0x74], 0xe
jbe 0x1003ae9f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003e6aa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056f90
push 0x10056f88
push str.FlsAlloc
push 0x1f
call fcn.1003e515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e6de
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005019c]
call esi
jmp 0x1003e6e4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003e728
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056fa0
push 0x10056f98
push str.FlsGetValue
push 0x21
call fcn.1003e515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e75f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005019c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003e767
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10056fa8
push 0x10056fa0
push str.FlsSetValue
push 0x22
call fcn.1003e515
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003e7a1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005019c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100440e0
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 0x1004417d
push ebx
push esi
call fcn.100440a9
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.1003e0eb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004412a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004417c
push edi
push eax
call fcn.1003de70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004414a
call fcn.1003de36
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004417b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003e0eb
add esp, 0x20
test eax, eax
jne 0x10044169
push edi
call fcn.1003de36
jmp 0x10044171
push ebx
call fcn.1003de36
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 0x10044180
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10044191
pop esi
ret
push ebx
push edi
push esi
call fcn.100440a9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003de70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100441b9
push ebx
push esi
push edi
call fcn.1002d8c0
add esp, 0xc
push 0
call fcn.1003de36
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10044589
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100441ce

Function at 0x1004686f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1003c085
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 0x100468de
cmp esi, dword [ebp - 4]
je 0x100468d9
cmp dword [ebp + 0xc], 0
je 0x100468d9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100468b6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100463ac
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100468e0
xor eax, eax
inc eax
jmp 0x100468e0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10046945
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100662bc]
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.1003c085
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.1003c085
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 0x100469bc
cmp word [ecx], dx
je 0x100469bc
mov eax, dword [0x1005782c]
push edi
dec eax
push eax
push 0x10057718
call fcn.100468e4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10046a2f
cmp word [eax], dx
je 0x10046a2f
mov eax, dword [edi]
test eax, eax
je 0x100469e0
cmp word [eax], dx
je 0x100469e0
lea eax, [ebp - 0x10]
push eax
call fcn.100462b2
jmp 0x100469e9
lea eax, [ebp - 0x10]
push eax
call fcn.1004634d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10046a59
mov eax, dword [0x10057714]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10057408
call fcn.100468e4
add esp, 0xc
test al, al
je 0x10046a59
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10046a24
cmp word [eax], di
je 0x10046a24
lea eax, [ebp - 0x10]
push eax
call fcn.100462b2
pop ecx
jmp 0x10046a5b
lea eax, [ebp - 0x10]
push eax
call fcn.1004634d
jmp 0x10046a21
mov eax, dword [edi]
test eax, eax
je 0x10046a46
cmp word [eax], dx
je 0x10046a46
lea eax, [ebp - 0x10]
push eax
call fcn.10046267
pop ecx
jmp 0x10046a59
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 0x10046b24
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10046769
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10046b24
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10046b24
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10046b24
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10046ab1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1003e943
test ebx, ebx
je 0x10046b1f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1003e943
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10046b24
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 0x10046b24
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1004abfd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10046b26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002c259
leave
ret
Function at 0x1004c060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004c08d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004c08d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402590
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcr edx, 0xbb
bswap edi
inc edi
rol edx, 0xf7
inc eax
rol eax, 0x8d
not edx
bswap edx
rcl esi, 0xd
bswap edi
inc edx
imul esi
rol esi, 0x96
or edi, 0x1f
rcr ebx, 0xb7
inc edi
inc ebx
ror esi, 0xa8
or edi, 0xbb
imul edx
mov edi, 0x2f
and edi, 0xb6
sbb ebx, 0x28
or eax, 0x98
dec eax
bswap eax
mov ebx, 8
neg edx
imul ebx
bswap edx
rcr edx, 0x9d
bswap ebx
not ebx
imul ebx
or edi, 0x4d
neg eax
bswap esi
add edx, 0x28
ror ebx, 0xef
inc ebx
not eax
not esi
inc eax
bswap esi
dec eax
or esi, 0xe3
neg esi
add esi, 0x62
mov esi, 0xf3
not edi
xor ecx, ecx
xor edi, edi
dec edx
ror eax, 0x3a
or edi, 0xed
inc esi
neg eax
dec edx
mov ebx, 0
rcr eax, 0xa
imul edx
neg esi
or edx, 0x32
bswap eax
sub ebx, 0xd4
imul edx
not esi
inc edi
dec esi
rcr edx, 0xab
rol eax, 0xa6
imul edx
sub eax, 0x63
imul eax
rol edx, 0x4e
ror edx, 0xa3
neg edi
rcr esi, 0xc6
ror esi, 0x1e
and esi, 0xa5
neg edi
rcr ebx, 0x87
inc edi
inc edx
dec esi
mov eax, 0xdb
rcr edx, 0xa8
neg edi
imul esi
not ebx
not edi
dec esi
not edi
dec ebx
bswap edi
bswap edx
rcr edi, 0xed
rcl ebx, 6
imul edi
and eax, 0x2a
rcl edi, 0x16
inc edi
mov ecx, dword [ebp + 0xc]
mov eax, 0x98
bswap edi
sbb eax, 0x94
imul edi
sbb eax, 0xb8
bswap edx
bswap ebx
rcl eax, 0xdc
neg esi
dec eax
bswap esi
or ebx, 0xc1
neg eax
ror edi, 0
rcr esi, 0xa
inc edx
rcl edi, 0xad
rcr eax, 4
rol esi, 0x24
not edx
ror ebx, 0xf4
neg edi
imul eax
bswap ebx
imul ebx
inc ebx
sbb ebx, 0x3a
not edi
neg edx
rol esi, 0x3d
rcl esi, 0xfb
rcl ebx, 0xdc
not eax
rcr ebx, 0x22
rcr eax, 0xe8
not ebx
sub edx, 0xc
add edx, 0xce
add edx, 0x3c
neg ebx
rol eax, 0x99
not ebx
inc edi
inc edi
sub esi, 0x2c
dec edx
bswap esi
not edi
mov edi, 0xa4
neg ebx
mov edi, dword [ebp + 8]
xor eax, ebx
xor esi, esi
xor eax, esi
not byte [edi]
xor ebx, esi
mov eax, eax
mov eax, ebx
xor esi, ebx
mov ebx, esi
mov eax, esi
mov eax, eax
mov eax, ebx
mov eax, ebx
add byte [edi], 0x87
xor esi, esi
xor eax, esi
xor ebx, eax
xor ebx, eax
xor ebx, ebx
xor ebx, ebx
xor esi, esi
mov ebx, ebx
xor esi, esi
sub byte [edi], 0x54
xor ebx, ebx
mov ebx, eax
xor ebx, esi
mov eax, esi
xor eax, eax
xor ebx, esi
mov esi, eax
mov esi, esi
xor ebx, esi
imul byte [edi]
inc edi
loop 0x402725
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407f1a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438694]
jne 0x407f24
repz ret
jmp fcn.0040c8f5
Function at 0x40e0fd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040aebf
and dword [ebp - 4], 0
cmp dword [0x439c14], 0
mov ebx, eax
jne 0x40e1ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e25f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e25f
push eax
call fcn.0040ae4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439c14], eax
call esi
push eax
call fcn.0040ae4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439c18], eax
call esi
push eax
call fcn.0040ae4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439c1c], eax
call esi
push eax
call fcn.0040ae4d
pop ecx
mov dword [0x439c24], eax
test eax, eax
je 0x40e1ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ae4d
pop ecx
mov dword [0x439c20], eax
mov eax, dword [0x439c20]
cmp eax, ebx
je 0x40e206
cmp dword [0x439c24], ebx
je 0x40e206
push eax
call fcn.0040aec8
push dword [0x439c24]
mov esi, eax
call fcn.0040aec8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e206
test edi, edi
je 0x40e206
call esi
test eax, eax
je 0x40e1fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e1fd
test byte [ebp - 0xc], 1
jne 0x40e206
or dword [ebp + 0x10], 0x200000
jmp 0x40e23f
mov eax, dword [0x439c18]
cmp eax, ebx
je 0x40e23f
push eax
call fcn.0040aec8
pop ecx
test eax, eax
je 0x40e23f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e23f
mov eax, dword [0x439c1c]
cmp eax, ebx
je 0x40e23f
push eax
call fcn.0040aec8
pop ecx
test eax, eax
je 0x40e23f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439c14]
call fcn.0040aec8
pop ecx
test eax, eax
je 0x40e25f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e261
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret