joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ea9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x44907d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x48ac60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44907d
test cl, 0x48
je 0x448f14
cmp byte [eax + 5], 0xa
je 0x448f14
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x448f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x448f4e
call fcn.00448e24
mov dword [eax], 9
call fcn.00448e2d
mov dword [eax], esi
jmp 0x448f5e
cmp eax, 0x6d
je 0x44907d
push eax
call fcn.00448e36
pop ecx
or eax, 0xffffffff
jmp 0x44907f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x449078
test eax, eax
je 0x448f8d
cmp byte [ebx], 0xa
jne 0x448f8d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x448f96
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x449072
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x449062
cmp al, 0xd
je 0x448fc8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x449054
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x448fe2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x448fdd
add dword [ebp + 0x10], 2
jmp 0x449036
mov dword [ebp + 0x10], eax
jmp 0x449050
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44900a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x449050
cmp dword [ebp - 0xc], 0
je 0x449050
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x44902b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x449036
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x449053
cmp ebx, dword [ebp + 0xc]
jne 0x44903b
cmp byte [ebp - 1], 0xa
jne 0x44903b
mov byte [ebx], 0xa
jmp 0x449053
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044be64
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x449054
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x448fac
jmp 0x449072
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x449072
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x44907f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44dd76
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x486940]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x486ed0]
je 0x44ddab
inc eax
cmp eax, 0x13
jb 0x44dd9c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x486ed0]
jne 0x44ded1
mov eax, dword [0x488908]
cmp eax, 1
je 0x44dea9
cmp eax, edx
jne 0x44dddb
cmp dword [0x486934], 1
je 0x44dea9
cmp ecx, 0xfc
je 0x44ded1
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44de11
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00449b60
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00449c60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44de45
mov eax, edi
push eax
call fcn.00449c60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x472358
push edi
call fcn.00448cc0
add esp, 0x10
push edi
call fcn.00449c60
push dword [esi + 0x486ed4]
mov ebx, eax
call fcn.00449c60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00447f70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00449b60
push edi
push ebx
call fcn.00449b70
push 0x472338
push ebx
call fcn.00449b70
push dword [esi + 0x486ed4]
push ebx
call fcn.00449b70
push 0x12010
push str.Microsoft_Visual_C
push ebx
call fcn.00452316
add esp, 0x2c
jmp 0x44ded1
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x486ed4]
push dword [esi]
call fcn.00449c60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00448c5b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x44ea71
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00447f70
mov eax, dword [0x486940]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0044be64
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x44eba4
push 2
push esi
push dword [ebp + 8]
call fcn.0044be64
add esp, 0xc
cmp eax, ebx
je 0x44eba4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x44eb44
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044a120
push 0x8000
push dword [ebp + 8]
call fcn.00452453
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x44eafa
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00450b9b
add esp, 0xc
cmp eax, 0xffffffff
je 0x44eb1a
sub edi, eax
test edi, edi
jg 0x44eaf2
jmp 0x44eb32
call fcn.00448e2d
cmp dword [eax], 5
jne 0x44eb2f
call fcn.00448e24
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00452453
pop ecx
pop ecx
jmp 0x44eb8c
jge 0x44eb8c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044be64
push dword [ebp + 8]
call fcn.0044e7f2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x44eb8c
call fcn.00448e24
mov dword [eax], 0xd
call fcn.00448e2d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0044be64
add esp, 0xc
mov eax, esi
pop edi
jmp 0x44eba6
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00448c5b
leave
ret
Function at 0x450b9b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x486940]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x450bcc
xor eax, eax
jmp 0x450d55
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x48ac60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x450c08
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0044924d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x450ce3
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x450d21
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x450c6c
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x450c5d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x450c3d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450cac
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x450cb5
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x450c2e
jmp 0x450cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x450d50
cmp dword [ebp - 0x6c], edi
je 0x450d21
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x450d16
call fcn.00448e24
mov dword [eax], 9
call fcn.00448e2d
mov dword [eax], esi
jmp 0x450d4b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450d0b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x450cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x450cb7
push dword [ebp - 0x6c]
call fcn.00448e36
pop ecx
jmp 0x450d4b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x450d39
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x450d39
xor eax, eax
jmp 0x450d53
call fcn.00448e24
mov dword [eax], 0x1c
call fcn.00448e2d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x450d53
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00448c5b
add ebp, 0x3a0
leave
ret
Function at 0x4511f6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x451224
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x45122b
cmp ebx, dword [eax + 4]
jae 0x45122b
xor eax, eax
jmp 0x45141b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45123c
xor eax, eax
inc eax
jmp 0x45141a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x451252
cmp ecx, edx
jae 0x451397
cmp dword [eax + 4], 0
je 0x45125b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x451243
cmp dword [ebp + 8], 0
je 0x45127d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x451397
cmp eax, esi
jae 0x451397
mov eax, dword [0x488be8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4512a2
cmp dword [esi*4 + 0x488bf0], edi
je 0x45139b
inc esi
cmp esi, eax
jl 0x451290
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x451417
cmp dword [ebp - 8], 0x1000000
jne 0x451417
test byte [ebp - 0xc], 0xcc
je 0x451320
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x451417
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x451417
cmp word [eax + 0x18], 0x10b
jne 0x451417
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x451417
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x451320
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x451320
test byte [ecx + 0x27], 0x80
jne 0x451397
push 1
push 0x488c30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x451234
mov ecx, dword [0x488be8]
test ecx, ecx
mov edx, ecx
jle 0x451354
lea eax, [ecx*4 + 0x488bec]
cmp dword [eax], edi
je 0x451354
dec edx
sub eax, 4
test edx, edx
jg 0x451348
test edx, edx
jne 0x451385
push 0xf
pop ebx
cmp ecx, ebx
jg 0x451361
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x451379
lea eax, [edx*4 + 0x488bf0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x451367
cmp ecx, 0x10
jge 0x451385
inc ecx
mov dword [0x488be8], ecx
push 0
push 0x488c30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x451234
xor eax, eax
jmp 0x45141a
test esi, esi
jle 0x451234
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x488c30
call ebx
test eax, eax
jne 0x451234
cmp dword [esi*4 + 0x488bf0], edi
je 0x4513f1
mov eax, dword [0x488be8]
lea esi, [eax - 1]
test esi, esi
jl 0x4513df
cmp dword [esi*4 + 0x488bf0], edi
je 0x4513db
dec esi
jns 0x4513cf
test esi, esi
jge 0x4513ef
cmp eax, 0x10
jge 0x4513ea
inc eax
mov dword [0x488be8], eax
lea esi, [eax - 1]
jmp 0x4513f1
je 0x451409
xor ecx, ecx
test esi, esi
jl 0x451409
lea eax, [ecx*4 + 0x488bf0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4513f7
push 0
push 0x488c30
call ebx
jmp 0x451234
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452316
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x488cb0], ebx
push esi
push edi
jne 0x452396
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4523d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x472c88
push edi
call esi
test eax, eax
mov dword [0x488cb0], eax
je 0x4523d1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x488cb4], eax
call esi
cmp dword [0x4888bc], 2
mov dword [0x488cb8], eax
jne 0x452396
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x488cc0], eax
je 0x452396
push 0x472c30
push edi
call esi
mov dword [0x488cbc], eax
mov eax, dword [0x488cbc]
test eax, eax
je 0x4523db
call eax
test eax, eax
je 0x4523c2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x488cc0]
test eax, eax
je 0x4523c2
test byte [ebp - 8], 1
jne 0x4523db
cmp dword [0x4888c8], 4
jb 0x4523d5
or byte [ebp + 0x12], 0x20
jmp 0x4523fa
xor eax, eax
jmp 0x45240a
or byte [ebp + 0x12], 4
jmp 0x4523fa
mov eax, dword [0x488cb4]
test eax, eax
je 0x4523fa
call eax
mov ebx, eax
test ebx, ebx
je 0x4523fa
mov eax, dword [0x488cb8]
test eax, eax
je 0x4523fa
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x488cb0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4526ad
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00447f70
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x452748
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4888bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x452748
cmp eax, 1
je 0x452769
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x452748
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x452715
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x452744
xor eax, eax
inc eax
jmp 0x452788
cmp edi, eax
jae 0x45274c
xor eax, eax
jmp 0x452788
cmp eax, esi
jae 0x452753
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4888bc]
jmp 0x45276c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452dea
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x452e03
or eax, 0xffffffff
jmp 0x452e64
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x452e60
push 0x3d
push esi
call fcn.00453fdc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x452e60
cmp esi, eax
je 0x452e60
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4888dc]
sete cl
cmp eax, dword [0x4888e0]
mov dword [ebp - 8], ecx
jne 0x452e46
mov edi, eax
call fcn.00452d89
mov dword [0x4888dc], eax
cmp eax, ebx
jne 0x452e9f
cmp dword [ebp + 0xc], ebx
je 0x452e68
cmp dword [0x4888e4], ebx
je 0x452e68
call fcn.00450b0b
test eax, eax
je 0x452e9f
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x452e71
xor eax, eax
jmp 0x452e63
push 4
call fcn.0044abcf
cmp eax, ebx
pop ecx
mov dword [0x4888dc], eax
je 0x452e60
mov dword [eax], ebx
cmp dword [0x4888e4], ebx
jne 0x452e9f
push 4
call fcn.0044abcf
cmp eax, ebx
pop ecx
mov dword [0x4888e4], eax
je 0x452e60
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4888dc]
call fcn.00452d3c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x452f00
cmp dword [esi], ebx
je 0x452f00
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00449a9f
cmp dword [ebp - 8], ebx
pop ecx
jne 0x452ee3
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x452f41
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x452eda
mov eax, edi
shl eax, 2
push eax
push dword [0x4888dc]
call fcn.0044cbae
cmp eax, ebx
pop ecx
pop ecx
je 0x452f41
jmp 0x452f3c
cmp dword [ebp - 8], ebx
jne 0x452fac
cmp edi, ebx
jge 0x452f0f
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4888dc]
call fcn.0044cbae
cmp eax, ebx
pop ecx
pop ecx
je 0x452e60
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4888dc], eax
cmp dword [ebp + 0xc], ebx
je 0x452f96
push dword [ebp - 4]
call fcn.00449c60
inc eax
inc eax
push eax
call fcn.0044abcf
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x452f96
push dword [ebp - 4]
push esi
call fcn.00449b60
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x452f8f
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00449a9f
pop ecx
cmp dword [ebp - 8], ebx
je 0x452fa4
push dword [ebp - 4]
call fcn.00449a9f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x452e63
push dword [ebp - 4]
call fcn.00449a9f
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x452e6d
Function at 0x4543c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov al, byte [0x488dd5]
test al, al
push esi
push edi
jne 0x4544e3
mov al, byte [0x488174]
test al, al
je 0x4544cc
lea ecx, [esp + 0x10]
call fcn.00454b40
mov dword [esp + 0x22c], 0
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push 0x2000000
mov byte [esp + 0x234], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x454470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x472dd0
lea ecx, [esp + 0x124]
call fcn.00443bf0
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x47c164
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044777e
mov edx, dword [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00454c20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x454499
mov byte [0x488dd4], 1
mov edx, dword [esp + 0x14]
push edx
call fcn.004470fd
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x4544b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call fcn.004470fd
add esp, 4
jmp 0x4544dc
mov eax, dword [0x488db4]
test eax, eax
je 0x4544dc
mov byte [0x488dd4], 1
mov byte [0x488dd5], 1
mov ecx, dword [esp + 0x224]
mov al, byte [0x488dd4]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x454500
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46689b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
push edi
mov esi, ecx
push 0x101
mov dword [esp + 0x10], esi
call fcn.00447107
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x22c], 0
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x45458f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetUserName_failed
lea ecx, [esp + 0x11c]
call fcn.00443bf0
push 0x47c164
lea edx, [esp + 0x14]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4547a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4668f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 4], bl
call fcn.004543c0
test al, al
je 0x4548c2
cmp byte [0x488175], bl
je 0x45487e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00454500
mov eax, dword [ebp - 0x18]
push eax
mov dword [esi], 0xffffffff
call fcn.004470fd
mov eax, dword [esi]
add esp, 4
test eax, eax
setne cl
mov byte [esi + 4], cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x488de8]
cmp eax, ebx
je 0x454894
push esi
push 0xffffffffffffffff
call eax
test eax, eax
jne 0x45491b
push esi
push 0x4546d0
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsA]
cmp dword [esi], ebx
setne dl
mov byte [esi + 4], dl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45491b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x454915
push eax
push str.OpenProcessToken_failed
lea ecx, [ebp - 0x224]
call fcn.00443bf0
mov esi, eax
push 0x47c164
lea eax, [ebp - 0x120]
mov ecx, 0x41
lea edi, [ebp - 0x120]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044777e
mov dword [esi], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov byte [esi + 4], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454ea1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push ebp
push esi
push edi
push 8
mov edi, ecx
call fcn.00431401
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push ebx
push 1
push ebx
lea esi, [edi + 0x18]
push ebx
push esi
mov dword [edi], 0x473028
mov dword [esi], ebx
call ebp
test eax, eax
jne 0x454f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x454eee
push 8
push 1
push ebx
push ebx
push esi
call ebp
test eax, eax
jne 0x454f01
push str.RandomStream:_unable_to_create_keyset_n
jmp 0x454ef3
push str.RandomStream:_unable_to_acquire_context_n
push 0x4866f0
call fcn.00447fad
pop ecx
pop ecx
mov dword [esi], ebx
cmp dword [esi], ebx
jne 0x454f46
push 0x472f90
push 0x4866f0
call fcn.00447fad
push ebx
call fcn.0044a26a
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, eax, 0xf1207
add esi, eax
call fcn.0044a248
add eax, dword [0x488e08]
add eax, esi
push eax
mov dword [0x488e08], eax
call fcn.0044a23b
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret