joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407340
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419240
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
mov ecx, esp
push 0x41a368
mov dword [ebp - 4], 1
xor bl, bl
call fcn.00401070
lea ecx, [ebp + 0x10]
call fcn.00401450
lea eax, [ebp - 0x2ac]
push eax
mov dword [ebp - 0x2ac], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x29c], 2
jne 0x4073be
cmp dword [ebp - 0x2a8], 6
movzx ebx, bl
mov eax, 1
cmovae ebx, eax
lea ecx, [ebp + 8]
call fcn.00402110
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f5e0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040f7c8
add esp, 0x14
test eax, eax
je 0x4073f2
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x2ec], 0x3c
mov dword [ebp - 0x2e8], 0x40
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x2e4], eax
mov ecx, str.open
mov eax, str.runas
test bl, bl
cmove eax, ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x2e0], eax
call fcn.00402110
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x2dc], eax
call fcn.00402170
test eax, eax
jle 0x407451
lea ecx, [ebp + 0x10]
call fcn.00402110
mov dword [ebp - 0x2d8], eax
jmp 0x40745b
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2ec]
push eax
mov dword [ebp - 0x2d0], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407486
xor bl, bl
jmp 0x4074b5
push 0x1b7740
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret

Function at 0x407950
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov esi, ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4079d3
mov eax, dword [ebp - 0x94]
cmp eax, 6
jb 0x4079d3
jbe 0x4079ac
mov dword [esi + 0x2a8], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
mov eax, 1
cmp eax, dword [ebp - 0x90]
sbb eax, eax
neg eax
add eax, 2
mov dword [esi + 0x2a8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2a8], 1
xor ecx, ebp
pop esi
call fcn.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x4079f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407aaf
push esi
push edi
push 0x41a480
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040f574
xor ecx, ecx
mov eax, 0x11
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fb26
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x10
mov dword [0x425000], eax
xor esi, esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f5e0
push dword [esi + 0x424038]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f574
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
call edi
mov ecx, dword [0x425000]
add esi, 4
mov dword [esi + ecx - 4], eax
cmp esi, 0x44
jb 0x407a60
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret

Function at 0x408300
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x234], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00410210
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x408438
cmp edi, 0xffffffff
je 0x40842f
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4083a4
mov ebx, dword [ebp - 0x238]
mov edi, edi
cmp dword [ebp - 0x228], ebx
lea eax, [ebp - 0x230]
cmove esi, dword [ebp - 0x218]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408380
mov ebx, dword [ebp - 0x234]
cmp byte [ebp + 0xc], 0
je 0x4083de
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4083de
jmp 0x4083c0
cmp dword [ebp - 0x228], esi
lea eax, [ebp - 0x230]
cmove esi, dword [ebp - 0x218]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4083c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40841b
push ebx
push edi
call fcn.00405eb0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
test esi, esi
jne 0x408428
push str.err2
jmp 0x40843f
push str.err1
jmp 0x40843f
push 0xffffffffffffffff
push str.err7
jmp 0x40843f
push 0xffffffffffffffff
push str.err8
push 0x104
push ebx
call fcn.0040f70a
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x409790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], esi
mov dword [esi], vtable.DynamicLoadLibraryHelper.0
mov dword [esi + 4], 0
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x409884
test ebx, ebx
je 0x409884
push edi
lea edi, [ebp - 0x108]
dec edi
jmp 0x4097f0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4097f0
mov ax, word [0x41a47c]
mov word [edi], ax
movzx eax, byte [ebp - 0x108]
xor ecx, ecx
cmp byte [ebp + 0x10], cl
mov esi, ebx
cmovne eax, ecx
mov byte [ebp - 0x108], al
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x409820
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409830
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp byte [ebp + 0xc], 0
mov ecx, eax
mov eax, dword [ebp - 0x10c]
pop edi
mov dword [eax + 4], ecx
je 0x409886
test ecx, ecx
je 0x40986e
cmp ecx, 0xffffffff
jne 0x409886
pop esi
mov byte [eax + 8], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e855
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e855
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409d60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419648
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 3
jne 0x409e52
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x41a47c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401ef0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00402170
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
mov byte [ebp - 4], 1
call fcn.004010d0
test bl, bl
jne 0x409e43
push esi
sub esp, 8
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.00401000
call fcn.00409d60
add esp, 0xc
test al, al
je 0x409e43
push 0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [ebp - 0x14]
setne bl
mov byte [ebp - 4], 0
call fcn.004010d0
jmp 0x409e54
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004010d0
jmp 0x409e54
mov bl, 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409e80
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419680
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00402170
test eax, eax
je 0x409f71
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401000
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409ef8
mov byte [ebp - 4], 0
jmp 0x409f69
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x409f50
cmp byte [ebp + 0x10], 0
je 0x409f71
push 0
push 0x41a47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401ef0
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x409f71
cmp byte [ebp + 0x10], 0
je 0x409f71
push 0
push 0x41a47c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.00401ef0
lea ecx, [ebp - 0x14]
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419748
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4241dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a531
mov byte [ebp - 0xd], 0
jmp 0x40a586
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x14], 0
test edi, edi
je 0x40a56c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
lea eax, [eax + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a56c
add esi, dword [ebp - 0x14]
cmp esi, edi
jb 0x40a541
cmp esi, edi
jne 0x40a57f
mov eax, dword [ebp + 0x10]
shr edi, 1
xor ecx, ecx
mov byte [ebp - 0xd], 1
mov word [eax + edi*2], cx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a8f0
xor al, al
pop ebx
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x40a92a
jmp 0x40a900
push 0
lea eax, [ebp + 8]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a92a
add esi, dword [ebp + 8]
cmp esi, edi
jb 0x40a900
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret
Function at 0x40bb70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419aec
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4241dc]
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 esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [ebp + 8]
push str.kernel32
mov dword [ebp - 0x224], 0
call esi
push str.kernel32
mov ebx, eax
mov dword [ebp - 0x21c], 0
call esi
mov ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x40bbf9
push str.IsWow64Process
push ecx
call eax
mov esi, eax
test esi, esi
je 0x40bbf4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x21c], 0
je 0x40bc39
test ebx, ebx
je 0x40bc39
push str.GetSystemWow64DirectoryW
push ebx
call eax
test eax, eax
je 0x40bc39
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call eax
push 8
call fcn.0040e7dc
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
jmp 0x40bc62
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 8
call fcn.0040e7dc
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40bc76
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.00401070
jmp 0x40bc78
xor eax, eax
push eax
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x42503c], eax
call fcn.00401000
mov eax, edi
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.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x40be50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419b70
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4241dc]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x41c], edi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [ebp - 0x418], 0
call fcn.00402110
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40bf82
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push esi
lea ecx, [ebp + 0x18]
mov dword [ebp - 0x414], 0x400
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x40bf59
push dword [ebp - 0x414]
call fcn.0040e7dc
add esp, 4
mov edi, eax
lea eax, [ebp - 0x414]
push eax
push edi
push 0
push 0
lea ecx, [ebp + 0x18]
call fcn.00402110
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40bf48
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
push edi
mov ecx, ebx
call fcn.00401800
push edi
call fcn.0040e850
mov edi, dword [ebp - 0x41c]
add esp, 4
jmp 0x40bf76
cmp esi, 2
je 0x40bf76
mov eax, dword [ebp - 0x414]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, ebx
call fcn.00401800
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x10]
mov dword [edi], esi
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
mov eax, edi
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.0040e855
mov esp, ebp
pop ebp
ret
Function at 0x40bfc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419bbe
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4241dc]
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 edi, ecx
mov eax, dword [edi]
mov dword [ebp - 4], 0
test eax, eax
je 0x40c00a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], 0
push 0
push 0x41a47c
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp + 8]
call fcn.00401d00
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.00402170
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00402170
cmp esi, eax
jne 0x40c0ad
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40c05a
xor bl, bl
jmp 0x40c0c3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401070
sub esp, 8
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401000
push 0x5c
lea ecx, [ebp - 0x224]
call fcn.004014e0
sub esp, 8
mov ecx, esp
push eax
call fcn.00401000
lea ecx, [ebp + 8]
call fcn.00401820
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004010d0
lea ecx, [ebp + 8]
call fcn.00402110
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
setne bl
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.004010d0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010d0
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.0040e855
mov esp, ebp
pop ebp
ret 8
Function at 0x4147ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004133be
mov dword [ebp - 0x14], eax
cmp dword [0x425db8], edi
jne 0x4148bb
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x414848
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41499b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41499b
push 0x41d19c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41499b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x425db8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x425dbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x425dc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc8], eax
test eax, eax
je 0x4148b8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425dc4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4148e0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4148d3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4148f5
push 4
pop eax
jmp 0x41499d
cmp dword [ebp - 0x14], edi
je 0x4148f5
push dword [0x425db8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4148da
mov eax, dword [0x425dc4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x414953
cmp dword [0x425dc8], esi
je 0x414953
push eax
call ebx
push dword [0x425dc8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414953
test eax, eax
je 0x414953
call ecx
test eax, eax
je 0x414948
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414948
test byte [ebp - 8], 1
jne 0x414953
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x414983
mov eax, dword [0x425dbc]
cmp eax, esi
je 0x414980
push eax
call ebx
test eax, eax
je 0x414980
call eax
mov edi, eax
test edi, edi
je 0x414980
mov eax, dword [0x425dc0]
cmp eax, esi
je 0x414980
push eax
call ebx
test eax, eax
je 0x414980
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x425db8]
call ebx
test eax, eax
je 0x41499b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41499d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e855
leave
ret
Function at 0x403820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0x47], 0
je 0x4039b4
movaps xmm5, xmmword [0x503740]
lea ecx, [ebx + 8]
movaps xmm6, xmmword [0x503a40]
mov edx, 0xfffffffe
movups xmm4, xmmword [0x5037a0]
mov dword [ebp - 8], ecx
sub edx, ebx
push esi
mov ecx, 0xfffffffc
mov dword [ebp - 4], 0xfffffff7
sub ecx, ebx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, 0xfffffffb
sub edi, ebx
mov esi, 0xfffffffd
sub esi, ebx
mov dword [ebp - 0x10], edi
mov ecx, 0xfffffff3
mov dword [ebp - 0x18], esi
sub ecx, ebx
xor eax, eax
sub dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
movd xmm0, eax
add ecx, ebx
pshufd xmm1, xmm0, 0
add edi, ebx
movd xmm0, dword [ebx - 8]
paddd xmm1, xmm6
punpcklbw xmm0, xmm0
add eax, 0x10
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm3, edi
xorps xmm1, xmm0
mov edi, dword [ebp - 0x10]
andps xmm1, xmm4
movd xmm0, ecx
mov ecx, dword [ebp - 4]
packuswb xmm1, xmm1
add ecx, ebx
packuswb xmm1, xmm1
movd dword [ebx - 8], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx - 4]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm4
lea ecx, [edx + ebx]
packuswb xmm1, xmm1
lea edx, [esi + ebx]
mov esi, dword [ebp - 0xc]
packuswb xmm1, xmm1
add esi, ebx
movd dword [ebx - 4], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm2, ecx
xorps xmm1, xmm0
mov ecx, dword [ebp - 0x1c]
andps xmm1, xmm4
movd xmm0, edx
mov edx, dword [ebp - 0x14]
punpckldq xmm3, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebx], xmm1
movd xmm0, dword [ebx + 4]
punpcklbw xmm0, xmm0
movd xmm1, esi
mov esi, dword [ebp - 0x18]
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [ebx + 4], xmm3
add ebx, 0x10
cmp eax, 0x40
jb 0x403894
mov ebx, dword [ebp - 0x20]
pop edi
pop esi
cmp eax, 0x46
jae 0x4039b0
lea edx, [ebx + eax]
lea ecx, [eax - 9]
inc eax
xor byte [edx], cl
cmp eax, 0x46
jb 0x4039a2
mov byte [ebx + 0x47], 0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4039c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0xa], 0
je 0x4039e2
xor edx, edx
lea ecx, [edi + edx]
lea eax, [edx - 9]
inc edx
xor byte [ecx], al
cmp edx, 9
jb 0x4039d0
mov byte [edi + 0xa], 0
mov esi, dword [ebp + 8]
lea ecx, [edi + 9]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp edi, ecx
je 0x403a1b
push 9
push edi
mov ecx, esi
call fcn.00406160
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4