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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
call fcn.00427a20
fstp qword [esp + 8]
mov dword [esp + 4], str._.0f_
mov eax, dword [0x43cce0]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov ebx, 0
mov edi, 0x43c620
mov esi, 0x43c880
jmp 0x428321
fld qword [edi + ebx*8]
fstp qword [esp + 8]
mov dword [esp + 4], str._.0f
mov eax, dword [0x43cce0]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [esi + ebx*4]
cmp eax, 1
jle 0x4282f1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4307ed
mov eax, dword [0x43cce0]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
add ebx, 1
cmp ebx, dword [0x43cc14]
jge 0x428321
mov eax, dword [0x43cce0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4307f1
call sub.cygwin1.dll_fwrite
cmp ebx, dword [0x43cc14]
jl 0x4282b4
mov eax, dword [0x43cce0]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.cygwin1.dll_fputc
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x429240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x429267
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x42932c
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x429300
cmp eax, 4
je 0x429300
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x42925a
cmp eax, 4
je 0x42925a
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x42925a
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x42925a
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x4292da
jmp 0x42925a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00428eb0
lea esi, [esi]
lea edi, [edi]
Function at 0x1000100c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x1003bfe8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x10001050
call ebx
test eax, eax
jns 0x10001046
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1003bfec], eax
mov dword [0x1003bfe8], 1
mov eax, dword [0x1003bfec]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000106c
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000109c
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x10001092
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x10001087
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x1000108c
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x1000109b
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x10001fe2
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
push esi
mov esi, ecx
test eax, eax
jg 0x10001ff4
call fcn.100016a4
test eax, eax
jle 0x1000200f
push edi
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x10033450]
mov edi, edx
shl edi, 3
xor ecx, edi
xor edx, ecx
inc esi
dec eax
test eax, eax
jg 0x10001ff5
pop edi
mov eax, edx
and eax, 0x7fffffff
pop esi
ret

Function at 0x1000813a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*8 + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x10008192

Function at 0x100081ea
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
Function at 0x1000d5a2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x1003b890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1003bc94]
push ebx
push esi
test eax, eax
je 0x1000d5dc
push eax
push 0x10036624
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call sym.sqlite.dll_sqlite3_snprintf
add esp, 0x10
jmp 0x1000d655
call fcn.1000213a
mov esi, 0xe6
test eax, eax
je 0x1000d61c
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.100021e9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1000d638
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10031c74
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.100022ae
jmp 0x1000d604
push ebx
push 0x10036624
lea eax, [ebp - 0x10c]
push eax
push esi
call sym.sqlite.dll_sqlite3_snprintf
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x14
lea ecx, [ebp - 0x10c]
call fcn.100016a4
test eax, eax
jbe 0x1000d66e
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x1000d66e
dec eax
jne 0x1000d665
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp + 8]
push 0x10036618
add eax, 0xffffffe2
push edi
push eax
call sym.sqlite.dll_sqlite3_snprintf
mov ecx, edi
call fcn.100016a4
mov esi, eax
lea eax, [edi + esi]
push eax
push 0x14
call fcn.10008912
add esp, 0x18
push 0x14
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x1000d6a9
mov byte [edi + esi], cl
xor eax, eax
jmp 0x1000d60e
Function at 0x10031c74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003b890]
jne 0x10031c7e
repz ret
jmp fcn.1003244e

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401970
Capabilities:
Copy file
Hide graphical window
Set file attributes

Disassembly:
sub esp, 0x80
mov ecx, 0xffffffff
sub eax, eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x90]
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [esp + 0x98]
mov ecx, 0xffffffff
mov edi, ebx
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 + 0x10]
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 5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x40cb58]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
push 0x7f02
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0
call edi
mov esi, eax
push 0
mov ebp, dword [sym.imp.USER32.dll_ShowCursor]
call ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SetCursor]
call esi
push 1
call ebp
push ebx
mov eax, dword [0x40cb58]
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401a65
push 0
call ebp
push 0x7f00
push 0
call edi
push eax
call esi
push 1
call ebp
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call ebp
push 0x7f00
push 0
call edi
push eax
call esi
push 1
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret
Function at 0x401aa0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x88
push esi
push edi
push str.MMINSTMutexObject
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x401b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.APP__Cannot_install__CreateMutex_error:__d_n
lea eax, [esp + 0x14]
push eax
call fcn.004030c0
add esp, 0xc
cmp dword [0x40cb54], 0
jne 0x401afe
lea eax, [esp + 0xc]
push 0
push 0x40a09c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
add esp, 0x88
ret
lea edi, [esp + 0xc]
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
mov edi, 0x40bb50
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]
xor eax, eax
pop edi
pop esi
add esp, 0x88
ret
mov eax, dword [0x40cb60]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.DLL32.dll__DLL32Call_4]
mov dword [esp + 8], eax
test eax, eax
je 0x401b81
lea eax, [esp + 0xc]
push str.Unrecoverable_error:__INF_failure_n
push eax
call fcn.004030c0
mov eax, dword [esp + 0x10]
add esp, 8
push eax
call fcn.00402ed0
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x88
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop edi
pop esi
add esp, 0x88
ret

