joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55bc50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e638
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004157d7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x55bc92
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x55bcca
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00401420
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
push 0xa
push edi
call fcn.0053afd0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x55bd0f
mov edi, edi
mov ecx, ebx
sub ecx, edi
sar ecx, 1
inc ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004015a0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [ebx + 2]
push 0xa
push edi
call fcn.0053afd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x55bce0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55bd30
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x55bda0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x54
push edi
mov edi, ecx
test eax, eax
jne 0x55bdc9
push 0x44
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0053af40
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
movzx eax, byte [ebp + 0x18]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x55be01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x1c
push esi
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.004063b0
push dword [ebp - 0xc]
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x55c0e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e710
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x55c185
mov dword [esi], eax
push str._PSRegistry::SetValue_
lea eax, [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00406580
mov dword [ebp - 4], 0
push dword [eax]
push 0x585068
push 0x10000
call fcn.0055b110
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55c171
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x55ccf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e958
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x55cd55
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x55cd79
xor bl, bl
jmp 0x55cdc7
mov esi, dword [ebp - 0x20]
push esi
mov ecx, ebx
mov dword [ebp + 8], 0
call fcn.0055c840
mov eax, dword [ebx]
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x10]
test eax, eax
mov esi, dword [esi]
setne bl
mov ecx, dword [esi + 0xc]
cmp dword [ebp + 8], ecx
mov eax, dword [esi + 4]
cmovb ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov byte [ecx + eax], 0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov byte [edx + ecx + 1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004063b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55cdf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e988
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, byte [ebp + 0x14]
xor eax, eax
test bl, bl
setne al
push 0
push 0x80
lea eax, [eax*2 + 2]
push eax
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x55ce5e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test bl, bl
je 0x55ce90
push 2
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x55ceae
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x55ceb2
xor bl, bl
jmp 0x55ceb4
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004063b0
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 0x10
Function at 0x565570
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
push edi
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmp esi, 4
jb 0x5655cf
mov edx, esi
shr edx, 2
lea ebx, [ebx]
xor eax, dword [edi]
sub esi, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
add edi, 4
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5bd900]
dec edx
jne 0x565590
test esi, esi
je 0x5655eb
movzx ecx, byte [edi]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x5bd900]
lea edi, [edi + 1]
dec esi
jne 0x5655d3
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
ret 8
Function at 0x401830
Capabilities:
Create directory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
je 0x4018c9
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__getcwd
test eax, eax
mov ebx, eax
je 0x401951
mov dword [esp], esi
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x401938
mov dword [esp], edi
call fcn.004051b0
mov dword [esp + 4], 0
mov dword [esp], eax
mov ebp, eax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
jne 0x40191b
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00403d60
mov dword [esp], ebx
call sub.msvcrt.dll__chdir
test eax, eax
jne 0x401902
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll__mkdir
add eax, 1
jne 0x401850
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0x11
je 0x401850
mov eax, dword [0x4781e8]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cannot_make_directory__s
mov dword [esp], eax
call fcn.004077a0
mov eax, dword [0x4781e8]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Cannot_change_directory_to__s
mov dword [esp], eax
call fcn.004077a0
mov eax, dword [0x4781e8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], str.output_file__s_already_exists_in_folder__s
mov dword [esp], eax
call fcn.004077a0
mov eax, dword [0x4781e8]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Cannot_change_directory_to__s
mov dword [esp], eax
call fcn.004077a0
mov eax, dword [0x4781e8]
mov dword [esp + 4], str.Cannot_get_current_directory_name
mov dword [esp], eax
call fcn.004077a0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
test ebx, ebx
je 0x4019b9
nop
lea esi, [esi]
mov eax, dword [ebp]
add ebp, 8
mov edx, dword [ebp - 4]
mov ecx, dword [esp + 0x40]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
call edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
sub ebx, 1
jne 0x401990
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403030
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [0x4770c0]
mov dword [esp + 8], 1
mov dword [esp], 0x4770dc
mov dword [esp + 0xc], eax
lea eax, [ebx*4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x40306d
mov dword [0x4770d4], 1
add dword [0x4770c4], ebx
sub dword [0x4770c8], ebx
add esp, 0x18
pop ebx
ret
Function at 0x4030d0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x4770c8]
mov edx, dword [0x4770cc]
sub edx, ecx
cmp dword [0x4770d8], 0
jle 0x403186
push ebx
mov ebx, eax
sub esp, 0x18
cmp edx, eax
jae 0x40315b
add dword [0x4770c4], ecx
test edx, edx
je 0x40310b
mov eax, dword [ecx*4 + 0x4770dc]
mov dword [0x4770dc], eax
mov eax, dword [0x4770c0]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [0x4770c8], 0
mov dword [esp + 0xc], eax
lea eax, [edx*4 + 0x4770dc]
mov dword [esp], eax
mov dword [0x4770cc], edx
call sub.msvcrt.dll_fread
shr eax, 2
add eax, dword [0x4770cc]
cmp ebx, eax
mov dword [0x4770cc], eax
ja 0x403170
mov ecx, dword [0x4770c8]
add ebx, ecx
mov dword [0x4770c8], ebx
lea eax, [ecx*4 + 0x4770dc]
add esp, 0x18
pop ebx
ret
sub ebx, eax
xor eax, eax
add dword [0x4770d0], ebx
mov dword [0x4770cc], 0
jmp 0x40316a
xor eax, eax
ret
Function at 0x4059d0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, 0x7fffffff
sub esp, 0x18
mov dword [esp], str.COLUMNS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4059f6
mov dword [esp], eax
call sub.msvcrt.dll_atoi
test eax, eax
cmovg ebx, eax
add esp, 0x18
mov eax, ebx
pop ebx
ret

