joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5950
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x4d5a07
mov eax, dword [esp + 0xc]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x4d59e6
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, edi
jb 0x4d5983
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x4d5a00
mov eax, dword [esp + 0x10]
add eax, ecx
sub edx, ecx
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x4d59f0
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4d7930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push edi
push 0x60
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [esp + 0x10], edi
jbe 0x4d798f
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
dec ecx
push esi
mov dword [esp + 0x20], ecx
nop word [eax + eax]
push ebp
mov esi, ecx
push ebx
xor esi, edi
push esi
push ebp
call fcn.004d5c00
lea ecx, [ebp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
push esi
push ecx
call fcn.004d5c00
mov ecx, dword [esp + 0x40]
inc edi
add esp, 0x20
add ebx, 0x40
cmp edi, dword [esp + 0x18]
jb 0x4d7960
pop esi
pop ebx
lea eax, [ebp + 0x40]
push 0x620c88
push eax
push dword [esp + 0x14]
push eax
call fcn.004d5c00
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4d9c60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
test edi, edi
je 0x4d9ca1
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
sub ebx, esi
nop dword [eax + eax]
mov edx, dword [esi + ebx]
lea esi, [esi + 4]
xor edx, dword [esi - 4]
lea ecx, [edx - 1]
not edx
shr ecx, 0x1f
shr edx, 0x1f
and ecx, edx
neg ecx
and eax, ecx
sub edi, 1
jne 0x4d9c80
pop esi
pop ebx
pop edi
ret

Function at 0x4dacd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0x623040]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0xa4]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0xa4]
xor ecx, ecx
push ebx
add edx, 0x60
push esi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x24], xmm0
push edi
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x98], xmm0
inc ecx
mov edi, edx
mov dword [esp + 0x14], ecx
xor ecx, dword [esp + 0xb8]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
xor esi, esi
mov ebx, eax
not ebx
mov edx, dword [edi - 0x60]
lea edi, [edi + 4]
and edx, eax
mov ecx, ebx
and ecx, dword [esp + esi + 0x18]
or edx, ecx
mov ecx, ebx
and ecx, dword [esp + esi + 0x48]
mov dword [esp + esi + 0x18], edx
mov edx, dword [edi - 0x34]
and edx, eax
or edx, ecx
mov ecx, dword [edi - 4]
mov dword [esp + esi + 0x48], edx
and ecx, eax
mov edx, dword [esp + esi + 0x78]
and edx, ebx
or edx, ecx
mov dword [esp + esi + 0x78], edx
add esi, 4
cmp esi, 0x30
jb 0x4dad58
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x4dad35
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x4dadbf
lea ecx, [esp + 0xc]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [ebp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ebp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [ebp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ebp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [ebp + 0x60], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [ebp + 0x70], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [ebp + 0x80], xmm0
pop ebp
xor ecx, esp
call fcn.004db8c5
add esp, 0x9c
ret
Function at 0x4db0b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40
push edi
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x4db0e1
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x4dbd98
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dbdd7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dbdd7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dbdd7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dbdd7
cmp dword [ecx + 0x74], 0xe
jbe 0x4dbdd7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4dd8f0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push edi
push esi
sub esp, 0x54
xorps xmm0, xmm0
lea edi, [esp + 0x14]
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
push 2
push 0x20
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x4dd92d
mov esi, eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x4ddac4
movups xmm0, xmmword [esp + 0x14]
movups xmm1, xmmword [esp + 0x24]
xor ecx, ecx
mov edx, 0x158
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm1
movzx eax, byte [0x62314d]
call fcn.0048bb80
test eax, eax
je 0x4ddadb
mov dword [eax], 1
mov esi, eax
mov dword [eax + 4], 1
add eax, 8
push 0x100
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movups xmm0, xmmword [esp + 0x44]
mov dword [esi + 0x108], 0x40
movaps xmm1, xmmword [0x4e14d0]
movups xmmword [esi + 0x110], xmm0
movups xmm0, xmmword [esp + 0x34]
movups xmmword [esi + 0x120], xmm0
xorps xmm0, xmm0
movsd qword [esi + 0x130], xmm0
movsd qword [esi + 0x138], xmm0
movups xmmword [esi + 0x140], xmm1
mov dword [esi + 0x150], 0
mov eax, dword [0x623150]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], 1
mov dword [edx + 0x14], esi
cmp ecx, 1
je 0x4ddaa6
test ecx, ecx
jne 0x4ddaa0
mov eax, dword [0x623150]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x28], 0
jne 0x4ddae7
mov eax, dword [0x623150]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov dword [ecx + 0x28], 0xffffffff
mov eax, dword [entry1]
mov esi, dword [ecx + 0x34]
xor eax, eax
cmp esi, dword [ecx + 0x2c]
jne 0x4dda6c
call fcn.0047ba70
mov eax, dword [0x623150]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x28]
inc eax
mov ecx, dword [0x623150]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ecx + 0x30]
lea edi, [ecx + 0x10]
mov dword [edx + esi*8], edi
mov dword [edx + esi*8 + 4], 0x41df30
inc esi
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x34], esi
add esp, 0x54
pop esi
pop edi
ret
dec dword [eax]
jne 0x4ddaa0
dec dword [eax + 4]
jne 0x4ddaa0
push eax
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x54
pop esi
pop edi
ret
movzx eax, byte [0x62314d]
xor ecx, ecx
mov edx, 4
call fcn.0048bb80
test eax, eax
jne 0x4ddadd
ud2
and esi, 0x7fffffff
mov dword [eax], esi
ud2
mov eax, esp
mov dword [esp + 4], 0
mov dword [esp + 0x14], 0x5e3c20
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], 0
mov byte [esp + 8], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
push edi
call fcn.0047b4d0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.0047b570
mov ecx, 7
int 0x29
ud2
Function at 0x4df200
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
cmp ebp, 0xffffffff
je 0x4df27f
mov ebx, ebp
inc ebx
js 0x4df27f
movzx eax, byte [0x62314d]
mov edi, edx
mov esi, ecx
xor ecx, ecx
mov edx, ebx
call fcn.0048bb80
test eax, eax
je 0x4df27f
push ebp
push edi
mov dword [esp + 0xc], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + 3]
and eax, 0xfffffffc
sub eax, edi
je 0x4df275
cmp eax, ebp
cmovae eax, ebp
test eax, eax
je 0x4df275
mov ecx, edi
mov edx, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp byte [ecx], 0
je 0x4df338
inc ecx
dec edx
jne 0x4df260
lea ecx, [ebp - 8]
mov dword [esp], esi
jmp 0x4df281
mov dword [esp], esi
lea ecx, [ebp - 8]
xor eax, eax
jmp 0x4df285
ud2
cmp eax, ecx
ja 0x4df2af
mov esi, dword [edi + eax + 4]
mov edx, dword [edi + eax]
mov ebp, 0x1010100
sub ebp, esi
or ebp, esi
mov esi, 0x1010100
sub esi, edx
or esi, edx
and esi, ebp
not esi
test esi, 0x80808080
jne 0x4df2af
add eax, 8
jmp 0x4df281
mov edx, dword [esp + 0x40]
mov esi, dword [esp]
mov ecx, edx
sub ecx, eax
je 0x4df2c9
add edi, eax
nop
cmp byte [edi], 0
je 0x4df338
inc edi
dec ecx
jne 0x4df2c0
mov eax, dword [esp + 4]
lea ebp, [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ecx, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.0040d490
xorps xmm0, xmm0
mov edi, eax
mov ebx, edx
lea eax, [esp + 8]
mov dword [esp + 8], 0
movups xmmword [esp + 0xc], xmm0
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x14], 1
push eax
push ebp
push 0
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4df355
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x4df377
jmp 0x4df386
mov eax, dword [0x5e3488]
mov ecx, dword [0x5e348c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
push dword [esp + 4]
jmp 0x4df378
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 8]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4df386
push edi
push 0
push dword [0x623140]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b633
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
mov ecx, dword [esp]
add esp, 4
push ebx
mov eax, dword [esp]
add esp, 4
sub esp, 4
mov dword [esp], ebx
pop ebx
call fcn.0043b683
sub ebx, ebx
sub esp, 4
mov dword [esp], 0xd8cfb568
pop eax
dec eax
xor dword [edx], ecx
inc ebx
or ebx, eax
add edx, 1
and ebx, eax
or eax, ebx
cmp edx, edi
jne fcn.0043b633
inc eax
and eax, eax
ret
Function at 0x402df0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e38
xor eax, eax
jmp 0x402e53
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004042f5
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x4054b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405565
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405565
push eax
call fcn.00404283
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.00404283
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.00404283
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.00404283
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x4054b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404283
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x40550c
cmp dword [0x40ea58], ebx
je 0x40550c
push eax
call fcn.004042fe
push dword [0x40ea58]
mov esi, eax
call fcn.004042fe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40550c
test edi, edi
je 0x40550c
call esi
test eax, eax
je 0x405503
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405503
test byte [ebp - 0xc], 1
jne 0x40550c
or dword [ebp + 0x10], 0x200000
jmp 0x405545
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x405545
push eax
call fcn.004042fe
pop ecx
test eax, eax
je 0x405545
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405545
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x405545
push eax
call fcn.004042fe
pop ecx
test eax, eax
je 0x405545
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.004042fe
pop ecx
test eax, eax
je 0x405565
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405567
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40726e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x407278
repz ret
jmp fcn.00408995
Function at 0x4049f0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x437ea8], 0
mov word [0x437eac], 0
cmp dword [eax + 0x10], 0
je 0x404a17
cmp dword [eax + 0x14], 8
jb 0x404a19
mov eax, dword [eax]
jmp 0x404a19
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x437ea8], eax
test eax, eax
je 0x404a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x437ead]
cmp eax, 0xb7
mov edx, 1
cmove ecx, edx
mov byte [0x437ead], cl
mov eax, 0x437ea8
ret 4

Function at 0x404ab0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428738
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x436038]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x404af3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040a680
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x404b1c
lea eax, [esi + 8]
jmp 0x404b1e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x404b2e
cmp dword [ebx + 0x14], 8
jb 0x404b30
mov ebx, dword [ebx]
jmp 0x404b30
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x404b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404b51
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x404b7a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404b8f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00416d7e
add esp, 8
mov dword [ebp - 0x14], 0
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.00416858
mov esp, ebp
pop ebp
ret 4
Function at 0x4079d0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x433340
push 0x4188c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x436038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407a31
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00407b00
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x407a63
test bl, bl
jne 0x407ada
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407a78
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call fcn.00417c20
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004032a0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00416858
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x4079d0

Function at 0x407d60
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x433340
push 0x4188c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x436038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407a31
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00407b00
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x407a63
test bl, bl
jne 0x407ada
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407a78
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call fcn.00417c20
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004032a0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00416858
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x4079d0
Function at 0x407d70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x436038]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00416ab4
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.00417c20
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x407dcc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.00416858
add esp, 0x120
ret
Function at 0x40a840
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4339a8
push 0x4188c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x436038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x40a8a9
xor eax, eax
jmp 0x40aa1f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ea
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40a9ea
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ea
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x40a9ea
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ea
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40a9ea
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ea
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x40a9ea
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ea
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x40a9ea
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40a9ea
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40a9d3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x40a9c0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x40a9d0
jmp 0x40a9ea
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040aa46
test ebx, ebx
jne 0x40aa1d
test esi, esi
je 0x40aa0f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40aa1d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00416858
mov esp, ebp
pop ebp
ret 0xc