joyce8/EMBER2024-capa huggingface dataset:
Function at 0xdc6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00dc61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xdc607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdc606a
add dl, dl
jne 0xdc6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdc60dc
xor eax, eax
add dl, dl
jne 0xdc6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdc617d
add dl, dl
jne 0xdc60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdc60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdc60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdc60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdc60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdc6075
mov eax, 1
add dl, dl
jne 0xdc60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdc60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdc60e1
sub eax, ebx
mov ebx, 1
jne 0xdc6128
mov ecx, 1
add dl, dl
jne 0xdc610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdc6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdc6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdc6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdc613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdc614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdc6136
cmp eax, 0x7d00
jae 0xdc616d
cmp eax, 0x500
jb 0xdc6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdc6075
cmp eax, 0x7f
ja 0xdc6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdc6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdc619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xdc6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x408938
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4085d8
pop edi
sub eax, 0x8ecd960c
push 0x5ad6fd17
pop eax
call fcn.00408965
add edx, 0xacf85465
xor dword [esi], edi
inc esi
add edx, edx
inc eax
cmp esi, ebx
jne fcn.00408938
ret
Function at 0x10003939
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x4e03074
call fcn.1001dc04
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1184]
mov dword [ebp - 4], 0x28
call fcn.1000ca19
lea ecx, [esi + 0x1114]
mov byte [ebp - 4], 0x27
call fcn.1000ca19
lea ecx, [esi + 0x10a4]
mov byte [ebp - 4], 0x26
call fcn.1000ca19
cmp dword [esi + 0x109c], 0xffffffff
lea ecx, [esi + 0x109c]
mov byte [ebp - 4], 0x25
je 0x10003992
call fcn.10003bd5
lea ecx, [esi + 0x105c]
mov byte [ebp - 4], 0x24
call fcn.1000d0a9
lea ecx, [esi + 0x101c]
mov byte [ebp - 4], 0x23
call fcn.1000d0a9
lea ecx, [esi + 0xfac]
mov byte [ebp - 4], 0x22
call fcn.1000ca19
lea ecx, [esi + 0xf7c]
mov byte [ebp - 4], 0x21
call fcn.1000cf16
lea ecx, [esi + 0xf58]
mov byte [ebp - 4], 0x20
call fcn.1000cf16
lea ecx, [esi + 0xf34]
mov byte [ebp - 4], 0x1f
call fcn.1000cf16
lea ecx, [esi + 0xf10]
mov byte [ebp - 4], 0x1e
call fcn.1000cf16
lea ecx, [esi + 0xeec]
mov byte [ebp - 4], 0x1d
call fcn.1000cf16
lea ecx, [esi + 0xec8]
mov byte [ebp - 4], 0x1c
call fcn.1000cf16
lea ecx, [esi + 0xea4]
mov byte [ebp - 4], 0x1b
call fcn.1000cf16
lea ecx, [esi + 0xe80]
mov byte [ebp - 4], 0x1a
call fcn.1000cf16
lea ecx, [esi + 0xe5c]
mov byte [ebp - 4], 0x19
call fcn.1000cf16
lea ecx, [esi + 0xe34]
mov byte [ebp - 4], 0x18
call fcn.1000cf16
lea ecx, [esi + 0xe10]
mov byte [ebp - 4], 0x17
call fcn.1000cf16
lea ecx, [esi + 0xde4]
mov byte [ebp - 4], 0x16
call fcn.1000d080
lea ecx, [esi + 0xdc0]
mov byte [ebp - 4], 0x15
call fcn.1000cf16
lea ecx, [esi + 0xd9c]
mov byte [ebp - 4], 0x14
call fcn.1000cf16
lea ecx, [esi + 0xd78]
mov byte [ebp - 4], 0x13
call fcn.1000cf16
lea ecx, [esi + 0xd54]
mov byte [ebp - 4], 0x12
call fcn.1000cf16
lea ecx, [esi + 0xd30]
mov byte [ebp - 4], 0x11
call fcn.1000cf16
lea ecx, [esi + 0xd0c]
mov byte [ebp - 4], 0x10
call fcn.1000cf16
lea ecx, [esi + 0xce8]
mov byte [ebp - 4], 0xf
call fcn.1000cf16
lea ecx, [esi + 0xcc4]
mov byte [ebp - 4], 0xe
call fcn.1000cf16
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 0xd
call fcn.1000cf16
lea ecx, [esi + 0xc7c]
mov byte [ebp - 4], 0xc
call fcn.1000cf16
lea ecx, [esi + 0xc58]
mov byte [ebp - 4], 0xb
call fcn.1000cf16
lea ecx, [esi + 0xc34]
mov byte [ebp - 4], 0xa
call fcn.1000cf16
lea ecx, [esi + 0xc10]
mov byte [ebp - 4], 9
call fcn.1000cf16
lea ecx, [esi + 0xbe8]
mov byte [ebp - 4], 8
call fcn.1000cf16
lea ecx, [esi + 0xbc0]
mov byte [ebp - 4], 7
call fcn.1000cf16
lea ecx, [esi + 0xb9c]
mov byte [ebp - 4], 6
call fcn.1000cf16
lea ecx, [esi + 0xb2c]
mov byte [ebp - 4], 5
call fcn.1000ca19
lea ecx, [esi + 0xabc]
mov byte [ebp - 4], 4
call fcn.1000ca19
lea ecx, [esi + 0xa7c]
mov byte [ebp - 4], 3
call fcn.1000d0a9
lea ecx, [esi + 0x9e4]
mov byte [ebp - 4], 2
call fcn.1000ca19
lea ecx, [esi + 0x970]
mov byte [ebp - 4], 1
call fcn.1000ca19
and byte [ebp - 4], 0
lea ecx, [esi + 0x900]
call fcn.1000ca19
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003bed
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40900c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x403655
cmp word [0x40b208], 0xd7b2
jne 0x40361d
cmp dword [0x40b210], 0
jbe 0x40361d
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401434
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x434ee8]
push 7
pop ecx
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov edi, section..ndata
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
xor ebx, ebx
shl ecx, 0xb
add ecx, edi
mov esi, eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x28]
shl esi, 0xb
mov dword [0x40cdd0], ecx
lea ecx, [edx - 2]
add esi, edi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.65
jmp dword [ecx*4 + 0x402ad1]
push ebx
push eax
call fcn.004052e6
jmp 0x4022f1
inc dword [0x433eac]
cmp dword [ebp - 8], ebx
je 0x4022f1
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4022f1
push eax
call fcn.0040136d
dec eax
push ebx
push eax
invalid

