joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4254b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d632f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0x4f5988
push 0x3e9
push dword [esi + 0x44]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4255dc
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4255dc
push dword [ebp - 0x18]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4255dc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4255dc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4255d5
push edi
push dword [ebp - 0x18]
push eax
call fcn.004acc80
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4255ce
push 0x24
call fcn.00493862
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
push dword [ebp - 0x14]
call fcn.00424c10
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x4e3310]
call esi
test edi, edi
je 0x4255dc
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov al, 1
jmp 0x4255de
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
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.0049384c
mov esp, ebp
pop ebp
ret 8

Function at 0x425b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], 0
cmp dword [esi + 0x40], 0
je 0x425b71
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x425910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
test eax, eax
je 0x425b60
mov eax, dword [esi + 4]
test eax, eax
je 0x425b9e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x425bb0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x425c04
mov eax, dword [esi + 0x48]
test eax, eax
je 0x425bd4
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0x48], 0
push 0x2710
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x425bf4
push 1
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
pop esi
ret

Function at 0x426b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x426b68
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x426b7b
test al, 0x10
jne 0x426b7b
mov al, 1
ret
xor al, al
ret
Function at 0x42e0e0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d864d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x84], edi
push ecx
lea ecx, [ebp - 0x79]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x80], 0
call fcn.0042de10
mov dword [ebp - 4], 3
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 0x10
jb 0x42e147
mov esi, dword [esi]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push eax
mov edx, esi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x78], 0x67452301
mov dword [ebp - 0x74], 0xefcdab89
mov dword [ebp - 0x70], 0x98badcfe
mov dword [ebp - 0x6c], 0x10325476
call fcn.0045d5d0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.0045d690
add esp, 4
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.0042fc60
add esp, 4
mov dword [ebp - 0x80], 1
mov dword [ebp - 4], 0xb
mov eax, dword [0x525b80]
test eax, eax
je 0x42e1c1
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [0x525b78], 1
jne 0x42e1e6
xor cl, cl
call fcn.00443ec0
test byte [0x525b7c], 1
je 0x42e1e6
call fcn.00457950
and dword [0x525b7c], 0xfffffffe
mov eax, dword [0x525b80]
test eax, eax
je 0x42e1f6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 8
xor ecx, ecx
call fcn.00444d50
mov byte [ebp - 4], 0
add esp, 8
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.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x42e580
Capabilities:
Get system information on windows

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 0x4d86e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x520078]
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 - 0x3c], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x38]
push eax
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea ecx, [ebp - 0x290]
call fcn.004799b0
mov esi, eax
lea edi, [ebp - 0x168]
mov ecx, 0x47
mov eax, 0x4f6b5c
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x4e], 1
mov ecx, 0x4f409c
cmove eax, ecx
sub esp, 0x18
cmp word [ebp - 0x38], 9
mov edx, esp
mov dword [ebp - 0x40], esp
mov ecx, 0x4f6b70
push eax
mov eax, str.AMD64
cmovne eax, ecx
movzx ecx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
push dword [ebp - 0x160]
push dword [ebp - 0x164]
push str.win__d__d__d__d__d__s_s
push edx
call fcn.0042b9b0
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x42e67c
mov eax, dword [ecx]
jmp 0x42e67e
mov eax, ecx
push 2
xor edx, edx
push 0x4f6ba8
mov word [eax], dx
call fcn.00415460
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e000
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.0049384c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42f760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e39
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x42f79f
mov eax, dword [esi]
jmp 0x42f7a1
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x4f409c
push str.stats10
push str.server0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x42f7ea
cmp dword [esi + 0x14], 8
jb 0x42f7d5
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00430080
add esp, 8
jmp 0x42f911
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x23c]
call fcn.0042fb70
add esp, 4
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00418d20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42f865
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.004155f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00415560
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.0042e6c0
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x42f8ae
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.004155f0
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x42f911
push dword [ebp - 0x240]
mov edx, dword [ebp - 0x220]
push ecx
call fcn.00418c80
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00417af0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x42f926
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004155f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4307a0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f4f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
mov dword [ebp - 0x18], 0
call fcn.00493862
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00415110
lea ecx, [edi + 0x18]
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00419c70
lea ecx, [edi + 0x30]
xor eax, eax
lea edx, [esi + 0x30]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edx
mov word [ecx], ax
call fcn.00414f20
mov dword [ebx], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da556
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00493862
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004907c6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x441b50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, edx
mov dword [ebp - 0x214], eax
test esi, esi
je 0x441ce2
test eax, eax
je 0x441ce2
push ebx
push 4
push 0x4f8bac
push esi
call fcn.004bf554
add esp, 0xc
test eax, eax
je 0x441be0
push 4
push 0x4f8bdc
push esi
call fcn.004bf554
add esp, 0xc
test eax, eax
je 0x441be0
mov eax, 0x3a
cmp ax, word [esi + 2]
jne 0x441c0f
mov eax, 0x5c
cmp ax, word [esi + 4]
jne 0x441c0f
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b8445
add esp, 0xc
lea ebx, [ebp - 0x20c]
xor eax, eax
mov word [ebp - 0xa], ax
jmp 0x441c2e
push 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004b8445
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.004ac3d3
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x441c29
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
mov eax, 4
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
push edi
push dword [ebp - 0x214]
mov word [ebx], cx
lea ecx, [ebp - 0x210]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x441ca3
cmp eax, edi
jae 0x441ca3
mov ecx, dword [ebp - 0x214]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441c60
sub ecx, edx
sar ecx, 1
je 0x441ca3
lea eax, [ebp - 0x210]
sub ebx, eax
sar ebx, 1
lea esi, [esi + ebx*2]
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x441c83
sub edx, ebx
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
cmp eax, edi
jbe 0x441cb6
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
sub edi, ecx
push edi
push esi
lea eax, [eax + ecx*2]
push eax
call fcn.004b8445
add esp, 0xc
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x441f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
mov ebx, ecx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
mov edi, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
mov dword [ebp - 0x38], ebx
call fcn.0044bc50
test al, al
je 0x442080
mov eax, 0x5a4d
cmp word [ebp - 0xc], ax
jne 0x442080
push 4
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0
push 0x3c
call fcn.0044bc50
test al, al
je 0x442080
push 4
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push 0
push dword [ebp - 0x10]
call fcn.0044bc50
test al, al
je 0x442080
cmp dword [ebp - 0x14], 0x4550
jne 0x442080
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x14
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0044b8f0
test al, al
je 0x442080
cmp dword [ebp - 0x30], 0x14
je 0x441fe4
mov dword [ebx + 0x60], 0x1e
jmp 0x442080
mov eax, dword [ebp - 0x10]
mov edx, 0x8664
mov cx, word [ebp - 0x2c]
add eax, 0x98
cmp cx, dx
je 0x44200e
mov edx, 0x200
cmp cx, dx
je 0x44200e
mov edx, 0x284
cmp cx, dx
jne 0x442011
add eax, 0x10
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
mov ecx, ebx
call fcn.0044bc50
test al, al
je 0x442080
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x442080
mov edi, eax
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
ja 0x44203d
cmp edi, 7
jbe 0x44207e
mov ebx, 7
mov ecx, dword [ebp - 0x38]
mov esi, eax
push 1
dec ebx
lea eax, [ebp - 5]
sub edi, 1
push eax
sbb esi, 0
push esi
push edi
call fcn.0044bc50
test al, al
je 0x44206f
cmp byte [ebp - 5], 0
jne 0x44206f
mov eax, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jmp 0x442075
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
test ebx, ebx
jne 0x442042
mov esi, dword [ebp - 0x34]
jmp 0x442080
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x444ed0
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x525b80], esi
jne 0x444f8d
cmp dword [0x525b20], esi
jne 0x444f85
lea ecx, [esi + 1]
call fcn.004572c0
test eax, eax
jne 0x445064
mov ecx, 0x525b80
call fcn.0045b570
test eax, eax
jne 0x445064
call fcn.0044fbe0
lea ecx, [esi + 1]
call fcn.00443d30
test eax, eax
jne 0x445064
call fcn.00444e80
call fcn.0045adf0
mov esi, dword [0x525b24]
mov ecx, esi
call fcn.00414e00
test eax, eax
je 0x444f85
mov ecx, esi
call fcn.00414e00
cmp eax, 1
jb 0x444f77
push 0x4f407c
push 1
mov ecx, esi
call fcn.00414e00
dec eax
mov ecx, esi
push eax
call fcn.0044fb00
test eax, eax
je 0x444f85
push 1
push 0x4f407c
mov ecx, esi
call fcn.00414c90
inc dword [0x525b20]
xor esi, esi
mov eax, dword [0x525b80]
test eax, eax
je 0x444f9d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x525b78]
mov ecx, eax
inc eax
mov dword [0x525b78], eax
test ecx, ecx
jne 0x445052
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004bf834
add esp, 4
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ax, word [ebp - 0x210]
xor ecx, ecx
cmp cx, ax
je 0x444ff9
mov ecx, 0x25
cmp cx, ax
jne 0x44501d
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 4
call fcn.004573a0
mov esi, eax
test esi, esi
jne 0x44504d
or dword [0x525b7c], 1
mov cl, 1
call fcn.00443ec0
mov esi, eax
test esi, esi
jne 0x44504d
call fcn.00444480
call fcn.00444bf0
jmp 0x445052
call fcn.00445080
mov eax, dword [0x525b80]
test eax, eax
je 0x445062
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x44b670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
call fcn.004155c0
mov esi, dword [0x527728]
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebx], 0
mov dword [ebp - 8], 1
test esi, esi
je 0x44b6b7
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x44b6cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x527728]
test esi, esi
je 0x44b6e4
push dword [ebp - 8]
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x456470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc65e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.00451cf0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
push dword [esi + 0xc]
mov dword [esi], vtable.CryptoPP::MontgomeryRepresentation.0
push 0
call fcn.00454d40
mov byte [ebp - 4], 1
xor ecx, ecx
mov eax, dword [esi + 0xc]
mov edx, 4
lea eax, [eax + eax*4]
mov dword [esi + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00493d46
add esp, 4
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 2
push dword [esi + 0xc]
mov edx, dword [esi + 0x40]
push dword [esi + 0x10]
mov ecx, dword [esi + 0x34]
call fcn.00453d80
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x457af0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x401c
call fcn.00494660
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
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 0x457b84
cmp dword [0x527734], 0xd
jl 0x457b95
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4010], 0
push eax
push 4
lea eax, [ebp - 0x4010]
push eax
push 0x14
push dword [ebp - 0x4018]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x457b78
cmp dword [ebp - 0x4010], 0
jne 0x457b95
push dword [ebp - 0x4018]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
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 0x457b78
push esi
push dword [ebp - 0x4018]
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 0x457c24
nop word [eax + eax]
push dword [ebp + esi*8 - 0x4000]
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x457c22
inc esi
cmp esi, dword [ebp - 0x4004]
jb 0x457c00
jmp 0x457c24
mov bl, 1
push dword [ebp - 0x401c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret