joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c3564a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, eax
mov ebx, dword [0x6c3c6108]
test ebx, ebx
je 0x6c3564dc
mov dword [esp + 4], 0x50
mov dword [esp], esi
call sym._g_type_check_instance_cast
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._g_object_get_qdata
test eax, eax
je 0x6c3564f4
add esp, 0x10
pop ebx
pop esi
leave
ret
mov dword [esp], str.gdk_rgb_info
call sym._g_quark_from_static_string
mov ebx, eax
mov dword [0x6c3c6108], eax
jmp 0x6c3564b4
mov dword [esp], esi
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_get_visual
mov edx, esi
add esp, 0x10
pop ebx
pop esi
leave
jmp sym._gdk_rgb_create_info

Function at 0x6c356b6c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_drawable_get_colormap
mov esi, eax
mov dword [esp], ebx
call sym.libgdk_win32_2.0_0.dll_gdk_drawable_get_screen
mov edi, eax
test esi, esi
je 0x6c356ba0
mov eax, esi
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
jmp sym._gdk_rgb_get_info_from_colormap
mov dword [esp], ebx
call sym.libgdk_win32_2.0_0.dll_gdk_drawable_get_depth
mov ebx, eax
mov dword [esp], edi
call sym.libgdk_win32_2.0_0.dll_gdk_screen_get_rgb_colormap
mov esi, eax
mov dword [esp], eax
call sym.libgdk_win32_2.0_0.dll_gdk_colormap_get_visual
cmp dword [eax + 0x10], ebx
je 0x6c356b8f
mov dword [esp + 8], str.The_gdk_draw__image_require_the_drawable_argument_to_nhave_a_specified_colormap._All_windows_have_a_colormap__nhowever__pixmaps_only_have_colormap_by_default_if_they_nwere_created_with_a_non_NULL_window_argument._Otherwise_na_colormap_must_be_set_on_them_with_gdk_drawable_set_colormap
mov dword [esp + 4], 0x10
mov dword [esp], 0x6c395b07
call sym._g_log
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6c3627b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xb4
mov edi, dword [0x6c3c628c]
test edi, edi
je 0x6c3627d8
mov eax, dword [0x6c3c6290]
mov edi, dword [ebp - 4]
leave
ret
mov dword [0x6c3c628c], 1
lea edx, [ebp - 0x9c]
mov ecx, 0x94
xor eax, eax
mov edi, edx
rep stosb byte es:[edi], al
mov dword [ebp - 0x9c], 0x94
mov dword [esp], edx
call sym._GetVersionExA_4
push ecx
test eax, eax
je 0x6c36282c
cmp dword [ebp - 0x8c], 2
jne 0x6c36282c
cmp dword [ebp - 0x98], 5
ja 0x6c362838
jne 0x6c36282c
xor eax, eax
cmp dword [ebp - 0x94], 0
setne al
jmp 0x6c36282e
xor eax, eax
mov dword [0x6c3c6290], eax
mov edi, dword [ebp - 4]
leave
ret
mov eax, 1
jmp 0x6c36282e

Function at 0x6c363054
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6c3c65b0]
cmp dword [ebp + 8], eax
je 0x6c363084
mov dword [esp + 8], 0x6c3b7e10
mov dword [esp + 4], str.gdk_display_supports_cursor_alpha
mov dword [esp], 0x6c3b7de7
call sym._g_return_if_fail_warning
xor eax, eax
leave
ret
leave
jmp sym.__gdk_win32_pixbuf_to_hicon_supports_alpha
Function at 0x6c364330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov cl, 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.6c3640b4
pop edx
sbb bh, dl
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x58]
push eax
call fcn.6c3640c4
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.6c364079
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
invalid
invalid
invalid

Function at 0x6c364400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.6c364079
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.6c3640b4
outsd dx, dword [esi]
xchg esp, ebp
pop eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.6c3640c4
push eax
push esi
push dword [ebp + 8]
call fcn.6c364079
mov dword [ebp - 8], eax
invalid
inc ebp

Function at 0x6c3644d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6c3640c4
push eax
push esi
push dword [ebp + 8]
call fcn.6c364079
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6c3640b4
push ss
lodsb al, byte [esi]
shl dword [esi - 0x78], 1
popfd
jl 0x6c364539
invalid
invalid
Function at 0x6c364cfc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.6c3640c4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6c364079
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.6c3640b4
xor al, 0x3d
aam 0x46
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x6c364da8
cmp dword [ebp - 0x398], 0
je 0x6c364f72
cmp dword [ebp + 0xc], 1
je 0x6c364f72
cmp dword [ebp + 0xc], 8
jne 0x6c364f3a
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.6c3640c4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6c364079
add esp, 0xc
mov dword [ebp - 0x690], eax
invalid
invalid
pushal

