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

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x418d00]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401070
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x401090
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4010f0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x418d00]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401110
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x401132
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x419f4c]
push esi
mov esi, ecx
test eax, eax
je 0x40205d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x419f4c], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x419f4c], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [0x419f44]
mov dword [ebp - 0x10], eax
movzx eax, word [0x419bbc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x419f4c]
call dword [sym.imp.WS2_32.dll_connect]
push 0x23
push 0x8001
push esi
push dword [0x419f4c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403119
mov esp, ebp
pop ebp
ret

Function at 0x4020d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, bx
movzx esi, ax
push edi
add esi, 0x10
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
call fcn.00406e33
mov edi, eax
add esp, 4
test edi, edi
je 0x402216
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov dword [edi + 4], eax
mov word [edi + 8], 1
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xa], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0xc], ax
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push dword [ebp - 8]
mov word [edi + 0xe], ax
lea eax, [edi + 0x10]
push eax
call fcn.00404950
lea edx, [esi + 0xa]
mov eax, 8
mov ecx, edx
and ecx, 7
sub eax, ecx
test ecx, ecx
cmove eax, ecx
add eax, edx
mov dword [ebp + 8], eax
add eax, 0x12
push eax
call fcn.00406e33
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402216
lea eax, [ebp + 8]
mov edx, esi
push eax
lea ecx, [ebx + 0x12]
push ecx
push ecx
mov ecx, edi
call fcn.00401190
mov esi, dword [ebp + 8]
push edi
add esi, 0x12
call fcn.00406e18
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_htonl]
push 0x74
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
mov word [ebx + 4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov word [ebx + 6], ax
call edi
push 0
mov dword [ebx + 8], eax
call edi
mov dword [ebx + 0xc], eax
mov edi, ebx
mov word [ebx + 0x10], 1
test esi, esi
jle 0x40220d
push 0
push esi
push edi
push dword [0x419f4c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40220d
sub esi, eax
add edi, eax
test esi, esi
jg 0x4021f1
push ebx
call fcn.00406e18
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040fc80
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x100c], ecx
sub eax, 1
jne 0x4025a6
push ebx
push esi
push eax
lea ebx, [ebp - 0x1004]
push 0x1000
mov eax, ebx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4025a4
mov ecx, dword [0x419f38]
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
push edi
test ecx, ecx
je 0x402536
cmp dword [0x419f40], 4
jae 0x402455
mov ebx, dword [0x419f40]
lea eax, [ebp - 0x1004]
mov edi, 4
sub edi, ebx
cmp esi, edi
cmovl edi, esi
push edi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.00404950
add ebx, edi
add esp, 0xc
mov dword [0x419f40], ebx
cmp ebx, 4
jb 0x4025a3
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [ebp - 0x1004]
mov ecx, dword [0x419f38]
add ebx, edi
sub esi, edi
push dword [ecx]
call eax
mov edx, dword [0x419f40]
mov ecx, eax
sub eax, edx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1008], eax
cmp ecx, dword [0x419f3c]
jle 0x4024aa
push ecx
push dword [0x419f38]
mov dword [0x419f3c], ecx
call fcn.00406e0d
mov edi, eax
add esp, 8
test edi, edi
je 0x4025a3
mov eax, dword [ebp - 0x1008]
mov edx, dword [0x419f40]
mov dword [0x419f38], edi
jmp 0x4024b0
mov edi, dword [0x419f38]
test eax, eax
js 0x402510
cmp esi, eax
cmovl eax, esi
push eax
mov dword [ebp - 0x1008], eax
lea eax, [edx + edi]
push ebx
push eax
call fcn.00404950
mov ecx, dword [0x419f40]
add esp, 0xc
add ecx, dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
mov dword [0x419f40], ecx
cmp ecx, eax
jl 0x4025a3
mov ecx, dword [ebp - 0x100c]
mov edx, edi
push eax
call fcn.00402220
add ebx, dword [ebp - 0x1008]
add esp, 4
sub esi, dword [ebp - 0x1008]
mov edi, dword [0x419f38]
push edi
call fcn.00406e18
add esp, 4
mov dword [0x419f38], 0
mov dword [0x419f40], 0
test esi, esi
jle 0x4025a3
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
cmp esi, 4
jae 0x402542
mov edi, 4
jmp 0x402548
push dword [ebx]
call eax
mov edi, eax
push edi
cmp edi, esi
jg 0x40257b
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00402220
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
sub esi, edi
add esp, 4
add ebx, edi
test esi, esi
jg 0x402536
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403119
mov esp, ebp
pop ebp
ret
mov dword [0x419f3c], edi
call fcn.00406e33
add esp, 4
test eax, eax
je 0x4025a3
push esi
push ebx
push eax
mov dword [0x419f38], eax
call fcn.00404950
add esp, 0xc
mov dword [0x419f40], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403119
mov esp, ebp
pop ebp
ret
Function at 0x403af0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b2f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b2f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b2f
cmp dword [ecx + 0x74], 0xe
jbe 0x403b2f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40a753
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412fe4
push 0x412fdc
push str.FlsAlloc
push 0x1f
call fcn.0040a68e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a787
push dword [ebp + 8]
mov ecx, esi
call dword [0x410250]
call esi
jmp 0x40a78d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a7d1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412ff4
push 0x412fec
push str.FlsGetValue
push 0x21
call fcn.0040a68e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a808
push dword [ebp + 8]
mov ecx, esi
call dword [0x410250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a810
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x412ffc
push 0x412ff4
push str.FlsSetValue
push 0x22
call fcn.0040a68e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a84a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410250]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ae82
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40aecd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b01d
test al, al
jne 0x40aec7
sub edx, 2
cmp edx, edi
jne 0x40aead
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40aeef
lea eax, [edi + 2]
cmp edx, eax
je 0x40aeef
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040adce
add esp, 0x10
jmp 0x40afe9
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b01d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40af32
push dword [ebp - 0x25c]
jmp 0x40aedf
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40af6f
cmp word [ebp - 0x226], 0
je 0x40af90
cmp word [ebp - 0x226], ax
jne 0x40af6f
cmp word [ebp - 0x224], 0
je 0x40af90
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040adce
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40afdc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40af49
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40afc4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40afe9
push 0x40abfe
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040de80
add esp, 0x10
jmp 0x40afb9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403119
leave
ret

Function at 0x40fc40
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20e8
call fcn.00484a20
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x20ac], eax
xor bl, bl
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20a4], eax
mov eax, dword [ebp + 0x14]
push 0x1048
mov dword [ebp - 0x20a8], eax
call fcn.0048460a
mov esi, eax
add esp, 4
test esi, esi
je 0x4045a3
push 0x2000000
lea eax, [ebp - 0x20a0]
mov dword [ebp - 0x20a0], 0x824
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x40445d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4045a3
push esi
call fcn.00484613
mov eax, dword [ebp - 0x20a0]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048460a
mov esi, eax
add esp, 8
test esi, esi
je 0x4045a3
push 0x2000000
lea eax, [ebp - 0x20a0]
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x40459a
xorps xmm0, xmm0
mov dword [ebp - 0x20dc], 0
push 0x104a
lea eax, [ebp - 0x1050]
movlpd qword [ebp - 0x20e4], xmm0
push 0
push eax
movlpd qword [ebp - 0x20d0], xmm0
movlpd qword [ebp - 0x20c8], xmm0
mov dword [ebp - 0x20c0], 0
movlpd qword [ebp - 0x20b4], xmm0
mov dword [ebp - 0x20e8], 0x3c
call fcn.004f0120
push 0x104a
lea eax, [ebp - 0x209c]
push 0
push eax
call fcn.004f0120
add esp, 0x18
mov dword [ebp - 0x20d4], 0x824
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x20b8], 0x824
mov dword [ebp - 0x20d8], eax
lea eax, [ebp - 0x209c]
mov dword [ebp - 0x20bc], eax
lea eax, [ebp - 0x20e8]
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40459a
push 0x2100000
push 0
push 0
push dword [ebp - 0x20bc]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
test eax, eax
js 0x40453a
push dword [ebp - 0x20bc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x20b8], eax
mov bl, 1
mov edi, dword [ebp - 0x20d8]
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404545
sub edx, ecx
mov ecx, dword [ebp - 0x20a4]
sar edx, 1
push edx
push edi
call fcn.004048f0
mov edi, dword [ebp - 0x20bc]
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404570
sub edx, ecx
mov ecx, dword [ebp - 0x20a8]
sar edx, 1
push edx
push edi
call fcn.004048f0
mov ecx, dword [ebp - 0x20ac]
mov eax, dword [ebp - 0x20dc]
mov dword [ecx], eax
push esi
call fcn.00484613
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484a0d
mov esp, ebp
pop ebp
ret 0x14
Function at 0x405620
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], 4
push eax
push str.EnableLUA
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x218], 4
call esi
cmp dword [ebp - 0x210], 0
je 0x405753
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ConsentPromptBehaviorAdmin
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4056ef
cmp dword [ebp - 0x210], eax
jne 0x4056ef
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.PromptOnSecureDesktop
push str.SOFTWAREMicrosoftWindowsCurrentVersionpolicies_system
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4056ef
cmp dword [ebp - 0x210], eax
je 0x405753
mov ax, word [0x572268]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40573f
push str.UsersAdministratorAppDataLocal
lea eax, [ebp - 0x206]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405753
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00484a0d
mov esp, ebp
pop ebp
ret

Function at 0x405770
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004f0120
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4057cc
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
Function at 0x405e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405e69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405e69
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 0x405e5a
cmp esi, edx
jae 0x405e69
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405e48
cmp esi, edx
jae 0x405e69
cmp word [esi], 0
je 0x405e69
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4066f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
mov dword [ebp - 4], eax
cmp dword [eax + 4], 0
je 0x4067c4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4067c4
push esi
push edi
mov edi, 0x100
push edi
call fcn.0050d832
add esp, 4
mov dword [ebp + 8], edi
mov esi, eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push esi
push 0
push 0
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x406773
add edi, 0x100
push edi
push esi
call fcn.0050d83d
add esp, 8
mov dword [ebp + 8], edi
mov esi, eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push esi
push 0
push 0
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x406741
test eax, eax
jne 0x4067b0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406780
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.004048f0
push esi
call fcn.004faf71
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.004faf71
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5c8dc0]
push ebx
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5c61bc]
cmp eax, dword [ecx + 4]
jg 0x409cda
mov edi, dword [ebp + 8]
test edi, edi
je 0x409cc4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b63
sub ecx, edx
sar ecx, 1
test cl, 1
jne 0x409cc4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b80
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x409ba1
xor edi, edi
mov dword [ebp - 0xc], edi
jmp 0x409bbb
add esi, esi
mov eax, esi
call fcn.00484d70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004086e0
mov edi, eax
mov dword [ebp - 0xc], eax
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409bc0
sub esi, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], esi
je 0x409c28
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [esi - 1]
mov edi, dword [ebp - 0x14]
shr eax, 1
inc eax
mov dword [ebp - 0x10], eax
mov esi, eax
mov cl, byte [edi - 1]
lea edi, [edi + 2]
mov bl, byte [edi - 2]
cmp cl, 0x41
lea eax, [ecx - 0x37]
movzx edx, al
movzx eax, cl
mov ecx, 0x30
cmovl edx, eax
mov eax, 0x37
shl dl, 4
cmp bl, 0x41
cmovl eax, ecx
sub bl, al
mov eax, dword [ebp - 8]
or dl, bl
mov byte [eax], dl
inc eax
mov dword [ebp - 8], eax
sub esi, 1
jne 0x409be5
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
push dword [0x5c61b8]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call fcn.0051d479
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x409c5c
call fcn.0051d458
lea ecx, [eax + 0x11]
mov al, byte [esi + edi]
xor al, cl
xor al, 2
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x409c45
mov byte [ebx + edi], 0
test edi, edi
je 0x409cc4
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c70
sub ecx, edx
lea eax, [ecx - 1]
cmp eax, 0x62
ja 0x409cc4
lea ebx, [ecx + 1]
push ebx
call fcn.0050d832
mov esi, eax
add esp, 4
test esi, esi
je 0x409cae
push ebx
push 0
push esi
call fcn.004f0120
push edi
push 0x574838
push 0xffffffffffffffff
push ebx
push esi
call fcn.004123a0
add esp, 0x20
mov eax, esi
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
push 0x5c61bc
call fcn.00484496
add esp, 4
cmp dword [0x5c61bc], 0xffffffff
jne 0x409b53
call fcn.0040dda0
push 0x5c61bc
mov dword [0x5c61b8], eax
call fcn.0048444c
add esp, 4
jmp 0x409b53