Function at 0x401cf0
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x140
lea eax, [esp]
push ebx
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, eax
je 0x401d37
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, dword [esp + 0x150]
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00401d50
lea eax, [esp + 0x14]
add esp, 8
push eax
push ebx
call esi
test eax, eax
jne 0x401d1d
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x401d50
Capabilities:
Delete file

Disassembly:
sub esp, 0x284
mov ecx, 0xffffffff
sub eax, eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x294]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a140
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 + 0xc]
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 [esp + 0x298]
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 + 0xc]
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 0x40a20c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
push eax
call fcn.00403240
add esp, 8
mov esi, eax
test esi, esi
je 0x401e4a
xor ebx, ebx
lea eax, [esp + 0x90]
push esi
push 0x1ff
push eax
call fcn.004031a0
add esp, 0xc
test eax, eax
je 0x401e4a
lea eax, [esp + 0x90]
mov byte [esp + 0x28f], bl
push eax
call fcn.00401e60
add esp, 4
test eax, eax
je 0x401e01
push esi
call fcn.00403130
lea eax, [esp + 0x10]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x284
ret
Function at 0x4032a0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x4032bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4032d2
push eax
call fcn.00404a00
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x405f10
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40ab54], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x405f2e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40ab50], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x40ab4c], bl
jne 0x405f88
cmp dword [0x40dc88], 0
je 0x405f76
mov edi, dword [0x40dc84]
sub edi, 4
cmp edi, dword [0x40dc88]
jb 0x405f76
mov eax, dword [edi]
test eax, eax
je 0x405f6b
call eax
sub edi, 4
cmp edi, dword [0x40dc88]
jae 0x405f63
push 0x40a01c
push 0x40a014
call fcn.00405fc0
add esp, 8
push 0x40a024
push 0x40a020
call fcn.00405fc0
add esp, 8
test ebx, ebx
jne 0x405faf
mov dword [0x40ab54], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x406dd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x40ae28
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x406df7
add eax, 8
inc ecx
cmp eax, 0x40aeb8
jb 0x406de8
cmp dword [ecx*8 + 0x40ae28], edx
lea ebx, [ecx*8]
jne 0x406fbb
cmp dword [0x40a944], 1
je 0x406f77
cmp dword [0x40a944], 0
jne 0x406e2e
cmp dword [0x40a948], 1
je 0x406f77
cmp edx, 0xfc
je 0x406fbb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x406e6b
mov esi, str._program_name_unknown_
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 0x406eaf
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 0x409360
push ebp
call fcn.00408930
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
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, 0x409340
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 + 0x40ae2c]
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 str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00408c20
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x40db80], 0
je 0x406f8d
mov eax, dword [0x40db80]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x406f97
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40ae2c]
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 0x406fd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x40dc80], edx
push ebx
push esi
push edi
push ebp
jbe 0x4071d7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x40db80
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4071d7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x407039
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40704a
push 2
push 0
push edx
call fcn.00407200
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4070e6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40711f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4070ad
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x40709b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x407082
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
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 0x407115
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x40706d
jmp 0x40711f
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 0x407115
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40711f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4071c6
cmp dword [esp + 0x10], 0
je 0x407178
cmp dword [esp + 0x10], 5
jne 0x40715b
mov dword [0x40ab0c], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40ab10], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00404a00
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 0x4071a2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4071a2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40ab0c], 0x1c
mov dword [0x40ab10], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40ab0c], 9
mov dword [0x40ab10], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x408d50
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00408f70
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x40dc80], esi
jbe 0x408e9d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x40db80]
test byte [edx + ecx*8 + 4], 1
je 0x408e9d
push 1
push ebx
push esi
call fcn.00407200
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x408e8d
push 2
push ebx
push esi
call fcn.00407200
add esp, 0xc
cmp eax, 0xffffffff
je 0x408e8d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x408e33
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00408ef0
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x408df6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00406fd0
add esp, 0xc
cmp eax, 0xffffffff
je 0x408e12
sub ebp, eax
test ebp, ebp
jg 0x408deb
jmp 0x408e27
cmp dword [0x40ab10], 5
jne 0x408e25
mov dword [0x40ab0c], 0xd
mov ebx, eax
push edi
push esi
call fcn.00408ef0
add esp, 8
jmp 0x408e70
jge 0x408e70
push 0
push ecx
push esi
call fcn.00407200
add esp, 0xc
push esi
call fcn.00407f20
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x408e70
mov dword [0x40ab0c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40ab10], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00407200
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40ab0c], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4012e0
Capabilities:
Check mutex on windows
Hide graphical window
Print debug messages

Disassembly:
push esi
push str.WimaxConsole
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401355
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x403410
push 0x4033a8
push 0
mov dword [0x40340c], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x401355
mov dword [0x4033a4], 0
call fcn.00401570
test eax, eax
jne 0x401359
push str.Initwimax_Fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret