joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x21c
mov dword [esp + 4], 0x404283
mov dword [ebp - 0x218], eax
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
test eax, eax
mov dword [ebp - 0x214], eax
je 0x401847
mov dword [ebp - 0x210], 0
xor edi, edi
lea esi, [esi]
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x200]
mov dword [esp + 4], 0x1f4
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.cygwin1.dll_fgets
test eax, eax
mov ebx, eax
je 0x4017ce
mov dword [esp], ebx
add edi, 1
call sub.cygwin1.dll_strlen
cmp eax, 0x1f3
je 0x4017e9
movzx eax, byte [ebx]
cmp al, 0x20
je 0x4017c0
cmp al, 9
je 0x4017c0
cmp al, 0xa
lea esi, [esi]
je 0x401710
cmp al, 0x23
je 0x401710
mov dword [esp], 0x10
lea esi, [esi]
call sub.cygwin1.dll_malloc
test eax, eax
mov esi, eax
je 0x401811
mov dword [esp], ebx
call fcn.00401670
test eax, eax
mov dword [esi], eax
je 0x401811
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4017c5
mov eax, dword [ebp - 0x210]
mov dword [eax + 0xc], esi
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov dword [ebp - 0x210], esi
jmp 0x401710
add ebx, 1
jmp 0x401750
mov eax, dword [0x4073a0]
mov dword [eax], esi
jmp 0x4017a4
mov edx, dword [ebp - 0x214]
mov dword [esp], edx
call sub.cygwin1.dll_fclose
add esp, 0x21c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.Input_line__u_too_long__aborting__and_fix_me____n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x218]
mov dword [esp + 0xc], 0x4041a7
mov dword [esp + 4], str.script___s_:_out_of_memory_s_n
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x218]
mov dword [esp + 0xc], 0x4041a7
mov dword [esp + 4], str.runscript:_couldnt_open___s__s_n
mov dword [esp + 8], edx
jmp 0x401830
Function at 0x401870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [0x4073a0]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x40189b
jmp 0x4018ba
mov eax, dword [ebx + 8]
test eax, eax
je 0x4018b7
mov ebx, eax
mov eax, dword [ebx]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x401892
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40194e
mov dword [esp], 0xc
call sub.cygwin1.dll_malloc
test eax, eax
mov esi, eax
mov ebx, eax
je 0x40190c
mov dword [esp], edi
call fcn.00401670
test eax, eax
mov dword [esi], eax
je 0x40190c
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401944
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], esi
mov dword [esi + 8], 0
mov eax, ebx
mov dword [esi + 4], 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4073a0]
mov ebx, dword [eax + 8]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x4041a7
mov dword [esp + 4], str.script___s_:_out_of_memory_s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov eax, dword [0x4073a0]
mov dword [eax + 4], esi
jmp 0x4018f4
mov eax, dword [0x407300]
mov esi, dword [esi + 8]
mov ebx, dword [eax + 8]
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], 0x4041a7
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.script___s__line__d:_unknown_variable___s__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
jmp fcn.004019a0

Function at 0x401e00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00401a90
test eax, eax
mov edi, eax
je 0x401e70
cmp byte [eax], 0x23
je 0x401e70
mov dword [esp], eax
call sub.cygwin1.dll_strlen
cmp byte [edi + eax - 1], 0x3a
je 0x401e70
mov eax, dword [str.expect]
test eax, eax
je 0x401e80
mov ebx, 0x404040
jmp 0x401e49
add ebx, 8
mov eax, dword [ebx]
test eax, eax
je 0x401e80
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x401e40
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebx + 4]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x407300]
mov esi, dword [eax + 8]
mov eax, dword [0x4073a0]
mov ebx, dword [eax + 8]
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], 0x4041a7
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.script___s__line__d:_unknown_command___s__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
nop
lea esi, [esi]
Function at 0x4024d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00401a90
test eax, eax
mov dword [ebp - 0x30], eax
je 0x4025e0
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x4025e0
mov edx, dword [ebp - 0x30]
lea edi, [ebp - 0x2c]
mov dword [esp + 8], 0x4044ab
mov esi, edi
mov dword [esp + 4], 0x20
mov dword [esp], edi
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_snprintf
mov eax, dword [esi]
add esi, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x40251f
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [esi + 2]
cmove esi, eax
mov eax, dword [0x4073a0]
add dl, dl
sbb esi, 3
sub esi, edi
mov ebx, dword [eax]
mov dword [ebp - 0x34], eax
test ebx, ebx
jne 0x4025b7
nop
mov edx, dword [ebp - 0x34]
mov eax, dword [0x407300]
mov esi, dword [edx + 8]
mov ebx, dword [eax + 8]
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], 0x4041a7
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.script___s__line__d:_label___s__not_found_s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x402560
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sub.cygwin1.dll_strncmp
test eax, eax
jne 0x4025b0
mov dword [0x407300], ebx
mov eax, 2
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str._in_goto_gosub_label_
call fcn.004012f0
jmp 0x4024fb

Function at 0x4026d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov eax, dword [0x407300]
test eax, eax
je 0x402779
mov eax, dword [eax]
mov edi, 0x40452f
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00401a90
mov ecx, 2
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402740
mov eax, dword [0x407300]
mov dword [ebx*4 + 0x406038], eax
mov eax, dword [eax + 0xc]
add ebx, 1
cmp ebx, 0x10
mov dword [0x407300], eax
jne 0x4026e0
mov dword [esp], str._too_many_arguments_
call fcn.004012f0
add esp, 0x2c
mov eax, 0x406038
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x402760
mov dword [ebx*4 + 0x406038], 0
add esp, 0x2c
mov eax, 0x406038
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x404531
call fcn.004012f0
mov dword [ebx*4 + 0x406038], 0
jmp 0x402753
mov eax, dword [0x4073a0]
mov ebx, dword [eax + 8]
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], 0x4041a7
mov dword [esp + 4], str.script___s_:_unexpected_end_of_file_s_n
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
jmp fcn.004027c0
Function at 0x4037f0
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 0x403817
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 0x4038dc
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x4038b0
cmp eax, 4
je 0x4038b0
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 0x40380a
cmp eax, 4
je 0x40380a
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 0x40380a
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 0x40380a
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x40388a
jmp 0x40380a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403460
lea esi, [esi]
lea edi, [edi]
Function at 0x409d37
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x409d60
push str.winsock:_Failed_to_open_socket_n
call fcn.004048b7
pop ecx
jmp 0x409dc5
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
cmp eax, edi
je 0x409dbf
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004085c7
mov eax, dword [0x517bdc]
add esp, 0xc
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call sub.WS2_32.dll_bind
cmp eax, edi
jne 0x409dc9
push 0x4223c0
call fcn.004048b7
pop ecx
push esi
call sub.WS2_32.dll_closesocket
mov eax, edi
jmp 0x409dcb
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40e35c
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [0x5223dc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ShowCursor]
ret

Function at 0x40e373
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 5
push dword [0x5223dc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0x3e8
push dword [0x5223dc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, 0x7530
push eax
push eax
push 0xb1
push edi
call esi
push 0
push 0
push 0xb7
push edi
call esi
pop edi
pop esi
ret

Function at 0x40e5ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
push esi
push edi
push 0x3ea
push dword [0x5223dc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov esi, 0x200
lea eax, [ebp - 0x200]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x507888
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x600]
push esi
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.0040ec17
push 0x423fc4
call fcn.004048b7
lea eax, [ebp - 0x600]
push eax
call fcn.004048b7
push 0x42043c
call fcn.004048b7
lea eax, [ebp - 0x600]
push eax
push 0
call fcn.00404106
add esp, 0x20
pop edi
pop esi
leave
ret
Function at 0x40e7f2
Capabilities:
Accept command line arguments
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push str.CipherMutex
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, 0x523fec
mov esi, 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40e83d
push str.Failed_to_get_working_folder._Giving_up_now
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x40e943
push esi
mov esi, 0x5233ec
push esi
push ebx
call fcn.0040ec17
push 0x420370
push esi
call fcn.004082da
push 0x100
lea eax, [ebp - 0x110]
push edi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
call fcn.004085c7
push 0x800
mov esi, 0x522be8
push edi
push esi
call fcn.004085c7
add esp, 0x2c
lea eax, [ebp - 0x110]
push esi
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040e77b
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x110]
push edi
push 0x40e6fb
push edi
push 0x66
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp eax, edi
mov dword [0x5223dc], eax
je 0x40e941
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push str._nCommand_line:
call fcn.0040498a
push esi
call fcn.0040498a
push 0x4218d4
call fcn.0040498a
lea eax, [ebp - 0x10]
push eax
call fcn.004076f7
mov esi, 0x420404
push 2
push esi
push str.cl_running
call fcn.0040567d
push 2
push esi
push str.sv_running
mov dword [0x5223d8], eax
call fcn.0040567d
add esp, 0x28
mov dword [0x5223e4], eax
call fcn.0040e3c2
test eax, eax
je 0x40e941
cmp dword [0x524400], edi
je 0x40e93a
push str.quit
push edi
call fcn.00404106
pop ecx
pop ecx
call fcn.004074f2
jmp 0x40e91c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40eb4d
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x524404], ebx
je 0x40eb6a
push str.Error_called_from_within_Error_____Aborting_immediatly
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
call fcn.00414ba4
push esi
push edi
push str._n_ERROR__n
mov dword [0x524404], 1
call fcn.004048b7
push dword [esp + 0x14]
call fcn.004048b7
push 0x42043c
call fcn.004048b7
add esp, 0xc
call fcn.0040a95e
call fcn.0040e373
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push 0x3ea
push dword [0x5223dc]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
push ebx
push 0x3e9
push dword [0x5223dc]
call esi
push eax
call edi
push 5
push 0x3eb
push dword [0x5223dc]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040e3c2
pop edi
pop esi
test eax, eax
je 0x40ec10
cmp dword [0x524400], ebx
je 0x40ec09
push dword [0x5223dc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x524400], ebx
call fcn.0040e3c2
jmp 0x40ebeb
push 0xffffffffffffffff
call fcn.00414ba4
Function at 0x40ecc7
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 4
jge 0x40ed22
lea eax, [ebp - 0x600]
mov esi, 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [edi*4 + 0x5243ec], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [edi*4 + 0x5243ec]
jne 0x40ee5f
mov eax, dword [ebp + 8]
sub eax, 0
je 0x40ede3
dec eax
je 0x40eda9
dec eax
je 0x40ed72
dec eax
je 0x40ed29
xor eax, eax
jmp 0x40ee6f
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00406626
lea eax, [ebp - 0x400]
push eax
call fcn.0040ec7d
add esp, 0xc
push eax
call ebx
lea eax, [ebp - 0x400]
push 0x420370
push eax
call fcn.004082da
push str.game
lea eax, [ebp - 0x400]
push eax
call fcn.004082da
add esp, 0x10
jmp 0x40edf8
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00406626
lea eax, [ebp - 0x400]
push eax
call fcn.0040ec7d
add esp, 0xc
push eax
call ebx
lea eax, [ebp - 0x400]
push 0x420370
push eax
call fcn.004082da
push 0x42414c
jmp 0x40ed5e
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.00406626
lea eax, [ebp - 0x400]
push eax
call fcn.0040ec7d
add esp, 0xc
push eax
call ebx
lea eax, [ebp - 0x400]
push 0x420370
push eax
call fcn.004082da
push str.cgame
jmp 0x40ed5e
push esi
lea eax, [ebp - 0x400]
push str.renderer
push eax
call fcn.004082a4
add esp, 0xc
lea eax, [ebp - 0x400]
push str.x86.dll
push eax
call fcn.004082da
push str.Trying_to_load
call fcn.004048b7
lea eax, [ebp - 0x400]
push eax
call fcn.004048b7
push 0x42043c
call fcn.004048b7
lea eax, [ebp - 0x400]
push eax
call fcn.0040ec7d
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [edi], eax
jne 0x40ee5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_with_error__d_n
call fcn.004045cf
push eax
call fcn.004048b7
add esp, 0xc
lea eax, [ebp - 0x600]
push eax
call ebx
xor eax, eax
cmp dword [edi], eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419489
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x426080
cmp edx, dword [eax]
je 0x4194ab
add eax, 8
inc ecx
cmp eax, 0x426110
jl 0x41949c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x426080]
jne 0x4195d9
mov eax, dword [0x524474]
cmp eax, 1
je 0x4195b3
test eax, eax
jne 0x4194dc
cmp dword [0x4258b4], 1
je 0x4195b3
cmp edx, 0xfc
je 0x4195d9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419513
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418a50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419e00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419556
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419e00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d9f0
push edi
call fcn.0041af40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418a50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418a60
lea eax, [ebp - 0xa0]
push 0x421048
push eax
call fcn.00418a60
push dword [esi + 0x426084]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418a60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041aea8
add esp, 0x2c
pop edi
jmp 0x4195d9
lea eax, [ebp + 8]
lea esi, [esi + 0x426084]
push 0
push eax
push dword [esi]
call fcn.00419e00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10002e10
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push edi
mov edi, ecx
test edx, edx
je 0x10002e3d
mov ecx, esi
mov eax, edx
xor ecx, edi
and al, 1
cmove ecx, esi
mov esi, ecx
lea ecx, [edi + edi]
mov edi, ecx
xor edi, dword [esp + 0xc]
cmp ecx, 0x100
cmovb edi, ecx
shr edx, 1
jne 0x10002e1a
pop edi
mov eax, esi
pop esi
ret

Function at 0x10002e97
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov eax, ebx
mov esi, ebx
shr eax, 1
movzx edi, al
mov eax, ebx
shr esi, 8
and eax, 1
and esi, 2
or esi, eax
mov ecx, dword [esi*4 + 0x10001180]
mov edx, dword [esi*4 + 0x10001100]
xor ecx, edi
call fcn.10002e42
shl eax, 0x18
mov ecx, eax
call fcn.10002e7d
mov ecx, dword [esi*4 + 0x10001190]
mov edx, dword [esi*4 + 0x10001110]
xor ecx, edi
mov dword [ebx*4 + 0x10006038], eax
call fcn.10002e42
shl eax, 0x10
mov ecx, eax
call fcn.10002e7d
mov ecx, dword [esi*4 + 0x100011a0]
mov edx, dword [esi*4 + 0x10001120]
xor ecx, edi
mov dword [ebx*4 + 0x10007038], eax
call fcn.10002e42
shl eax, 8
mov ecx, eax
call fcn.10002e7d
mov ecx, dword [esi*4 + 0x100011b0]
mov edx, dword [esi*4 + 0x10001130]
xor ecx, edi
mov dword [ebx*4 + 0x10008038], eax
call fcn.10002e42
mov ecx, eax
call fcn.10002e7d
mov dword [ebx*4 + 0x10009038], eax
inc ebx
cmp ebx, 0x400
jl 0x10002e9c
pop edi
pop esi
pop ebx
ret

Function at 0x10003036
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
movzx ebx, byte [edx]
mov edi, ecx
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl ebx, 8
mov esi, dword [edi + 4]
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 5]
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov dword [ebp + 8], ecx
test esi, esi
jle 0x100030b2
mov edi, dword [edi + 8]
dec esi
shr esi, 1
inc esi
mov edx, edi
call fcn.10002fc5
xor ebx, eax
lea edx, [edi + 0xc]
mov ecx, ebx
call fcn.10002fc5
mov ecx, dword [ebp + 8]
add edi, 0x18
xor ecx, eax
mov dword [ebp + 8], ecx
sub esi, 1
jne 0x1000308f
mov eax, dword [ebp + 0xc]
push 4
add eax, 7
pop edx
mov byte [eax - 4], cl
mov byte [eax], bl
shr ecx, 8
shr ebx, 8
dec eax
sub edx, 1
jne 0x100030bb
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100030d3
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
mov ebp, ecx
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 5]
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
push esi
mov esi, dword [ebp + 4]
or ecx, eax
dec esi
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x10003156
push edi
imul edi, esi, 0xc
add edi, dword [ebp + 8]
dec esi
shr esi, 1
inc esi
mov edx, edi
call fcn.10002fc5
xor ebx, eax
lea edx, [edi - 0xc]
mov ecx, ebx
call fcn.10002fc5
mov ecx, dword [esp + 0x14]
sub edi, 0x18
xor ecx, eax
mov dword [esp + 0x14], ecx
sub esi, 1
jne 0x10003130
pop edi
mov eax, dword [esp + 0x14]
push 4
add eax, 7
pop edx
mov byte [eax - 4], cl
mov byte [eax], bl
shr ecx, 8
shr ebx, 8
dec eax
sub edx, 1
jne 0x10003160
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000333a
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
mov ebp, ecx
push edi
xor edi, edi
test edx, edx
jle 0x10003372
push ebx
movsx eax, byte [edi + ebp]
shl eax, 0x18
push 8
xor esi, eax
pop ebx
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x488781ed
test esi, esi
cmovns eax, ecx
dec ebx
mov esi, eax
test ebx, ebx
jg 0x10003356
inc edi
cmp edi, edx
jl 0x1000334a
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret