joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6a70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x214], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, dword [ebp + 8]
mov ebx, eax
cmp edi, 9
je 0x4d6ac5
cmp edi, 0x25
je 0x4d6ac5
cmp edi, 0x26
je 0x4d6ac5
cmp edi, 0x27
je 0x4d6ac5
cmp edi, 0x28
jne 0x4d6bcb
push 0x200
lea eax, [ebp - 0x204]
mov byte [ebp - 0x205], 0
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x100
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov ecx, 0x5a99f0
lea eax, [ebp - 0x204]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d6b26
test dx, dx
je 0x4d6b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d6b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d6b00
xor eax, eax
jmp 0x4d6b2b
sbb eax, eax
or eax, 1
movzx ecx, byte [ebp - 0x205]
test eax, eax
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 1
cmove ecx, edx
push esi
xor esi, esi
cmp edi, 9
jne 0x4d6b66
push 0x10
call eax
shr eax, 0xf
and eax, 1
push eax
mov eax, dword [ebp - 0x20c]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
jmp 0x4d6b98
cmp edi, 0x25
je 0x4d6b70
cmp edi, 0x26
jne 0x4d6b78
test cl, cl
jne 0x4d6b78
push 1
jmp 0x4d6b88
cmp edi, 0x27
je 0x4d6b82
cmp edi, 0x28
jne 0x4d6ba3
test cl, cl
jne 0x4d6ba3
push 0
mov eax, dword [ebp - 0x20c]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov esi, eax
test esi, esi
jne 0x4d6bc1
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
cmp edi, 9
jne 0x4d6bc8
push 0x10
call eax
mov esi, dword [ebp - 0x210]
mov ecx, 0x8000
test cx, ax
cmovne esi, dword [ebp - 0x214]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0053f778
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d6cf0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x4d8b00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x100
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x80
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4d8b67
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
xor eax, eax
mov dword [ebp - 0x114], 7
mov dword [ebp - 0x118], 0
mov word [ebp - 0x128], ax
cmp word [ebp - 0x10c], ax
jne 0x4d8b91
xor ecx, ecx
jmp 0x4d8baf
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d8ba0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00402b20
lea eax, [ebp - 0x128]
mov edx, ebx
push eax
push 1
push 1
push dword [esi + 0xa0]
mov ecx, edi
push 7
push dword [ebp - 0x110]
call fcn.004eb3d0
mov eax, dword [ebp - 0x114]
add esp, 0x18
cmp eax, 8
jb 0x4d8c04
push 2
inc eax
push eax
push dword [ebp - 0x128]
call fcn.00403190
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f778
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d95a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c57b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5d3070]
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 esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x810]
mov ebx, dword [ebp + 0xc]
push 0x800
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x820]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movups xmmword [ebp - 0x820], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
movd xmm1, dword [0x5dc06c]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x824], 7
mov dword [ebp - 0x828], 0
divss xmm1, dword [0x5b0318]
movaps xmm0, xmm1
mulss xmm0, dword [0x5b02ac]
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 0x820], eax
xor eax, eax
mov word [ebp - 0x838], ax
cmp word [ebp - 0x810], ax
jne 0x4d9671
xor ecx, ecx
jmp 0x4d968f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9680
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402b20
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
cmp eax, method.CAboutDlg.virtual_36
jne 0x4d96c0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
jmp 0x4d96c4
mov ecx, esi
call eax
test eax, eax
je 0x4d96cc
push 8
jmp 0x4d96ce
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [ebp - 0x838]
mov edx, ebx
push ecx
push 1
push 0
push eax
lea eax, [ebp - 0x820]
mov ecx, edi
push 7
push eax
call fcn.004eb3d0
mov eax, dword [ebp - 0x824]
add esp, 0x18
cmp eax, 8
jb 0x4d9712
push 2
inc eax
push eax
push dword [ebp - 0x838]
call fcn.00403190
add esp, 0xc
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.0053f778
mov esp, ebp
pop ebp
ret 8

Function at 0x4da970
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], 0
jne 0x4da9c3
xor ecx, ecx
jmp 0x4da9df
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da9d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402b20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4
Function at 0x4daa00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c5c6
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x218], 0
jne 0x4daa86
xor ecx, ecx
jmp 0x4daa9f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4daa90
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402b20
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x248]
mov ecx, 1
call fcn.00506e60
add esp, 4
test al, al
jne 0x4daaff
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.004dab80
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4dab1c
push 2
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00403190
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4dab56
push 2
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00403190
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4

Function at 0x4dc2c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4dc33e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x20c], 0
jne 0x4dc316
xor ecx, ecx
jmp 0x4dc32f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dc320
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402b20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053f778
mov esp, ebp
pop ebp
ret 4
Function at 0x4e1480
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, ecx
push 0x26
call edi
mov ecx, 0xff
and ax, cx
cmp ax, 1
push 0x28
setg bh
call edi
mov ecx, 0xff
and ax, cx
cmp ax, 1
push 0x10
setg bl
mov byte [esp + 0x17], bl
call edi
shr eax, 0xf
test al, 1
jne 0x4e14d0
mov ecx, esi
call fcn.004e0cb0
test bh, bh
jne 0x4e14dc
test bl, bl
je 0x4e15e7
push 0x10
call edi
shr eax, 0xf
test al, 1
je 0x4e15e7
cmp dword [esi + 0xa8], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x4e150e
push 0
push 9
push 0x110a
push dword [esi + 4]
call edi
mov dword [esi + 0xa8], eax
push dword [esi + 0xa8]
mov ecx, esi
call fcn.004df440
push eax
lea ecx, [esi + 0xac]
call fcn.0050cd10
push 0
push 9
push 0x110a
push dword [esi + 4]
call edi
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004df440
push eax
lea ecx, [esi + 0xac]
call fcn.0050cd10
cmp byte [esp + 0x13], 0
push dword [esp + 0x14]
je 0x4e157a
push 7
push 0x110a
push dword [esi + 4]
call edi
mov edi, eax
test edi, edi
je 0x4e15da
push dword [esi + 0xa8]
mov ecx, esi
push edi
call fcn.004e0e40
jmp 0x4e159a
push 6
push 0x110a
push dword [esi + 4]
call edi
mov edi, eax
test edi, edi
je 0x4e15da
push dword [esi + 0xa8]
mov ecx, esi
push edi
call fcn.004e0ea0
test al, al
je 0x4e15da
push edi
mov ecx, esi
call fcn.004e0f80
push edi
mov ecx, esi
call fcn.004df440
push eax
lea ecx, [esi + 0xac]
call fcn.0050cfb0
test al, al
je 0x4e15da
cmp dword [esi + 0xa8], edi
je 0x4e15da
push edi
mov ecx, esi
call fcn.004df440
push eax
lea ecx, [esi + 0xac]
call fcn.0050cef0
push dword [esi + 0xa8]
mov ecx, esi
call fcn.004e0d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ece60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x4ecf75
push 0x100
lea eax, [esp + 0x34]
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [esp + 0x30]
push 0x80
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
mov edi, dword [esi + 0x9c]
cmp eax, vtable.RT::CButton.0
jne 0x4ecf8c
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4ecef2
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, eax
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp word [esp + 0x30], ax
jne 0x4ecf14
xor ecx, ecx
jmp 0x4ecf2f
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ecf20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.00402b20
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 1
push 1
push edi
push 7
push dword [esp + 0x24]
mov edx, ebx
call fcn.004eb3d0
mov eax, dword [esp + 0x44]
add esp, 0x18
cmp eax, 8
jb 0x4ecf75
push 2
inc eax
push eax
push dword [esp + 0x20]
call fcn.00403190
add esp, 0xc
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call dword [eax + 0x24]
jmp 0x4ecee4
Function at 0x4f3700
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57cc18
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5d3070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [ebp - 0x80], xmm0
call fcn.00403030
push 1
push 0x5a53c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404380
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404460
push 0x44
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4f37c3
xor bl, bl
jmp 0x4f37d9
push 0xffffffffffffffff
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4f37f0
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00403190
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f778
mov esp, ebp
pop ebp
ret

Function at 0x4f3810
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x208
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x104
push 0
push eax
mov esi, ecx
call fcn.005481a0
add esp, 0xc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4f386f
xor al, al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0053f778
add esp, 0x210
ret
cmp word [esp + 8], 0
jne 0x4f387b
xor ecx, ecx
jmp 0x4f3891
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3882
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00402b20
mov ecx, dword [esp + 0x210]
mov al, 1
pop esi
xor ecx, esp
call fcn.0053f778
add esp, 0x210
ret
Function at 0x4f3a70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x208
lea eax, [esp + 0xc]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.005481a0
add esp, 0xc
lea eax, [esp + 8]
push 1
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4f3b25
cmp word [esp + 8], 0
jne 0x4f3ae2
xor ecx, ecx
lea eax, [esp + 8]
push ecx
push eax
mov ecx, edi
call fcn.00402b20
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0053f778
add esp, 0x20c
ret
lea ecx, [esp + 8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3af0
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402b20
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0053f778
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0053f778
add esp, 0x20c
ret

Function at 0x4f3d40
Capabilities:
Create directory

Disassembly:
sub esp, 0x44
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
push edi
xor esi, esi
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x64], esi
push eax
mov edi, ecx
mov word [esp + 0x6c], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4f3e43
mov eax, dword [esp + 8]
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0x38], esi
movups xmmword [esp + 0x24], xmm0
push eax
push 1
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 3
mov dword [esp + 0x44], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x4f3e43
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4f3e43
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4f3e43
push 0
push dword [esp + 0x10]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4f3e43
cmp dword [edi + 0x14], 8
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
jb 0x4f3e2d
mov edi, dword [edi]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4f3e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 8]
test eax, eax
je 0x4f3e52
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x4f3e63
push eax
call edi
test esi, esi
je 0x4f3e6a
push esi
call edi
mov ecx, dword [esp + 0x44]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0053f778
add esp, 0x44
ret
Function at 0x4f5100
Capabilities:
Get geographical location

Disassembly:
push ecx
push ebx
push ebp
push esi
push 0
push 0
mov ebp, edx
movzx ebx, cx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f7f7
add esp, 4
push esi
mov esi, eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [esi], 0
jne 0x4f5146
xor ecx, ecx
jmp 0x4f515f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f5150
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00402b20
push esi
call fcn.0053f7f2
add esp, 4
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4f5870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0xc], eax
mov dword [esp], 0
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
sub ecx, 1
je 0x4f58b3
sub ecx, 1
je 0x4f58ac
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0053f778
add esp, 0x10
ret
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x4f58b8
mov eax, 0x80000002
cmp dword [edx + 0x14], 8
jb 0x4f58c0
mov edx, dword [edx]
lea ecx, [esp + 8]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f5899
cmp dword [esi + 0x14], 8
mov dword [esp + 0xc], eax
jb 0x4f58e3
mov eax, dword [esi]
jmp 0x4f58e5
mov eax, esi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f5899
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4f5899
xor ecx, ecx
mov dword [esp + 0x10], 1
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f7f7
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x4f5933
mov esi, dword [esi]
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f5956
cmp dword [esp + 0x14], 1
je 0x4f596a
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0053f778
add esp, 0x10
ret
push edi
mov ecx, ebp
call fcn.00404340
push edi
call fcn.0053f7f2
add esp, 4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov al, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0053f778
add esp, 0x10
ret

Function at 0x4f5a40
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x18], eax
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 4], ax
lea eax, [esp + 4]
push eax
movups xmmword [esp + 0xa], xmm0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
jne 0x4f5a7b
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0053f778
add esp, 0x1c
ret
lea eax, [esp]
mov dword [esp], 0
push eax
lea eax, [esp + 8]
push 0x5af260
push eax
call fcn.00497b50
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp]
xor ecx, esp
call fcn.0053f778
add esp, 0x1c
ret
Function at 0x4f69f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 4], eax
cmp dword [ecx + 0x14], 8
mov dword [esp], 0
jb 0x4f6a0d
mov ecx, dword [ecx]
push 0x5af35c
push ecx
lea eax, [esp + 8]
push eax
call fcn.005532d2
mov eax, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x4f6a37
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0053f778
add esp, 8
ret
push ebx
push esi
push 2
push 0
push eax
call fcn.0055499d
push dword [esp + 0x14]
call fcn.00554f96
push dword [esp + 0x18]
mov ebx, eax
call fcn.00554fa1
push ebx
call fcn.00553927
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4f6a77
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0053f778
add esp, 8
ret
push edi
push dword [esp + 0xc]
xor edi, edi
push ebx
push 1
push esi
call fcn.005534f0
add esp, 0x10
test eax, eax
je 0x4f6ab0
nop
push eax
mov edx, esi
mov ecx, edi
call fcn.004fb330
push dword [esp + 0x10]
mov edi, eax
push ebx
push 1
push esi
call fcn.005534f0
add esp, 0x14
test eax, eax
jne 0x4f6a90
push dword [esp + 0xc]
call fcn.00553616
push esi
call fcn.00553932
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f778
add esp, 8
ret

Function at 0x4f6b30
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
mov eax, dword [0x5d3070]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
push 0x208
lea eax, [esp + 0x244]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.005481a0
add esp, 0xc
lea eax, [esp + 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [edi + 0x14], 8
jb 0x4f6b83
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x4f6b92
mov esi, dword [esi]
push ecx
mov ecx, esi
call fcn.005007c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f6bba
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret
push 0x230
lea eax, [esp + 0x14]
push 0
push eax
call fcn.005481a0
add esp, 0xc
lea eax, [esp + 0x10]
or edx, 0xffffffff
mov ecx, edi
push eax
call fcn.00500850
mov ebx, dword [esp + 0x14]
add esp, 4
xor esi, esi
test ebx, ebx
je 0x4f6c2d
nop word [eax + eax]
lea eax, [esp + 0x10]
mov edx, esi
push eax
mov ecx, edi
call fcn.00500850
add esp, 4
cmp dword [edi], 1
je 0x4f6c12
mov dword [0x5dad20], 0x80000
jmp 0x4f6c28
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
sub esp, 8
push eax
push esi
call fcn.00500460
mov dword [0x5dad20], eax
inc esi
cmp esi, ebx
jb 0x4f6bf0
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.005009a0
xor ecx, ecx
test eax, eax
pop edi
sete al
mov ecx, dword [esp + 0x448]
pop esi
pop ebx
xor ecx, esp
call fcn.0053f778
mov esp, ebp
pop ebp
ret