joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x3053700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0305378f
jae 0x305370e
xor ecx, ecx
call fcn.0305378f
jae 0x305373d
xor eax, eax
call fcn.0305378f
jae 0x305374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0305378f
adc al, al
jae 0x305372f
jne 0x3053779
stosb byte es:[edi], al
jmp 0x3053711
call fcn.0305379b
sub ecx, ebx
jne 0x3053756
call fcn.03053799
jmp 0x3053775
lodsb al, byte [esi]
shr eax, 1
je 0x3053783
adc ecx, ecx
jmp 0x3053772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03053799
cmp eax, 0x7d00
jae 0x3053772
cmp ah, 5
jae 0x3053773
cmp eax, 0x7f
ja 0x3053774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3053711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Delete file
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5e4
mov eax, dword [0x40e060]
xor eax, esp
mov dword [esp + 0x5e0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [esp + 0x48]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
push 0x479c
call fcn.004028b5
pop ecx
cmp eax, edi
je 0x401056
push ebx
mov esi, eax
call fcn.0040117a
mov esi, eax
jmp 0x401058
xor esi, esi
call fcn.00401383
push 5
push dword [esi + 0x417c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x401089
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x401073
call sub.WS2_32.dll_WSACleanup
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x1dc], ax
lea eax, [esp + 0x1de]
push edi
push eax
call fcn.00406a70
add esp, 0xc
lea eax, [esp + 0x1d8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push esi
mov word [esp + 0x3e4], ax
lea eax, [esp + 0x3e6]
push edi
push eax
call fcn.00406a70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x3e4]
push str.DVR__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3e0]
push eax
lea eax, [esp + 0x1dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x1d8]
mov dword [esp + 0x14], eax
mov eax, 0x614
mov word [esp + 0x1c], ax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 3
mov dword [esp + 0x1c], edi
mov dword [esp + 0x22], edi
mov dword [esp + 0x26], edi
mov dword [esp + 0x2a], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x5ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040283c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40117a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 8]
push ebx
xor eax, eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [esi + 0x3d30], eax
mov dword [esi + 0x3d34], eax
mov dword [esi + 0x417c], eax
mov ebx, 0x40bb8c
lea eax, [esi + 0x3d38]
push ebx
push eax
mov dword [esi], vtable.MainWindow.0
mov dword [esi + 0x4178], ecx
call edi
lea eax, [esi + 0x3f40]
push ebx
push eax
call edi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov byte [esi + 0x4148], 0
mov byte [esi + 0x4149], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
jle 0x401276
mov dword [ebp - 8], 2
mov eax, dword [ebp - 0x10]
push str._module
push dword [eax + ebx*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x401236
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x40126d
mov eax, dword [ebp - 0x10]
inc ebx
push dword [eax + ebx*4]
inc dword [ebp - 8]
lea eax, [esi + 0x3d38]
push eax
call edi
mov byte [esi + 0x4148], 1
jmp 0x40126d
mov eax, dword [ebp - 0x10]
push str._package
push dword [eax + ebx*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x40126d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jge 0x40126d
mov eax, dword [ebp - 0x10]
inc ebx
push dword [eax + ebx*4]
inc dword [ebp - 8]
lea eax, [esi + 0x3f40]
push eax
call edi
mov byte [esi + 0x4149], 1
inc ebx
inc dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jl 0x4011fd
push 0x40bb8c
lea eax, [esi + 0x4180]
push eax
call edi
push str.Admin
lea eax, [esi + 0x438c]
push eax
mov dword [esi + 0x4388], 0x50
call edi
push str.123456
lea eax, [esi + 0x4594]
push eax
call edi
push 0
mov byte [esi + 0x414a], 0
mov byte [esi + 0x415c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x3e8
push dword [ebp + 8]
mov dword [esi + 0x4160], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
push dword [esi + 0x4160]
lea edi, [esi + 0x4164]
mov dword [edi], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x4168], eax
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [edi]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x24]
and dword [esi + 0x4174], 0
mov dword [esi + 0x416c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x4170], eax
pop edi
mov byte [esi + 4], 0
mov eax, esi
pop ebx
leave
ret 4
Function at 0x401827
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40e060]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00406a70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x4178]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
call fcn.0040148c
test eax, eax
jne 0x401898
inc eax
jmp 0x4018fc
push edi
lea eax, [esi + 0x3d38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CreateDVRobot
push eax
mov dword [esi + 0x3d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea edi, [esi + 0x3d34]
mov dword [edi], eax
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1c]
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [esi + 0x4594]
push edx
lea edx, [esi + 0x438c]
push edx
push 0x78
push dword [esi + 0x4388]
lea edx, [esi + 0x4180]
push edx
lea edx, [esi + 0x3f40]
push edx
push dword [esi + 0x417c]
call dword [eax + 0x10]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040283c
leave
ret

Function at 0x401908
Capabilities:
Create thread
Delete file

Disassembly:
push ebx
push ebp
push edi
lea ebp, [esi + 0x3d38]
push ebp
mov byte [esi + 0x415c], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov dword [esi + 0x3d30], eax
cmp eax, ebx
je 0x401984
push str.CreateDVRobot
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea edi, [esi + 0x3d34]
mov dword [edi], eax
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x1c]
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [esi + 0x4594]
push edx
lea edx, [esi + 0x438c]
push edx
push 0x78
push dword [esi + 0x4388]
lea edx, [esi + 0x4180]
push edx
lea edx, [esi + 0x3f40]
push edx
push dword [esi + 0x417c]
call dword [eax + 0x10]
cmp eax, ebx
jne 0x401984
mov byte [esi + 0x415c], bl
cmp byte [esi + 0x415c], bl
je 0x401a15
mov ecx, dword [esi + 0x3d34]
cmp ecx, ebx
je 0x4019b1
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esi + 0x3d34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x3d34], ebx
push dword [esi + 0x3d30]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0x4148]
mov dword [esi + 0x3d30], ebx
cmp byte [edi], bl
je 0x4019d4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [edi], bl
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebp, 0x40bb8c
jne 0x4019ed
push ebp
lea eax, [esi + 0x3d38]
push eax
call edi
cmp byte [esi + 0x4149], bl
jne 0x4019ff
push ebp
lea eax, [esi + 0x3f40]
push eax
call edi
push ebx
push ebx
push esi
push 0x4021b6
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4174], eax
pop edi
pop ebp
pop ebx
ret
Function at 0x401a19
Capabilities:
Delete file

Disassembly:
push esi
mov esi, eax
mov ecx, dword [esi + 0x3d34]
test ecx, ecx
je 0x401a3e
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [esi + 0x3d34]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi + 0x3d34], 0
push edi
lea edi, [esi + 0x3d30]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [edi], 0
cmp byte [esi + 0x4148], 0
pop edi
jne 0x401a67
add esi, 0x3d38
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x401a69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x40e060]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
and dword [eax + 0x10], 0
and dword [ebp - 0x6c], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [eax + 0x148c]
mov dword [ebp - 0x80], eax
add eax, 0x1464
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], eax
mov ebx, connect
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call fcn.00406a70
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push str.Address_d
push eax
call esi
and dword [ebp - 0x78], 0
add esp, 0x18
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0xffffeb88
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push str.SoftwareDVRemoteDesktop
push ebx
mov dword [ebp - 0x70], 0x208
call edi
test eax, eax
jne 0x401bcd
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push str.Port_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push str.SoftwareDVRemoteDesktop
push ebx
mov dword [ebp - 0x70], 4
call edi
test eax, eax
jne 0x401bcd
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push str.User_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push str.SoftwareDVRemoteDesktop
push ebx
mov dword [ebp - 0x70], 0x208
call edi
test eax, eax
jne 0x401bcd
push dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push str.Password_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x1450
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push str.SoftwareDVRemoteDesktop
push ebx
mov dword [ebp - 0x70], 0x208
call edi
mov eax, dword [ebp - 0x80]
inc dword [eax + 0x10]
inc dword [ebp - 0x6c]
add dword [ebp - 0x7c], 4
add dword [ebp - 0x74], 0x208
cmp dword [ebp - 0x6c], 0xa
jl 0x401aba
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040283c
add ebp, 0x1a4
leave
ret 4
Function at 0x402113
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40e060]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00406a70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x4178]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x40218e
mov ecx, esi
call fcn.0040148c
test eax, eax
jne 0x402195
mov al, byte [esi + 4]
test al, al
je 0x402183
push 0
push 0
push 0x404
push dword [esi + 0x417c]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040283c
leave
ret

Function at 0x402735
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40e060]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
pop edi
cmp eax, 0xffffffff
jne 0x402785
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4027bc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call sub.WS2_32.dll_connect
test eax, eax
jl 0x4027bc
push 4
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
inc eax
push eax
push 6
push dword [ebx]
mov dword [ebp - 0x18], eax
call sub.WS2_32.dll_setsockopt
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040283c
leave
ret 4
xor al, al
jmp 0x4027ae

