joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9c993c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xa05d00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x9c9982
cmp word [ebx], dx
jne 0x9c9982
or byte [eax + edi + 0x28], 4
jmp 0x9c9987
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x9c9aea
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x9c9aca
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x9c99c8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x9c99fe
cmp eax, edx
jae 0x9c9a0c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x9c99a3
jmp 0x9c9aea
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x9c9ac5
cmp dword [ebp - 0x18], 0
je 0x9c9ac5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xa05d00]
test byte [eax + edi + 0x28], 0x48
je 0x9c9a9b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x9c9a5f
mov word [esi], cx
jmp 0x9c9a96
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xa05d00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xa05d00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xa05d00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x9c9aea
pop eax
cmp word [ebp - 4], ax
jne 0x9c9aab
cmp esi, ebx
jne 0x9c9aab
mov word [esi], ax
jmp 0x9c9ae7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.009c6986
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x9c9aea
push 0xd
pop eax
jmp 0x9c9aa6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xa05d00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x9c9ae4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x9c9aea
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9caa8e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x9caad9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.009cac29
test al, al
jne 0x9caad3
sub edx, 2
cmp edx, edi
jne 0x9caab9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x9caafb
lea eax, [edi + 2]
cmp edx, eax
je 0x9caafb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.009ca9da
add esp, 0x10
jmp 0x9cabf5
push esi
lea ecx, [ebp - 0x255]
call fcn.009cac29
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x9cab3e
push dword [ebp - 0x25c]
jmp 0x9caaeb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x9cab7b
cmp word [ebp - 0x226], 0
je 0x9cab9c
cmp word [ebp - 0x226], ax
jne 0x9cab7b
cmp word [ebp - 0x224], 0
je 0x9cab9c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.009ca9da
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x9cabe8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x9cab55
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x9cabd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x9cabf5
push 0x9ca73b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.009bb000
add esp, 0x10
jmp 0x9cabc5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b6e52
leave
ret

Function at 0x9cb780
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x9cb791
pop esi
ret
push ebx
push edi
push esi
call fcn.009cb749
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.009c71dd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x9cb7b9
push ebx
push esi
push edi
call fcn.009b7960
add esp, 0xc
push 0
call fcn.009c71a3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x9cbb89
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009cb7ce
Function at 0x9d1e95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.009d1e11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x9d2004
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x9d2004
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x9d1fb9
jg 0x9d1ef1
test eax, eax
je 0x9d1faf
push 1
push 0x1000
call fcn.009ca404
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x9d1f14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9d1fa6
push 0x8000
push ebx
call fcn.009c38e0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x9d1f3d
jg 0x9d1f38
cmp ecx, 0x1000
jb 0x9d1f3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.009cda26
add esp, 0x10
cmp eax, 0xffffffff
je 0x9d1f82
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x9d1f38
jl 0x9d1f69
test ecx, ecx
jne 0x9d1f2a
push dword [ebp - 0xc]
push ebx
call fcn.009c38e0
push esi
call fcn.009c71a3
add esp, 0xc
xor ebx, ebx
jmp 0x9d2012
cmp byte [edi + 0x24], 0
je 0x9d1f99
cmp dword [edi + 0x20], 5
jne 0x9d1f99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x9d1fa4
mov ebx, dword [edi + 0x18]
jmp 0x9d1fa6
xor ebx, ebx
push esi
call fcn.009c71a3
pop ecx
jmp 0x9d2012
test ecx, ecx
jg 0x9d1f7b
jl 0x9d1fb9
test eax, eax
jae 0x9d1f7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c6986
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x9d1fd9
cmp byte [edi + 0x1c], 0
je 0x9d1f7b
jmp 0x9d200a
push ebx
call fcn.009cbf5e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x9d1f7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9d2012
cmp byte [edi + 0x1c], 0
je 0x9d200f
mov ebx, dword [edi + 0x18]
jmp 0x9d2012
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.009c6986
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9d3e1c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9f5e6c
push esi
call fcn.009cc273
pop ecx
pop ecx
test eax, eax
jne 0x9d3e4a
xor al, al
jmp 0x9d3ec7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009d3b51
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9d3e84
push dword [ebp - 0x210]
call fcn.009ba4f2
xor al, al
jmp 0x9d3ec5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9d3e8a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9d3eaa
push edx
call fcn.009d3d53
pop ecx
test al, al
je 0x9d3e75
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9d3eb8
mov bl, 1
push dword [ebp - 0x210]
call fcn.009ba4f2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009b6e52
leave
ret

Function at 0x9d49ac
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9d49ef
call fcn.009c44e7
mov dword [eax], 0xf
call fcn.009c44fa
mov dword [eax], 0xd
call fcn.009c7dc4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6e52
leave
ret
test eax, eax
jne 0x9d49f6
inc eax
jmp 0x9d49e3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9d49e1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9d49e3
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b004]
jne 0x401010
repz ret
jmp fcn.004017a2

Function at 0x407b95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405276
and dword [ebp - 4], 0
cmp dword [0x41d25c], 0
mov ebx, eax
jne 0x407c46
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407cf7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407cf7
push eax
call fcn.00405204
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d25c], eax
call esi
push eax
call fcn.00405204
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d260], eax
call esi
push eax
call fcn.00405204
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d264], eax
call esi
push eax
call fcn.00405204
pop ecx
mov dword [0x41d26c], eax
test eax, eax
je 0x407c46
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405204
pop ecx
mov dword [0x41d268], eax
mov eax, dword [0x41d268]
cmp eax, ebx
je 0x407c9e
cmp dword [0x41d26c], ebx
je 0x407c9e
push eax
call fcn.0040527f
push dword [0x41d26c]
mov esi, eax
call fcn.0040527f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407c9e
test edi, edi
je 0x407c9e
call esi
test eax, eax
je 0x407c95
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407c95
test byte [ebp - 0xc], 1
jne 0x407c9e
or dword [ebp + 0x10], 0x200000
jmp 0x407cd7
mov eax, dword [0x41d260]
cmp eax, ebx
je 0x407cd7
push eax
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cd7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407cd7
mov eax, dword [0x41d264]
cmp eax, ebx
je 0x407cd7
push eax
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cd7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d25c]
call fcn.0040527f
pop ecx
test eax, eax
je 0x407cf7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407cf9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x4089e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x408a18
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x408a0e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x408a1a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x408a00
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40ad50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
inc ecx
add bh, bh
xlatb
mov dword [ebx], eax
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x2c]
push 0x417d74
push edx
mov dword [esp + 0x48], 6
call dword [0x417370]
mov edi, eax
mov eax, dword [esi]
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
add esp, 0x14
mov byte [esp + 0x18], 0x20
inc esp
and al, 0x18
and byte [ebx - 0x39e7dbbc], cl
inc esp
and al, 0x34
pop es
Function at 0x401029
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x428f20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x428f24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
xor ecx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ecx
call fcn.00401022
mov eax, dword [0x428f28]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x428f2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x2448ef4]
cmp eax, 0xfa9
jne 0x4010a0
mov dword [0x2448ef0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ad
mov dword [0x244897c], ecx
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, dword [ebp - 0x20]
cmp dword [0x2448ef4], 0x213
mov dword [0x2448eec], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010ee
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov eax, dword [ebp - 4]
xor ecx, ecx
sub edi, eax
cmp dword [0x2448ef4], 0xc
jne 0x401110
lea eax, [ebp - 0x2c]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor ecx, ecx
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x28]
add edx, edi
xor eax, edx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401074
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x40114e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2448ef4]
mov ecx, dword [0x2448980]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401209
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x2448ef4], 0x959
jne 0x4011f8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401029
add ebx, 8
dec edi
jne 0x401176
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014df
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2448ef4], 0x400
push edi
jne 0x40153a
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401e66
push esi
push esi
call fcn.0040180e
push esi
call fcn.00401e01
push esi
push esi
call fcn.00401c4c
push esi
call fcn.00401f44
push esi
push esi
call fcn.00401712
add esp, 0x28
xor edi, edi
cmp edi, 0x16d2a
jge 0x40154f
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401574
inc edi
cmp edi, 0x3011b
jl 0x40153c
mov eax, dword [0x42b864]
mov dword [0x2448ef4], eax
call fcn.0040120c
mov edi, 0x2ec37
cmp dword [0x2448ef4], 0x51f
jne 0x4015a0
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401588
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4070ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428cfc]
jne 0x4070c4
repz ret
jmp fcn.00409136
Function at 0x4083cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428cfc]
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.004054da
and dword [ebp - 0x14], 0
cmp dword [0x4364b4], 0
mov dword [ebp - 0x18], eax
jne 0x408480
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408528
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408528
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4364b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4364b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4364bc], eax
call edi
push eax
call esi
mov dword [0x4364c4], eax
test eax, eax
je 0x408480
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4364c0], eax
mov eax, dword [0x4364c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4084d9
cmp dword [0x4364c4], ecx
je 0x4084d9
push eax
call esi
push dword [0x4364c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4084d9
test ebx, ebx
je 0x4084d9
call edi
test eax, eax
je 0x4084d0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4084d0
test byte [ebp - 8], 1
jne 0x4084d9
or dword [ebp + 0x10], 0x200000
jmp 0x40850c
mov eax, dword [0x4364b8]
cmp eax, dword [ebp - 0x18]
je 0x40850c
push eax
call esi
test eax, eax
je 0x40850c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40850c
mov eax, dword [0x4364bc]
cmp eax, dword [ebp - 0x18]
je 0x40850c
push eax
call esi
test eax, eax
je 0x40850c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4364b4]
call esi
test eax, eax
je 0x408528
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40852a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004070ba
leave
ret