joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4091c0
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00408db0
push 0x5ab220
push 0x5ab080
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
push 0x409070
push 0
push 0
call eax
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
ret 0x10

Function at 0x40a710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a72b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a762
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40a75e
jmp 0x40a750
cmp esi, eax
jae 0x40a762
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a750
cmp esi, eax
jb 0x40a769
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41b5de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41b625
call fcn.00438b3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41b625
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b641
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b0de
mov esi, eax
test edi, edi
je 0x41b63f
test ebx, ebx
je 0x41b63f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d764
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x563dad
call fcn.0054c12a
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41d789
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41d7db
call fcn.004469d8
push eax
lea ecx, [ebp - 0x10]
call fcn.00406ee0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054c234
push eax
call fcn.0040a7c0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405180
mov eax, esi
call fcn.0054c202
ret 8

Function at 0x42e80a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x42e824
call fcn.00438b3b
mov esi, dword [eax + 0xc]
push dword [0x5d9afc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x42e842
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x42e83a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42e86f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x42e83c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0042e738
mov esi, eax
jmp 0x42e861
Function at 0x49da72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x49daba
call fcn.00438b3b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49daba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x49dafd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x49dae6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x49dae6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x49dafa
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a1269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00438b3b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a12a2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004a0ea6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4a1300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4a1324
cmp dword [edi + 0x74], 0
jne 0x4a1324
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00438b3b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004a12c1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a785c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x56bb8d
call fcn.0054c12a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d320
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4a78be
call fcn.004383fe
cmp eax, 1
jne 0x4a78be
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0046b2fe
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00411bae
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405180
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405180
mov eax, esi
call fcn.0054c202
ret 0x10

Function at 0x4a78e7
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x56bb8d
call fcn.0054c12a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d320
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4a7949
call fcn.004383fe
cmp eax, 1
jne 0x4a7949
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0046b2fe
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00411bae
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405180
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405180
mov eax, esi
call fcn.0054c202
ret 0x14

Function at 0x4cb72a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4cb768
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4cb776
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cb776
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4cb778
cmp dword [esi + 4], 0
je 0x4cb776
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4faef3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4faf0b
mov edi, dword [esi + 0xc]
jmp 0x4faf4b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4faf24
call fcn.00445173
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4faf39
call fcn.00445173
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4faf4b
call fcn.00445173
call fcn.00438b3b
cmp dword [eax + 0x3c], 0
je 0x4faf60
push edi
mov ecx, ebx
call fcn.004f9d22
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fae0d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4faf7e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4faf8a
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51748f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00517133
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5174d9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004196a5
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413fd7
jmp 0x5174e4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004adc86
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5174ea
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041d028
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x517527
call fcn.00517133
mov dword [esi + 0xc], 1
jmp 0x51752c
call fcn.00517133
cmp dword [esi], 0
je 0x517575
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x51754d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004196a5
jmp 0x51755f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004070d0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413fd7
jmp 0x517599
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x517599
push dword [esi]
push dword [ebp + 8]
call fcn.004adc86
pop esi
pop ebp
ret 0xc
Function at 0x52c8da
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00547385
call fcn.0043856c
cmp dword [eax + 0x14], 0
jne 0x52c8f7
mov ecx, esi
pop esi
jmp fcn.0052c3df
pop esi
ret

Function at 0x52fa11
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00453015
call fcn.0043856c
cmp dword [eax + 0x14], 0
jne 0x52fa2e
mov ecx, esi
pop esi
jmp fcn.0052f3e4
pop esi
ret

Function at 0x54aaae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d544c]
jne 0x54aab8
repz ret
jmp fcn.00551074

Function at 0x55d1d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d544c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00553759
and dword [ebp - 0x14], 0
cmp dword [0x5ddaac], 0
mov dword [ebp - 0x18], eax
jne 0x55d287
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55d32f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a81fc
push ebx
call edi
test eax, eax
je 0x55d32f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a81ec
push ebx
mov dword [0x5ddaac], eax
call edi
push eax
call esi
push 0x5a81d8
push ebx
mov dword [0x5ddab0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ddab4], eax
call edi
push eax
call esi
mov dword [0x5ddabc], eax
test eax, eax
je 0x55d287
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ddab8], eax
mov eax, dword [0x5ddab8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55d2e0
cmp dword [0x5ddabc], ecx
je 0x55d2e0
push eax
call esi
push dword [0x5ddabc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55d2e0
test ebx, ebx
je 0x55d2e0
call edi
test eax, eax
je 0x55d2d7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55d2d7
test byte [ebp - 8], 1
jne 0x55d2e0
or dword [ebp + 0x10], 0x200000
jmp 0x55d313
mov eax, dword [0x5ddab0]
cmp eax, dword [ebp - 0x18]
je 0x55d313
push eax
call esi
test eax, eax
je 0x55d313
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55d313
mov eax, dword [0x5ddab4]
cmp eax, dword [ebp - 0x18]
je 0x55d313
push eax
call esi
test eax, eax
je 0x55d313
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ddaac]
call esi
test eax, eax
je 0x55d32f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55d331
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054aaae
leave
ret
Function at 0x401ef0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x423674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f26
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408808
mov esp, ebp
pop ebp
ret
push ebx
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0040d7f0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401fa5
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
mov ecx, edi
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f8e
test dx, dx
je 0x401f8a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f8e
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f68
xor eax, eax
jmp 0x401f93
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401fbe
lea edx, [ebp - 0x230]
push edx
push esi
call ebx
test eax, eax
jne 0x401f60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408808
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop ebx
xor ecx, ebp
pop esi
call fcn.00408808
mov esp, ebp
pop ebp
ret
Function at 0x402510
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x423674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4026c8
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4025ed
push str.Cant_lookup_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x4200a4
push ecx
push 0x1e6
push ecx
push 0x4200a8
push 0x424608
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00402c80
add esp, 4
push eax
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00406f50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403200
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x4025cd
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4025cd
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4025ed
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4025e6
or eax, 4
push 0
call fcn.00401530
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4026a1
push str.Cant_adjust_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x4200a4
push ecx
push 0x1eb
push ecx
push 0x4200a8
push 0x424608
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00402c80
add esp, 4
push eax
call fcn.00406f50
add esp, 0xc
push eax
call fcn.00406f50
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00403200
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402681
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402681
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4026a1
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40269a
or eax, 4
push 0
call fcn.00401530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
neg eax
push edx
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408808
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408808
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x423674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x404a31
cmp byte [ebx + 0x49], 0
je 0x404a31
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404a25
lea esi, [ebp - 0x2c]
call fcn.004042f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404913
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40494c
dec eax
je 0x404950
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x404a2c
call fcn.004029c0
xor al, al
jmp 0x404a33
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404960
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40498d
cmp edi, 0x10
jae 0x40496f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040aa1a
add esp, 0x10
cmp esi, eax
jne 0x404a1d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404a29
test esi, esi
jne 0x404907
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x404a4e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x404a4e
cmp edi, esi
jae 0x404a06
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406770
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404907
mov ecx, eax
cmp edi, 0x10
jae 0x4049e2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4049fd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404901
test esi, esi
jne 0x4049d8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404a15
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404901
lea ecx, [ebp - 0x2c]
call fcn.004029c0
xor al, al
jmp 0x404a33
lea ecx, [ebp - 0x2c]
call fcn.004029c0
mov al, 1
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.00408808
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00408543
int3
Function at 0x405890
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x423674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004085fe
push 4
mov dword [ebp - 4], 0
call fcn.00408eee
mov edi, eax
add esp, 4
test edi, edi
je 0x40590c
call fcn.00408051
mov dword [edi], eax
call fcn.00407e0e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00407d43
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405902
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00407d6b
jmp 0x40590e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408808
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423674]
jne 0x408812
repz ret
jmp fcn.0040d571