joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401020
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp], eax
call sub.shlwapi.dll_PathSkipRootW
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x40104b
jmp 0x401080
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x401080
cmp ax, 0x5c
jne 0x401048
xor eax, eax
mov word [ebx], ax
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, 0x5c
mov word [ebx], dx
sub esp, 8
jmp 0x401048
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
mov edx, eax
sub esp, 8
mov eax, 1
test edx, edx
jne 0x4010ae
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete al
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x210]
sub esp, 0x224
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40f000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x401510
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 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]
sub esp, 0xc
test eax, eax
je 0x401542
leave
ret
test byte [section..data], 2
jne 0x401558
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.xmalloc
mov dword [esp + 4], 0x40e000
mov dword [esp], 1
call fcn.00401480
jmp 0x40154b
Function at 0x401710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x144], 0
test byte [section..data], 8
jne 0x4018b0
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x401848
lea edi, [ebp - 0x140]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x140], 0x128
call sub.kernel32.dll_Process32First
sub esp, 8
test eax, eax
jne 0x4017a7
jmp 0x401878
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.kernel32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x401878
cmp esi, dword [ebp - 0x138]
jne 0x401790
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebp - 0x144], eax
sub esp, 0xc
test eax, eax
je 0x401928
lea eax, [ebp - 0x144]
mov dword [esp + 0x10], 0x4ff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.user32.dll_MsgWaitForMultipleObjects
sub esp, 0x14
test eax, eax
jne 0x4018e0
lea esi, [esi]
nop
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x401836
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x40185f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 2
jne 0x401978
mov eax, dword [ebp - 0x144]
test eax, eax
jne 0x40182a
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [section..data], 4
je 0x401820
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Unable_to_find_current_process_id__ld_when_listing_processes_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40e000
mov dword [esp], 2
call fcn.00401480
jmp 0x401820
mov dword [esp + 0xc], str.Waiting_for_parent_process_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 4], 0x40e000
mov dword [esp], 3
call fcn.00401480
jmp 0x40173c
test byte [section..data], 2
je 0x401820
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_wait_for_parent_process__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40e000
mov dword [esp], 1
call fcn.00401480
jmp 0x401820
test byte [section..data], 4
je 0x401836
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenProcess_failed_pid_ld__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x128]
mov dword [esp + 4], 0x40e000
mov dword [esp + 0x10], eax
mov dword [esp], 2
call fcn.00401480
jmp 0x401820
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateToolhelp32Snapshot_failed__error__ld_n
mov dword [esp + 8], str.WaitForParentProcess
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40e000
mov dword [esp], 1
call fcn.00401480
jmp 0x401855
Function at 0x401a10
Capabilities:
Check if process is running under wine
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
sub esp, 0x3c
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineMenuFiles
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegCreateKeyW
sub esp, 0xc
test eax, eax
jne 0x401aa0
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x401aaa
cmp word [esi], 0
mov eax, esi
je 0x401abd
nop
add eax, 2
cmp word [eax], 0
jne 0x401a50
sub eax, esi
add eax, 2
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
mov ebx, eax
mov dword [esp], edi
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x401a5e

Function at 0x401b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x20], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
movzx edx, word [edx]
test dx, dx
je 0x401c62
lea edi, [eax + 2]
xor eax, eax
lea esi, [esi]
mov ecx, 0x10
lea esi, [esi]
mov esi, eax
shr ax, 1
xor esi, edx
mov ebx, eax
xor bx, 0xa001
and esi, 1
cmovne eax, ebx
shr dx, 1
sub ecx, 1
jne 0x401bb0
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x401ba8
movzx ebx, ax
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x5c
mov dword [esp], edi
call esi
mov dword [esp + 4], 0x2e
test eax, eax
lea edx, [eax + 2]
cmove edx, edi
mov edi, edx
mov dword [ebp - 0x1c], edx
mov dword [esp], edx
call esi
mov edx, eax
sub edx, edi
sar edx, 1
test eax, eax
je 0x401c3e
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], str._04X__.s._d
mov dword [esp + 0xc], eax
call fcn.00401ad0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
je 0x401c69
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401c50
sub eax, dword [ebp - 0x1c]
sar eax, 1
mov edx, eax
jmp 0x401c14
xor ebx, ebx
jmp 0x401bda
xor edx, edx
jmp 0x401c14
Function at 0x401d20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.00401610
mov edi, eax
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
lea eax, [eax + eax*2]
lea eax, [eax + eax + 1]
call fcn.00401510
movzx edx, byte [edi]
mov esi, eax
test dl, dl
je 0x401e50
add edi, 1
xor ebx, ebx
lea esi, [esi]
lea eax, [edx - 0x22]
lea ecx, [esi + ebx]
cmp al, 0x1c
ja case.0x401d6d.1
movzx eax, al
jmp dword [eax*4 + 0x40f164]
mov byte [ecx], dl
add ebx, 1
lea esi, [esi]
movzx edx, byte [edi]
add edi, 1
test dl, dl
jne 0x401d60
add ebx, esi
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov byte [ebx], 0
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.gt_
mov dword [esp], ecx
call fcn.004016c0
add ebx, eax
jmp 0x401d80
mov dword [esp + 4], str.lt_
mov dword [esp], ecx
call fcn.004016c0
add ebx, eax
jmp 0x401d80
mov dword [esp + 4], str.apos_
mov dword [esp], ecx
call fcn.004016c0
add ebx, eax
jmp 0x401d80
mov dword [esp + 4], str.amp_
mov dword [esp], ecx
call fcn.004016c0
add ebx, eax
jmp 0x401d80
mov dword [esp + 4], str.quot_
mov dword [esp], ecx
call fcn.004016c0
add ebx, eax
jmp 0x401d80
mov ebx, eax
jmp 0x401d8c

Function at 0x401e60
Capabilities:
Get process heap flags
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
mov eax, 0x800
push ebx
mov edi, dword fs:[0x18]
mov ebx, edi
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x800
jmp 0x401eb7
cmp eax, 0xea
jne 0x401f10
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
shl dword [ebp - 0x1c], 1
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
call fcn.00401510
mov dword [esp + 0x1c], 0
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.advapi32.dll_RegEnumKeyExW
sub esp, 0x20
test eax, eax
jne 0x401e88
lea esp, [ebp - 0xc]
mov ebx, edi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
xor ebx, 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, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401f40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
cmp word [eax], 0
je 0x4020b0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401f58
sub eax, ebx
sar eax, 1
lea eax, [eax*8 + 2]
call fcn.00401510
mov esi, eax
movzx eax, word [ebx]
test ax, ax
je 0x4020d0
xor edx, edx
jmp 0x401fb1
sub eax, 9
cmp ax, 1
jbe 0x401fe2
lea esi, [esi]
movzx eax, word [ebx]
add ebx, 2
mov word [esi + edx*2], ax
movzx eax, word [ebx]
add edx, 1
test ax, ax
je 0x40206d
lea ecx, [edx + edx]
lea edi, [esi + ecx]
mov dword [ebp - 0x1c], edi
lea edi, [esi + ecx + 2]
mov dword [ebp - 0x20], edi
cmp ax, 0x5c
je 0x402030
ja 0x402000
cmp ax, 0x3c
ja 0x402018
cmp ax, 0x1f
jbe 0x401f88
sub eax, 0x20
mov ecx, 0x180007dd
bt ecx, eax
jae 0x401f98
mov eax, dword [ebp - 0x1c]
mov ecx, 0x5c
mov edi, 0x5c
add edx, 2
mov word [eax], cx
mov eax, dword [ebp - 0x20]
mov word [eax], di
jmp 0x401f98
sub eax, 0x60
cmp ax, 0x1e
ja 0x401f98
mov edi, 0x50000001
bt edi, eax
jae 0x401f98
jmp 0x401fe2
sub eax, 0x3e
cmp ax, 1
ja 0x401f98
jmp 0x401fe2
mov eax, dword [ebp - 0x1c]
mov edi, 0x5c
add ebx, 2
add edx, 4
mov word [eax], di
lea eax, [esi + ecx + 2]
mov edi, 0x5c
mov word [eax], di
mov eax, 0x5c
mov word [esi + ecx + 4], ax
mov eax, 0x5c
mov word [esi + ecx + 6], ax
movzx eax, word [ebx]
test ax, ax
jne 0x401fb1
lea eax, [esi + edx*2]
xor edx, edx
mov word [eax], dx
mov eax, esi
call fcn.00401610
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 - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
call fcn.00401510
mov esi, eax
movzx eax, word [ebx]
test ax, ax
jne 0x401f7f
lea esi, [esi]
nop
mov eax, esi
jmp 0x402070
Function at 0x402340
Capabilities:
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegGetValueW
xor edx, edx
sub esp, 0x1c
test eax, eax
jne 0x4023c8
mov eax, dword [ebp - 0x1c]
call fcn.00401510
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegGetValueW
mov edx, dword [ebp - 0x30]
sub esp, 0x1c
test eax, eax
jne 0x4023d8
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
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]
xor edx, edx
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402ad0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x4c
mov dword [ebp - 0x1c], 0
mov dword [esp + 8], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x2c], eax
call sub.shlwapi.dll_AssocQueryStringW
xor edx, edx
sub esp, 0x18
test eax, eax
js 0x402b52
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
call fcn.00401510
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.shlwapi.dll_AssocQueryStringW
mov edx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
js 0x402b60
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
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]
xor edx, edx
sub esp, 0xc
jmp 0x402b52
Function at 0x40dcf0
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 sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__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 sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40dd60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
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 0x40ddfb
cmp ax, 9
je 0x40dde8
cmp ax, 0x20
je 0x40dde8
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp ax, 0x5c
je 0x40de50
cmp ax, 0x22
je 0x40de60
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40ddfb
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40dda0
test esi, 1
jne 0x40dda0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40dde8
cmp ax, 0x20
je 0x40dde8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40de78
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 fcn.0040aca0
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40ddbb
and dword [ebp - 0x6c], 1
jne 0x40ddb4
xor esi, 1
jmp 0x40ddbb
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40de14
Function at 0x40dd60
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__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 sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x40dd60
mov dword [esp], eax
call sub.ucrtbase.dll_exit
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 0x40ddfb
cmp ax, 9
je 0x40dde8
cmp ax, 0x20
je 0x40dde8
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp ax, 0x5c
je 0x40de50
cmp ax, 0x22
je 0x40de60
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40ddfb
cmp ax, 9
sete dl
cmp ax, 0x20
sete cl
or dl, cl
je 0x40dda0
test esi, 1
jne 0x40dda0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40dde8
cmp ax, 0x20
je 0x40dde8
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x40de78
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 fcn.0040aca0
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40ddbb
and dword [ebp - 0x6c], 1
jne 0x40ddb4
xor esi, 1
jmp 0x40ddbb
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x40de14
Function at 0x10004769
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x10004783
xor al, al
jmp 0x1000492e
mov ax, word [esi + 2]
xor ecx, ecx
mov word [ebp - 0x1c], ax
add edi, 0xa
mov al, byte [esi + 4]
push ebx
mov byte [ebp - 0x1a], al
mov bh, cl
xor eax, eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], bh
jmp 0x100047d9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.10003f64
test eax, eax
js 0x1000488e
lea eax, [ebp - 0x1c]
mov ecx, esi
je 0x10004868
push dword [ebp - 8]
push eax
call fcn.10010d83
mov edi, eax
push dword [esi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.100040be
mov bl, al
test bl, bl
jne 0x100047ad
mov edi, dword [ebp - 8]
mov dword [esi + 0x14], edi
xor edx, edx
test bh, bh
jne 0x1000481e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
call fcn.10003fcc
mov edx, eax
mov ax, word [esi + 6]
lea ecx, [ebp - 0x30]
and dword [ebp - 0x24], 0
mov word [ebp - 0x30], ax
mov al, byte [esi + 8]
mov byte [ebp - 0x2e], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call fcn.10003fcc
mov ecx, dword [esi + 0x14]
lea ebx, [edx + eax]
mov edx, dword [esi + 0x18]
sub edx, ecx
cmp ecx, dword [esi + 0x18]
sbb ecx, ecx
and ecx, edx
cmp ecx, ebx
jae 0x1000489e
xor al, al
jmp 0x1000492d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.100045a5
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x1000492b
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x10004891
mov dword [ebp - 8], edi
test bl, bl
jne 0x100047f7
jmp 0x100047f4
mov ecx, dword [esi + 0x18]
lea edx, [ebx + edi]
mov eax, dword [esi + 0x14]
sub ecx, ebx
sub ecx, edi
sub eax, edi
je 0x100048e8
test edx, edx
jne 0x100048c6
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x100048e8
test edi, edi
je 0x100048b3
cmp ecx, eax
jae 0x100048dc
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x100048bf
push eax
push edi
push edx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 0x14]
add eax, ebx
cmp byte [ebp - 1], 0
mov dword [esi + 0x14], eax
jne 0x10004905
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003ff0
jmp 0x10004918
cmp byte [ebp - 0x1a], 0
je 0x10004918
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
inc eax
push eax
call fcn.10003f8b
push dword [esi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.10003ff0
mov byte [esi + 0x20], 1
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000667d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x100066ba
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x100066b3
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x100066bf
add edx, 0x28
cmp edx, esi
jne 0x100066a4
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100066bc

Function at 0x1000b2bd
Capabilities:
Encode data using xor

Disassembly:
call 0x1000b236
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1000b266
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1000b282
xor edx, 0
jmp 0x1000b28d
xor edx, edx
jmp 0x1000b2a4
jmp 0x1000b2b0
xor eax, eax
push 0x8427d7c0
call 0x1000b2bd
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1000b2f9
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1000b2d2
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1000b310
add eax, 0
jno 0x1000b315
add esi, 0
ret 0x10