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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 4
mov ebx, 0x202
mov eax, dword [esi + 8]
pop ecx
test cl, al
mov dword [ebp - 4], 1
je 0x3006bad1
add ebx, 3
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [0x301555d8], edi
push edi
mov eax, dword [eax + 8]
push ebx
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
je 0x3006bae2
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, edi
jne 0x3006bacc
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x3006ba9a
push 1
pop eax
cmp dword [ebp - 4], eax
jne 0x3006baea
mov dword [ebp - 4], 2
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp ax, di
jl 0x3006bacc
mov eax, dword [ebp + 8]
movzx edx, word [esi]
mov ecx, dword [eax + 8]
movzx eax, word [esi + 4]
shl eax, 0x10
or eax, edx
cmp dword [0x301555d8], edi
push eax
push edi
push ebx
push ecx
je 0x3006baf5
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret
test al, 2
je 0x3006ba5d
mov ebx, 0x208
mov dword [ebp - 4], ecx
jmp 0x3006ba5d
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x3006ba7b
cmp dword [ebp - 4], 2
jne 0x3006ba9a
mov dword [ebp - 4], eax
jmp 0x3006ba9a
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x3006bacc

Function at 0x3006c11e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0x10
push edi
je 0x3006c135
cmp eax, 0x11
je 0x3006c135
cmp eax, 0x12
jne 0x3006c14d
cmp dword [ebp + 8], 0x100
je 0x3006c147
cmp dword [ebp + 8], 0x104
jne 0x3006c153
test byte [ebp + 0x13], 0x40
je 0x3006c153
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp + 0x14]
push esi
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and word [esi + 0xc], 0
push 0x10
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c182
or byte [esi + 0xc], 4
push 0x11
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c192
or byte [esi + 0xc], 8
push 0x12
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c1a2
or byte [esi + 0xc], 0x20
call dword [sym.imp.USER32.dll_GetMessageTime]
and dword [esi + 8], 0
push 1
mov dword [esi + 0x10], eax
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c1bf
or dword [esi + 8], 1
push 2
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c1cf
or dword [esi + 8], 4
push 4
call edi
xor ecx, ecx
mov cl, ah
test cl, cl
je 0x3006c1df
or dword [esi + 8], 2
and dword [esi + 0x14], 0
push 1
pop eax
jmp 0x3006c14f
Function at 0x3006db55
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push dword [esi + 8]
mov dword [esi + 0x60], edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, edi
jle 0x3006dbb9
cmp edi, 0xff
lea ebx, [ebp - 0x100]
jle 0x3006db90
lea eax, [edi + 1]
push eax
call fcn.3000882f
pop ecx
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x100]
cmp ebx, eax
je 0x3006dbb9
push ebx
call fcn.30008a6e
pop ecx
push 0
push edi
push 0xc5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x30073d5a
Capabilities:
Get keyboard layout

Disassembly:
call fcn.300091e2
cmp eax, 2
je 0x30073d71
call fcn.300091e2
cmp eax, 0x19
je 0x30073d71
xor eax, eax
ret
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
push eax
call dword [0x30155d60]
shr eax, 0x10
and eax, 1
ret

Function at 0x300888ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ax, word [ebx + 6]
mov esi, ecx
cmp ax, 0x5042
jne 0x30088910
movsx eax, word [ebx + 0xa]
mov dword [esi + 0x44], eax
xor ecx, ecx
movsx eax, word [ebx + 8]
cmp dword [esi + 0x24], ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x54], 1
je 0x30088909
mov eax, dword [esi]
cmp eax, 2
je 0x300888ed
cmp eax, 4
jne 0x30088909
mov edx, dword [esi + 0x20]
dec edx
cmp dword [esi + 0x48], edx
jne 0x30088909
cmp dword [esi + 0x44], ecx
jne 0x30088909
mov edx, dword [esi + 0x28]
cmp eax, 4
mov dword [esi + 0x44], edx
jne 0x30088909
mov dword [esi + 0x48], ecx
pop edi
pop esi
pop ebx
leave
ret 4
cmp ax, 0x5045
jne 0x3008891f
mov dword [esi + 0x40], 1
jmp 0x30088909
cmp ax, 0x4943
jne 0x30088909
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x30088a25
movsx eax, word [ebx + 8]
mov dword [esi + 0x20], eax
movsx eax, word [ebx + 8]
shl eax, 3
push eax
call fcn.3000882f
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 1
cmp word [ebx + 8], di
pop ecx
mov dword [ebp + 8], edi
jle 0x300889dc
lea edi, [ebx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
shl eax, 3
mov dx, word [ebx + eax + 0xa]
mov word [eax + ecx], dx
mov ecx, dword [esi + 0x10]
mov dx, word [edi - 4]
mov word [eax + ecx + 2], dx
mov ecx, dword [esi + 0x10]
mov dl, byte [edi]
lea ecx, [eax + ecx + 6]
mov dword [ebp - 4], ecx
mov cx, word [ecx]
xor dl, cl
and edx, 1
xor edx, ecx
mov ecx, dword [ebp - 4]
mov word [ecx], dx
mov ecx, dword [esi + 0x10]
mov dl, byte [edi]
lea ecx, [eax + ecx + 6]
mov dword [ebp - 4], ecx
mov cx, word [ecx]
xor dl, cl
and edx, 2
xor edx, ecx
mov ecx, dword [ebp - 4]
mov word [ecx], dx
mov ecx, dword [esi + 0x10]
mov dl, byte [edi]
add edi, 8
lea eax, [eax + ecx + 6]
mov cx, word [eax]
xor dl, cl
and edx, 4
xor edx, ecx
inc dword [ebp + 8]
mov word [eax], dx
movsx eax, word [ebx + 8]
cmp dword [ebp + 8], eax
jl 0x3008895f
xor edi, edi
mov ecx, esi
call fcn.30088854
push 1
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
pop ebx
cmp eax, ebx
jle 0x30088a08
mov ecx, dword [esi + 0x10]
cmp word [ecx + eax*8 - 6], 0x80
lea eax, [ecx + eax*8]
jne 0x30088a08
cmp word [eax - 8], di
jne 0x30088a08
mov dword [esi + 0x24], ebx
mov ecx, esi
call fcn.30088a2a
cmp dword [esi + 0x50], edi
mov dword [esi + 0x18], eax
je 0x30088a1a
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x54], edi
jmp 0x30088909
push 1
pop ebx
jmp 0x30088a1a
Function at 0x30091ecd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3010daa9
call fcn.300088d4
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3011b080
xor edi, edi
mov dword [esi + 4], 0x3011b050
mov dword [ebp - 4], edi
mov dword [esi + 8], 0x3011b018
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea edi, [esi + 0x20]
xor eax, eax
mov dword [esi], 0x3011af98
mov dword [esi + 4], 0x3011af68
mov dword [esi + 8], 0x3011af30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x30091ed8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x3010daa9
call fcn.300088d4
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x3011b080
xor edi, edi
mov dword [esi + 4], 0x3011b050
mov dword [ebp - 4], edi
mov dword [esi + 8], 0x3011b018
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea edi, [esi + 0x20]
xor eax, eax
mov dword [esi], 0x3011af98
mov dword [esi + 4], 0x3011af68
mov dword [esi + 8], 0x3011af30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x300c32b3
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x300c3304
push esi
mov dword [ebp - 0xcc], 0x10001
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x300c3304
lea eax, [ebp - 0xcc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x14], 0x300c3307
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
leave
ret

Function at 0x300c9c21
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x301146fd
call fcn.300088d4
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.3001412f
xor eax, eax
mov dword [esi + 0xc], edi
push eax
push eax
push eax
mov dword [ebp - 4], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
push eax
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0x3011d010
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, esi
call fcn.300c9620
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8

Function at 0x300cba2a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x30114a65
call fcn.300088d4
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
xor ebx, ebx
pop eax
mov dword [ebp - 4], ebx
push ebx
push ebx
push esi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x20], bx
mov word [esi + 0x22], bx
mov word [esi + 0x24], bx
mov word [esi + 0x26], bx
mov dword [esi + 0x28], ebx
mov word [esi + 0x2c], bx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x160], ebx
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ebx
mov word [esi + 0x172], ax
mov dword [esi], 0x3011d510
call fcn.300d03e4
mov ecx, esi
mov byte [esi + 0x40], bl
mov byte [esi + 0x15c], bl
mov byte [esi + 0x170], bl
call fcn.300d2e38
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x300e51c8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x30116553
call fcn.300088d4
push ecx
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
push dword [esi + 4]
lea eax, [esi + 8]
push eax
call fcn.300d57eb
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 1
je 0x300e51d6
push 0
push 0x4d57
call fcn.300d46fd
pop ecx
pop ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
call dword [eax + 0x30]
push eax
call fcn.300d6c99
pop ecx
push eax
push esi
call fcn.300d6c96
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
call fcn.300d5959
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x300f37e8
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x30117661
call fcn.300088d4
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x30120858
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 8], 0x30120838
and dword [ebp - 4], 0
push 0x30153dd0
push esi
push eax
lea ecx, [esi + 0x14]
call fcn.300080e0
mov eax, dword [ebp + 0x10]
and dword [esi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
and dword [esi + 0x30], 0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi], 0x30120808
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 0xc

Function at 0x300fde88
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
call fcn.30077930
test eax, eax
je 0x300fded6
mov ecx, dword [esp + 0xc]
cmp ecx, dword [eax + 0x10]
je 0x300fdea5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
jmp 0x300fde8f
mov eax, dword [eax + 0x14]
push 0
push dword [eax + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x10]
call fcn.3001acc1
mov edi, eax
pop ecx
test edi, edi
je 0x300fded6
mov esi, dword [edi]
mov ecx, edi
call dword [esi + 0x58]
cmp eax, 1
jne 0x300fded6
push 0
mov ecx, edi
call dword [esi + 0x38]
pop edi
pop esi
ret
Function at 0x3010491f
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.3003f441
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.30104390
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x30104a45
push 2
push ebx
push esi
call fcn.30104390
add esp, 0xc
cmp eax, 0xffffffff
je 0x30104a45
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x30104a01
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.3010668e
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x301049a1
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.30106327
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x301049e8
sub ebp, edi
test ebp, ebp
jg 0x30104996
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.3010668e
add esp, 8
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.30104390
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
call fcn.3003f058
cmp dword [eax], 5
jne 0x301049fd
call fcn.3003f061
mov dword [eax], 0xd
mov ebx, edi
jmp 0x301049bd
jge 0x301049cb
push 0
push ecx
push esi
call fcn.30104390
add esp, 0xc
push esi
call fcn.3010484c
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x301049cb
call fcn.3003f061
mov dword [eax], 0xd
call fcn.3003f058
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x301049cb
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x30104c74
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x30154b70
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x30104c9b
add eax, 8
inc ecx
cmp eax, 0x30154bf8
jb 0x30104c8c
cmp dword [ecx*8 + 0x30154b70], edx
lea ebx, [ecx*8]
jne 0x30104e56
cmp dword [0x30154460], 1
je 0x30104e1b
cmp dword [0x30154460], 0
jne 0x30104cd2
cmp dword [0x30154464], 1
je 0x30104e1b
cmp edx, 0xfc
je 0x30104e56
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x30104d0f
mov esi, 0x301213c8
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x30104d53
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x301213c4
push ebp
call fcn.30106789
add esp, 0xc
mov esi, 0x301213a8
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x301213a4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x30154b74]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x3012137c
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.301066f7
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x30159110]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x30104e32
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x30154b74]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x30106327
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [esp + 0x434]
cmp ebp, ebx
jne 0x3010634f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x30159110
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov esi, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x30106390
push 2
push 0
push edx
call fcn.30104390
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x30106469
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x30106426
lea esi, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x301063ef
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x301063dd
mov byte [esi], 0xd
inc ebx
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x301063c4
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30106498
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp esi, eax
jle 0x301063b3
cmp dword [esp + 0x20], 0
jne 0x30106511
cmp dword [esp + 0x10], 0
je 0x301064c1
cmp dword [esp + 0x10], 5
jne 0x301064a4
call fcn.3003f061
mov dword [eax], 9
call fcn.3003f058
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30106498
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x30106426
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x30106426
mov ecx, dword [esp + 0x10]
push ecx
call fcn.30102ad7
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x301064eb
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x301064eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.3003f061
mov dword [eax], 0x1c
call fcn.3003f058
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4076ce
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 8
call fcn.00448240
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00448240
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 1
push dword [ebp + 8]
call fcn.0040787b
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x407853
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp + 8]
mov eax, 3
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x407773
push 6
call fcn.0044824c
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push 0x52e0b6
push 0
mov eax, 4
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x40779f
push 6
call fcn.0044824c
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebp - 0x14], esp
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
mov eax, 5
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x40782e
push 6
call fcn.0044824c
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
mov eax, 6
call fcn.00448252
cmp dword [ebp - 0x14], esp
je 0x407853
push 6
call fcn.0044824c
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x40785b
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00448246
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00448246
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8