Function at 0x6c36b9e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ecx, edx
and ecx, 8
cmp ecx, 1
sbb ebx, ebx
not ebx
and ebx, 4
cmp eax, 0x201
je 0x6c36ba10
test dl, 1
je 0x6c36baf8
or bh, 1
cmp eax, 0x207
je 0x6c36ba23
test dl, 0x10
je 0x6c36bae8
or bh, 2
cmp eax, 0x204
je 0x6c36ba3a
test dl, 2
je 0x6c36bab8
or bh, 4
cmp eax, 0x20b
je 0x6c36bace
test dl, 0x20
je 0x6c36baa4
or bh, 8
cmp eax, 0x20b
je 0x6c36bb10
test dl, 0x40
je 0x6c36ba90
or bh, 0x10
and edx, 4
je 0x6c36ba5d
or ebx, 1
mov dword [esp], 0x12
call sym._GetKeyState_4
push ecx
test ax, ax
js 0x6c36bb08
mov dword [esp], 0x14
call sym._GetKeyState_4
push edx
test al, 1
je 0x6c36ba87
or ebx, 2
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
cmp eax, 0x20c
jne 0x6c36ba55
mov eax, edx
shr eax, 0x10
cmp ax, 2
jne 0x6c36ba55
jmp 0x6c36ba52
cmp eax, 0x20c
jne 0x6c36ba42
mov ecx, edx
shr ecx, 0x10
dec cx
jne 0x6c36ba4d
jmp 0x6c36ba3f
cmp eax, 0x205
je 0x6c36ba2c
cmp eax, 0x20b
jne 0x6c36ba3a
mov ecx, edx
shr ecx, 0x10
dec cx
je 0x6c36ba4d
test dl, 0x20
jne 0x6c36ba3f
jmp 0x6c36baa4
cmp eax, 0x208
jne 0x6c36ba1c
jmp 0x6c36ba19
cmp eax, 0x202
jne 0x6c36ba09
jmp 0x6c36ba06
or ebx, 8
jmp 0x6c36ba73
mov ecx, edx
shr ecx, 0x10
cmp cx, 2
jne 0x6c36ba4d
jmp 0x6c36ba55
Function at 0x6c37c148
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
mov dword [esp + 8], 4
mov dword [esp + 4], eax
lea ebx, [ebp - 0x10c]
mov dword [esp], ebx
call sym._memmove
mov byte [ebp - 0xfa], 0
mov byte [ebp - 0xfb], 0
mov byte [ebp - 0xfc], 0
mov esi, dword [0x6c3c8fb8]
mov dword [esp + 4], 0
mov dword [esp], 0x20
call sym._MapVirtualKeyA_8
sub esp, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x20
call sym._ToUnicodeEx_28
sub esp, 0x1c
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
Function at 0x6c38024c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0x64
lea esi, [ebp - 0x6c]
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._GetKeyNameTextA_12
sub esp, 0xc
test eax, eax
je 0x6c3802cc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call sym._g_locale_to_utf8
mov esi, eax
test eax, eax
je 0x6c3802cc
mov dword [esp + 4], eax
mov dword [esp], 0x6c3bf0fd
call sym._static_printf
mov dword [esp], esi
mov dword [ebp - 0x7c], eax
call sym._g_free
mov eax, dword [ebp - 0x7c]
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov dword [esp + 4], ebx
mov dword [esp], str.unk__lx
call sym._static_printf
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
Function at 0x6c386f10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
test byte [ebx + 0x50], 0x30
jne 0x6c386fb7
test byte [0x6c3c60a4], 1
jne 0x6c38703c
test byte [ebx + 0x4c], 1
je 0x6c38701c
mov dword [esp], ebx
call sym.__gdk_window_clear_update_area
call sym.libgdk_win32_2.0_0.dll_gdk_window_object_get_type
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._g_type_check_instance_cast
cmp byte [eax + 0x48], 1
je 0x6c387080
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 4], 0xffffffec
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._GetWindowLongA_8
sub esp, 8
test al, 0x20
jne 0x6c386fc0
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 4], 0
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 0x18], 0x8f
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._SetWindowPos_28
sub esp, 0x1c
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.libgdk_win32_2.0_0.dll_gdk_synthesize_window_state
jmp 0x6c386f3c
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call sym.__gdk_win32_window_state_to_string
mov esi, eax
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 8], esi
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.gdk_window_hide:__p:__s_n
call sym._g_print
test byte [ebx + 0x4c], 1
jne 0x6c386f3c
jmp 0x6c38701c
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
mov dword [esp + 4], 0
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._ShowOwnedPopups_8
sub esp, 8
jmp 0x6c386f5f
Function at 0x6c38a044
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
test edi, edi
je 0x6c38a0a4
call sym.libgdk_win32_2.0_0.dll_gdk_window_object_get_type
mov edx, dword [edi]
test edx, edx
je 0x6c38a069
cmp dword [edx], eax
je 0x6c38a0a4
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._g_type_check_instance_is_a
test eax, eax
jne 0x6c38a0a4
mov dword [esp + 8], str.window__NULL__GDK_IS_WINDOW__window_
mov dword [esp + 4], str._gdk_windowing_window_get_pointer
mov dword [esp], 0x6c3c1ed7
call sym._g_return_if_fail_warning
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._GetCursorPos_4
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call sym._gdk_drawable_impl_win32_get_type
mov dword [esp + 4], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call sym._g_type_check_instance_cast
lea ebx, [ebp - 0x28]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sym._ScreenToClient_8
sub esp, 8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
cmp edi, dword [0x6c3c65b8]
jne 0x6c38a111
mov eax, dword [0x6c3c8fb0]
mov edx, dword [ebp + 0x10]
add dword [edx], eax
mov eax, dword [0x6c3c8fe4]
mov edx, dword [ebp + 0x14]
add dword [edx], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._WindowFromPoint_8
sub esp, 8
mov edi, eax
test eax, eax
je 0x6c38a220
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._ScreenToClient_8
sub esp, 8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call sym._ChildWindowFromPoint_12
sub esp, 0xc
test eax, eax
je 0x6c38a170
cmp eax, edi
je 0x6c38a170
mov edi, eax
jmp 0x6c38a130
mov dword [esp], edi
call sym.libgdk_win32_2.0_0.dll_gdk_win32_handle_table_lookup
mov ebx, eax
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sym._GetKeyboardState_4
push edi
movsx eax, byte [ebp - 0x118]
shr eax, 0x1f
mov dword [esi], eax
cmp byte [ebp - 0x114], 0
js 0x6c38a1e0
cmp byte [ebp - 0x117], 0
js 0x6c38a1ee
cmp byte [ebp - 0x116], 0
js 0x6c38a1fa
cmp byte [ebp - 0x127], 0
js 0x6c38a206
cmp byte [ebp - 0x124], 0
js 0x6c38a215
cmp byte [ebp - 0x126], 0
jns 0x6c38a097
or dword [esi], 0x400
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
or eax, 2
mov dword [esi], eax
cmp byte [ebp - 0x117], 0
jns 0x6c38a1a7
or dword [esi], 4
cmp byte [ebp - 0x116], 0
jns 0x6c38a1b0
or dword [esi], 8
cmp byte [ebp - 0x127], 0
jns 0x6c38a1b9
or dword [esi], 0x100
cmp byte [ebp - 0x124], 0
jns 0x6c38a1c2
or dword [esi], 0x200
jmp 0x6c38a1c2
xor ebx, ebx
jmp 0x6c38a17a
Function at 0x6c38a228
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp eax, dword [0x6c3c65b0]
je 0x6c38a260
mov dword [ebp + 0x10], str.display___gdk_display
mov dword [ebp + 0xc], str._gdk_windowing_get_pointer
mov dword [ebp + 8], 0x6c3c1ed7
add esp, 0xc
pop ebx
pop esi
pop edi
leave
jmp sym._g_return_if_fail_warning
mov edi, dword [0x6c3c65b4]
mov dword [esi], edi
mov edx, dword [0x6c3c65b8]
mov dword [ebp + 0xc], edx
add esp, 0xc
pop ebx
pop esi
pop edi
leave
jmp sym.__gdk_windowing_window_get_pointer

