joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f962
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x1006fb4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x10087d0c], 0
jne 0x1006fb31
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1006fb2a
xor eax, eax
push ebp
push 0x1006fb23
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x1006fb0c
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1006fb06
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x10086d40]
call fcn.10055b16
mov eax, dword [ebp - 0x24]
call fcn.1005288a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1006fa3a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x10086d44]
call fcn.10055b16
mov eax, dword [ebp - 0x28]
call fcn.1005288a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1006fa6d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x10086d48]
call fcn.10055b16
mov eax, dword [ebp - 0x2c]
call fcn.1005288a
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1006faa0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1006faf2
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x1006fabd
cmp eax, dword [ebp - 0x10]
je 0x1006faee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x1006fad2
cmp eax, dword [ebp - 0x18]
je 0x1006faee
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1006fae7
cmp eax, dword [ebp - 0x20]
je 0x1006faee
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1006faaa
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006fb2a
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x10087d0c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1006fb53
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1005245a
ret
Function at 0x459870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
or ebp, 0xffffffff
jmp 0x459892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x459899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x459888
mov eax, 1
add ebx, ebx
jne 0x4598ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4598bc
jne 0x4598db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4598db
dec eax
add ebx, ebx
jne 0x4598c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4598a0
add ebx, ebx
jne 0x4598d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45992d
xor ecx, ecx
sub eax, 3
jb 0x4598f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x459962
sar eax, 1
mov ebp, eax
jmp 0x4598fe
add ebx, ebx
jne 0x4598fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4598cc
inc ecx
add ebx, ebx
jne 0x45990c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4598cc
add ebx, ebx
jne 0x459919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45990e
jne 0x45992a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45990e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45994c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45993e
jmp 0x45988e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45994c
add edi, ecx
jmp 0x45988e
pop esi
mov edi, esi
mov ecx, 0x2325
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45996a
cmp byte [edi], 0xd
jne 0x45996a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45996f
lea edi, [esi + 0x56000]
mov eax, dword [edi]
or eax, eax
je 0x4599e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a48c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5a570]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45999c
mov ecx, edi
jns 0x4599cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5a578]
or eax, eax
je 0x4599e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4599b9
call dword [esi + 0x5a574]
mov ebp, dword [esi + 0x5a57c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x459a1b
sub esp, 0xffffff80
jmp 0x43109e
Function at 0x49a392
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49a3d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49a3d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49a3d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49a3d1
cmp dword [ecx + 0x74], 0xe
jbe 0x49a3d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49fdf3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x49fe90
push ebx
push esi
call fcn.0049fdbc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0049fd50
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x49fe3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49fe8f
push edi
push eax
call fcn.004a0a10
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x49fe5d
call fcn.0049e8b1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49fe8e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0049fd50
add esp, 0x20
test eax, eax
jne 0x49fe7c
push edi
call fcn.0049e8b1
jmp 0x49fe84
push ebx
call fcn.0049e8b1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4a118d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c4ac0
push 0x4c4ab8
push str.FlsAlloc
push 0x1f
call fcn.004a104c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a11c1
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a7134]
call esi
jmp 0x4a11c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a120b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c4ad0
push 0x4c4ac8
push str.FlsGetValue
push 0x21
call fcn.004a104c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1242
push dword [ebp + 8]
mov ecx, esi
call dword [0x4a7134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a124a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c4ad8
push 0x4c4ad0
push str.FlsSetValue
push 0x22
call fcn.004a104c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a1284
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4a7134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a66e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a670d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a670d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xdc57d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdc57de
pushal
call 0xdc57e4
pop ebp
sub ebp, 0x10
sub ebp, 0x9c57d4
jmp 0xdc57fa
mov eax, 0x9c57d4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0x4b28531e
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc5811
jmp 0xdc5824
xchg ebp, eax
rcl dword [ebp + 0x1e1e2297], cl
push ds
lahf
invalid
Function at 0x1002dcc9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1002e5f7
lea edi, [esi + 0x80]
mov eax, dword [edi]
test eax, eax
je 0x1002dcf2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi], 0
lea edi, [esi + 0x90]
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x18]
call fcn.1002ef00
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x18]
call fcn.1002ef00
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1002dd2e
cmp esi, dword [esp + 0x18]
je 0x1002dd33
call fcn.1005de80
mov ebx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x1c]
jae 0x1002dd7e
test esi, esi
jne 0x1002dd76
call fcn.1005de80
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1002dd52
call fcn.1005de80
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
jne 0x1002dd7a
call fcn.1005de80
cmp ebx, dword [esi + 0x10]
jb 0x1002dd6d
call fcn.1005de80
add ebx, 0x1c
mov dword [esp + 0x14], ebx
jmp 0x1002dd14
mov eax, dword [esi]
jmp 0x1002dd48
mov esi, dword [esi]
jmp 0x1002dd63
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x18]
call fcn.1002ef00
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x10]
call fcn.1002ef00
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push edi
call fcn.1002ee4a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
mov ebx, dword [0x10083094]
xor edi, edi
cmp eax, edi
je 0x1002dde1
push dword [esi + 0x74]
push eax
call ebx
push dword [esi + 0x60]
call dword [0x1008309c]
push dword [esi + 0x70]
call dword [0x10083088]
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x64]
cmp eax, edi
je 0x1002de06
push dword [esi + 0x6c]
push eax
call ebx
push dword [esi + 0x64]
call dword [0x1008309c]
push dword [esi + 0x68]
call dword [0x10083088]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
push edi
push edi
push edi
push edi
lea eax, [esi + 0x24]
push eax
call dword [0x100833f0]
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi + 0x3c], 0xffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002de4e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x5c], edi
je 0x1002de8a
mov ecx, esi
call fcn.1002e7ff
test eax, eax
je 0x1002de8f
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x1002e1e5
push edi
push edi
call fcn.1005dc73
add esp, 0x18
mov dword [esi + 0x78], eax
cmp eax, edi
je 0x1002de8a
push eax
call dword [0x10083128]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0x80]
cmp eax, edi
je 0x1002de8a
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x80]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x38]
push dword [esi + 0x34]
push edi
push edi
push dword [esi + 0x60]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x1002de8a
push edi
push edi
push dword [esi + 4]
call dword [0x100834a0]
xor eax, eax
inc eax
jmp 0x1002de8c

Function at 0x10030743
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x10079d97
call fcn.1005f527
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x1003084f
cmp byte [esi + 0x41], 0
je 0x1003084f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x10030779
xor al, al
jmp 0x10030851
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.100305d7
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.1003064f
mov ecx, eax
call fcn.10030a51
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.1003064f
mov ecx, eax
call fcn.10030a51
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x100307e9
dec eax
je 0x100307ed
dec eax
dec eax
je 0x1003084b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.1002ed50
mov al, bl
jmp 0x10030851
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.1003064f
mov ecx, eax
call fcn.10030a51
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x1003082d
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.1003064f
mov ecx, eax
call fcn.10030a51
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1005e412
add esp, 0x10
cmp edi, eax
jne 0x100307d7
cmp byte [esi + 0x41], 0
je 0x1003084b
test edi, edi
jne 0x10030787
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.100305ff
jmp 0x10030787
mov bl, 1
jmp 0x100307d9
mov al, 1
call fcn.1005f5aa
ret
Function at 0x10071160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
lea edi, [ebp - 0x400]
xor ebx, ebx
mov edx, 0xedb88320
mov eax, ebx
mov ecx, 8
xor esi, esi
shr eax, 1
cmovb esi, edx
xor eax, esi
dec ecx
jne 0x10071180
mov dword [edi], eax
add edi, 4
inc bl
jne 0x10071179
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x400]
sub ecx, 4
jl 0x100711d7
xor eax, dword [esi]
add esi, 4
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
movzx edx, al
shr eax, 8
xor eax, dword [edi + edx*4]
sub ecx, 4
jge 0x100711a9
mov edx, dword [ecx*4 + 0x100be3a0]
and edx, dword [esi]
xor eax, edx
lea esi, [ecx + esi + 4]
jmp dword [ecx*4 + 0x100be3b0]
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.004014da