Function at 0x40160d
Capabilities:
Get file attributes
Set current directory

Disassembly:
ret
Function at 0x403373
Capabilities:
Check os version
Hash data using murmur3

Disassembly:
sub esp, 0x2d4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
cmp ax, 6
mov dword [0x434eec], eax
je 0x4033c3
push ebx
call fcn.0040665c
invalid

Function at 0x4033b9
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
ret
Function at 0x4041f0
Capabilities:
Hash data using murmur3

Disassembly:
xor ebx, 0xb0aeff65
xchg edi, eax
sub eax, 0x89742f86
xchg ebx, edx
call fcn.00404d67
inc edi
rol eax, 0xa
call fcn.00404d67
ror eax, 0xa
dec edi
call fcn.00406b6a

Function at 0x404217
Capabilities:
Hash data using murmur3

Disassembly:
xchg ebx, edx
add eax, 0x89742f86
xchg edi, eax
xor ebx, 0xb0aeff65
call fcn.00404d67
xchg edx, eax
neg edx
sub ebx, edi
rol edx, 0x16
neg esi
sub edx, eax
rol edi, 7
add esp, 0x10
neg esi
inc esi
call fcn.00406047
rol eax, 3
not eax

Function at 0x40424c
Capabilities:
Hash data using murmur3

Disassembly:
call fcn.00404d67
sub ebx, eax
rol edi, 6
xor edx, 0x943d1a8
inc ebx
inc esi
call fcn.00404d67

Function at 0x404263
Capabilities:
Hash data using murmur3

Disassembly:
xchg edx, eax
sub ecx, 0xe5685ce4
rol ebx, 6
call fcn.00402184
ror ebx, 6
add ecx, 0xe5685ce4
xchg edx, eax
Function at 0x4057b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405806
xor eax, eax
jmp 0x40582d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40582d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405802
call esi
pop esi
leave
ret 4

Function at 0x405867
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058a6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058aa
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_ShellExecuteExW]
ret 4

