joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a595c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055dc
xor eax, eax
push ebp
push 0x4a5abd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a59a0
sub eax, 4
mov eax, dword [eax]
lea eax, [eax + eax*8]
add eax, 0x7a
cmp eax, 0x1673ea0
jne 0x4a5a95
lea eax, [ebp - 0x3c]
push eax
mov ecx, 6
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00405654
mov eax, dword [ebp - 0x3c]
mov edx, 0x4a5ad4
call fcn.00405584
jne 0x4a5a95
push 0x28
lea eax, [ebp - 0x35]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x35]
mov ecx, 0x29
call fcn.004053cc
mov eax, dword [ebp - 0x40]
mov ecx, 2
mov edx, 1
call fcn.00405654
push dword [ebp - 8]
push 0x4a5aec
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.0040333c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040a040
push dword [ebp - 0x44]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054f0
mov dl, 1
mov eax, dword [0x426224]
call fcn.00426324
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.004263c4
mov cl, 1
mov edx, 0x4a5b18
mov eax, ebx
call fcn.00426428
mov ecx, dword [ebp - 0xc]
mov edx, 0x4a5b50
mov eax, ebx
call fcn.00426794
mov eax, esi
call fcn.004a544c
test al, al
je 0x4a5a89
lea eax, [ebp - 0x4c]
call fcn.004a5514
call fcn.004a55b8
jmp 0x4a5a95
mov eax, esi
call fcn.004a58a0
call fcn.004a5608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5ac4
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.00405180
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405180
ret
Function at 0x401dc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401e0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401e04
test esi, esi
je 0x401e04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401de0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ff0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402118
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40207e
cmp eax, 4
jne 0x4020a0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40208e
cmp edx, 4
je 0x40208e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ff0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x11a01bcd
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x3c8c2e24
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x454b00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b000]
push edi
jmp 0x454b1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x454b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x454b10
mov eax, 1
add ebx, ebx
jne 0x454b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x454b28
jne 0x454b44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454b28
xor ecx, ecx
sub eax, 3
jb 0x454b58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x454bca
mov ebp, eax
add ebx, ebx
jne 0x454b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x454b70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x454b94
inc ecx
add ebx, ebx
jne 0x454b80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x454b75
jne 0x454b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x454b75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x454bb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x454ba5
jmp 0x454b16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x454bb4
add edi, ecx
jmp 0x454b16
pop esi
mov edi, esi
mov ecx, 0xc4d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x454bd2
cmp byte [edi], 0x11
jne 0x454bd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x454bd7
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x454c4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x63504]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63594]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x454c04
mov ecx, edi
jns 0x454c33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6359c]
or eax, eax
je 0x454c49
mov dword [ebx], eax
add ebx, 4
jmp 0x454c21
call dword [esi + 0x63598]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x454c80
cmp al, 0xef
ja 0x454c73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x454c55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x454c62
mov ebp, dword [esi + 0x635a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x454cb4
sub esp, 0xffffff80
jmp 0x40988e
Function at 0x424079
Capabilities:
Resolve function by parsing pe exports

Disassembly:
wait
nop
movzx eax, byte [edi]
mov esi, esi
sub dword [esp], eax
mov ebp, ebp
lea edi, [edi + 1]
mov eax, eax
cmp byte [edi], 1
jmp 0x4241dc
mov edx, ebx
jmp 0x4241f3
xor edi, ebp
inc ecx
push 0xffffffffffffffff
mov cl, 0xe3
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
inc ecx
jmp 0x428e19
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4
nop
nop
jne 0x42409f
lea edi, [ebx]
lea esi, [ebx]
add esi, dword [edx + 0x24]
jmp 0x424263
ret
pop eax
ja 0x428e10
mov bl, bl
xor eax, 0x728e1c40
sbb eax, dword [esp + 4]
jmp 0x42415b
xchg esi, ecx
lea eax, [ebx - 0x56]
mov esi, ebx
mov eax, ebx
mov cl, ch
lea ecx, [edx - 0x5b73e998]
add eax, dword [ebx + 0x3c]
xor cl, 0xde
or ch, 0x53
cmp ecx, edx
add edx, dword [eax + 0x78]
jmp 0x424094
add edi, dword [edx + 0x1c]
push ebx
lea esi, [esi + ecx*2]
jmp 0x42412e
pop eax
imul eax, eax, 0xf
push eax
jmp 0x42405b
lea edx, [edx]
lea edx, [edx]
lea edi, [eax + ebx]
cmp ecx, dword [edx + 0x18]
je 0x424198
lea eax, [eax]
push 0
jmp 0x428e0f
Function at 0x401380
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x401e00
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 0x401e86
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 0x401e7d
cmp dword [ebp - 8], eax
je 0x401e7d
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]
cmp dword [0x5305bc], 0
jne 0x401fa8
push 0x4023e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4038b0
mov dword [0x5305bc], eax
call fcn.0049c548
push 0x4038a0
call fcn.004900e9
add esp, 8
xor eax, eax
mov word [0x52ffa0], ax
push 0x103
push 0x52ffa0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x52ffa0
call fcn.00491cad
add esp, 8
test eax, eax
je 0x401eeb
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
push 0x5305c0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
push 0x5303b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5303b0
push 0x104
push 0x5301a8
call fcn.004ba9d2
push 0x5301a8
push 0x104
push 0x52fb90
call fcn.004ba9d2
push 0x5303b0
push 0x104
push 0x52fd98
call fcn.004ba9d2
add esp, 0x20
mov ecx, 0x5301a8
call fcn.00401d00
mov ecx, 0x52fb90
call fcn.00401d00
push 0x4fb6e8
mov ecx, 0x5303b0
call fcn.00401db0
push 0x4fb6f0
mov ecx, 0x52fd98
call fcn.00401db0
push 0x4fb6e8
mov ecx, 0x5301a8
call fcn.00401db0
push 0x4fb6f0
mov ecx, 0x52fb90
call fcn.00401db0
add esp, 0x14
mov dword [0x52fb78], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x519bd4]
cmp dword [eax*4 + 0x52fb84], 0
je 0x403bcc
cmp dword [0x52fb74], 0
je 0x403bcc
push esi
push str.extra:_n
call fcn.00403160
mov edx, dword [0x52fb74]
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 0x403ba0
sub eax, esi
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
mov eax, dword [0x519bd4]
push edx
push dword [eax*4 + 0x52fb84]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a300
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x53613c]
push ebx
mov ebx, dword [ebp + 8]
test al, 1
jne 0x40a33f
or eax, 1
mov ecx, 0x536140
mov dword [0x53613c], eax
call fcn.00403e10
push 0x4ec780
call fcn.0048f19b
add esp, 4
cmp byte [0x536050], 0
jne 0x40a4b8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00491400
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a4b1
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.00491400
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 0x40a4b0
push esi
push edi
call fcn.004af1b3
mov esi, eax
add esp, 4
test esi, esi
je 0x40a4af
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 0x40a4a6
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 0x40a4a6
cmp dword [ebp - 0x418], 4
jb 0x40a4a6
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.0040f270
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 0x40a4a6
mov eax, dword [ebp - 0x418]
cmp eax, 2
jbe 0x40a4a6
mov ecx, dword [ebp - 0x424]
cmp word [ecx + eax*2 - 2], 0
jne 0x40a49a
push ecx
mov ecx, 0x536140
call fcn.004041e0
jmp 0x40a4a6
push eax
push ecx
mov ecx, 0x536140
call fcn.00404250
push esi
call fcn.0049c7b1
add esp, 4
pop esi
pop edi
mov byte [0x536050], 1
push 0x536140
mov ecx, ebx
call fcn.004040f0
mov ecx, dword [ebp - 4]
mov al, byte [0x536050]
xor ecx, ebp
pop ebx
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5211
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x519220]
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 0x40c5e4
push str.Win7
jmp 0x40c7a4
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00491400
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40c79f
inc eax
cmp eax, 0x104
jae 0x40c79f
cmp byte [esi + 0x370], 0
lea eax, [esi + 0x260]
jne 0x40c635
mov eax, dword [esi + 0x25c]
add eax, 4
lea ecx, [ebp - 0x54c]
push eax
call fcn.00403f90
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c654
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.004d9935
add esp, 0xc
test eax, eax
jne 0x40c696
mov byte [esi + 0x1fae], 1
cmp byte [esi + 0x1fae], 0
jne 0x40c76f
sub esp, 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x79c]
push 0
push eax
call fcn.0040f6f0
lea ecx, [ebp - 0x674]
call fcn.0040f690
lea eax, [ebp - 0x674]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x79c]
call fcn.00411bd0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00491400
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 0x40c720
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.004d9935
add esp, 0xc
test eax, eax
jne 0x40c759
mov byte [esi + 0x1fae], 1
lea ecx, [ebp - 0x674]
call fcn.0040fac0
lea ecx, [ebp - 0x79c]
call fcn.0040fac0
cmp byte [ebp - 0x430], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40c79b
mov eax, dword [ebp - 0x544]
lea ecx, [ebp - 0x540]
cmp eax, ecx
je 0x40c79b
push eax
call fcn.0049c7b1
add esp, 4
mov al, 1
jmp 0x40c7ad
push 0x502e4c
mov ecx, edi
call fcn.004062d0
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.0048f1b0
mov esp, ebp
pop ebp
ret 4
Function at 0x40f4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e555b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x519220]
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 0x40f541
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00404f70
movzx eax, word [eax + edi*2]
push eax
call fcn.004af066
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x40f510
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.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push 0x503200
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x50258c
push eax
call fcn.00405280
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x50258c
push eax
call fcn.00405280
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00405280
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.0043b030
test al, al
jne 0x40f622
push 0x503228
mov ecx, esi
call fcn.004062d0
xor bl, bl
jmp 0x40f624
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40f64d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40f64d
push eax
call fcn.0049c7b1
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.0048f1b0
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
cmp byte [ecx + 0x11c], 0
lea eax, [ecx + 0xc]
jne 0x41002f
mov eax, dword [ecx + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410041
xor al, al
ret
shr eax, 4
not al
and al, 1
ret
Function at 0x410050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov cl, byte [esi + 0x11c]
lea eax, [esi + 0xc]
test cl, cl
jne 0x410077
mov eax, dword [esi + 8]
cmp word [eax + 6], 0x3a
jne 0x41010f
lea eax, [esi + 0xc]
test cl, cl
jne 0x41008c
mov eax, dword [esi + 8]
cmp word [eax + 8], 0
jne 0x41010f
push esi
lea ecx, [ebp - 0x24c]
call fcn.00403ec0
push 0x4fb6d8
lea eax, [ebp - 0x24c]
push 0x50258c
push eax
call fcn.00405280
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4100e1
xor bl, bl
jmp 0x4100e7
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x410230
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x410223
push esi
lea ecx, [ebp - 0x128]
call fcn.00403ec0
mov al, byte [esi + 0x11c]
lea ecx, [esi + 0xc]
test al, al
jne 0x41012b
mov ecx, dword [esi + 8]
cmp word [ecx + 6], 0x3a
jne 0x410154
lea ecx, [esi + 0xc]
test al, al
jne 0x41013c
mov ecx, dword [esi + 8]
cmp word [ecx + 8], 0x5c
jne 0x410154
lea ecx, [esi + 0xc]
test al, al
jne 0x41014d
mov ecx, dword [esi + 8]
cmp word [ecx + 0xa], 0
je 0x41019c
push edi
mov edi, dword [esi + 4]
test edi, edi
je 0x41019b
test al, al
lea eax, [esi + 0xc]
jne 0x410166
mov eax, dword [esi + 8]
cmp word [eax + edi*2 + 2], 0x5c
jne 0x41019b
lea eax, [edi - 1]
push edi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], eax
call fcn.00406110
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + edi*2 + 2], cx
pop edi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4101c2
xor bl, bl
jmp 0x410207
mov al, byte [esi + 0x11c]
lea ecx, [esi + 0xc]
test al, al
jne 0x4101d2
mov ecx, dword [esi + 8]
cmp word [ecx + 6], 0x3a
jne 0x410201
lea ecx, [esi + 0xc]
test al, al
jne 0x4101e3
mov ecx, dword [esi + 8]
cmp word [ecx + 8], 0x5c
jne 0x410201
test al, al
je 0x4101f3
add esi, 0xc
jmp 0x4101f6
mov esi, dword [esi + 8]
cmp word [esi + 0xa], 0
jne 0x410201
mov bl, 1
jmp 0x410207
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - 0x128], vtable.t_str.0
jne 0x410230
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x410230
push eax
call fcn.0049c7b1
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret