joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c23b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb213
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
call fcn.00480dc0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4c2435
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::SourceCodeInfo_Location.0
call fcn.004bccf0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, 0x51e6e0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c31a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e91c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::FileDescriptorProto.0
call fcn.004bccf0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, 0x51e6e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c3620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e91c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::DescriptorProto.0
call fcn.004bccf0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edi
mov dword [esi + 8], 0x51e6e0
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c5620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e91c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.004bccf0
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x51e6e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c60f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb213
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51d584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x48
call fcn.00480dc0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4c6183
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
mov dword [esi], vtable.google::protobuf::UninterpretedOption.0
call fcn.004bccf0
fldz
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
fstp qword [esi + 0x30]
mov eax, 0x51e6e0
mov dword [esi + 0x18], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x89a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0089a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x89a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89a06a
add dl, dl
jne 0x89a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89a0dc
xor eax, eax
add dl, dl
jne 0x89a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89a17d
add dl, dl
jne 0x89a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x89a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x89a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x89a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x89a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x89a075
mov eax, 1
add dl, dl
jne 0x89a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x89a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x89a0e1
sub eax, ebx
mov ebx, 1
jne 0x89a128
mov ecx, 1
add dl, dl
jne 0x89a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x89a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x89a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x89a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x89a136
cmp eax, 0x7d00
jae 0x89a16d
cmp eax, 0x500
jb 0x89a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x89a075
cmp eax, 0x7f
ja 0x89a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x89a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x89a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x89a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10016ea
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1001b70
call fcn.01001894
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1003370
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10014a1
cmp eax, esi
jne 0x1001494
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10014a4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100147b
xor esi, esi
inc esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x10014b7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10014e6
mov eax, dword [0x100336c]
test eax, eax
jne 0x10014e0
mov dword [0x100336c], esi
push 0x10010d0
push 0x10010c4
call fcn.010013e0
pop ecx
pop ecx
test eax, eax
je 0x10014e6
jmp 0x100160e
mov dword [0x1003034], esi
mov eax, dword [0x100336c]
cmp eax, esi
jne 0x100150a
push 0x10010c0
push 0x10010b8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100336c], 2
test ebx, ebx
jne 0x1001516
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003374], 0
je 0x100153a
push 0x1003374
call fcn.01001809
pop ecx
test eax, eax
je 0x100153a
push 0
push 2
push 0
call dword [0x1003374]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001596
test al, al
je 0x1001554
cmp dword [ebp - 0x1c], 0
jne 0x1001596
mov al, byte [esi]
test al, al
je 0x1001564
cmp al, 0x20
ja 0x1001564
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001554
test byte [ebp - 0x3c], 1
je 0x1001570
movzx eax, word [ebp - 0x38]
jmp 0x1001573
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1003030], eax
cmp dword [0x1003024], 0
jne 0x10015ea
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10015a5
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10015b8
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1001541
cmp dword [0x1003034], 0
jne 0x10015f9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003030]
jmp 0x100161a
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010018d9
ret
call fcn.010019e1
jmp 0x1001441

Function at 0x15aaa64
Capabilities:
Encode data using xor

