joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x405c5d
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405c63
mov ecx, 0x408298
jmp 0x405c68
lea eax, [ebp - 0x120]
mov ecx, 0x408299
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405cbe
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ce1
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d51
pop ecx
pop ecx
inc dword [0x42f1b0]
ret 8

Function at 0x405d51
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x42c5a0], 0x4c554e
mov ebp, 0x42c5a0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x405d9d
push 1
push 0
push esi
call fcn.004062d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x405e7d
cmp eax, ebx
jg 0x405e7d
push ebx
mov esi, 0x42c1a0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x405e7d
cmp eax, ebx
jg 0x405e7d
push esi
push ebp
push str._s_s_r_n
push 0x42bda0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x42f0f4]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405932
push 4
push 0xc0000000
push esi
call fcn.004062d9
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e7d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x405e76
push esi
push edi
push ebx
call fcn.00406306
test eax, eax
je 0x405e76
push str._Rename__r_n
push edi
call fcn.004064e5
test eax, eax
jne 0x405e82
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x42bda0
lea eax, [ecx + edi]
push eax
call fcn.00406056
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004063c5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4086f4
add eax, 0xa
push eax
call fcn.004064e5
mov ecx, eax
test ecx, ecx
je 0x405e47
lea edx, [edi + esi]
jmp 0x405ea1
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x405e9b
sub ecx, edi
inc ecx
jmp 0x405e49
Function at 0x405f31
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040654c
mov edi, eax
cmp edi, 0xffffffff
je 0x405f74
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x405f55
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405f5b
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405f64
xor eax, eax
inc eax
jmp 0x405f76
test byte [ebp + 0xc], 4
jne 0x405f74
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x405fdf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42b9a0
push ebx
call fcn.004064c9
push ebx
call fcn.00406574
mov esi, eax
test esi, esi
je 0x40604f
push esi
call fcn.00406696
test byte [0x42f0f0], 0x80
je 0x406015
mov al, byte [esi]
test al, al
je 0x40604f
cmp al, 0x5c
je 0x40604f
sub esi, ebx
jmp 0x40602d
call fcn.00405f7b
test eax, eax
je 0x406027
test byte [eax], 0x10
je 0x40604f
push ebx
call fcn.0040666b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x406019
call fcn.00405f04
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40604f
xor eax, eax
inc eax
jmp 0x406051
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406078
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42b558], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42b558
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4060b7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4060bb
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00405fdf
mov dword [esp + 0x18], eax
test bl, 8
je 0x4060fd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f1a8], eax
jmp 0x406298
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x40611a
test eax, eax
je 0x406287
test bl, 2
je 0x40624d
push esi
push 0x42b5a0
call fcn.004064c9
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40613d
push str..
push 0x42b5a0
call ebp
jmp 0x406143
push esi
call fcn.0040666b
cmp byte [esi], 0
jne 0x406151
cmp byte [0x42b5a0], 0x5c
jne 0x406159
push 0x408298
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x42b5a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40623e
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.00405fa2
cmp byte [eax], 0
je 0x4061ab
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x4061c2
mov al, byte [ebp + 1]
test al, al
je 0x406219
cmp al, 0x2e
jne 0x4061c2
cmp byte [ebp + 2], 0
je 0x406219
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.004064c9
test byte [esp + 0x20], 0x10
je 0x4061e6
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40621d
push ebx
push esi
call fcn.004060bb
jmp 0x40621d
push edi
push esi
call fcn.00405f31
test eax, eax
jne 0x40620f
test edi, edi
je 0x406207
push esi
push 0xfffffffffffffff1
call fcn.004057b1
push 0
push esi
call fcn.00405cbe
jmp 0x40621d
inc dword [0x42f1a8]
jmp 0x40621d
push esi
push 0xfffffffffffffff2
call fcn.004057b1
jmp 0x40621d
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406184
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x406297
mov eax, dword [esp + 0x1c]
mov byte [ebp - 1], 0
test eax, eax
je 0x406287
push esi
call fcn.00405f7b
test eax, eax
je 0x406297
push esi
call fcn.00405f04
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00405f31
test eax, eax
jne 0x40628f
test edi, edi
je 0x406287
push esi
push 0xfffffffffffffff1
call fcn.004057b1
push 0
push esi
call fcn.00405cbe
jmp 0x406297
inc dword [0x42f1a8]
jmp 0x406297
push esi
push 0xffffffffffffffe5
call fcn.004057b1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x4062d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x406335
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405d23
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4063a5
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x4063a5
cmp dword [ebp + 0x18], 1
je 0x4063a8
cmp dword [ebp + 0x18], 2
je 0x4063a8
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x4063ad
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x406410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40644f
test edi, edi
jne 0x40641b
mov byte [esi], al
jmp 0x406451
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40654c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40656e
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406773
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42cae4], 0
push esi
jne 0x4067ad
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406784
mov dword [ecx*4 + 0x42cae0], edx
inc ecx
cmp ecx, 0x100
jl 0x40677f
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x4067d7
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42cae0]
inc esi
sub edx, 1
jne 0x4067bf
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414dd5
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], edi
add edx, 0x5b2c5d13
add eax, 4
add edx, esi
push edx
mov edx, dword [esp]
add esp, 4
add esi, edx
cmp eax, ebx
jne fcn.00414dd5
inc edx
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x47b17408
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4b184fdc
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x423a40
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040f260
cmp dword [0x258fac4], 0x37
jne 0x423b0e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403460
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_RequestDeviceWakeup]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
lea eax, [esp + 0x424]
push eax
push 0x403470
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [esp + 8]
push ecx
push 0x4034c8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0x20]
push edx
push 0
push 0x4034d8
push 0x4034e8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403538
push 0x403598
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x258fac8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x445854]
mov byte [eax + esi], dl
add esp, 0x1020
ret
Function at 0x423bb0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x43d374]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x43d370]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x43d378]
mov dword [esp + 0x24], edx
mov edx, dword [0x43d37c]
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x423c0b
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x258fac4], 0x1b
mov dword [esp + 0x10], eax
mov ebp, ecx
jne 0x423c3f
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403430
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x10]
add ebp, dword [esp + 0x20]
mov dword [0x2585a74], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, esi
cmp dword [0x258fac4], 0x1be
jne 0x423c86
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2585a78], 0xff6b3619
xor edx, edi
xor dword [esp + 0x10], edx
mov dword [0x2585a7c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.00423b40
dec dword [esp + 0x1c]
jne 0x423c03
cmp dword [0x258fac4], 0x8d4
jne 0x423cf8
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x423d20
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x258fac4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x445854]
shr eax, 3
push edi
test eax, eax
je 0x423d62
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, eax
cmp dword [0x258fac4], 0x1c
jne 0x423d56
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00423bb0
add esi, 8
dec edi
jne 0x423d40
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x401020
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov esi, dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x4011e8
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
jmp 0x40105b
cmp ax, 0x5c
jne 0x401168
add ebx, 1
lea edx, [ecx + 1]
movzx eax, word [esi + edx*2]
test ax, ax
je 0x40107d
mov ecx, edx
cmp ax, 9
je 0x401067
cmp ax, 0x20
jne 0x401040
test ebp, ebp
je 0x4011d0
lea edx, [ecx + 1]
xor ebx, ebx
movzx eax, word [esi + edx*2]
test ax, ax
jne 0x401059
lea edx, [ecx + ecx + 4]
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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401156
mov edx, dword [edi]
movzx eax, word [edx]
test ax, ax
je 0x4011f2
lea ecx, [edx + 2]
xor esi, esi
xor ebp, ebp
jmp 0x4010f6
mov edx, ecx
cmp ax, 0x5c
jne 0x401188
mov eax, 0x5c
add esi, 1
add ebx, 2
mov word [ebx - 2], ax
movzx eax, word [ecx]
add ecx, 2
test ax, ax
je 0x40111f
cmp ax, 9
je 0x401102
cmp ax, 0x20
jne 0x4010d0
test ebp, ebp
je 0x4011e0
mov word [ebx], ax
movzx eax, word [ecx]
mov edx, ecx
add ebx, 2
xor esi, esi
add ecx, 2
test ax, ax
jne 0x4010f6
xor eax, eax
mov dword [edi], edx
mov word [ebx], ax
movzx eax, word [edx]
cmp ax, 0x20
je 0x401135
cmp ax, 9
jne 0x401156
add edx, 2
lea esi, [esi]
nop
movzx eax, word [edx]
mov ecx, edx
add edx, 2
cmp ax, 9
je 0x401140
cmp ax, 0x20
je 0x401140
mov dword [edi], ecx
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
jne 0x40106f
and ebx, 1
jne 0x40106f
xor ebp, 1
jmp 0x40104d
cmp ax, 0x22
jne 0x40110a
mov eax, esi
shr eax, 0x1f
add eax, esi
sar eax, 1
and esi, 1
jne 0x4011b0
add eax, eax
xor ebp, 1
xor esi, esi
sub ebx, eax
jmp 0x4010eb
mov esi, 0x7fffffff
sub esi, eax
lea eax, [ebx + esi*2]
mov esi, 0x22
mov word [eax], si
lea ebx, [eax + 2]
xor esi, esi
jmp 0x4010eb
lea edx, [ecx + ecx + 2]
jmp 0x401081
lea edx, [ecx - 2]
jmp 0x40111f
mov edx, 2
jmp 0x401081
mov ebx, dword [esp + 0x1c]
jmp 0x40111f
Function at 0x402f40
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 0x402fb0
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 esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403017
xor ecx, ecx
xor edx, edx
jmp 0x402ff9
cmp ax, 0x5c
jne 0x403088
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403017
cmp ax, 9
je 0x403005
cmp ax, 0x20
jne 0x402fe0
test ecx, ecx
je 0x403073
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402ff9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4030a8
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.00401560
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403070
cmp ax, 0x20
je 0x403070
jmp 0x403017
cmp ax, 0x22
jne 0x403009
and edx, 1
jne 0x403009
xor ecx, 1
jmp 0x402fed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403030
Function at 0x402fb0
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 0x402fb0
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 esi
push ebx
push ecx
sub esp, 0x6c
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403017
xor ecx, ecx
xor edx, edx
jmp 0x402ff9
cmp ax, 0x5c
jne 0x403088
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403017
cmp ax, 9
je 0x403005
cmp ax, 0x20
jne 0x402fe0
test ecx, ecx
je 0x403073
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x402ff9
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4030a8
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.00401560
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403070
cmp ax, 0x20
je 0x403070
jmp 0x403017
cmp ax, 0x22
jne 0x403009
and edx, 1
jne 0x403009
xor ecx, 1
jmp 0x402fed
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x403030