joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d24b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d2517
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4d2500
jne 0x4d2517
cmp dword [esp + 8], 0
jbe 0x4d2517
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d6fd3
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004d6fd3
add esp, 0x118
ret

Function at 0x4d2530
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d2585
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d6fd3
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004d6fd3
add esp, 0x118
ret
Function at 0x4d46b0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x258]
sub esp, 0x258
push 0xffffffffffffffff
push 0x5172e9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x254], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x260]
xor eax, eax
mov edi, dword [ebp + 0x264]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x18]
push 0xa
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
push str.config.ini
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.0040ab90
mov byte [ebp - 4], 2
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push edi
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
lea eax, [ebp]
push eax
call fcn.004140d0
add esp, 4
test al, al
je 0x4d47dc
push 0x20a
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
cmovae eax, dword [ebp]
push eax
push 0x104
lea eax, [ebp + 0x48]
push eax
push 0x528a44
push str.Version
push str.Plugin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp + 0x48]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d47c0
sub ecx, edx
lea eax, [ebp + 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.0040ab90
cmp dword [ebp + 0x40], 0
jne 0x4d480b
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x528a44
mov word [esi], ax
call fcn.0040ab90
mov dword [ebp - 0x10], 1
jmp 0x4d4849
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.00418310
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, eax
push 1
push 0x52a89c
call fcn.0040c160
push eax
mov ecx, esi
call fcn.0040a8b0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.0040a7c0
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.0040a7c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.0040a7c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x254]
xor ecx, ebp
call fcn.004d6fd3
lea esp, [ebp + 0x258]
pop ebp
ret
Function at 0x4d4b10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.004d98b0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4d4b82
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4d4b9a
mov eax, dword [esp + 4]
test eax, eax
je 0x4d4b82
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004d6fd3
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d4ba2
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0040ab90
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x4d4bce
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.004d6fd3
add esp, 0x418
ret
Function at 0x4d54e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5174d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5500a4]
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 eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4d5527
xor al, al
jmp 0x4d5607
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004d52b0
test al, al
je 0x4d55b8
cmp byte [ebp + 0x14], 0
je 0x4d557b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00412e10
add esp, 8
test al, al
je 0x4d55b8
mov bl, 1
jmp 0x4d55f6
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4d5585
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x4d55b5
test edx, edx
je 0x4d55b1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4d55b5
add ecx, 2
sub edx, 1
jne 0x4d55a0
mov bl, 1
jmp 0x4d55f6
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x4d55c8
mov byte [eax + 1], 1
mov bl, 1
jmp 0x4d55f6
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4d55d3
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4d55db
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4d55b1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7c0
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.004d6fd3
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4d5650
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x5500a4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x550010], 0
jne 0x4d56d2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d56b3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.0040ab90
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004d6fd3
add esp, 0x214
ret
Function at 0x4d5780
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x517508
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5521c4]
test eax, eax
jle 0x4d57d1
inc eax
mov dword [0x5521c4], eax
mov al, 1
jmp 0x4d58c3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041c2d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041ce90
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041c350
test bl, bl
je 0x4d58b3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d58b3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4d58ac
inc dword [0x5521c4]
mov eax, dword [edi]
test eax, eax
je 0x4d5856
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x550028], 0
mov dword [ebp - 0x10], 0
jne 0x4d58ac
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x550018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040a760
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4d58c1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d6fd3
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x4f6ad3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f6793
Function at 0x417c10
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
push edi
push str.Shell32.lib
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call sub.MPR.dll_WNetCloseEnum
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetACP]
test edi, edi
mov dword [0x4c6cdc], eax
je 0x417c92
test esi, esi
je 0x417c81
mov edx, dword [0x4c5abc]
push 0x4c57ac
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [0x4c6cdc]
pop edi
pop esi
add esp, 8
ret

Function at 0x43a08d
Capabilities:
Encode data using xor

Disassembly:
xlatb
lodsd eax, dword [esi]
stc
cmp eax, 0x5a47c4f7
adc byte [ecx + 0x72], 0x64
lea edi, es:[eax + edx*2]
inc esi
dec ebx
je 0x43a0ce
cwde
pop ecx
add dl, byte [ecx + 0x5c8ec7dd]
mov esp, 0x1e1f754b
xlatb
mov ebx, 0x90ea7553
xchg edx, eax
stosb byte es:[edi], al
idiv dword [edx]
xor edx, dword [eax]
push edx
aaa
jb 0x43a0be
push ebx
add dword [ebx - 0x6e], esp
push edx
xor byte [edx], ah
xchg edi, eax
cld
arpl word [esi + 0x51], cx
mov eax, dword [0x96c05112]
xchg esi, eax
or al, 0x13
and dl, ah
test dh, bl
clc
adc byte [ecx + 0x39], al
xor dword [edx + 0x3d18006d], edi
mov byte [esi], ch
fistp dword [edi + 0x692b42f8]
jge 0x43a0c7
enter 0xfffffffffffffa61, 0xffffffffffffff99
mov ebx, 0x7c5326a7
mov cl, 0x65
arpl bp, sp
xchg edi, eax
add al, 0xaa
nop
push ds
adc al, 0x5e
pushal
sbb eax, esi
sal dword [0xe415e2fb], 0xc3
jge 0x43a0b6
or eax, 0x36b07949
inc ecx
ror dword [esi - 0x262358ac], 1
fcmovu st(0), st(2)
cmp eax, 0x2dba1eaf
mov edx, 0xf34ecc87
xor byte [esi + 0x189a3b6], ah
jle 0x43a0f2
bound esi, qword [ebx - 0x34]
and ch, byte [ecx]
mov dl, 0x84
clc
popal
das
mov dh, 0xb8
nop
pop esp
jne 0x43a17c
xor ah, cl
inc eax
push ecx
and eax, dword [ebx + 0x73]
dec edi
mov bh, 0xf0
xchg ecx, eax
ret
loope 0x43a1b8
loop 0x43a1f4
inc ebx
mov bh, 0xbd
cmp ch, dl
and byte [esi + edi*2 + 0x20], 0x70
cld
call 0xd526ef1b
and dl, dh
shr eax, 1
pushfd
mov bl, 0xc5
push edx
add dword [eax + 0xbe3b2b0], ecx
push edx
xlatb
xchg ebx, eax
mov esp, 0xad9082b2
adc dword es:[eax + 0x26], edx
hlt
aaa
push ecx
add eax, 0x5020589b
xor eax, 0xc1c992d4
jns 0x43a1d9
jmp 0xd97d180f
wait
jp 0x43a1e1
adc dword [eax - 0x7fef1ea5], 0xffffff9c
ret
add byte [esi - 0x5723dfcc], al
jo 0x43a1c6
xor dl, dl
xor byte [ebx - 0x2e], ah
ret
mov cl, 0x56
insd dword es:[edi], dx
adc dword [edx - 0x51], eax
mov dh, 0x61
jnp 0x43a1cd
lodsb al, byte [esi]
sti
xor byte [ebp + 0x487f82e8], dl
jge 0x43a21c
dec ecx
xchg byte [esi - 0x6f2c14ee], cl
lahf
retf 0xee3f
rcr ebx, cl
invalid
Function at 0x4ba3b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2378
cmp edx, dword [eax]
je 0x4ba3d7
add eax, 8
inc ecx
cmp eax, 0x4c2408
jl 0x4ba3c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2378]
jne 0x4ba505
mov eax, dword [0x4c6cfc]
cmp eax, 1
je 0x4ba4df
test eax, eax
jne 0x4ba408
cmp dword [0x4c22a4], 1
je 0x4ba4df
cmp edx, 0xfc
je 0x4ba505
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba43f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bada0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba482
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf90c
push edi
call fcn.004bd100
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bada0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004badb0
lea eax, [ebp - 0xa0]
push 0x4bf8ec
push eax
call fcn.004badb0
push dword [esi + 0x4c237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004badb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd074
add esp, 0x2c
pop edi
jmp 0x4ba505
lea eax, [ebp + 8]
lea esi, [esi + 0x4c237c]
push 0
push eax
push dword [esi]
call fcn.004bb230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x5976eb
Capabilities:
Encode data using xor

Disassembly:
js 0x5976c0
xchg ebp, eax
push edx
push ebp
ret
inc ebp
sbb dh, byte [0x70e8f85e]
cmp dh, bh
and byte [esi + 6], cl
sub eax, 0x72a2cf6d
outsb dx, byte [esi]
dec eax
out 0x6b, eax
sub dword [0xf1d406c8], edi
int1
int1
jge 0x5976e2
iretd
dec ecx
adc al, 0x27
xchg ecx, eax
pop edi
inc edi
cdq
xor ebx, dword [eax]
sbb byte [edx - 0x5b], cl
push es
jbe 0x59768d
cld
mov esp, 0x7f84ce9a
sub dword [edx], 0xaed016e2
mov al, byte [0xde19e922]
xchg byte [esi], dl
dec eax
cmp byte [0x342feec1], dl
mov cs, word [eax - 0x3ff58aa4]
xor byte [edi], ah
clc
into
test byte [edi - 0x7f], bh
sub ah, dl
push ss
shr byte [esi + 0x19e922a0], 1
fiadd word [esi + 0x15384816]
shr esi, 0x2f
xor al, 0x8e
mov byte [ebp + esi*2 + 0xa], bl
sal byte [eax], 0x24
clc
inc ecx
cmp dword [ebx - 0x3f95fc5f], esi
insd dword es:[edi], dx
insd dword es:[edi], dx
jecxz 0x5976f4
fistp qword [ebx - 0xfc87695]
mov dword [esi - 0x79fde2ac], eax
adc byte [eax], al
stosb byte es:[edi], al
fstp qword [ebp + 0x3c874ff7]
adc esi, dword [ebx + 0x72ceb032]
xchg edi, eax
mov bl, 0x83
sbb dword [0xde1b7e7e], 0xffffff89
or eax, 0x666a80e7
Function at 0x402f68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f2c0]
jne 0x402f72
repz ret
jmp fcn.004072e3

Function at 0x408a52
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f2c0]
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.00404cd9
and dword [ebp - 0x14], 0
cmp dword [0x410af8], 0
mov dword [ebp - 0x18], eax
jne 0x408b05
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408bad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408bad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x410af8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x410afc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x410b00], eax
call edi
push eax
call esi
mov dword [0x410b08], eax
test eax, eax
je 0x408b05
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x410b04], eax
mov eax, dword [0x410b04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408b5e
cmp dword [0x410b08], ecx
je 0x408b5e
push eax
call esi
push dword [0x410b08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408b5e
test ebx, ebx
je 0x408b5e
call edi
test eax, eax
je 0x408b55
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408b55
test byte [ebp - 8], 1
jne 0x408b5e
or dword [ebp + 0x10], 0x200000
jmp 0x408b91
mov eax, dword [0x410afc]
cmp eax, dword [ebp - 0x18]
je 0x408b91
push eax
call esi
test eax, eax
je 0x408b91
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408b91
mov eax, dword [0x410b00]
cmp eax, dword [ebp - 0x18]
je 0x408b91
push eax
call esi
test eax, eax
je 0x408b91
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x410af8]
call esi
test eax, eax
je 0x408bad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408baf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f68
leave
ret
Function at 0x40870b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00408373
push eax
push esi
push dword [ebp + 8]
call fcn.00408328
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00408373
push eax
push esi
push dword [ebp + 8]
call fcn.00408328
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
invalid

Function at 0x408787
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb

Function at 0x408a31
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408a3a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408a58
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x408ab6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x408a9d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x408aa6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x408ab0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x408a92
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408a1c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x408b03
dec eax
je 0x408afa
sub eax, 3
je 0x408af1
mov dword [ebp - 4], 0x40
jmp 0x408b20
mov dword [ebp - 4], 4
jmp 0x408b06
mov dword [ebp - 4], 0x20
jmp 0x408b06
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x408b52
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x408ad2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00408363
mov edx, 0xffc5b767
jne 0x408b5d
push 1
push esi
call edi
mov eax, esi
jmp 0x408b5e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408a54
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408a3a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408a58
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x408ab6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x408a9d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x408aa6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x408ab0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x408a92
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408a1c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x408b03
dec eax
je 0x408afa
sub eax, 3
je 0x408af1
mov dword [ebp - 4], 0x40
jmp 0x408b20
mov dword [ebp - 4], 4
jmp 0x408b06
mov dword [ebp - 4], 0x20
jmp 0x408b06
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x408b52
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x408ad2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00408363
mov edx, 0xffc5b767
jne 0x408b5d
push 1
push esi
call edi
mov eax, esi
jmp 0x408b5e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret