joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4daa68
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4daa96
mov eax, ebx
call fcn.004db50c
cmp dword [ebx + 0x3c], 0
je 0x4daa8f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4dab07
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4daaf9
cmp dword [ebx + 8], 0
je 0x4daab8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4daaca
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4daaf9
cmp dword [ebx + 8], 0
je 0x4daaab
cmp eax, 3
je 0x4daadd
dec eax
jne 0x4daaab
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4daaab
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4daaab
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4dab25
cmp dword [ebx + 0x10], 0xcc
je 0x4dab25
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004dab30
pop ebx
ret

Function at 0x4e4f34
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x5af4d8
test esi, esi
jne 0x4e4f4e
xor eax, eax
jmp 0x4e5050
cmp dword [ebp], 0
jne 0x4e4f59
call fcn.004e4ec4
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4e5029
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4e4f65
test edi, edi
jbe 0x4e504b
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4e502d
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x504290
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5044f0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x5042f3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00503d58
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ea0c
cmp al, 1
jne 0x5042f3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00504070
test al, al
je 0x50447f
cmp dword [ebp - 8], 0
jge 0x504311
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00503d58
mov eax, dword [ebp - 0x210]
call fcn.00405268
cmp ebx, eax
jge 0x50435b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00503d58
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x58a210]
and eax, 0xff
bt dword [edx], eax
jae 0x50435b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x50436f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0050426c
cmp ebx, dword [ebp - 8]
je 0x504471
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x50439b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004043d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x58956c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x50445e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004043d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x58956c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00461b48
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004043d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x58956c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00461b48
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504465
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x5044d2
cmp dword [ebp - 8], 0
jge 0x50448a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00503d58
mov eax, dword [ebp - 0x218]
call fcn.00405268
cmp eax, dword [ebp - 8]
jg 0x5044c4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00503d58
mov eax, dword [ebp - 0x21c]
call fcn.00405268
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0050426c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5044f7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404fcc
ret
Function at 0x50d3b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x90]
xor eax, eax
push ebp
push 0x50d4f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, esi
call fcn.0050d2bc
mov eax, ebx
call fcn.004248c8
dec al
je 0x50d3f6
dec al
je 0x50d3fc
jmp 0x50d402
mov byte [edi + 0x19], 2
jmp 0x50d406
mov byte [edi + 0x19], 1
jmp 0x50d406
mov byte [edi + 0x19], 0
mov eax, dword [edi + 4]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [edi + 4], eax
mov eax, ebx
call fcn.00424854
shl eax, 2
lea eax, [eax + eax*4]
mov dword [edi + 0xc], eax
mov eax, ebx
call fcn.00424890
test al, 1
je 0x50d446
or dword [edi + 8], 1
mov eax, ebx
call fcn.00424890
test al, 2
je 0x50d455
or dword [edi + 8], 2
mov eax, ebx
call fcn.00424890
test al, 4
je 0x50d464
or dword [edi + 8], 4
mov eax, ebx
call fcn.00424890
test al, 8
je 0x50d473
or dword [edi + 8], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.004247e0
mov edx, dword [ebp - 0x94]
lea eax, [edi + 0x1a]
mov ecx, 0x20
call fcn.0040a794
mov eax, dword [ebx + 0x18]
call fcn.004240b8
mov dword [edi + 0x14], eax
or dword [edi + 4], 0x8000000
mov eax, ebx
call fcn.004248f8
mov byte [edi + 0x18], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.004245e4
push eax
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x50d4d5
or dword [edi + 4], 0x400000
mov ax, word [ebp - 0x2c]
mov word [edi + 0x3a], ax
mov edx, edi
mov eax, esi
call fcn.0050d7c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d4fe
lea eax, [ebp - 0x94]
call fcn.00404fa8
ret
Function at 0x54a520
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54a626
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404fa8
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x54a605
mov eax, pe_nt_image_headers32
call fcn.00402774
mov dword [ebp - 0xc], eax
push pe_nt_image_headers32
mov esi, dword [ebp - 0xc]
push esi
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x54a5f3
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, pe_nt_image_headers32
call fcn.00405218
push esi
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movsx esi, word [eax + 0xa]
dec esi
test esi, esi
jl 0x54a5e2
inc esi
xor edi, edi
push dword [ebx]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + edi]
lea edx, [ebp - 0x1a0]
call fcn.00409b8c
push dword [ebp - 0x1a0]
push 0x54a63c
mov eax, ebx
mov edx, 3
call fcn.00405328
inc edi
dec esi
jne 0x54a5ae
mov eax, dword [ebx]
call fcn.00405268
mov edx, eax
dec edx
mov eax, ebx
call fcn.004055f4
mov edx, pe_nt_image_headers32
mov eax, dword [ebp - 0xc]
call fcn.00402794
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a62d
lea eax, [ebp - 0x1a0]
call fcn.00404fa8
lea eax, [ebp - 4]
call fcn.00404fa8
ret
Function at 0x403180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403199
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 0x4031d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4031d2
nop word [eax + eax]
cmp esi, edx
jae 0x4031d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4031c0
cmp esi, edx
jb 0x4031dd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405347
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x415448
push 0x415440
push 0x415448
push 0
call fcn.004052c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405379
push dword [ebp + 8]
mov ecx, esi
call fcn.00403ad4
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4053bb
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x41546c
push 0x415464
push 0x41546c
push 2
call fcn.004052c0
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x4053ec
mov ecx, esi
call fcn.00403ad4
call esi
jmp 0x4053f2
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x4053f5
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x415480
push 0x415478
push 0x415480
push 3
call fcn.004052c0
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405429
mov ecx, esi
call fcn.00403ad4
call esi
jmp 0x40542f
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10006d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x1001e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x24]
push 0x47
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [eax + 0x2d], 0
mov edx, dword [esi + 0xc]
push str.GlobalRCAV7E47DA93_AF41_4450_90CD_31C78125287D_NOTIFY_QUARANITNE_EVENT
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov eax, dword [edx + 0x20]
mov dword [edx + 0x24], eax
xor eax, eax
mov word [ebp - 0x24], ax
call fcn.10003bf0
mov dword [ebp - 4], 0
sub esp, 8
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x24]
push eax
call fcn.1000b280
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x10006dc3
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10006db9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006db9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10013402
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], 7
mov byte [eax + 0x2c], 1
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10006e02
mov dword [eax + 0x40], 0x1388
mov eax, dword [ecx + 0x30]
mov dword [eax + 0x48], esi
mov eax, dword [ecx + 0x30]
mov dword [eax + 0x4c], 0x10006f60
mov ecx, dword [esi + 0xc]
push 0x10007400
push dword [ecx]
add ecx, 0x30
push esi
call fcn.100096b0
lea ecx, [esi + 4]
call fcn.10004370
push ecx
mov ecx, dword [esi + 0xc]
mov bl, al
add ecx, 0x30
call fcn.10009490
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ae90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014d28
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1001e008]
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 [esi + 8]
test edi, edi
jne 0x1000aecb
xor al, al
jmp 0x1000af6f
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x1000aee7
mov eax, dword [edi]
test eax, eax
je 0x1000aee7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1000af4c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1000aa10
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1000af8b
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1000af44
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1000abd0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000af6d
mov eax, dword [edi]
test eax, eax
je 0x1000af66
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
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.100133c1
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000afa3
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000af2e
mov bl, 1
jmp 0x1000af4e
Function at 0x1000cf60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001c088
push 0x10013cb7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1001e008]
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 0x1000cfc9
xor eax, eax
jmp 0x1000d13f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d10a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000d10a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d10a
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 0x1000d10a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d10a
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 0x1000d10a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d10a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1000d10a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d10a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1000d10a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000d10a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1000d0f3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1000d0e0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x1000d0f0
jmp 0x1000d10a
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.1000d166
test ebx, ebx
jne 0x1000d13d
test esi, esi
je 0x1000d12f
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 0x1000d13d
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.100133c1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000e630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014b48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1001e008]
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 0x1000e666
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000e716
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.1000e740
test al, al
je 0x1000e6bf
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 0x1000e702
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e6f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000e6f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10013402
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.100133c1
mov esp, ebp
pop ebp
ret
Function at 0x1000f700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016030
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1001e008]
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 edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
test esi, esi
je 0x1000f87f
cmp byte [esi + 0x54], 0
je 0x1000f87f
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x38], bl
test esi, esi
je 0x1000f780
mov eax, dword [esi]
test eax, eax
je 0x1000f77d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000f774
cmp eax, 0x80
je 0x1000f774
xor bl, bl
jmp 0x1000f77a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 0x38], bl
push ecx
mov edx, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100122b0
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x1000f7b7
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000f805
push 2
push 0
push 0
push edi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1000f83f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f835
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000f835
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10013402
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 6
test esi, esi
je 0x1000f871
test bl, bl
je 0x1000f871
mov eax, dword [esi]
test eax, eax
je 0x1000f86d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
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.100133c1
mov esp, ebp
pop ebp
ret 4