joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c450
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1000c465
xor eax, eax
jmp 0x1000c4da
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x1000c492
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x1000c4d5
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x1000c4d3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1000c4cf
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x1000c4d3
xor eax, eax
jmp 0x1000c4da
jmp 0x1000c489
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000c6a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001f840]
mov dword [ebp - 4], eax
jmp 0x1000c6b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c6d6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000c6b0
mov esp, ebp
pop ebp
ret
Function at 0x1000cb20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001f850], eax
je 0x1000cb3e
mov eax, 0x10dd
jmp 0x1000cc1f
mov eax, dword [0x1001f860]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000cbbc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000cb9a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000cb9a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000c1c0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000cb46
mov dword [0x1001f860], 0
call fcn.1000c4e0
mov ecx, dword [0x1001f85c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000cc09
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000cbd4
mov dword [0x1001f85c], 0
mov dword [0x1001f850], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000d110
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001f854], 0
je 0x1000d129
mov eax, dword [0x1001f854]
jmp 0x1000d1c9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000d13b
xor eax, eax
jmp 0x1000d1c9
push 8
call fcn.1000db94
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d191
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000d17a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001f854], eax
mov dword [0x1001f858], 0
mov eax, dword [ebp - 8]
jmp 0x1000d1c9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000d1ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000d15b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001f85c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001f85c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1000da7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016018]
jne 0x1000da85
repz ret
jmp fcn.1000df69

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, 0x5d1f3428
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x567a7fb4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404bef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db60]
jne 0x404bf9
repz ret
jmp fcn.0040883b