Function at 0x4077a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push ebx
sub esp, 0x84
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x64]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [0x4781e4]
mov dword [esp], eax
call fcn.00413180
lea eax, [ebp - 0x68]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 2
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00406fa0
mov dword [esp + 8], str.fatal_error
mov dword [esp + 4], 0x566
mov dword [esp], 0x467383
call fcn.00406280
nop
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push ebx
sub esp, 0x84
mov dword [ebp - 0x68], eax
mov eax, dword [0x4781e8]
lea ebx, [ebp - 0x64]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [0x4781e4]
mov dword [esp], eax
call fcn.00413180
lea eax, [ebp - 0x68]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0xd
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00406fa0
mov dword [esp + 8], str.internal_error_no_backtrace
mov dword [esp + 4], 0x585
mov dword [esp], 0x467383
call fcn.00406280

Function at 0x407880
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4078a3
cmp eax, dword [ebx + 0x10]
je 0x4078a3
sub eax, 1
cmp dword [ebx + 0x18], eax
jae 0x4078a3
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x40789b
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40789b
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
cmp ecx, edx
je 0x4078d2
mov eax, dword [ebx + 0xc]
mov esi, ecx
jmp 0x4078f7
lea eax, [ecx + ecx]
test ecx, ecx
mov esi, 0x1000
cmovne esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00439240
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 8]
sub esi, edx
add edx, eax
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fread
mov esi, eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
xor eax, eax
test edx, edx
jne 0x40789d
add dword [ebx + 0x14], esi
test esi, esi
setne al
jmp 0x40789d
Function at 0x44d880
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0044d8e0
Function at 0x44e270
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x44e2a8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x44e29e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x44e2aa
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x44e290
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4524fe
cmp byte [ebx], 0
je 0x4524c8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x4524e0
test al, 0x10
je 0x4524c8
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4523b4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x4524ef
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x452443
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x452443
cmp al, 0x5c
je 0x452443
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x452445
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x4524c0
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x4524c0
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x4524c0
Function at 0x11cfb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x11db520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.011c6e52
and dword [ebp - 0x14], 0
cmp dword [0x121d558], 0
mov dword [ebp - 0x18], eax
jne 0x11cfc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x11cfcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x11cfcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x121d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x121d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x121d560], eax
call edi
push eax
call esi
mov dword [0x121d568], eax
test eax, eax
je 0x11cfc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x121d564], eax
mov eax, dword [0x121d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x11cfc78
cmp dword [0x121d568], ecx
je 0x11cfc78
push eax
call esi
push dword [0x121d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x11cfc78
test ebx, ebx
je 0x11cfc78
call edi
test eax, eax
je 0x11cfc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x11cfc6f
test byte [ebp - 8], 1
jne 0x11cfc78
or dword [ebp + 0x10], 0x200000
jmp 0x11cfcab
mov eax, dword [0x121d55c]
cmp eax, dword [ebp - 0x18]
je 0x11cfcab
push eax
call esi
test eax, eax
je 0x11cfcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x11cfcab
mov eax, dword [0x121d560]
cmp eax, dword [ebp - 0x18]
je 0x11cfcab
push eax
call esi
test eax, eax
je 0x11cfcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x121d558]
call esi
test eax, eax
je 0x11cfcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x11cfcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.011c13cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x45da90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x38000]
push edi
or ebp, 0xffffffff
jmp 0x45dab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45dab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45daa8
mov eax, 1
add ebx, ebx
jne 0x45dacb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45dac0
jne 0x45dadc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dac0
xor ecx, ecx
sub eax, 3
jb 0x45daf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45db62
mov ebp, eax
add ebx, ebx
jne 0x45dafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45db08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45db2c
inc ecx
add ebx, ebx
jne 0x45db18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45db0d
jne 0x45db29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45db0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45db4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45db3d
jmp 0x45daae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45db4c
add edi, ecx
jmp 0x45daae
pop esi
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45dbab
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d2d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45db69
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d2dc]
or eax, eax
je 0x45dba5
mov dword [ebx], eax
add ebx, 4
jmp 0x45db86
call dword [esi + 0x5d2d8]
mov ebp, dword [esi + 0x5d2e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x45dbdf
sub esp, 0xffffff80
jmp 0x401710
Function at 0x9bfc05
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9bfc2c
call fcn.00962138
mov dword [eax], esi
call fcn.00962125
push 0x16
pop esi
mov dword [eax], esi
call fcn.00962d7a
mov eax, esi
jmp 0x9bfc81
test dword [ebp + 0xc], 0xfffffff9
jne 0x9bfc12
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9bfc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0096214b
pop ecx
call fcn.00962125
mov eax, dword [eax]
jmp 0x9bfc81
test al, 0x10
jne 0x9bfc7f
test al, 1
je 0x9bfc7f
test byte [ebp + 0xc], 2
je 0x9bfc7f
call fcn.00962138
mov dword [eax], 5
call fcn.00962125
mov dword [eax], 0xd
jmp 0x9bfc50
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42aa7d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x42aa7d
lcall 0x5de5, 0x8b10c483
jmp int.00969868