Disassembly:
sub al, al
stc
mov byte [esp], cl
cmp eax, dword [ebp - 0x10]
pushfd
lea esp, [esp + 8]
jae 0x15b3803
xchg di, bx
pushfd
bswap bx
mov ebx, eax
pop edi
pushal
pushal
not di
mov edi, eax
pushfd
pushfd
lea esp, [esp + 0x48]
jmp 0x15b1abd
push ebp
call fcn.015a0c7e
clc
jmp 0x15a1482
and cl, ah
setb cl
mov ecx, 0x104
pushfd
stc
cmc
jmp 0xd2ecd1
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6405bc3
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x10163ffd
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401430
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftWareSogouInput
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4014b6
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push str.CheckCrash
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4014ad
cmp dword [ebp - 8], eax
je 0x4014ad
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0
push str.CheckCrashRes
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x401a90
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x402f20
mov dword [0x52a30c], eax
call fcn.00496cd8
push 0x402f10
call fcn.0048a879
add esp, 8
xor eax, eax
mov word [0x529cf0], ax
push 0x103
push 0x529cf0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x529cf0
call fcn.0048c43d
add esp, 8
test eax, eax
je 0x40150e
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
push 0x52a310
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
push 0x52a100
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x52a100
push 0x104
push 0x529ef8
call fcn.004b5162
push 0x529ef8
push 0x104
push 0x5298e0
call fcn.004b5162
push 0x52a100
push 0x104
push 0x529ae8
call fcn.004b5162
add esp, 0x20
mov ecx, 0x529ef8
call fcn.00401330
mov ecx, 0x5298e0
call fcn.00401330
push 0x2e
push 0x52a100
call fcn.0048c43d
add esp, 0xc
test eax, eax
je 0x4015aa
push 0x4f5638
add eax, 2
push 4
push eax
call fcn.004b5162
add esp, 0xc
jmp 0x4015d5
push 0x4f562c
push 0x104
push 0x52a100
call fcn.004b5238
push 0x4f5638
push 0x104
push 0x52a100
call fcn.004b5238
add esp, 0x18
push 0x2e
push 0x529ae8
call fcn.0048c43d
add esp, 8
test eax, eax
je 0x4015fd
push 0x4f5640
add eax, 2
push 4
push eax
call fcn.004b5162
add esp, 0xc
jmp 0x401628
push 0x4f562c
push 0x104
push 0x529ae8
call fcn.004b5238
push 0x4f5640
push 0x104
push 0x529ae8
call fcn.004b5238
add esp, 0x18
push 0x2e
push 0x529ef8
call fcn.0048c43d
add esp, 8
test eax, eax
je 0x401650
push 0x4f5638
add eax, 2
push 4
push eax
call fcn.004b5162
add esp, 0xc
jmp 0x40167b
push 0x4f562c
push 0x104
push 0x529ef8
call fcn.004b5238
push 0x4f5638
push 0x104
push 0x529ef8
call fcn.004b5238
add esp, 0x18
push 0x2e
push 0x5298e0
call fcn.0048c43d
add esp, 8
test eax, eax
je 0x4016b2
push 0x4f5640
add eax, 2
push 4
push eax
call fcn.004b5162
add esp, 0xc
mov dword [0x5298c8], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4f562c
push 0x104
push 0x5298e0
call fcn.004b5238
push 0x4f5640
push 0x104
push 0x5298e0
call fcn.004b5238
add esp, 0x18
mov dword [0x5298c8], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4031d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x513b74]
cmp dword [eax*4 + 0x5298d4], 0
je 0x40323c
cmp dword [0x5298c4], 0
je 0x40323c
push esi
push str.extra:_n
call fcn.004027d0
mov edx, dword [0x5298c4]
add esp, 4
mov eax, edx
mov dword [ebp - 4], 0
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403210
sub eax, esi
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
mov eax, dword [0x513b74]
push edx
push dword [eax*4 + 0x5298d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409900
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x52fc38]
push ebx
mov ebx, dword [ebp + 8]
test al, 1
jne 0x40993f
or eax, 1
mov ecx, 0x52fc40
mov dword [0x52fc38], eax
call fcn.00403480
push 0x4e6820
call fcn.0048992b
add esp, 4
cmp byte [0x52fb4c], 0
jne 0x409ab8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048bb90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409ab1
push edi
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x41c], 0
push 0
push eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x418], 0
call fcn.0048bb90
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x409ab0
push esi
push edi
call fcn.004a9943
mov esi, eax
add esp, 4
test esi, esi
je 0x409aaf
push esi
push edi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409aa6
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x409aa6
cmp dword [ebp - 0x418], 4
jb 0x409aa6
mov ecx, dword [ebp - 0x420]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x414]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.0040e1d0
add esp, 0x10
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call edi
test eax, eax
je 0x409aa6
mov eax, dword [ebp - 0x418]
cmp eax, 2
jbe 0x409aa6
mov ecx, dword [ebp - 0x424]
cmp word [ecx + eax*2 - 2], 0
jne 0x409a9a
push ecx
mov ecx, 0x52fc40
call fcn.00403850
jmp 0x409aa6
push eax
push ecx
mov ecx, 0x52fc40
call fcn.004038c0
push esi
call fcn.00496f41
add esp, 4
pop esi
pop edi
mov byte [0x52fb4c], 1
push 0x52fc40
mov ecx, ebx
call fcn.00403760
mov ecx, dword [ebp - 4]
mov al, byte [0x52fb4c]
xor ecx, ebp
pop ebx
call fcn.00489940
mov esp, ebp
pop ebp
ret 4
Function at 0x40ba90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df731
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x513200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 5]
mov edi, dword [ebp + 8]
test al, al
jne 0x40bad4
push str.Win7
jmp 0x40bc94
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0048bb90
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40bc8f
inc eax
cmp eax, 0x104
jae 0x40bc8f
cmp byte [esi + 0x370], 0
lea eax, [esi + 0x260]
jne 0x40bb25
mov eax, dword [esi + 0x25c]
add eax, 4
lea ecx, [ebp - 0x54c]
push eax
call fcn.00403600
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb44
sub ecx, edx
lea eax, [ebp - 0x540]
sar ecx, 1
cmp byte [ebp - 0x430], 0
push ecx
cmove eax, dword [ebp - 0x544]
lea ecx, [ebp - 0x21c]
push ecx
add eax, 4
push eax
call fcn.004d40c5
add esp, 0xc
test eax, eax
jne 0x40bb86
mov byte [esi + 0x1faa], 1
cmp byte [esi + 0x1faa], 0
jne 0x40bc5f
sub esp, 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x79c]
push 0
push eax
call fcn.0040e650
lea ecx, [ebp - 0x674]
call fcn.0040e5f0
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x79c]
call fcn.00410b30
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0048bb90
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x558]
lea ecx, [ebp - 0x668]
mov edi, dword [ebp - 0x66c]
test dl, dl
cmove ecx, edi
add ecx, 4
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc10
sub ecx, ebx
lea eax, [ebp - 0x668]
sar ecx, 1
test dl, dl
push ecx
cmove eax, edi
add eax, 4
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004d40c5
add esp, 0xc
test eax, eax
jne 0x40bc49
mov byte [esi + 0x1faa], 1
lea ecx, [ebp - 0x674]
call fcn.0040ea20
lea ecx, [ebp - 0x79c]
call fcn.0040ea20
cmp byte [ebp - 0x430], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40bc8b
mov eax, dword [ebp - 0x544]
lea ecx, [ebp - 0x540]
cmp eax, ecx
je 0x40bc8b
push eax
call fcn.00496f41
add esp, 4
mov al, 1
jmp 0x40bc9d
push 0x4fcd3c
mov ecx, edi
call fcn.004058b0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00489940
mov esp, ebp
pop ebp
ret 4
Function at 0x40e420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df9fb
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x513200]
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 dword [ebp - 0x140], ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
cmp dword [ebx + 4], esi
jbe 0x40e4a1
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.004045e0
movzx eax, word [eax + edi*2]
push eax
call fcn.004a97f6
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x40e470
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004056f0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push 0x4fd038
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x4fc47c
push eax
call fcn.004048f0
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x4fc47c
push eax
call fcn.004048f0
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.004048f0
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x140]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00437270
test al, al
jne 0x40e582
push 0x4fd060
mov ecx, esi
call fcn.004058b0
xor bl, bl
jmp 0x40e584
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40e5ad
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40e5ad
push eax
call fcn.00496f41
add esp, 4
mov al, bl
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.00489940
mov esp, ebp
pop ebp
ret 8

Function at 0x40ef80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp byte [ecx + 0x11c], 0
lea eax, [ecx + 0xc]
jne 0x40ef8f
mov eax, dword [ecx + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40efa1
xor al, al
ret
shr eax, 4
not al
and al, 1
ret