joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f299e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x550910]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004d47bb
mov dword [ebp - 0x14], eax
cmp dword [0x559858], esi
jne 0x4f2a91
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4f2a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f2b71
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4f2b71
push 0x527d20
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f2b71
push eax
call ebx
push 0x527d2c
push edi
mov dword [0x559858], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x55985c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x559860], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x559868], eax
test eax, eax
je 0x4f2a8e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x559864], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4f2ab6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f2aa9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4f2acb
push 4
pop eax
jmp 0x4f2b73
cmp dword [ebp - 0x14], esi
je 0x4f2acb
push dword [0x559858]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4f2ab0
mov eax, dword [0x559864]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4f2b29
cmp dword [0x559868], edi
je 0x4f2b29
push eax
call ebx
push dword [0x559868]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f2b29
test eax, eax
je 0x4f2b29
call ecx
test eax, eax
je 0x4f2b1e
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 0x4f2b1e
test byte [ebp - 8], 1
jne 0x4f2b29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4f2b59
mov eax, dword [0x55985c]
cmp eax, edi
je 0x4f2b56
push eax
call ebx
test eax, eax
je 0x4f2b56
call eax
mov esi, eax
test esi, esi
je 0x4f2b56
mov eax, dword [0x559860]
cmp eax, edi
je 0x4f2b56
push eax
call ebx
test eax, eax
je 0x4f2b56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x559858]
call ebx
test eax, eax
je 0x4f2b71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4f2b73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c6343
mov esp, ebp
pop ebp
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 0x40153b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x2c], 1
je 0x401554
movzx esi, word [esp + 0x30]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4044e0], eax
mov dword [ebp - 0x4c], 0x30
call fcn.0040152b
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x40120e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Trick
mov dword [ebp - 0x20], eax
call fcn.0040151e
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x401626
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0x80
push str.Qindom
push str.Trick
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4044e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4044e8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401626
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40160a
pop ebx
mov esp, ebp
pop ebp
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 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

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 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 0xbc89d8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xbc89e2
pushal
call 0xbc89e8
pop ebp
sub ebp, 0x10
sub ebp, 0x7c89d8
mov al, byte [esp + 0x28]
cmp al, 1
je 0xbc8a0c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0xbc8a15
mov eax, 0x7c89d8
add eax, ebp
add eax, 0x63
mov ecx, 0x603
mov edx, 0x72b9dbc
xor byte [eax], dl
inc eax
dec ecx
jne 0xbc8a2c
jmp 0xbc8a3f
aaa
jno 0xbc8a79
xor eax, 0xbcbcbc80
cmp eax, 0xbcbc447d
mov esp, 0xb70471bf
mov esp, 0x9406bcbc
mov esp, 0x5e4bbcbc
mov edi, 0xb03d3774
mov esp, 0x79bfbcbc
xor eax, ebx
cwde
inc eax
xor eax, 0xd4ec98b8
cmp al, al
mov dl, 0xbc
aam 0xe8
mov cl, 0xd2
mov esp, 0xd49890bd
adc byte [ebx], ah
inc ecx
xor al, 0x54
cwde
aam 0x10
and eax, dword [ecx + 0x34]
push esp
mov ecx, 0x55bcbcbc
mov byte [esp + edi*4 - 0x6727ce44], bh
inc eax
xor eax, 0x50379890
aaa
cmp dword [esp + edi*4 + 0x2937bcbc], esi
mov al, 0xbc
mov esp, 0xac3137bc
mov esp, 0x557dbcbc
mov esi, 0x7e3fbe8d
mov eax, 0x4839b3f5
inc ebx
inc ebx
inc ebx
aaa
nop
cwde
xor eax, ebx
cwde
mov eax, 0x37bcb07e
xor byte [eax - 0x43434348], bl
aam 0x38
sal byte [edx - 0x4e172b44], 0xd2
mov esp, 0x319890bd
fcomp dword [eax - 0x674fcac0]
push esp
mov ecx, 0x55bcbcbc
stc
mov esi, 0xd831bcbc
cwde
inc eax
xor eax, 0xe1e89890
inc ebx
leave
mov al, 0x43
leave
mov ah, 0x54
into
mov esp, 0x137bcbc
mov ah, 0xbc
mov esp, 0x3d758fbc
dec esi
mov bl, 0xd6
loope 0xbc8ab8
cmp eax, 0xe1d6b34e
mov ah, 0x8f
outsb dx, byte [esi]
aas
push esp
mov ecx, 0xf238b3f4
mov esp, 0x34b3bcbc
hlt
Function at 0x402420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d7eb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 1
push 0x5af8f0
mov dword [edi], 0
call fcn.00406840
lea eax, [ebp + 8]
mov dword [ebp - 0x230], 1
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push str.SYSTEMCurrentControlSet_services_
push eax
call fcn.00406490
push str.Parameters
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
call fcn.00406a20
add esp, 0x18
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x234]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4024e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push dword [ebp - 0x220]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40256b
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x224]
push str.SYSTEMCurrentControlSet_services_
push eax
call fcn.00406490
add esp, 0xc
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.00406cf0
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40254b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x22c]
push eax
push 1
push 0
push dword [ebp - 0x220]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025cc
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x20a
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 2
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025c0
lea eax, [ebp - 0x21c]
push eax
push 0x5af300
push edi
call fcn.00406ff0
add esp, 0xc
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025ed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x402609
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret
Function at 0x402d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d975
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d2fec]
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, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
mov dword [esi], 0
call fcn.004069a0
mov eax, dword [esi]
mov dword [ebp - 0x224], 1
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x402dd9
push 0x80070057
call fcn.00407010
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x402df2
push edi
mov ecx, esi
call fcn.00406e60
lea eax, [edi + 1]
push eax
push dword [esi]
call fcn.00556e6f
mov eax, dword [esi]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x402dcf
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [esi]
or ebx, 0xffffffff
mov word [eax + edi*2], cx
mov eax, dword [esi]
cmp dword [eax - 0xc], ecx
jl 0x402e74
push str..exe
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x402e74
sub eax, dword [esi]
sar eax, 1
js 0x402e74
add eax, 4
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00405b70
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00406cf0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402e74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
mov ecx, esi
call fcn.00405fc0
mov ecx, eax
call fcn.00405f10
mov edi, dword [esi]
sub edi, 0x10
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x402edc
cmp dword [edi + 0xc], 0
jl 0x402ed1
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x402ed1
push edx
call fcn.00406c80
mov dword [ebp - 0x220], eax
lea ecx, [edi + 0xc]
add esp, 4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402ec4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [esi], eax
jmp 0x402edc
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00406bd0
push 0x20a
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x209
ja 0x402f1f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f01
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406bd0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402f3b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0054e73a
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dc25
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5d2fec]
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, ecx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], 0
push str.Wow64DisableWow64FsRedirection
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4042f5
lea ecx, [ebp - 0x90]
push ecx
call eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40431e
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
push eax
call edi
test eax, eax
je 0x40431e
lea ecx, [ebp - 0x90]
push ecx
call eax
push 0x5af8f0
mov ecx, esi
mov dword [esi], 0
call fcn.00406840
xor edi, edi
mov dword [ebp - 0xa0], 1
push edi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x9c], 0
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], 0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 2
push 0x400
push dword [ebp + 8]
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
or ebx, 0xffffffff
test eax, eax
je 0x40444d
lea eax, [ebp - 0x98]
push eax
push edi
push edi
push 6
push dword [ebp - 0x94]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
je 0x40444d
push dword [ebp - 0x98]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x98]
push eax
push edi
push 0
push 6
push dword [ebp - 0x94]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
je 0x40444d
mov eax, dword [edi + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x10]
push 0
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
push 0xb0000
push 0
push 0x10001
push dword [ebp - 0x9c]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.004044c0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00406cf0
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x90]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40444d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404478
lea ecx, [ebp - 0x90]
push ecx
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x404494
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0054e73a
mov esp, ebp
pop ebp
ret
Function at 0x406570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406585
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4065c2
nop word [eax + eax]
cmp esi, edx
jae 0x4065c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4065b0
cmp esi, edx
jb 0x4065cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40ba30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e688
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push str..dll.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 0
push str.C:WindowsSystem32
call fcn.00406840
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 4
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
push str.C:WindowsSyswow64
call fcn.00406840
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 4
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.exe.sys.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 2
push str.C:WindowsSystem32config_systemprofileAppData
call fcn.00406840
mov ecx, 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 4
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.exe.sys.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 3
push str.C:WindowsSyswow64config_systemprofileAppData
call fcn.00406840
mov ecx, 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 4
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.exe.sys.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 4
push str.C:Program_Files__x86_
call fcn.00406840
mov ecx, 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 4
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.exe.sys.ime
call fcn.00406840
push ecx
mov ecx, esp
mov dword [ebp - 4], 5
push str.C:Program_Files
call fcn.00406840
mov ecx, 1
mov dword [ebp - 4], 0xffffffff
call fcn.0040bf50
add esp, 8
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
push str._userprofile_AppData
call fcn.00406840
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 6
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push str..dll.exe.sys.ime
call fcn.00406840
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
mov ecx, esp
push eax
call fcn.00406840
mov ecx, 1
mov byte [ebp - 4], 6
call fcn.0040bf50
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40bc47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret
Function at 0x40d7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5d2fec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5b06b8
push 0x3ee
push dword [0x5dd61c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push str.Control_PanelDesktop
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
call fcn.00406840
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp - 0x220]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d9ad
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00551910
add esp, 0xc
mov dword [ebp - 0x224], 0x20a
lea eax, [ebp - 0x224]
mov dword [ebp - 0x228], 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.SCRNSAVE.EXE
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d9a1
lea ecx, [ebp - 0x258]
call fcn.0040c890
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x254]
push 0x5af300
push eax
call fcn.00406ff0
lea eax, [ebp - 0x254]
push 0x5af8f0
push eax
call fcn.00405a50
add esp, 0x14
test al, al
je 0x40d996
push 0xc
push str.SCRNSAVE.EXE
lea ecx, [ebp - 0x258]
call fcn.00406bd0
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00406cf0
lea ecx, [ebp - 0x258]
call fcn.004136a0
push 6
push str.OU
lea ecx, [ebp - 0x244]
call fcn.00406bd0
push 0x27
push str.HKEY_CURRENT_USERControl_PanelDesktop
lea ecx, [ebp - 0x238]
call fcn.00406bd0
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406cf0
sub esp, 0x2c
lea eax, [ebp - 0x258]
mov ecx, esp
push eax
call fcn.0040d1a0
call fcn.0040f000
add esp, 0x2c
lea ecx, [ebp - 0x258]
call fcn.0040ca30
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d9d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e73a
mov esp, ebp
pop ebp
ret