joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020c0
Capabilities:
Query environment variable

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x630]
push ebx
mov ebx, eax
sub esp, 0x64c
mov eax, dword [eax]
mov word [ebp - 0x630], dx
lea edx, [ebp - 0x634]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x638], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x40]
lea edx, [ebp - 0x428]
mov edi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0x10
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], esi
call edi
sub esp, 0xc
cmp word [ebp - 0x428], 0
jne 0x402148
mov eax, dword [ebp - 0x638]
test eax, eax
je 0x402188
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x638]
lea edx, [ebp - 0x428]
mov dword [esp + 0x10], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [0x41d5c4]
mov eax, dword [ebp - 0x638]
sub esp, 0x14
test eax, eax
jne 0x40213c
xor eax, eax
mov word [ebp - 0x630], ax
mov eax, dword [ebx]
mov dword [esp + 4], esi
mov dword [esp], ebx
lea ebx, [ebp - 0x220]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
call dword [eax + 0xc]
sub esp, 0x14
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], 0x104
call edi
lea eax, [ebp - 0x638]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call dword [0x41d5c4]
mov eax, dword [ebp - 0x638]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402530
Capabilities:
Enumerate files on windows
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x26c
cmp word [eax], 0
je 0x402551
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402548
sub eax, ebx
mov ecx, 0x2a
sar eax, 1
mov edx, eax
mov eax, str..lnk
jmp 0x40256c
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402568
sub eax, str..lnk
mov dword [esp + 4], 0
sar eax, 1
lea eax, [edx + eax + 1]
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x40265c
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4025b8
mov dword [esp + 4], str..lnk
mov dword [esp], esi
call sym._lstrcatW_8
lea eax, [ebp - 0x268]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x402638
lea esi, [esi]
nop
mov ecx, 0xffffffff
lea edx, [ebp - 0x23c]
mov eax, ebx
call sym._add_launcher
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
jne 0x402600
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]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406fa0
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x34], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x30], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x38], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x412024], 8
jne 0x407058
lea edx, [ebp - 0x1c]
mov eax, 1
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x407041
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x34]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x407150
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x407138
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__p_____ld__s__ld__08x__p__p__p__p__n
mov dword [esp + 8], str.webbrowser_Invoke
mov dword [esp + 4], 0x412024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x406fe3
movzx eax, ax
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
jmp 0x4070da
mov eax, 0x4132c0
jmp 0x4070da
Function at 0x407380
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], ebx
mov edi, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x34], esi
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0x1c]
test byte [0x412024], 8
jne 0x407430
lea edx, [ebp - 0x1c]
xor eax, eax
call sym._get_typeinfo
mov edx, eax
test eax, eax
js 0x40741e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
call dword [ecx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x24
movzx ecx, word [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
test eax, eax
je 0x407520
mov ecx, eax
mov dword [ebp - 0x40], edx
shr ecx, 0x10
je 0x407508
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._ld__s__ld__08x__p__p__p__p_n
mov dword [esp + 8], str.shellwindows_Invoke
mov dword [esp + 4], 0x412024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4073c3
movzx eax, ax
mov dword [esp], str._guid_0x_04hx_
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x40]
jmp 0x4074b2
mov eax, 0x4132c0
jmp 0x4074b2
Function at 0x40a980
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
mov ebx, 0xffffffff
push ecx
sub esp, 0x10
mov eax, dword [ecx]
lock xadd dword [eax + 8], ebx
dec ebx
je 0x40a9b0
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
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]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
Function at 0x40e490
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x30
mov dword [esp + 8], 0x18
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]
sub esp, 0xc
test eax, eax
je 0x40e54d
mov dword [eax + 8], esi
mov ebx, eax
mov eax, dword [0x41c430]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 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], 0x4000000b
mov dword [esp + 8], 0
mov dword [esp + 4], str.Button
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebx], 0x412078
mov dword [ebx + 0xc], eax
mov eax, dword [0x41207c]
sub esp, 0x30
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [0x41207c], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40e8a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
sub esp, 0x20
test byte [0x412088], 8
jne 0x40e950
mov ebx, dword [esi + 0x20]
cmp ebx, 0xffffffff
je 0x40e98e
mov edx, dword [0x41c428]
test edx, edx
je 0x40e998
dec edx
cmp ebx, edx
jae 0x40e910
lea esi, [esi]
lea esi, [esi]
mov ecx, dword [0x41c424]
lea edx, [ebx*4]
lea eax, [ecx + edx]
mov edx, dword [ecx + edx + 4]
mov dword [eax], edx
mov dword [edx + 0x20], ebx
mov eax, dword [eax]
inc ebx
call sym._update_tooltip_position
mov eax, dword [0x41c428]
lea edx, [eax - 1]
cmp edx, ebx
ja 0x40e8e0
mov ebx, dword [esi + 0x20]
mov eax, ebx
mov dword [0x41c428], edx
call sym._invalidate_icons
mov eax, dword [0x41c41c]
or eax, dword [0x41c428]
mov dword [esi + 0x20], 0xffffffff
je 0x40e9c8
mov eax, esi
call sym._update_balloon
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
jmp sym._update_tooltip_position
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], str.id0x_x__hwnd_p_n
mov dword [esp + 8], str.hide_icon
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 4], 0x412088
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_4
mov ebx, dword [esi + 0x20]
cmp ebx, 0xffffffff
jne 0x40e8c3
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x167
mov dword [esp + 4], str..._src_wine_programs_explorer_systray.c
mov dword [esp], str.nb_displayed
call dword [sym.imp.ucrtbase.dll__assert]
mov ebx, dword [esi + 0x20]
mov edx, dword [0x41c428]
jmp 0x40e8d1
mov eax, dword [0x41c430]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x40e935
Function at 0x40f040
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
cmp dword [eax + 0x3b0], 3
ja 0x40f0e0
mov edx, dword [eax + 0x18]
mov esi, edi
test byte [0x412088], 8
jne 0x40f0b0
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendNotifyMessageW]
sub esp, 0x10
mov esi, eax
test eax, eax
jne 0x40f09b
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x578
je 0x40f118
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.relaying_0x_x_n
mov dword [esp + 8], str.notify_owner
mov dword [esp + 4], 0x412088
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_4
mov edx, dword [ebp - 0x1c]
jmp 0x40f068
lea eax, [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x41c430]
mov dword [esp], eax
call dword [sym.imp.user32.dll_ClientToScreen]
mov eax, dword [ebp + 0xc]
movzx edx, word [ebp + 8]
mov esi, dword [ebx + 0x18]
sub esp, 8
shl eax, 0x10
or edx, eax
shl esi, 0x10
movzx eax, di
or esi, eax
jmp 0x40f05f
test byte [0x412088], 4
jne 0x40f178
mov eax, ebx
call sym._hide_icon.isra.0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
sub esp, 4
mov dword [esp + 8], ebx
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, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], str.application_window_was_destroyed__removing_icon__u_n
mov dword [esp + 8], str.notify_owner
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x412088
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_4
jmp 0x40f121
Function at 0x410040
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 1
je 0x410090
cmp eax, 2
jne 0x410081
mov eax, dword [0x412078]
cmp eax, 0x412078
je 0x41007a
lea esi, [esi]
mov edx, dword [eax + 8]
mov esi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x4100d8
cmp eax, 0x412078
jne 0x410068
mov eax, ebx
call sym._cleanup_systray_window
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp sym._sync_taskbar_buttons
mov eax, dword [0x41c420]
test eax, eax
jne 0x410081
test ebx, ebx
je 0x4100c2
lea eax, [ebp - 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
sub esp, 8
test eax, eax
je 0x410081
mov ecx, dword [ebp - 0xc]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x20], ecx
je 0x410081
mov eax, ebx
call sym._add_taskbar_button.part.0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp sym._sync_taskbar_buttons
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyWindow]
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, ebx
sub esp, 0xc
call sym._cleanup_systray_window
jmp 0x410081
Function at 0x4104f0
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 0x41054b
cmp byte [esi + ebx - 1], 0xa
je 0x41051f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41c4e4], 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 0x411010
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

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

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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x41111b
cmp ax, 9
je 0x411108
cmp ax, 0x20
je 0x411108
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x411170
cmp ax, 0x22
je 0x411180
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x41111b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4110c0
test edi, 1
jne 0x4110c0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x411108
cmp ax, 0x20
je 0x411108
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x411198
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x4110db
and dword [ebp - 0x6c], 1
jne 0x4110d4
xor edi, 1
jmp 0x4110db
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x411134
Function at 0x4187e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebp, dword [esp + 0x14]
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea ebx, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0043bd02
mov edi, eax
mov ecx, dword [esi + 0x28]
lea eax, [ecx + 1]
cmp eax, dword [esi + 0x2c]
ja 0x4188d7
mov eax, dword [esi + 0x24]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x43ed84
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x43edb8
mov dword [esi + 0x88], eax
mov eax, dword [ebp]
movzx ecx, word [esi + 6]
and eax, 3
shl eax, 7
and ecx, 0xfffffe7f
or ecx, eax
mov word [esi + 6], cx
mov eax, dword [esp + 0x18]
movsd xmm0, qword [eax]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
call fcn.0043bd14
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esi + 0x24]
push 4
push eax
push ebx
call fcn.0043bc84
mov ecx, dword [esi + 0x28]
jmp 0x418859
Function at 0x4188f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::cl::Option]
add eax, 8
mov dword [ecx], eax
mov word [ecx + 4], 0
movzx eax, word [ecx + 6]
and eax, 0xffff8000
or eax, 1
mov word [ecx + 6], ax
lea ebx, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 8], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 1
lea eax, [ecx + 0x48]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 1
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
call fcn.0043bd02
mov edi, eax
mov ecx, dword [esi + 0x28]
lea eax, [ecx + 1]
cmp eax, dword [esi + 0x2c]
ja 0x4189fd
mov eax, dword [esi + 0x24]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x28]
xorps xmm0, xmm0
movups xmmword [esi + 0x4c], xmm0
movups xmmword [esi + 0x55], xmm0
mov dword [esi], 0x43ed84
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::cl::parser_std::__1::basic_string_char__std::__1::char_traits_char___std::__1::allocator_char_____]
add eax, 8
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x78], 0x43edb8
mov dword [esi + 0x88], eax
push ebp
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp], ebp
mov dword [esp + 4], eax
sub esp, 8
movsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
mov ecx, esi
call fcn.0043bd2c
mov eax, dword [esp + 0x20]
movsd xmm0, qword [eax]
movsd qword [esi + 0x14], xmm0
mov ecx, esi
call fcn.0043bd14
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esi + 0x24]
push 4
push eax
push ebx
call fcn.0043bc84
mov ecx, dword [esi + 0x28]
jmp 0x418970