joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034c00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x1004b848]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10034cf1
mov eax, dword [0x1004b840]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10034c45
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10034c28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10034cf1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100349b0
mov ecx, dword [0x1004b848]
add esp, 4
cmp esi, ecx
jae 0x10034ca5
imul edi, esi, 0x2c
mov eax, dword [0x1004b840]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10034c9a
mov edx, ebx
mov ecx, esi
call fcn.10034b00
mov dword [ebp - 4], eax
test eax, eax
jne 0x10034ca2
mov ecx, dword [0x1004b848]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10034c71
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10034cf1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10034ce2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10034cd6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10034cb5
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1004b7d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035030
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, 1
mov ecx, 0x1004b7d4
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x10035085
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x10035069
push 0
jmp 0x1003506b
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x1004b7d4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10035060
mov ebx, dword [ebp - 4]
cmp dword [0x1004b7d8], 0
je 0x10035158
test ebx, ebx
jne 0x100350a4
mov ecx, edi
call fcn.10034c00
mov edi, eax
jmp 0x1003515d
mov ecx, dword [0x1004b848]
xor esi, esi
test ecx, ecx
je 0x100350c4
mov edx, dword [0x1004b840]
mov eax, edx
cmp ebx, dword [eax]
je 0x100350ce
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x100350b8
mov edi, 4
jmp 0x1003515d
cmp esi, 0xffffffff
je 0x100350c4
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1003514f
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.100349b0
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.10034b00
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1003515d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003513e
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10035132
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10035111
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1004b7d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003515d
neg edi
sbb edi, edi
add edi, 6
jmp 0x1003515d
mov edi, 2
xor eax, eax
mov ecx, 0x1004b7d4
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40519b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f2a8]
jne 0x4051a5
repz ret
jmp fcn.0040b4a7

Function at 0x40bf1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407c7c
and dword [ebp - 4], 0
cmp dword [0x439a04], 0
mov ebx, eax
jne 0x40bfcb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c07c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c07c
push eax
call fcn.00407c0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439a04], eax
call esi
push eax
call fcn.00407c0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439a08], eax
call esi
push eax
call fcn.00407c0a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439a0c], eax
call esi
push eax
call fcn.00407c0a
pop ecx
mov dword [0x439a14], eax
test eax, eax
je 0x40bfcb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c0a
pop ecx
mov dword [0x439a10], eax
mov eax, dword [0x439a10]
cmp eax, ebx
je 0x40c023
cmp dword [0x439a14], ebx
je 0x40c023
push eax
call fcn.00407c85
push dword [0x439a14]
mov esi, eax
call fcn.00407c85
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c023
test edi, edi
je 0x40c023
call esi
test eax, eax
je 0x40c01a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c01a
test byte [ebp - 0xc], 1
jne 0x40c023
or dword [ebp + 0x10], 0x200000
jmp 0x40c05c
mov eax, dword [0x439a08]
cmp eax, ebx
je 0x40c05c
push eax
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c05c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c05c
mov eax, dword [0x439a0c]
cmp eax, ebx
je 0x40c05c
push eax
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c05c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439a04]
call fcn.00407c85
pop ecx
test eax, eax
je 0x40c07c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c07e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40407f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
cmp dword [ebp + 8], 0
je 0x4040ae
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4040ae
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
cmp eax, 0x104
jb 0x4040e4
mov esi, esp
push 0
push 0x10
push 0x4a1894
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
jne 0x4040d0
xor al, al
jmp 0x404139
push 0x4982d8
push 0x4a1894
call sub.MSVCRTD.dll_strcat
add esp, 8
jmp 0x404137
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4a1894
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
jne 0x404123
mov edx, dword [ebp - 4]
mov byte [edx + 0x4a1894], 0
jmp 0x404137
mov eax, dword [ebp - 4]
mov byte [eax + 0x4a1894], 0x5c
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4a1895], 0
mov al, 1
pop esi
add esp, 4
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x4090db
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
je 0x40916c
mov esi, esp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409141
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00408fdf
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x5c]
and edx, 0x10
test edx, edx
je 0x40915d
mov esi, esp
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, dword [ebp - 4]
pop esi
add esp, 0xc
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x45f4f9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
lea edi, [ebp - 0x100]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x49ca30
mov ecx, 0x4a3588
call fcn.00476005
push eax
push 0x49ca44
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCRTD.dll_remove]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
add esp, 0x100
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x465545
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push esi
push edi
lea edi, [ebp - 0x180]
mov ecx, 0x60
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0x49cfc4
mov ecx, 0x4a3588
call fcn.00476005
push eax
push 0x49cfd8
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCRTD.dll_remove]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
add esp, 0x180
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x476047
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
push edi
push ecx
lea edi, [ebp - 0x250]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x250], ecx
cmp dword [ebp + 8], 0
je 0x4761a3
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4761a3
mov esi, esp
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.Engine.dll_void___cdecl_g_GetFullPath_char___char__]
add esp, 8
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
lea ecx, [ebp - 0x248]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x24c], eax
push str..
lea edx, [ebp - 0x248]
push edx
call sub.MSVCRTD.dll_strcat
add esp, 8
mov esi, esp
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x476172
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp + eax - 0x248]
push ecx
call sub.MSVCRTD.dll_strcpy
add esp, 8
mov esi, esp
push 0x80
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
test eax, eax
jne 0x4760f3
mov esi, esp
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x4761a3
mov edx, dword [ebp - 0x24c]
mov byte [ebp + edx - 0x249], 0
mov esi, esp
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
pop edi
pop esi
add esp, 0x250
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 8
Function at 0x529e10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x124000]
push edi
jmp 0x529e2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x529e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529e20
mov eax, 1
add ebx, ebx
jne 0x529e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x529e54
jne 0x529e73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529e73
dec eax
add ebx, ebx
jne 0x529e60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x529e38
add ebx, ebx
jne 0x529e6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x529ec5
xor ecx, ecx
sub eax, 3
jb 0x529e8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x529efa
sar eax, 1
mov ebp, eax
jmp 0x529e96
add ebx, ebx
jne 0x529e96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529e64
inc ecx
add ebx, ebx
jne 0x529ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529e64
add ebx, ebx
jne 0x529eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x529ea6
jne 0x529ec2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529ea6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x529ee4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x529ed6
jmp 0x529e26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x529ee4
add edi, ecx
jmp 0x529e26
pop esi
mov edi, esi
mov ecx, 0x28d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x529f02
cmp byte [edi], 1
jne 0x529f02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x529f07
lea edi, [esi + 0x127000]
mov eax, dword [edi]
or eax, eax
je 0x529f7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12fd84]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12fe24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x529f34
mov ecx, edi
jns 0x529f63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12fe28]
or eax, eax
je 0x529f79
mov dword [ebx], eax
add ebx, 4
jmp 0x529f51
call dword [esi + 0x12fe38]
mov ebp, dword [esi + 0x12fe2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x529fb3
sub esp, 0xffffff80
jmp 0x4034cc
Function at 0x40a5e0
Capabilities:
Create pipe
Decrypt data using tea

Disassembly:
sub esp, 0x10
cmp dword [0x464214], 0x60b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
push edi
mov dword [esp + 0x10], ecx
mov edi, 0xc6ef3720
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jne 0x40a639
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x401390
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x20
shl ecx, 4
cmp dword [0x464214], 5
mov dword [esp + 0x28], ecx
jne 0x40a661
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0040a570
mov eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 5
add ecx, dword [esp + 0x1c]
add eax, edi
xor ecx, eax
xor ecx, dword [esp + 0x28]
mov dword [0x441bd4], 0
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
add dword [0x441bd4], eax
sub esi, ecx
mov eax, esi
shr eax, 5
add eax, ebp
mov ecx, esi
shl ecx, 4
push eax
add ecx, ebx
lea edx, [edi + esi]
lea eax, [esp + 0x2c]
xor ecx, edx
push eax
mov dword [0x441bd8], 0xc5e121b4
mov dword [0x441bdc], 0xffffffff
mov dword [esp + 0x30], ecx
call fcn.0040a550
mov eax, dword [esp + 0x28]
sub dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
add edi, 0x61c88647
sub dword [esp + 0x14], 1
jne 0x40a641
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x10
ret 8

Function at 0x40a710
Capabilities:
Terminate process

Disassembly:
sub esp, 0x118
cmp dword [0x464214], 0x516
jne 0x40a731
push 0
push 0
push 0x4013c4
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
mov eax, dword [esp + 0x120]
shr eax, 3
test eax, eax
jbe 0x40a7ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x134]
mov dword [esp + 0x10], eax
cmp dword [0x464214], 0x29
jne 0x40a772
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
cmp dword [0x464214], 0x1c
jne 0x40a796
call ebx
lea eax, [esp + 0x14]
push eax
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push esi
call fcn.0040a5e0
add esi, 8
sub dword [esp + 0x10], 1
jne 0x40a761
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc
Function at 0x40a7c0
Capabilities:
Get disk information
Set current directory
Set thread local storage value

Disassembly:
sub esp, 0x834
cmp dword [0x464214], 0x37
jne 0x40a880
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push 0x4013e4
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
lea edx, [esp + 0x38]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push 0x4013f4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x40141c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov eax, dword [esp]
mov edx, dword [esp]
push 0
push 0
push eax
lea ecx, [esp + 0x440]
push ecx
push edx
push 0x401438
call dword [sym.imp.KERNEL32.dll_FindFirstFileExA]
mov dword [esp], 0
mov eax, dword [0x464218]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x838]
mov dl, byte [ecx + eax]
mov ecx, dword [0x441bd0]
mov byte [ecx + eax], dl
add esp, 0x834
ret 4

Function at 0x40a8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
push 0x43f9e8
mov byte [0x43f9e9], al
mov byte [0x43f9ea], 0x72
mov byte [0x43f9f0], 0x2e
mov byte [0x43f9f1], 0x64
mov byte [0x43f9f2], 0x6c
mov byte [0x43f9f4], 0
mov byte [0x43f9eb], 0x6e
mov byte [0x43f9ec], al
mov byte [0x43f9ed], 0x6c
mov byte [0x43f9ee], 0x33
mov byte [0x43f9ef], 0x32
mov byte [0x43f9f3], al
mov byte [0x43f9e8], 0x6b
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x464214]
mov edx, dword [0x441bd0]
mov dword [0x45de0c], eax
mov al, 0x74
mov byte [0x43f9f5], al
mov byte [0x43f9eb], al
mov byte [0x43f9f2], al
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x43f9f6], 0
mov byte [0x43f9ef], 0x50
mov byte [0x43f9ed], 0x61
mov byte [0x43f9f1], 0x6f
mov byte [0x43f9ec], 0x75
mov byte [0x43f9ee], 0x6c
mov byte [0x43f9e9], 0x69
mov byte [0x43f9f4], 0x63
mov byte [0x43f9ea], 0x72
mov byte [0x43f9e8], 0x56
mov byte [0x43f9f0], 0x72
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40aa00
Capabilities:
Get common file path
Get disk size
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1e58
call fcn.0040c6c0
mov dword [ebp - 4], 0
jmp 0x40aa1f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x332beaf6
jge 0x40ab18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x464214], 0x16
jne 0x40aa8e
mov ecx, dword [ebp - 0xc64]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
lea edx, [ebp - 0xc60]
push edx
push 0x401460
push 0x40148c
push 0x4014c0
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
lea eax, [ebp - 0x85c]
push eax
push 0
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x464214], 0x9e
jne 0x40ab08
push 0
lea edx, [ebp - 0x1068]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
push 0
lea eax, [ebp - 0x18c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x19e8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
lea edx, [ebp - 0x18c8]
push edx
lea eax, [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x10b8]
push ecx
push 0x4014e8
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea edx, [ebp - 0x10b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCompact]
cmp dword [ebp - 4], 0x3775ee
jle 0x40ab13
jmp 0x40ab18
jmp 0x40aa16
push str.Oi43
mov eax, dword [0x464214]
push eax
mov ecx, dword [0x441bd0]
push ecx
call fcn.0040a710
mov dword [ebp - 0x19ec], 0
jmp 0x40ab4a
mov edx, dword [ebp - 0x19ec]
add edx, 1
mov dword [ebp - 0x19ec], edx
cmp dword [ebp - 0x19ec], 0x3e79e
jge 0x40ab84
cmp dword [0x464214], 0x10
jne 0x40ab6c
lea eax, [ebp - 0x1a0c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalWire]
cmp dword [ebp - 0x19ec], 0x1e673
jne 0x40ab82
add dword [0x441bd0], 0x169d
jmp 0x40ab3b
mov dword [ebp - 0x1a10], 0
jmp 0x40ab9f
mov ecx, dword [ebp - 0x1a10]
add ecx, 1
mov dword [ebp - 0x1a10], ecx
cmp dword [ebp - 0x1a10], 0xdd9a7
jge 0x40abe3
cmp dword [0x464214], 0xc01
jne 0x40abe1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
jmp 0x40ab90
jmp dword [0x441bd0]
Function at 0x40d3c0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40d3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40d3ea
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40d401
mov edx, dword [ebp - 4]
push edx
call fcn.00411c40
add esp, 4
or eax, 0xffffffff
jmp 0x40d403
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410c10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e9fc]
jne 0x410c1a
repz ret
jmp fcn.00421880