joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401110
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [edx], 0
mov dword [ecx], 0
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], ecx
call dbg.chomp
cmp word [ebx], 0
mov edx, eax
je 0x40114f
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x401140
sub eax, ebx
sar eax, 1
add edx, eax
lea eax, [edx + edx + 2]
mov dword [esp + 4], 0
mov edi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 8], eax
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x401207
mov dword [ebp - 0x28], eax
mov eax, ebx
call dbg.chomp
lea ecx, [eax*4 + 4]
mov ebx, eax
mov dword [esp + 8], ecx
mov dword [ebp - 0x24], ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x40121b
mov ecx, dword [ebp - 0x24]
mov esi, eax
lea ecx, [eax + ecx - 4]
test ebx, ebx
jle 0x401217
lea esi, [esi]
cmp word [edx], 0
mov dword [esi], edx
je 0x401210
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4011e0
sub eax, edx
add eax, 2
add esi, 4
add edx, eax
cmp ecx, esi
jne 0x4011d0
mov eax, dword [ebp - 0x1c]
mov dword [ecx], 0
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4011ee
mov ecx, eax
jmp 0x4011f7
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401207
Function at 0x4013e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
test eax, eax
je 0x401538
cmp word [edi], 0
mov edx, eax
je 0x401550
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401440
sub eax, edi
sar eax, 1
lea ecx, [edx - 1]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
cmp eax, ecx
jae 0x401470
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edx + edx]
mov dword [ebp - 0x1c], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0x14], edx
mov dword [ebp - 0x1c], eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x18
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], ecx
mov esi, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CompareStringW]
sub esp, 0x18
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
cmp ebx, 2
sete al
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x40144d
Function at 0x4015f0
Capabilities:
Create service
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
mov dword [esp + 8], 2
mov dword [esp + 4], str.ServicesActive
mov dword [esp], 0
call dword [sym.imp.advapi32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x401740
lea esi, [ebp - 0x238]
mov dword [esp + 4], 0x104
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea ecx, [esi + eax*2]
sub esp, 8
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.msiexec__V]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x401648
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x10000000
mov dword [esp + 8], 0x407066
mov dword [esp + 4], 0x407066
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_CreateServiceW]
sub esp, 0x34
test eax, eax
je 0x4016f0
mov dword [esp], eax
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
call esi
sub esp, 4
xor edi, edi
mov dword [esp], ebx
call esi
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x431
jne 0x401710
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016d5
mov dword [esp], 2
mov edi, 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_create_MSI_service_n
mov dword [esp], eax
call sym._fprintf
mov esi, dword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x4016d7
mov dword [esp], 2
mov edi, 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_open_the_service_control_manager._n
mov dword [esp], eax
call sym._fprintf
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
movzx ecx, word [eax]
and ecx, 0xfffffffd
cmp cx, 0x2d
je 0x401780
xor eax, eax
ret
add eax, 2
jmp dbg.msi_strequal
Function at 0x401a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x1c
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x401a8d
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x401ac4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 2
mov ebx, eax
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unable_to_load_dll__s_n
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp], 2
mov ebx, eax
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Dll__s_does_not_implement_function__s_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push eax
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x401e70
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
cmp word [edx], 0
je 0x401f00
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e88
sub eax, esi
add eax, 6
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ecx, eax
test eax, eax
je 0x401f07
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x401ec8
mov eax, dword [ebx]
mov dword [ecx], 0
test eax, eax
je 0x401ef0
lea esi, [esi]
mov ebx, eax
mov eax, dword [eax]
test eax, eax
jne 0x401ee8
mov dword [ebx], ecx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, 6
jmp 0x401e96
test byte [section..data], 2
jne 0x401f1d
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.StringListAppend
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401f10

Function at 0x401f50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
lea eax, [ebp - 0x18]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [section..bss]
mov dword [esp], eax
call sym.___wine_msi_call_dll_function
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret 4
Function at 0x401fc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x10
cmp word [eax], 0
je 0x4020c0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401fd8
sub eax, ebx
add eax, 0xa
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x4020f8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402020
movzx ecx, word [edx]
test cx, cx
je 0x4020b8
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x402040
sub eax, edx
sar eax, 1
jne 0x402063
jmp 0x4020b0
cmp bx, 0x5c
je 0x402070
sub eax, 1
je 0x4020b0
movzx ebx, word [edx + eax*2]
lea esi, [ebx - 0x2e]
cmp si, 1
ja 0x402058
mov ecx, edx
cmp bx, 0x2e
je 0x4020d0
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x402080
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [eax + str..msi]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x402090
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret
mov ebx, ecx
jmp 0x402070
mov ecx, edx
jmp 0x402089
mov eax, 0xa
jmp 0x401fe6
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
xor edx, edx
jmp 0x4020a3
test byte [section..data], 2
je 0x4020f4
mov dword [esp + 0xc], str.No_memory._n
mov dword [esp + 8], str.get_path_with_extension
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
xor edx, edx
jmp 0x4020a3
Function at 0x404930
Capabilities:
Create thread

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
mov dword [esp + 4], sym._ServiceCtrlHandler_4
mov dword [esp], str.MSIServer
call dword [sym.imp.advapi32.dll_RegisterServiceCtrlHandlerA]
mov dword [0x40900c], eax
sub esp, 8
test eax, eax
je 0x404ac0
mov eax, 2
call sym._UpdateSCMStatus.constprop.0.isra.0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [0x409004], eax
sub esp, 0x10
test eax, eax
je 0x404a70
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.ServiceExecutionThread
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x409008], eax
sub esp, 0x18
test eax, eax
je 0x404a20
mov eax, 4
call sym._UpdateSCMStatus.constprop.0.isra.0
mov dword [esp + 4], 0xffffffff
mov eax, dword [0x409008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, 1
sub esp, 8
call sym._UpdateSCMStatus.constprop.0.isra.0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret 8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_create_thread_n
mov dword [esp], eax
call dbg.fprintf
test byte [0x406010], 8
jne 0x404a96
mov eax, dword [0x409004]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, 1
sub esp, 4
call sym._UpdateSCMStatus.constprop.0.isra.0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret 8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_create_event_n
mov dword [esp], eax
call dbg.fprintf
test byte [0x406010], 8
je 0x404a46
mov dword [esp + 0xc], str.Killing_service_n
mov dword [esp + 8], str.KillService
mov dword [esp + 4], 0x406010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x404a46
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 4], str.Failed_to_register_service_ctrl_handler_n
mov dword [esp], eax
call dbg.fprintf
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret 8

Function at 0x404c40
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 0x404c9b
cmp byte [esi + ebx - 1], 0xa
je 0x404c6f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4090a4], 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 0x405270
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 [0x4090b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x405430
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4090b4]
movzx eax, al
bt eax, esi
jae 0x405490
mov ecx, dword [0x4090a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x405336
test byte [0x406028], 8
jne 0x4053d0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x406038], 8
jne 0x405380
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 0x405305
cmp esi, 3
jbe 0x405340
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 + 0x407af4]
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 0x405305
mov ecx, dword [0x4090b4]
test ecx, ecx
je 0x405470
mov dword [esp], 0x406038
call dword [0x4090b4]
test al, 8
je 0x4052dc
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 0x4052dc
mov ebx, dword [0x4090b4]
test ebx, ebx
je 0x405450
mov dword [esp], 0x406028
call dword [0x4090b4]
test al, 8
je 0x4052c9
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 0x4052cf
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x405290
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x4053da
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4090b4
call sym._load_func.part.0
jmp 0x40538e
mov eax, 0xffffffff
jmp 0x405336
Function at 0x4055f0
Capabilities:
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_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_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.main
mov dword [esp], eax
call sym._exit

Function at 0x4056b0
Capabilities:
Accept command line arguments

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 dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40571e
xor ecx, ecx
xor edx, edx
jmp 0x4056f6
cmp al, 0x5c
jne 0x405778
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x405713
cmp al, 9
je 0x4056fe
cmp al, 0x20
jne 0x4056e0
test ecx, ecx
je 0x405713
xor edx, edx
jmp 0x4056eb
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x405710
cmp al, 0x20
je 0x405710
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x405739
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x405702
and edx, 1
jne 0x405702
xor ecx, 1
jmp 0x4056eb
Function at 0x3f5fb50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32b4000]
push edi
or ebp, 0xffffffff
jmp 0x3f5fb72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3f5fb79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f5fb68
mov eax, 1
add ebx, ebx
jne 0x3f5fb8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3f5fb9c
jne 0x3f5fbbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f5fbbb
dec eax
add ebx, ebx
jne 0x3f5fba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x3f5fb80
add ebx, ebx
jne 0x3f5fbb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x3f5fc0d
xor ecx, ecx
sub eax, 3
jb 0x3f5fbd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3f5fc42
sar eax, 1
mov ebp, eax
jmp 0x3f5fbde
add ebx, ebx
jne 0x3f5fbde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f5fbac
inc ecx
add ebx, ebx
jne 0x3f5fbec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f5fbac
add ebx, ebx
jne 0x3f5fbf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3f5fbee
jne 0x3f5fc0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3f5fbee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3f5fc2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3f5fc1e
jmp 0x3f5fb6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3f5fc2c
add edi, ecx
jmp 0x3f5fb6e
pop esi
lea edi, [esi + 0x3b58000]
mov eax, dword [edi]
or eax, eax
je 0x3f5fc94
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b7c958]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b7cdf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3f5fc49
mov ecx, edi
jns 0x3f5fc78
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b7cdf8]
or eax, eax
je 0x3f5fc8e
mov dword [ebx], eax
add ebx, 4
jmp 0x3f5fc66
call dword [esi + 0x3b7ce00]
mov ebp, dword [esi + 0x3b7cdfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2b7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x3f5fcc8
sub esp, 0xffffff80
jmp 0x11c8c2b
Function at 0x409960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a420
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x476188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
mov dword [esi + 0x10], 0
push dword [esi + 8]
mov dword [ebp + 8], ebx
call fcn.0041e736
add esp, 4
test eax, eax
je 0x4099ae
push eax
call fcn.0041eb76
add esp, 4
push dword [esi + 4]
mov byte [esi + 0xc], 1
call fcn.0041ea30
add esp, 4
test eax, eax
je 0x4099ca
push eax
call fcn.0041eb76
add esp, 4
push dword [esi + 8]
call fcn.0041e75b
add esp, 4
test eax, eax
je 0x4099e2
push eax
call fcn.0041eb76
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x409a0e
cmp eax, esi
je 0x409a19
push 0x7d0
mov esi, eax
call edi
jmp 0x4099f0
push str.a_ccsUTF_8
push str.hook.txt
call fcn.00444bde
mov ecx, dword [ebp + 8]
mov ebx, eax
add esp, 8
mov ecx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [ebp - 0x10], eax
cmp esi, eax
je 0x409a7f
nop
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x409a4c
mov ecx, dword [esi]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409a50
sub ecx, edi
mov eax, esi
sar ecx, 1
cmp edx, 8
jb 0x409a68
mov eax, dword [esi]
push ebx
push 1
add ecx, ecx
push ecx
push eax
call fcn.00444e2d
add esi, 0x18
add esp, 0x10
cmp esi, dword [ebp - 0x10]
jne 0x409a40
push ebx
call fcn.00444890
add esp, 4
call fcn.0041ea64
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
test esi, esi
je 0x409ab8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x409ab8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x409ab8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 8
push ebx
call fcn.00436c0f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a920
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x40a951
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x40a940
pop edi
mov eax, esi
pop esi
pop ebp
ret 8