joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
leave
ret

Function at 0x401240
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
leave
ret

Function at 0x401270
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x10c]
sub esp, 0x124
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
test eax, eax
jne 0x4012a0
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x405000
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x401298
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 4
leave
ret

Function at 0x401380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x4013c0
leave
ret
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, 0xffffffff
leave
ret

Function at 0x401960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
test edx, edx
je 0x4019a0
leave
ret
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, 0xffffffff
leave
ret

Function at 0x401bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, 0xffffffff
test edx, edx
je 0x401bf0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x401c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, eax
sub esp, 0x14
mov eax, 0xffffffff
test edx, edx
je 0x401c40
mov eax, dword [ebp - 0xc]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test edx, edx
je 0x401d30
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edx
mov ebx, edx
mov edi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
call ecx
mov edx, eax
sub esp, 0x18
lea esi, [edx + edx]
mov dword [ebp - 0x1c], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x401d30
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call ecx
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x401d26

Function at 0x401d40
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test edx, edx
je 0x401e0d
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], edx
mov ebx, edx
mov edi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x20], ecx
call ecx
sub esp, 0x20
mov edx, eax
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x401e0d
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edi
call ecx
sub esp, 0x20
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x401e03
Function at 0x401e20
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
mov eax, 0xfde9
sub esp, 0x20
call dbg.strdupWtoA
mov esi, eax
mov eax, dword [0x407014]
test eax, eax
je 0x401ec8
cmp byte [esi], 0x5c
mov eax, esi
jne 0x401e58
lea esi, [esi]
add eax, 1
cmp byte [eax], 0x5c
je 0x401e50
movzx edx, word [section..data]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], dbg.fci_get_open_info
mov dword [esp + 0x14], dbg.fci_status
mov dword [esp + 0x10], dbg.fci_get_next_cab
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
call sym._FCIAddFile
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, eax
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]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strrchr]
lea edx, [eax + 1]
test eax, eax
mov eax, edx
cmove eax, esi
jmp 0x401e58
Function at 0x401ef0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x27c
cmp word [edx], 0
mov dword [ebp - 0x26c], eax
je 0x40209f
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x401f10
sub eax, ebx
add eax, 0x20c
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]
mov esi, eax
sub esp, 0xc
xor eax, eax
test esi, esi
je 0x40206f
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401f58
cmp word [esi], 0
mov ebx, esi
je 0x401f91
mov eax, ebx
add ebx, 2
cmp word [ebx], 0
jne 0x401f70
cmp esi, ebx
jae 0x401f91
cmp word [ebx - 2], 0x5c
je 0x401f91
mov edx, 0x5c
mov word [ebx], dx
lea ebx, [eax + 4]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x405060]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401f98
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
jne 0x401fea
jmp 0x402046
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x40203a
mov eax, dword [ebp - 0x23c]
cmp eax, 0x2e
je 0x401fd0
cmp eax, 0x2e002e
je 0x402080
mov ecx, dword [ebp - 0x268]
mov eax, ecx
and eax, 0x400
jne 0x401fd0
nop
movzx edx, word [ebp + eax - 0x23c]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x402010
and ecx, 0x10
mov eax, dword [ebp - 0x26c]
mov edx, esi
je 0x402098
call dbg.add_directory
test eax, eax
jne 0x401fd0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [esp + 8], esi
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]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x238], 0
jne 0x402000
jmp 0x401fd0
call dbg.add_file
jmp 0x402036
mov eax, 0x20c
jmp 0x401f20
Function at 0x4020b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4021f7
cmp eax, 2
jne 0x402200
movzx eax, word [ebx + 0x1c]
mov edx, dword [ebx + 4]
and ax, 0x80
neg ax
sbb eax, eax
and eax, 0xfde9
call dbg.strdupAtoW
mov esi, eax
call dbg.match_files
test eax, eax
je 0x4021d3
mov eax, dword [0x40700c]
test eax, eax
je 0x4021c3
movzx eax, word [ebx + 0x1c]
mov dword [ebp - 0x14], 0x780072
mov dword [ebp - 0x10], 0x730061
mov dword [ebp - 0xc], 0x68
test al, 1
jne 0x40212b
mov ecx, 0x2d
mov word [ebp - 0x14], cx
test al, 0x40
jne 0x402138
mov edx, 0x2d
mov word [ebp - 0x12], dx
test al, 0x20
jne 0x402145
mov ecx, 0x2d
mov word [ebp - 0x10], cx
test al, 4
jne 0x402152
mov edx, 0x2d
mov word [ebp - 0xe], dx
test al, 2
je 0x402240
movzx edx, word [ebx + 0x1a]
movzx eax, word [ebx + 0x18]
mov ecx, edx
and ecx, 0x1f
add ecx, ecx
mov dword [esp + 0x20], ecx
mov ecx, edx
shr dx, 0xb
movzx edx, dx
shr cx, 5
mov dword [esp + 0x18], edx
mov edx, eax
and ecx, 0x3f
and edx, 0x1f
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov edx, eax
shr ax, 9
shr dx, 5
add ax, 0x7bc
movzx eax, ax
and edx, 0xf
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], 0x405064
mov dword [esp + 8], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call dbg.wprintf
mov dword [esp + 4], esi
mov dword [esp], 0x4050b6
call dbg.wprintf
mov dword [esp + 8], esi
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
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
test byte [0x404008], 1
je 0x4021f7
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unexpected_notification_type__d._n
mov dword [esp + 8], str.list_notify
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov eax, 0x2d
mov word [ebp - 0xc], ax
jmp 0x40215a
Function at 0x402750
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0xfde9
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
call dbg.strdupAtoW
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov esi, eax
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x402886
mov ebx, eax
lea eax, [ebp - 0x4c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
sub esp, 8
test eax, eax
je 0x402846
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x4c]
sub esp, 0xc
and ecx, 0x27
mov word [edi], cx
movzx eax, word [esi]
test ax, ax
je 0x402818
mov edx, esi
jmp 0x40280c
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
je 0x402818
cmp ax, 0x7f
jbe 0x402800
or cl, 0x80
mov word [edi], cx
mov dword [esp + 8], esi
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]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [ecx], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 0xffffffff
jmp 0x40283e
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
test byte [0x404008], 2
jne 0x4028c3
mov dword [esp + 8], esi
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
jmp 0x40287f
test esi, esi
je 0x40293a
mov eax, esi
shr eax, 0x10
je 0x402925
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4028f4
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_open__s:_error__u_n
mov dword [esp + 8], 0x405614
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40289d
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4028f4
mov eax, str._null_
jmp 0x4028f4
Function at 0x403250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x4032a8
cmp byte [esi + ebx - 1], 0xa
je 0x40327c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [0x4070b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x403a00
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4070b4]
movzx eax, al
bt eax, esi
jae 0x403a60
mov ecx, dword [0x4070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x403905
test byte [0x404020], 8
jne 0x4039a0
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x404030], 8
jne 0x403950
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 0x4038d4
cmp esi, 3
jbe 0x403910
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]
add esp, 0xfc
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 + 0x4056f8]
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 0x4038d4
mov ecx, dword [0x4070b4]
test ecx, ecx
je 0x403a40
mov dword [esp], 0x404030
call dword [0x4070b4]
test al, 8
je 0x4038ab
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 0x4038ab
mov ebx, dword [0x4070b4]
test ebx, ebx
je 0x403a20
mov dword [esp], 0x404020
call dword [0x4070b4]
test al, 8
je 0x403896
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xe0]
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 0x40389e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x40385d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x4039aa
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4070b4
call sym._load_func.part.0
jmp 0x40395e
mov eax, 0xffffffff
jmp 0x403905
Function at 0x403bd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
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
nop
nop
nop
Function at 0x4108dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4108eb
pop dword [ebp - 0x24]
mov eax, 0xe4f38346
add eax, 0x1b4d85a5
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x96393f84
sub dword [ebp - 0x34], 0x47e6fa39
mov dword [ebp - 0x30], 0x350adc03
add dword [ebp - 0x30], 0xfd287042
mov dword [ebp - 0x2c], 0x95347a8
add dword [ebp - 0x2c], 0x42f8fc86
mov dword [ebp - 0x28], 0x9a74b5c1
sub dword [ebp - 0x28], 0x9a74b5c1
lea eax, [ebp - 0x34]
push eax
mov eax, 0x1b7e8d65
add eax, 0xe4cbe347
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x4375ea0f
sub dword [ebp - 0x34], 0xcf0380b9
mov dword [ebp - 0x30], 0x3fdd8a19
sub dword [ebp - 0x30], 0xfe7128a4
mov dword [ebp - 0x2c], 0xfc08c576
sub dword [ebp - 0x2c], 0x9899590a
mov dword [ebp - 0x28], 0x2717f9be
sub dword [ebp - 0x28], 0x2717f9be
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xa45e2a18
sub eax, 0xa413b884
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x60526
push 0
call eax
mov ecx, 0x4984
mov edx, eax
mov edi, 0x4d3800
add edi, dword [ebp - 0x24]
mov esi, 0x53ec2d6e
add esi, 0x54a3220b
add dword [ebp - 0x14], 0xdb9adeb0
mov ebx, dword [edi]
add dword [ebp - 8], edx
xor ebx, esi
mov dword [edx], ebx
sub dword [ebp - 0x10], ecx
add edx, 0x28144baa
sub edx, 0x28144ba6
add edi, 0x3d0d062f
sub edi, 0x3d0d062b
loop 0x410a01
add eax, 0x118e3
mov ebx, eax
add eax, 0xe115d574
sub eax, 0xe115d56f
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4726b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004062fe
cmp eax, ebx
je 0x401539
push ebx
push dword [0x4726b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4726b0], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x4032dd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x472620], eax
cmp esi, ebx
jle 0x40343b
push dword [0x4331ec]
call fcn.004032c6
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x403352
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.004032b0
test eax, eax
je 0x40344d
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x4725dc], ebx
je 0x4033a9
cmp dword [0x4726a0], ebx
jne 0x4033a9
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.0040320e
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.00406bb1
test eax, eax
js 0x403452
mov esi, dword [0x427178]
sub esi, ebp
je 0x403407
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403457
cmp esi, dword [esp + 0x10]
jne 0x403457
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x403378
jmp 0x403413
cmp dword [0x427174], ebx
jne 0x403452
cmp edi, ebx
je 0x403452
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40333c
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040320e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403445
push 0xfffffffffffffffd
pop eax
jmp 0x403445
push 0xfffffffffffffffe
jmp 0x403454