joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496de0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x496e08
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x496e08
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x496ee2
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x496e28
cmp cl, 0x5c
jne 0x496e2a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x496e1e
push esi
cmp eax, ebp
push edi
je 0x496e6c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.00496de0
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x496e98
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x496ee2
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x49c4b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x640e10]
xor edx, edx
cmp eax, edx
jne 0x49c4d6
xor eax, eax
mov byte [eax + 0x640d10], al
inc eax
cmp eax, 0x100
jl 0x49c4be
mov dword [0x640e10], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x640d10
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49c567
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49c53a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49c508
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49c570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49c5c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49c5aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a2f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4deb0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a38a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5d39d4
call fcn.004cafdb
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a3013
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cafdb
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a300c
push 0
mov ecx, eax
call fcn.0049a0f0
mov dword [esi + 0xc], eax
jmp 0x4a3015
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a3015
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4cd766
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cd79e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cb741
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cb719
jmp 0x4cd7aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cef61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4cefa3
call fcn.004d5684
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cefa3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cef9a
xor eax, eax
jmp 0x4cefab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cefb1
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d5bb4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d5be2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d5c00
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d5b1a
jmp 0x4d5c00
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d5c00
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d5b1a
test edi, edi
mov eax, edi
jne 0x4d5bea
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1013ac7
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x10143c0
call fcn.01013dc4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1016880
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x101387e
cmp eax, esi
jne 0x1013871
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1013881
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1013858
xor esi, esi
inc esi
mov eax, dword [0x101687c]
cmp eax, esi
jne 0x1013894
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10138c3
mov eax, dword [0x101687c]
test eax, eax
jne 0x10138bd
mov dword [0x101687c], esi
push 0x10013a8
push 0x100139c
call fcn.010137bd
pop ecx
pop ecx
test eax, eax
je 0x10138c3
jmp 0x10139eb
mov dword [0x101654c], esi
mov eax, dword [0x101687c]
cmp eax, esi
jne 0x10138e7
push 0x1001398
push 0x1001308
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101687c], 2
test ebx, ebx
jne 0x10138f3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101688c], 0
je 0x1013917
push 0x101688c
call fcn.01013d39
pop ecx
test eax, eax
je 0x1013917
push 0
push 2
push 0
call dword [0x101688c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1013973
test al, al
je 0x1013931
cmp dword [ebp - 0x1c], 0
jne 0x1013973
mov al, byte [esi]
test al, al
je 0x1013941
cmp al, 0x20
ja 0x1013941
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1013931
test byte [ebp - 0x3c], 1
je 0x101394d
movzx eax, word [ebp - 0x38]
jmp 0x1013950
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1016548], eax
cmp dword [0x101653c], 0
jne 0x10139c7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1013982
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1013995
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x101391e
cmp dword [0x101654c], 0
jne 0x10139d6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1016548]
jmp 0x10139f7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01013e09
ret
call fcn.01013f11
jmp 0x101381e

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40102c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [section..data]
sub esp, 0x794
push esi
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x401073
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.wine_get_unix_file_name
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb eax, eax
neg eax
mov dword [section..data], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [section..data]
xor esi, esi
cmp eax, 1
jne 0x4010cc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40107f
sub ecx, edx
sar ecx, 1
cmp ecx, 0x3ca
jb 0x4010cc
mov eax, esi
jmp 0x4010aa
cmp eax, 0x3c9
jae 0x4010b5
mov word [ebp + eax*2 - 0x794], cx
inc eax
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x40109a
push 1
xor ecx, ecx
push esi
mov word [ebp + eax*2 - 0x794], cx
lea eax, [ebp - 0x794]
push esi
push eax
jmp 0x4010d1
push 1
push esi
push esi
push edi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4011b6
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.VerifyVersionInfoA
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov ebp, eax
inc ebx
test ebp, ebp
jne 0x401205
push 0x24
push str.Windows_98_ME_Support
push str.This_version_of_the_application_requires_Windows_XP_2003_or_later._r_nDo_you_want_to_go_the_website_and_download_the_Windows_98_ME_version_if_one_is_available_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401272
mov ecx, str.http:__www.nch.com.au_software_win98_index.html
jmp 0x401269
mov edi, 0x9c
lea eax, [esp + 0x14]
mov ecx, edi
xor edx, edx
mov byte [eax], dl
inc eax
dec ecx
jne 0x401212
push 3
push 2
push edx
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], ebx
call edi
push 3
push ebx
push edx
push eax
call edi
push edx
push eax
push 3
lea eax, [esp + 0x20]
push eax
call ebp
test eax, eax
jne 0x401270
push 0x24
push str.Windows_2000_Support
push str.This_version_of_the_application_requires_Windows_XP_2003_or_later._r_nDo_you_want_to_go_the_website_and_download_the_Windows_2000_version_if_one_is_available_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401272
mov ecx, str.http:__www.nch.com.au_software_win2000_index.html
call fcn.0040102c
jmp 0x401272
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa4
ret
Function at 0x401140
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4197a0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push esi
mov esi, dword [esp + 0x118]
push 0x4055b4
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40118e
push 0x4055a0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push ebx
call dword [sym.imp.MSVCR80.dll_exit]
push 0x104
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR80.dll_memset
push str.APATH:
lea ecx, [esp + 0x18]
push 0x405594
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, esi
add esp, 0x18
mov edx, eax
jmp 0x4011c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011c0
push edi
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4011d3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4011f3
push ebx
sub eax, edx
push 1
push eax
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
push ebx
call dword [sym.imp.MSVCR80.dll_fclose]
mov ecx, dword [esp + 0x120]
add esp, 0x14
pop esi
pop ebx
xor ecx, esp
call fcn.0040402a
add esp, 0x108
ret

Function at 0x401230
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012a9
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x4012a9
mov edx, dword [esp + 8]
fild dword [esp + 8]
test edx, edx
jge 0x40128b
fadd qword [0x4055b8]
test edi, edi
fmul qword [0x4055b8]
mov dword [esp + 8], edi
fild dword [esp + 8]
jge 0x4012a3
fadd qword [0x4055b8]
pop edi
faddp st(1)
pop esi
pop ecx
ret
fldz
pop edi
pop esi
pop ecx
ret
Function at 0x4012b0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.004040f0
mov eax, dword [0x4197a0]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x401310
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.0040402a
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x40563c]
mov edx, dword [0x405640]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401335
push esi
mov ecx, 0x1d
mov esi, 0x4055c0
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4013be
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x401443
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x4013f0
cmp byte [esp + 0x4a4], 0x64
jne 0x40143c
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.0040402a
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040402a
add esp, 0x1470
ret
Function at 0x401460
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x1470
call fcn.004040f0
mov eax, dword [0x4197a0]
xor eax, esp
mov dword [esp + 0x146c], eax
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4014c0
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.0040402a
add esp, 0x1470
ret
mov eax, dword [str.Cmd.exe__C]
mov ecx, dword [0x40563c]
mov edx, dword [0x405640]
push edi
lea edi, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4014e5
push esi
mov ecx, 0x1d
mov esi, str.C:Progra1WinVisual_signtool.exe_sign__f_C:Progra1WinVisualqm.pfx__p_630009109_C:Progra1WinVisuallstem.exe
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x20]
push eax
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
push 0
lea eax, [esp + 0x94]
push eax
push 0
mov word [esp + 0x78], 0
mov dword [esp + 0x74], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40156e
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
jmp 0x4015f3
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0xfff
lea ecx, [esp + 0x479]
push 0
push ecx
mov byte [esp + 0x480], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x20]
push edx
push 0xfff
lea eax, [esp + 0x480]
push eax
push ecx
call esi
test eax, eax
jne 0x4015a0
cmp byte [esp + 0x4a4], 0x64
jne 0x4015ec
mov edx, dword [esp + 8]
push edx
call edi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x146c]
xor ecx, esp
call fcn.0040402a
add esp, 0x1470
ret
mov eax, dword [esp + 8]
push eax
call edi
mov ecx, dword [esp + 0x1474]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.0040402a
add esp, 0x1470
ret

Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov eax, 0x4056c4
push edi
mov edi, 0x11b29719
mov ebx, 0x7f7
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401625
sub eax, edx
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x401658
jmp 0x401640
movsx eax, byte [ecx + 0x4056c4]
or eax, 0x80
cdq
add ecx, 1
xor edi, eax
xor ebx, edx
cmp ecx, esi
jl 0x401640
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret
Function at 0x4016a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push eax
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x4016c9
xor eax, eax
pop ebx
pop ecx
ret 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4016c2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4016ea
pop edi
pop ebx
pop ecx
ret 0xc
mov edx, dword [esp + 0x18]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401718
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret 0xc

Function at 0x4017b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push ebx
call fcn.00401230
add esp, 4
call fcn.00404120
mov edi, eax
test edi, edi
jne 0x4017cf
pop edi
xor al, al
pop ebx
ret
push ebp
push esi
push edi
call sub.MFC80.DLL_Ordinal_265
push edi
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x4056cc
push ebx
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebx, eax
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x28
xor ecx, ecx
test eax, eax
jle 0x40180f
add byte [ecx + esi], 5
add ecx, 1
cmp ecx, eax
jl 0x401804
mov ebp, dword [sym.imp.MSVCR80.dll_fclose]
push ebx
call ebp
push esi
call fcn.00401760
mov eax, dword [esp + 0x1c]
push 0x4056c8
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401848
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCR80.dll_fwrite]
push ebx
call ebp
add esp, 0x14
push esi
call sub.MFC80.DLL_Ordinal_266
add esp, 4
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
ret