Function at 0x6c38f0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x6c3c3fe8
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort

Function at 0x6c38f100
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, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x6c38f126
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6c38f1ba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6c38f175
cmp eax, 0x40
je 0x6c38f175
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x6c38f119
cmp eax, 0x40
je 0x6c38f119
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x6c38f119
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
Function at 0x405410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyboardState]
mov bl, 0x80
push 1
push 0
push 0
push 0
push 0x4dcac0
call esi
test eax, eax
je 0x4054b0
cmp dword [0x4dcac4], 0x12
je 0x4054f9
push 0x4dc980
call edi
test byte [0x4dc993], bl
je 0x405466
cmp byte [0x4db67e], 0
sete al
mov byte [0x4db67e], al
test byte [0x4dc992], bl
jne 0x40547e
test byte [0x4dca24], bl
jne 0x40547e
test byte [0x4dca25], bl
je 0x405495
test byte [0x4dc9d8], bl
je 0x405495
mov ecx, dword [0x4db7f0]
push 0
push 0
push 0x10
push ecx
call ebp
push 0x4dcac0
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x4dcac0
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x405428
cmp byte [0x4db67e], 0
jne 0x405428
cmp byte [0x4db67f], 0
je 0x4054ef
mov edx, dword [0x5a2a24]
mov eax, dword [edx + 0xa8]
call eax
test eax, eax
jne 0x4054e8
push str.Error_to_Restore_Graphics_2D_Video_Mode
push 2
call dword [0x5a29f4]
add esp, 8
mov byte [0x4db67f], 0
call fcn.00401960
jmp 0x405428
mov ecx, dword [0x4dcac8]
pop edi
pop esi
pop ebp
mov dword [0x4db6b0], ecx
pop ebx
ret

Function at 0x405f30
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 4]
push 0x104
push 0x4db578
mov dword [0x4db7ec], eax
call fcn.004077a0
mov eax, 0x4db578
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405f51
mov ecx, dword [str.gmx_stdout.txt]
mov edx, dword [0x41758c]
mov dword [eax], ecx
mov ecx, dword [0x417590]
push ebx
mov dword [eax + 4], edx
mov edx, dword [0x417594]
push esi
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00406303
add eax, 0x20
push eax
push 0x417598
push 0x4db578
call fcn.0040760a
add esp, 0xc
test eax, eax
jne 0x405fc7
push 0x417598
push 0x4db578
call fcn.0040741c
mov esi, eax
add esp, 8
test esi, esi
je 0x405fc7
call fcn.00406303
mov edi, eax
add edi, 0x20
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x104
push 0x4db470
call fcn.004077a0
mov eax, 0x4db470
add esp, 8
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405fe0
mov ecx, dword [str.gmx_stderr.txt]
mov edx, dword [0x4175a0]
mov dword [eax], ecx
mov ecx, dword [0x4175a4]
mov dword [eax + 4], edx
mov edx, dword [0x4175a8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00406303
add eax, 0x40
push eax
push 0x417598
push 0x4db470
call fcn.0040760a
add esp, 0xc
test eax, eax
jne 0x406053
push 0x417598
push 0x4db470
call fcn.0040741c
mov esi, eax
add esp, 8
test esi, esi
je 0x406053
call fcn.00406303
mov edi, eax
add edi, 0x40
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
push 0x200
push 0x40
push 0
call fcn.00406303
add eax, 0x20
push eax
call fcn.00407433
add esp, 0x10
push 0
call fcn.00406303
add eax, 0x40
push eax
call fcn.00406fe8
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00405c10
mov ebx, 0x4db6b8
call fcn.00405b40
push 0x405e80
call fcn.00407341
add esp, 8
call fcn.00404920
pop edi
pop esi
pop ebx
int3
Function at 0x4060b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov al, byte [esi]
xor bl, bl
push edi
test al, al
je 0x4060d5
mov cl, bl
shr cl, 7
add bl, bl
add cl, bl
xor cl, al
mov al, byte [esi + 1]
inc esi
mov bl, cl
test al, al
jne 0x4060c0
mov esi, dword [0x51d620]
xor edi, edi
add esi, 0xffffffff
js 0x406107
mov ebp, dword [0x56277c]
lea eax, [esi + edi]
sar eax, 1
mov edx, eax
shl edx, 4
mov cl, byte [edx + ebp]
cmp bl, cl
jae 0x4060fe
lea esi, [eax - 1]
jmp 0x406103
jbe 0x40610e
lea edi, [eax + 1]
cmp edi, esi
jle 0x4060e8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
test eax, eax
jle 0x40612d
mov ecx, eax
shl ecx, 4
cmp byte [ecx + ebp - 0x10], bl
lea ecx, [ecx + ebp - 0x10]
jne 0x40612d
dec eax
sub ecx, 0x10
test eax, eax
je 0x40612d
cmp byte [ecx], bl
je 0x406121
mov edx, eax
shl edx, 4
cmp byte [edx + ebp], bl
lea ecx, [edx + ebp]
jne 0x406107
mov edi, dword [esp + 0x14]
mov edi, edi
cmp dword [ecx + 4], edi
jne 0x406179
mov esi, dword [esp + 0x18]
mov ecx, dword [ecx + 8]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x406170
test dl, dl
je 0x40616c
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x406170
add ecx, 2
add esi, 2
test dl, dl
jne 0x406150
xor ecx, ecx
jmp 0x406175
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x40618c
inc eax
mov ecx, eax
shl ecx, 4
add ecx, ebp
cmp byte [ecx], bl
je 0x406140
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
shl eax, 4
mov eax, dword [eax + ebp + 0xc]
pop esi
pop ebp
pop ebx
ret

Function at 0x40d868
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419640]
jne 0x40d872
repz ret
jmp fcn.00410fab