joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451760
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3183
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51c100]
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 - 0x14], edi
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [ebp - 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call fcn.00452870
mov dword [edi + 0x88], esi
mov dword [edi + 0x8c], esi
mov dword [edi + 0x90], esi
mov dword [edi + 0x94], esi
xorps xmm0, xmm0
mov dword [edi + 0x98], esi
xor eax, eax
movups xmmword [edi + 0x9c], xmm0
mov dword [edi + 0xac], esi
mov dword [edi + 0xb0], 7
mov word [edi + 0x9c], ax
movups xmmword [edi + 0xb4], xmm0
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], 7
mov word [edi + 0xb4], ax
movups xmmword [edi + 0xcc], xmm0
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], 7
mov word [edi + 0xcc], ax
mov dword [edi + 0xe4], 0xfde9
mov dword [edi + 0xe8], 1
movups xmmword [edi + 0xec], xmm0
mov dword [edi + 0xfc], eax
mov dword [edi + 0x100], 7
mov word [edi + 0xec], ax
movups xmmword [edi + 0x104], xmm0
mov dword [edi + 0x114], eax
mov dword [edi + 0x118], 7
mov word [edi + 0x104], ax
mov byte [ebp - 4], 0xa
mov dword [edi + 0x11c], 0xfde9
mov dword [edi + 0x120], eax
call fcn.0048ba70
push dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test al, al
mov ecx, 4
push 0x10000000
push 0
push 0
cmovne esi, ecx
push esi
push str.Avast_SimpleHttp_3.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push eax
mov ecx, edi
call fcn.00451d80
mov eax, dword [edi]
test eax, eax
je 0x451971
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x80
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x451993
or dword [ebp - 0x14], 0x200
call fcn.0048b9f0
test al, al
je 0x451900
or dword [ebp - 0x14], 0x800
push 4
lea eax, [ebp - 0x14]
push eax
push 0x54
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x45191f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x451993
push 0x3a98
push 0x3a98
push 0x7530
push 0
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x451952
push str.Unable_to_set_WinHTTP_timeouts_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048def0
jmp 0x4519ab
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.004a057b
mov esp, ebp
pop ebp
ret 0x14
push str.Unable_to_initialize_a_WinHTTP_session_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.0048def0
push 0x518f50
lea eax, [ebp - 0x28]
push eax
call fcn.004a2f8b
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.Unable_to_set_WinHTTP_protocols___08lx__
push eax
lea ecx, [ebp - 0x28]
call fcn.00413770
push 0x518f50
lea eax, [ebp - 0x28]
push eax
call fcn.004a2f8b
int3
Function at 0x452f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e33bd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
call fcn.004a05c1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x453740
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4536d0
push 0
push 0
call fcn.004b2f3c
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x452fc2
cmp dword [esi + 0x38], 0
jne 0x452fd0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.0049dde7
call fcn.004b1795
int3
Function at 0x453350
Capabilities:
Read http header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e344e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
mov edi, dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x18], eax
mov eax, edi
mov dword [ebp - 0x1c], 1
jb 0x4533df
mov eax, dword [edi]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push eax
push 0xffff
push dword [ecx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x453409
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4534b4
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x45342a
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x45341f
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x453436
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040c260
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x453440
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x453448
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
mov eax, dword [ebp - 0x20]
push edi
push 0xffff
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4534d6
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
shr eax, 1
cmp eax, ecx
ja 0x453486
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x45347b
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x453492
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040c260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.Unable_to_query_response_headers_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048def0
push 0x518f50
lea eax, [ebp - 0x38]
push eax
call fcn.004a2f8b
push str.Unable_to_query_response_headers_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.0048def0
push 0x518f50
lea eax, [ebp - 0x38]
push eax
call fcn.004a2f8b
int3
Function at 0x455df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e39c5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x88]
cmp dword [ebx], eax
jl 0x455f52
call fcn.00456520
sub esp, 8
mov ecx, ebx
mov eax, esp
mov dword [eax], 0x5037d4
mov dword [eax + 4], 2
lea eax, [ebp - 0x38]
push eax
call fcn.0045a120
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea esi, [edi + 0x44]
movlpd qword [ebp - 0x1c], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x60]
test eax, eax
je 0x455e74
lock inc dword [eax + 4]
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x60]
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x455eab
mov eax, dword [eax]
jmp 0x455eae
or eax, 0xffffffff
push 0
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455f70
mov eax, dword [edi + 0x8c]
cmp dword [ebx], eax
jl 0x455ee6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x455edc
mov eax, dword [eax]
jmp 0x455edf
or eax, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x455f22
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x455f22
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e933c]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x455f22
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e933c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x455f52
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455f48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455f8c
push ecx
push edx
call fcn.004a05b3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x50]
call fcn.0048de30
push 0x518f50
mov eax, ecx
push eax
call fcn.004a2f8b
call fcn.004ace5f
int3
Function at 0x457f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3d5d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x51c100]
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 ebx, ecx
mov dword [ebp - 0x20], ebx
push 0x64
call fcn.004a05c1
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov word [edi], 0
push 2
push esi
call fcn.0049eb14
lea eax, [edi + 0x34]
push eax
call fcn.0049f3ce
add ebx, 0xffffffe4
lea eax, [ebp - 0x14]
add esp, 0xc
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
cmp ebx, eax
je 0x457fec
mov esi, dword [ebx]
mov dword [ebx], edi
test esi, esi
je 0x45800c
cmp dword [esi + 0x60], 0
jne 0x458087
lea eax, [esi + 0x34]
push eax
call fcn.0049f3b1
add esp, 4
lea eax, [esi + 4]
push eax
call fcn.0049eaea
add esp, 4
push 0x64
push esi
jmp 0x458004
lea eax, [edi + 0x34]
push eax
call fcn.0049f3b1
add esp, 4
push esi
call fcn.0049eaea
add esp, 4
push 0x64
push edi
call fcn.004a05b3
add esp, 8
mov esi, dword [ebp - 0x20]
push 4
add esi, 0xffffff54
call fcn.004a05c1
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x458d90
push 0
push 0
call fcn.004b2f3c
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x45808c
mov ecx, dword [ebx]
cmp dword [ecx + 0x60], 0
jne 0x458087
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x60], eax
cmp dword [ebp - 0x18], 0
jne 0x458087
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.004a057b
mov esp, ebp
pop ebp
ret
call fcn.004b1795
push 6
mov dword [ebp - 0x18], 0
call fcn.0049dde7
int3
Function at 0x459e40
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [0x51cba8]
push esi
push edi
cmp eax, 0xffffffff
jne 0x459e95
call fcn.004626c0
test eax, eax
jne 0x459e90
mov ecx, 0x4fd309
jmp 0x459ea6
mov dword [0x51cba8], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov ecx, 0x4fd309
cmovne ecx, eax
mov edi, ecx
mov dword [ebp - 0xc], ecx
lea edx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x459eb0
sub edi, edx
je 0x459f61
test edi, edi
je 0x459f21
or esi, 0xffffffff
lea eax, [edi - 1]
cmp eax, esi
cmovb esi, eax
add esi, ecx
cmp byte [esi], 0x3a
je 0x459edf
cmp esi, ecx
je 0x459f21
dec esi
cmp byte [esi], 0x3a
jne 0x459ed5
sub esi, ecx
cmp esi, 0xffffffff
je 0x459f21
lea edx, [esi + 1]
cmp edi, edx
jb 0x459fb7
push dword [ebx + 0xc]
mov eax, edi
add ecx, edx
push dword [ebx + 8]
sub eax, edx
mov edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
call fcn.00429fe0
add esp, 8
test al, al
je 0x459f21
mov eax, dword [ebp - 0xc]
cmp edi, esi
mov dword [ebp - 0xc], eax
cmovb esi, edi
mov edi, esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 8]
call fcn.00459fc0
mov ecx, dword [ebp - 0xc]
sub esp, 0x10
mov dword [ebp - 0x18], ecx
mov ecx, esp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], 0x45a3a0
push 9
mov dword [ecx], 0xfd
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
push 0x503a18
jmp 0x459f96
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 8]
call fcn.00459fc0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
sub esp, 0x10
mov dword [ebp - 0xc], 0x45a3a0
mov eax, esp
push 2
mov dword [eax], 0xf
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
push 0x4ffed8
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00499b80
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040c8f0
int3
Function at 0x464220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4626
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x51c100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.asw::mi::ModuleDestructions.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 1
mov dword [esi + 0x24], 0
push 0x40
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.004a05c1
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 2
push 0x40
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004a05c1
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov byte [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4646c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x51c100]
xor eax, esp
mov dword [esp + 0x68], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00464780
add esp, 4
test esi, esi
je 0x46476e
mov edx, dword [esp + 0x18]
mov ecx, 0x78
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
shr edx, 3
mov dword [esp + 0x68], eax
and edx, 0x3f
sub ecx, edx
mov eax, 0x38
sub eax, edx
cmp edx, 0x38
mov edx, 0x503d58
cmovae eax, ecx
lea ecx, [esp + 8]
push eax
call fcn.00464780
push 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x10]
call fcn.00464780
movups xmm0, xmmword [esp + 0x10]
add esp, 8
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0x6c]
pop esi
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x469320
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.004a1180
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor bl, bl
mov dword [ebp - 0x400c], 0
mov word [ebp - 0x4008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x4018]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x469489
mov esi, dword [ebp - 0x4018]
lea eax, [ebp - 0x4014]
push eax
push 4
lea eax, [ebp - 0x4010]
mov dword [ebp - 0x4010], 0
push eax
push 0x14
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46947e
cmp dword [ebp - 0x4010], 0
je 0x46947e
lea eax, [ebp - 0x4014]
push eax
push 0x4000
lea eax, [ebp - 0x4004]
push eax
push 2
push dword [ebp - 0x4018]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46947e
test esi, esi
je 0x4693e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x401c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x400c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor esi, esi
cmp dword [ebp - 0x4004], esi
jbe 0x469460
nop dword [eax]
nop dword [eax + eax]
push dword [ebp + esi*8 - 0x4000]
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x46945e
inc esi
cmp esi, dword [ebp - 0x4004]
jb 0x469420
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov bl, 1
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x469489
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x4698e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0x104
mov eax, esi
mov ebx, ecx
push eax
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x46993c
push 0x10000
call fcn.004aceb0
mov esi, eax
add esp, 4
test esi, esi
je 0x4699a5
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4699ad
cmp byte [ebp + 8], 0
je 0x469976
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x469976
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x469970
push esi
call fcn.004acec0
add esp, 4
lea esi, [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4699ad
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x469987
sub edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 1
push edx
push esi
call fcn.0040a190
jmp 0x4699b5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x4699d2
lea eax, [ebp - 0x414]
cmp esi, eax
je 0x4699d2
push esi
call fcn.004acec0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x469ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x46a010
test eax, eax
je 0x46a010
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x469ee1
mov ecx, dword [edi]
push ebx
push esi
xor esi, esi
mov dword [edi + 0x10], 0
mov word [ecx], si
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push esi
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x469fcb
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x4ef20c
push eax
mov dword [ebp - 0x214], eax
call fcn.004a05f6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x469fb3
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x469f97
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x469f8e
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
nop
cmp word [edx], 0
jne 0x469f8e
sub edx, 2
sub eax, 1
jne 0x469f80
push eax
push ebx
mov ecx, edi
call fcn.0040a190
push ebx
call fcn.004a05f1
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x469ffd
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x469fee
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x469fee
sub ecx, 2
sub eax, 1
jne 0x469fe0
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040a190
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x46cec0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0x18]
test ecx, 0x400
je 0x46ced8
or dword [esi], 0x80
test ecx, 0x800
je 0x46cee6
or dword [esi], 0x100
test cl, 1
je 0x46cef1
or dword [esi], 0x80000000
test ecx, 0x100
je 0x46ceff
or dword [esi], 0x20000000
test ecx, 0x200
je 0x46cf0d
or dword [esi], 0x10000
test cl, cl
jns 0x46cf14
or dword [esi], 4
mov edx, dword [ebp + 8]
test cl, 2
je 0x46cf24
or dword [esi], 0x40000000
jmp 0x46cf34
test cl, 4
je 0x46cf34
mov eax, dword [esi]
mov dword [edx], eax
or eax, 0x100
mov dword [esi], eax
mov edx, ecx
and edx, 0x20000000
push ebx
test cl, 8
je 0x46cf5f
test edx, edx
mov eax, 5
mov ebx, 2
cmove ebx, eax
mov eax, dword [ebp + 0x10]
neg edx
sbb edx, edx
add edx, 2
mov dword [eax], edx
jmp 0x46cf7e
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x46cf73
mov dword [eax], 4
mov ebx, 3
jmp 0x46cf7e
mov dword [eax], 3
mov ebx, 1
mov eax, dword [ebp + 0xc]
mov dword [edi], ebx
pop ebx
test cl, 0x10
je 0x46cf8c
or dword [eax], 1
test cl, 0x20
je 0x46cf94
or dword [eax], 2
test cl, 0x40
je 0x46cf9c
or dword [eax], 4
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
test ecx, ecx
jns 0x46cfb2
or dword [edi], 0x4000000
or dword [edx], 0x1000
test ecx, 0x10000000
je 0x46cfc6
or dword [edi], 0x2000000
or dword [edx], 0x4000
test ecx, 0x8000000
je 0x46cfd7
or dword [edi], 0x2000000
or dword [edx], 1
test ecx, 0x40000
je 0x46cfeb
or dword [edi], 0x200000
or dword [edx], 0x200000
mov eax, ecx
and eax, 0x7000000
je 0x46d045
cmp eax, 0x6000000
ja 0x46d035
je 0x46d02a
cmp eax, 0x4000000
je 0x46d019
cmp eax, 0x5000000
jne 0x46d045
or dword [edi], 0x10000000
or dword [edx], 0x800
jmp 0x46d045
mov eax, dword [ebp + 0x20]
or dword [edi], 0x2100
or dword [eax], 0x2100
jmp 0x46d045
or dword [edi], 0x8000000
or dword [edx], 4
jmp 0x46d045
cmp eax, 0x7000000
jne 0x46d045
or dword [edi], 0x80000000
or dword [edx], 2
test ecx, 0x10000
jne 0x46d068
or dword [esi], 0x100000
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x46d063
or eax, 0x100000
mov dword [esi], eax
or dword [edx], 0x20
jmp 0x46d06e
or dword [edi], 0x40000000
pop edi
pop esi
test ecx, 0xc000
je 0x46d07e
or dword [edx], 0x100
pop ebp
ret