Function at 0x4060f3
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.004029c4
and dword [ebp - 4], 0
cmp dword [0x40e54c], 0
mov ebx, eax
jne 0x4061a4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406255
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40aa14
push edi
call esi
test eax, eax
je 0x406255
push eax
call fcn.00402952
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e54c], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e550], eax
call esi
push eax
call fcn.00402952
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e554], eax
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e55c], eax
test eax, eax
je 0x4061a4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402952
pop ecx
mov dword [0x40e558], eax
mov eax, dword [0x40e558]
cmp eax, ebx
je 0x4061fc
cmp dword [0x40e55c], ebx
je 0x4061fc
push eax
call fcn.004029cd
push dword [0x40e55c]
mov esi, eax
call fcn.004029cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061fc
test edi, edi
je 0x4061fc
call esi
test eax, eax
je 0x4061f3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061f3
test byte [ebp - 0xc], 1
jne 0x4061fc
or dword [ebp + 0x10], 0x200000
jmp 0x406235
mov eax, dword [0x40e550]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406235
mov eax, dword [0x40e554]
cmp eax, ebx
je 0x406235
push eax
call fcn.004029cd
pop ecx
test eax, eax
je 0x406235
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e54c]
call fcn.004029cd
pop ecx
test eax, eax
je 0x406255
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406257
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x72e43dc8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5d0a4b73
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405980
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
call dword [sym.imp.MSVCRT.dll_rand]
test al, 3
jne 0x405a00
mov eax, dword [esp + 8]
push 0x40870c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x405a00
push ebx
push esi
push edi
mov ecx, 0x40d
mov esi, 0x408820
mov edi, 0x42e058
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x54321cba
mov bl, byte [eax + 0x42e058]
mov edx, ecx
sar edx, 0x17
xor bl, dl
add ecx, 0x1234567f
mov byte [eax + 0x42e058], bl
inc eax
cmp eax, 0x1034
jb 0x4059bf
push ebp
push 0x1034
push 1
push 0x42e058
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x32a2c20
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0x32a2cb7
test ebp, ebp
je 0x32a2cb7
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x32a2c40
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.032a374f
mov esi, eax
add esp, 4
test esi, esi
je 0x32a2cb2
push edi
push 0
push esi
call fcn.032a6370
push esi
push ebp
mov eax, ebx
call fcn.032a20d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0x32a2c8b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0x32a2c83
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0x32af018]
push esi
mov bl, 1
call fcn.032a574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x402835
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4028b3
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4028b2
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp - 4], edi
neg ecx
or ecx, eax
push ecx
call fcn.0041f58f
pop ecx
mov dword [0x453c40], eax
cmp eax, edi
je 0x4028ab
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x453c40]
xor eax, eax
mov word [ecx + esi*2], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x403277
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4032c8
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4032d9
push 0xd
pop eax
jmp 0x403306
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4032dc
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x403872
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor edi, edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.00403242
mov ebx, eax
cmp ebx, edi
je 0x4038e2
lea ecx, [ebp - 0x70]
call fcn.004031d9
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004201f5
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4038fa
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00403872
cmp eax, edi
jne 0x40392d
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x4038ea
lea ecx, [ebp - 0x70]
call fcn.004031d9
push dword [ebp - 0x78]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004031d9
mov eax, esi
jmp 0x4038c8
Function at 0x405aca
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
xor eax, eax
push esi
mov esi, 0x453c88
cmp ax, word [0x453c88]
jne 0x405b22
push 1
push 0x23
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x405aff
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 7
push str.360SD_
push esi
call fcn.00422c36
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405b22
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp + 8]
push esi
call fcn.00405a89
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x405b31
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
mov edi, dword [ebp + 0x1a0]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x80], esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.00420210
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push 0x80000002
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 0x208
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x405be1
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.Path
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x74]
push eax
call fcn.0042265c
pop ecx
push 0x5c
mov dword [ebp - 0x7c], eax
lea eax, [ebp + eax*2 - 0x74]
pop ecx
cmp cx, word [eax - 2]
je 0x405be1
mov word [eax], cx
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.00405a89
mov ecx, dword [ebp + 0x194]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004201f5
add ebp, 0x198
leave
ret
Function at 0x405c05
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x43ba04
call fcn.00422277
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov esi, 0x453e90
cmp ax, word [0x453e90]
jne 0x405cf0
mov edi, 0x104
push edi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.00422440
pop ecx
pop ecx
cmp eax, ebx
je 0x405c4e
xor ecx, ecx
mov word [eax + 2], cx
push 0x4438f4
lea ecx, [ebp - 0x10]
call fcn.00405a89
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jne 0x405c8b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040552a
add esp, 0xc
push dword [eax]
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405c8b
mov bl, 1
jmp 0x405c8d
xor bl, bl
test byte [ebp - 0x14], 1
je 0x405c9e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402a0d
test bl, bl
je 0x405ce1
lea eax, [ebp - 0x18]
push eax
call fcn.00405b31
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040558e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402a0d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x405ce1
cmp eax, edi
jge 0x405ce1
push 0x103
push ecx
push esi
call fcn.00422c76
add esp, 0xc
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402a0d
mov ecx, dword [ebp + 8]
push esi
call fcn.00405a89
mov eax, dword [ebp + 8]
call fcn.0042234f
ret
Function at 0x405d02
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x43ba9c
call fcn.00422277
xor edi, edi
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405c05
push str._savapi_vbase000.vdf
push eax
xor esi, esi
lea eax, [ebp - 0x2c]
inc esi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], esi
call fcn.004054c6
add esp, 0x14
push 3
pop ebx
push dword [eax]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x405dc6
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00405c05
push str._savapi_aeoffice.dll
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], 7
call fcn.004054c6
add esp, 0x14
push 0xf
mov dword [ebp - 4], ebx
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x405dc6
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00405c05
push str._savapi_aebb.dll
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 0x1f
call fcn.004054c6
add esp, 0x14
push 0x3f
pop ebx
push dword [eax]
call esi
mov byte [ebp - 0xd], 0
test eax, eax
je 0x405dca
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x405ddd
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
and ebx, 0xffffffdf
call fcn.00402a0d
test bl, 0x10
je 0x405df0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
and ebx, 0xffffffef
call fcn.00402a0d
test bl, 8
je 0x405e03
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
and ebx, 0xfffffff7
call fcn.00402a0d
test bl, 4
je 0x405e16
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
and ebx, 0xfffffffb
call fcn.00402a0d
test bl, 2
je 0x405e29
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
and ebx, 0xfffffffd
call fcn.00402a0d
test bl, 1
je 0x405e39
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00402a0d
cmp byte [ebp - 0xd], 0
je 0x405e46
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.0042234f
ret
Function at 0x406042
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x43ba9c
call fcn.00422277
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.00405e4f
mov dword [esp], str.emalware.001
push eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x2c]
inc esi
push eax
mov dword [ebp - 0x14], esi
call fcn.004054c6
add esp, 0xc
push 3
pop ebx
push dword [eax]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x406107
lea eax, [ebp - 0x28]
push eax
call fcn.00405e4f
mov dword [esp], str.emalware.002
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], 7
call fcn.004054c6
add esp, 0xc
push 0xf
mov dword [ebp - 4], ebx
pop ebx
push dword [eax]
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x406107
lea eax, [ebp - 0x20]
push eax
call fcn.00405e4f
mov dword [esp], str.emalware.003
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 0x1f
call fcn.004054c6
add esp, 0xc
push 0x3f
pop ebx
push dword [eax]
call esi
mov byte [ebp - 0xd], 0
test eax, eax
je 0x40610b
mov byte [ebp - 0xd], 1
test bl, 0x20
je 0x40611e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
and ebx, 0xffffffdf
call fcn.00402a0d
test bl, 0x10
je 0x406131
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
and ebx, 0xffffffef
call fcn.00402a0d
test bl, 8
je 0x406144
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
and ebx, 0xfffffff7
call fcn.00402a0d
test bl, 4
je 0x406157
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
and ebx, 0xfffffffb
call fcn.00402a0d
test bl, 2
je 0x40616a
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
and ebx, 0xfffffffd
call fcn.00402a0d
test bl, 1
je 0x40617a
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00402a0d
cmp byte [ebp - 0xd], 0
je 0x406187
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
call fcn.0042234f
ret
Function at 0x407afe
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4528a0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x2c], bl
jne 0x407b8d
push dword [esi + 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407b4e
push 1
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4441d4
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [esi + 0x2c], 1
push 0x104
lea eax, [ebp - 0x80]
push eax
push 0x4441c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x407bff
push ebx
push ebx
push esi
push 0x407a3d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x407b87
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [esi + 4]
jmp 0x407ba9
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0xc4]
cmp ecx, 1
jne 0x407bb1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x407bff
cmp ecx, ebx
jne 0x407bc1
push 0xff
push str.ck_W_nN_O
jmp 0x407be6
mov eax, dword [eax + 0xc8]
cmp eax, 1
jne 0x407bd8
push 0xff
push 0x444180
jmp 0x407be6
cmp eax, ebx
jne 0x407bff
push 0xff
push 0x444168
lea eax, [ebp - 0x78]
push eax
call fcn.00422c76
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp + 0x188]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004201f5
add ebp, 0x18c
leave
ret 0x10