Function at 0x4027c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jle 0x4027ee
mov eax, dword [ebp + 0x10]
sub eax, esi
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_recv
test eax, eax
jle 0x4027f5
add esi, eax
cmp esi, dword [ebp + 0x10]
jl 0x4027cb
mov al, 1
pop esi
pop ebp
ret 0xc
xor al, al
jmp 0x4027f0

Function at 0x40283c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e060]
jne 0x402846
repz ret
jmp fcn.00402c7a
Function at 0x406cfc
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.004035d1
and dword [ebp - 4], 0
cmp dword [0x40f680], 0
mov ebx, eax
jne 0x406dad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406e5e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406e5e
push eax
call fcn.0040355f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40f680], eax
call esi
push eax
call fcn.0040355f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40f684], eax
call esi
push eax
call fcn.0040355f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40f688], eax
call esi
push eax
call fcn.0040355f
pop ecx
mov dword [0x40f690], eax
test eax, eax
je 0x406dad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040355f
pop ecx
mov dword [0x40f68c], eax
mov eax, dword [0x40f68c]
cmp eax, ebx
je 0x406e05
cmp dword [0x40f690], ebx
je 0x406e05
push eax
call fcn.004035da
push dword [0x40f690]
mov esi, eax
call fcn.004035da
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406e05
test edi, edi
je 0x406e05
call esi
test eax, eax
je 0x406dfc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406dfc
test byte [ebp - 0xc], 1
jne 0x406e05
or dword [ebp + 0x10], 0x200000
jmp 0x406e3e
mov eax, dword [0x40f684]
cmp eax, ebx
je 0x406e3e
push eax
call fcn.004035da
pop ecx
test eax, eax
je 0x406e3e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406e3e
mov eax, dword [0x40f688]
cmp eax, ebx
je 0x406e3e
push eax
call fcn.004035da
pop ecx
test eax, eax
je 0x406e3e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f680]
call fcn.004035da
pop ecx
test eax, eax
je 0x406e5e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406e60
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, 0x100c
call fcn.0041b500
push ebx
push ebp
mov ebp, dword [esp + 0x1018]
push esi
mov esi, dword [esp + 0x1020]
push edi
push 1
push 0
push 0
push ebp
mov dword [esp + 0x20], 0
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40108c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x4010f7
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x1000
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4010f7
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4010f7
xor ecx, ecx
test edi, edi
jbe 0x4010db
mov eax, dword [esi]
xor edx, edx
mov dl, byte [esp + ecx + 0x1c]
mov ebx, eax
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4580e0]
xor edx, eax
inc ecx
cmp ecx, edi
mov dword [esi], edx
jb 0x4010b6
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x1000
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4010a8
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
push 0
push 0
not edx
push eax
push ebp
mov dword [esi], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret
Function at 0x402889
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4451f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.004033b0
mov eax, dword [0x45d440]
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
push ecx
mov bl, 1
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.DDir
mov byte [esp + 0x40], bl
call fcn.0042d315
push ecx
lea edi, [esi + 0x1bc]
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
mov byte [esp + 0x44], 2
call fcn.0042d01c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], bl
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d3f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.0042d3e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.0042d2a7
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x402960
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Complete
call fcn.0042d315
push ecx
mov byte [esp + 0x40], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.0042d01c
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x44], bl
call fcn.0040d3f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 5
call fcn.0042d3e0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
call fcn.0042d2a7
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x1c0]
call fcn.0042d3e0
lea edx, [esi + 0x118]
lea ecx, [esp + 0x20]
push edx
call fcn.0042d01c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x3c], 6
call fcn.0042d01c
mov ecx, dword [0x45d440]
mov dword [esp + 0xc], ecx
mov al, byte [esp + 0x40]
mov byte [esp + 0x38], 8
test al, al
je 0x4029c8
push str.ST4DDir
lea ecx, [esp + 0x10]
call fcn.0042d430
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc]
push edx
call fcn.0042d6bf
jmp 0x402a45
push str.ST3DDir
lea ecx, [esp + 0x10]
call fcn.0042d430
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
call fcn.0042d6bf
push str.cloc
lea ecx, [esp + 0x10]
call fcn.0042d683
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4586cc
call fcn.0042d315
push ecx
mov byte [esp + 0x40], 9
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
call fcn.0042d01c
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 8
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d3f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0xa
call fcn.0042d6bf
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 8
call fcn.0042d2a7
lea edx, [esp + 0xc]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0042d4d6
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0
push edx
mov ecx, esi
mov byte [esp + 0x50], 0xb
call fcn.0040f46d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 8
call fcn.0042d2a7
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 7
call fcn.0042d2a7
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 6
call fcn.0042d2a7
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.0042d2a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0042d2a7
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00405620
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4