Function at 0x4042fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429004]
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.00401ca2
and dword [ebp - 0x14], 0
cmp dword [0x42b8c8], 0
mov dword [ebp - 0x18], eax
jne 0x4043ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b8c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b8cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b8d0], eax
call edi
push eax
call esi
mov dword [0x42b8d8], eax
test eax, eax
je 0x4043ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b8d4], eax
mov eax, dword [0x42b8d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404407
cmp dword [0x42b8d8], ecx
je 0x404407
push eax
call esi
push dword [0x42b8d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404407
test ebx, ebx
je 0x404407
call edi
test eax, eax
je 0x4043fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4043fe
test byte [ebp - 8], 1
jne 0x404407
or dword [ebp + 0x10], 0x200000
jmp 0x40443a
mov eax, dword [0x42b8cc]
cmp eax, dword [ebp - 0x18]
je 0x40443a
push eax
call esi
test eax, eax
je 0x40443a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40443a
mov eax, dword [0x42b8d0]
cmp eax, dword [ebp - 0x18]
je 0x40443a
push eax
call esi
test eax, eax
je 0x40443a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b8c8]
call esi
test eax, eax
je 0x404456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404458
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x405690
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Get common file path
Get file attributes
Get geographical location
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4056c9
mov eax, dword [0x42a934]
mov dword [0x467694], eax
cmp dword [0x46730c], 0x3c
jne 0x4056d5
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x4056b7
cmp dword [0x46730c], 0x7c
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x40575b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x46730c], 0x110a
jne 0x4057c2
push ebx
mov dword [0x467300], ebx
mov dword [0x467304], ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.migicaranafojoyota_feganowofu_vuj_lelalezecebesijorabifovihapida
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040100f
add esp, 0x18
push ebx
call fcn.004012d2
call fcn.00405440
xor ecx, ecx
cmp dword [0x46730c], ebx
jbe 0x4057fc
mov eax, dword [0x467694]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + ecx]
mov edx, dword [0x467030]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [0x46730c]
jb 0x4057d1
push str.msimg32.dll
call esi
mov ecx, dword [0x46730c]
mov edx, dword [0x467030]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00405610
call fcn.00405460
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
xor esi, esi
lea eax, [esp + 0x28]
push eax
push 0
call edi
push 0
push 0
push 0
call ebx
cmp esi, 0x1a01e
jle 0x405859
cmp dword [esp + 0x30], 0xf5bed7
jne 0x405862
inc esi
cmp esi, 0x1ece7a52
jl 0x405836
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
cmp esi, 0x12e6c3
jne 0x40587d
call fcn.00405430
cmp dword [0x46730c], 0x3dc
mov dword [0x467034], 0x8e46a6f0
jne 0x4058b7
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push str.rixovohucivununiboneb_huzurucurajo_jajonaberewevale_sivakawizematec
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x405870
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x402500
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8396
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5523d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, 0x200000
xor eax, eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov ecx, dword [0x554d60]
mov edx, 0xa00000
mov byte [edi], al
mov dword [edi + 4], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], 0x1300000f
mov dword [edi + 0x2c], eax
mov dword [edi + 0x44], 0xf
mov dword [edi + 0x40], eax
mov byte [edi + 0x30], al
mov dword [ebp - 4], eax
lea esi, [edi + 0x54]
mov word [edi + 0x4c], ax
mov dword [edi + 0x50], eax
call fcn.004017b0
lea esi, [edi + 0x64]
mov byte [ebp - 4], 1
call fcn.004017b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4