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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x421e95
je 0x421eef
sub eax, 7
je 0x421eb6
dec eax
je 0x421ee0
sub eax, 0x17
je 0x421f70
jmp 0x421fae
add eax, 0xffffff00
sub eax, 9
jb 0x421f5c
add eax, 0xffffff09
sub eax, 0xb
jb 0x421f46
jmp 0x421fae
mov eax, ebx
call fcn.00431fac
mov edi, eax
test edi, edi
je 0x42200e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x422017
jmp 0x42200e
test byte [ebx + 0x44], 0x20
jne 0x422017
jmp 0x42200e
mov edx, esi
mov eax, ebx
call fcn.0041f7d8
cmp dword [esi + 0xc], 0xffffffff
jne 0x422017
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406454
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041e264
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00421d14
test eax, eax
je 0x422017
mov dword [esi + 0xc], 1
jmp 0x422017
mov edx, esi
mov eax, ebx
call fcn.00421dd8
test al, al
jne 0x422017
jmp 0x42200e
mov eax, ebx
call fcn.0041ee44
test al, al
jne 0x422017
jmp 0x42200e
mov eax, ebx
call fcn.00424390
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42200e
cmp dword [0x43c678], 0
je 0x42200e
mov eax, dword [0x43c678]
cmp ebx, dword [eax + 0x24]
jne 0x42200e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x43c678]
call fcn.0041f6f4
jmp 0x42200e
mov eax, dword [0x43d720]
cmp byte [eax + 0x20], 0
je 0x42200e
mov eax, dword [0x43d720]
cmp dword [eax + 0x1c], 0
je 0x42200e
mov eax, dword [esi]
mov edx, dword [0x43d720]
cmp eax, dword [edx + 0x1c]
jne 0x42200e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00431ec0
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00402de0
jmp 0x422017
mov edx, esi
mov eax, ebx
call fcn.0041f7d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4224a8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4224c4
cmp dword [esi + 4], 0
je 0x4224f1
test byte [ebx + 0x45], 1
jne 0x4224e3
mov eax, ebx
call fcn.00421588
test eax, eax
jne 0x4224e3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x422601
mov edx, esi
mov eax, ebx
call fcn.00422120
jmp 0x422601
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4225fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00424390
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0041f6f4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004224a8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00424390
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422601
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ba20
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040378c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42ba81
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x42ba81
cmp byte [ebp - 0x102], 0
je 0x42ba81
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431c90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43d7d4
cmp dword [edi], 0
jne 0x431d0c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x43d7d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43c804
mov ecx, 2
call fcn.00402798
mov edx, 0x431c68
lea eax, [esi + 5]
call fcn.00431c88
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431c88
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x431ce1
mov dword [0x43d7d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431e80]
test si, 4
je 0x431e44
or bl, 1
test si, 8
je 0x431e4e
or bl, 4
test si, 1
je 0x431e58
or bl, 8
test si, 2
je 0x431e62
or bl, 0x10
test si, 0x10
je 0x431e6c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431e7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x431e84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431ebc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431e9d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431eac
or bl, 4
test esi, 0x20000000
je 0x431eb7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x438404
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4385a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b630]
call fcn.00402bdc
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040378c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43857f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004287a0
test al, al
je 0x438572
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4385b8
lea eax, [ebp - 0x254]
call fcn.00407e70
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x438572
xor eax, eax
push ebp
push 0x43856b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4385f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x438554
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x438554
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438572
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x438475
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e4c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4385b0
lea eax, [ebp - 0x260]
call fcn.0040378c
ret

Function at 0x438d44
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x43d7a4]
cmp byte [eax + 0x8d], 0
jne 0x438db5
cmp dword [0x43d7e0], 0
jne 0x438d76
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x438d00
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x43d7e0], eax
cmp dword [0x43d7dc], 0
jne 0x438d91
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x43d7dc], eax
cmp dword [0x43d7e4], 0
jne 0x438db5
push esp
push 0
push 0
push 0x438ca4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x43d7e4], eax
pop edx
ret
Function at 0x438eac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x438ec3
add esp, 0xfffffff0
call fcn.00402ed8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041129c
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b330]
call fcn.00402bdc
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b330]
call fcn.00402bdc
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x412dcc]
call fcn.004185f8
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x439034
mov eax, dword [0x43ca7c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041899c
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x43a948
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x43ca7c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409088
test eax, eax
je 0x438fb3
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004077f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004090b0
test eax, eax
je 0x438fc7
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004039b8
mov eax, dword [0x43c9a0]
cmp byte [eax], 0
jne 0x438ff8
mov eax, ebx
call fcn.00439120
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43902a
call fcn.00402f30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43937c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x43d7a4]
cmp dword [eax + 0x24], 0
je 0x43940c
cmp dword [ebx + 0x7c], 0
jne 0x439409
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x439310
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x439409
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4393d8
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x439409
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040c954
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4393e4
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x439d5c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x439d91
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403870
jmp 0x439d9b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403824
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43ac78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x43acb0
mov eax, esi
call fcn.00424770
test al, al
je 0x43acb0
mov eax, dword [ebx + 0x6c]
call fcn.00424390
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43acb0
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00424390
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43b9a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov eax, 0x43b89c
call fcn.00405b54
mov esi, dword [0x43cb94]
push 0xffffffffffffffec
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
push ebx
call sub.user32.dll_GetWindowLongA
and eax, 0xfffbffff
or eax, 0x80
push eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_SetWindowLongA
mov eax, dword [esi]
call fcn.0043a168
mov eax, dword [esi]
mov edx, 0x43ba28
call fcn.00439da4
mov ecx, dword [0x43cc60]
mov eax, dword [esi]
mov edx, dword [0x43b6a8]
call fcn.0043a180
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi]
call fcn.0043a200
pop esi
pop ebx
call fcn.0040365c
add byte [eax], al
add bh, bh
invalid
Function at 0x4020e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eef0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x416008]
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 dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], 0
mov ebx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x40215f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402140
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402b30
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmp ebx, 8
push 0xe
cmovae ecx, edi
push ecx
call fcn.00402c80
add esp, 8
test eax, eax
je 0x402184
mov esi, 1
jmp 0x402272
push str.AD5908C3_BD87_4135_BED8_A21BB490A892
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 8], eax
test eax, eax
jne 0x4021a5
or esi, 0xffffffff
jmp 0x402272
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4021cc
mov esi, dword [ebp - 0x2c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
xor esi, esi
jmp 0x402272
mov edx, esi
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4021f3
sub edx, ecx
lea ecx, [ebp - 0x44]
sar edx, 1
push edx
push esi
call fcn.00402b30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.004022f0
mov esi, eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x40225e
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402254
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040d8bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 0xffffffff
cmp ebx, 8
jb 0x4022af
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4022a5
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4022a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.0040d8bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x14], 7
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.0040d87b
mov esp, ebp
pop ebp
ret 4
Function at 0x407c40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x414808
push 0x40dfbc
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x416008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x407ca9
xor eax, eax
jmp 0x407e1f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407dea
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x407dea
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407dea
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x407dea
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407dea
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x407dea
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407dea
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x407dea
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407dea
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x407dea
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x407dea
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x407dd3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x407dc0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x407dd0
jmp 0x407dea
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00407e46
test ebx, ebx
jne 0x407e1d
test esi, esi
je 0x407e0f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x407e1d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040d87b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fc48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x416008]
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
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408486
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408536
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00408740
test al, al
je 0x4084df
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x408522
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408518
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408518
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040d8bc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
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.0040d87b
mov esp, ebp
pop ebp
ret