Function at 0x405948
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d4f
mov edi, eax
cmp edi, 0xffffffff
je 0x405989
test byte [esp + 0x10], 1
push esi
je 0x40596b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405971
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40597a
xor eax, eax
inc eax
jmp 0x40598b
test byte [esp + 0x10], 4
jne 0x405989
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405990
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
invalid

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.00406282
push esi
call fcn.00405bfe
mov edi, eax
test edi, edi
jne 0x405c7c
xor eax, eax
jmp 0x405cd4
push edi
call fcn.00406516
test byte [0x434efc], 0x80
je 0x405c99
mov ax, word [edi]
test ax, ax
je 0x405c78
cmp ax, 0x5c
je 0x405c78
sub edi, esi
sar edi, 1
jmp 0x405cb3
call fcn.004065c5
test eax, eax
je 0x405cad
test byte [eax], 0x10
je 0x405c78
push esi
call fcn.00405b9f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c9f
call fcn.00405b53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4
Function at 0x405d4f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d6e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405d74
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405da3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405df3
test edi, edi
jne 0x405db0
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ded
Function at 0x405ece
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4308e8], 0x55004e
mov dword [0x4308ec], 0x4c
mov edi, 0x400
mov ebp, 0x4308e8
je 0x405f24
push 1
push 0
push esi
call fcn.00405d74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
push esi
push ebp
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062a4
push 4
push 0xc0000000
push esi
call fcn.00405d74
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406043
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40603c
push edi
push esi
push ebp
call fcn.00405df7
test eax, eax
je 0x40603c
push str._Rename__r_n
push esi
call fcn.00405cd9
test eax, eax
jne 0x405fda
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40600f
add eax, 0xa
push 0x40a560
push eax
call fcn.00405cd9
mov ebp, eax
test ebp, ebp
je 0x40600b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ffc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406011
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405d2f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e26
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx

Function at 0x406048
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40606b
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ece
pop ecx
pop ecx
inc dword [0x434f90]
ret 8
Function at 0x4049b0
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2160
call fcn.00410530
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x494138]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x49413c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004049a0
mov ecx, dword [0x494140]
mov edx, dword [0x494144]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x4ac254]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a4c
mov dword [0x4ac250], 0xedeb2e40
jmp 0x404a67
cmp eax, 0x3eb
jne 0x404a67
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4abce0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x4ac254], 0x9e6
mov dword [0x4ac24c], 0xf4ea3dee
jne 0x404aa2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x4ac254], 0x213
jne 0x404b40
push 0
lea eax, [ebp - 0x1960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x2160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x4ac254], 0xc
jne 0x404b5e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404bb0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00410530
mov eax, dword [0x4ac254]
mov ecx, dword [0x4abce4]
shr eax, 3
test eax, eax
jbe 0x404cc8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x4ac254], 0x959
jne 0x404cae
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004049b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408bac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x493540]
jne 0x408bb6
repz ret
jmp fcn.0040c8fb

Function at 0x40b8a3
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.00409ae6
and dword [ebp - 4], 0
cmp dword [0x4992f4], 0
mov ebx, eax
jne 0x40b954
push 0x4024bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ba05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b0
push edi
call esi
test eax, eax
je 0x40ba05
push eax
call fcn.00409a74
mov dword [esp], 0x4024a0
push edi
mov dword [0x4992f4], eax
call esi
push eax
call fcn.00409a74
mov dword [esp], 0x40248c
push edi
mov dword [0x4992f8], eax
call esi
push eax
call fcn.00409a74
mov dword [esp], 0x402470
push edi
mov dword [0x4992fc], eax
call esi
push eax
call fcn.00409a74
pop ecx
mov dword [0x499304], eax
test eax, eax
je 0x40b954
push 0x402458
push edi
call esi
push eax
call fcn.00409a74
pop ecx
mov dword [0x499300], eax
mov eax, dword [0x499300]
cmp eax, ebx
je 0x40b9ac
cmp dword [0x499304], ebx
je 0x40b9ac
push eax
call fcn.00409aef
push dword [0x499304]
mov esi, eax
call fcn.00409aef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b9ac
test edi, edi
je 0x40b9ac
call esi
test eax, eax
je 0x40b9a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b9a3
test byte [ebp - 0xc], 1
jne 0x40b9ac
or dword [ebp + 0x10], 0x200000
jmp 0x40b9e5
mov eax, dword [0x4992f8]
cmp eax, ebx
je 0x40b9e5
push eax
call fcn.00409aef
pop ecx
test eax, eax
je 0x40b9e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9e5
mov eax, dword [0x4992fc]
cmp eax, ebx
je 0x40b9e5
push eax
call fcn.00409aef
pop ecx
test eax, eax
je 0x40b9e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4992f4]
call fcn.00409aef
pop ecx
test eax, eax
je 0x40ba05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ba07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret