joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xe4
mov eax, 0x58093c
cmp cl, 0x39
mov dword [esp], eax
mov dword [esp + 4], 0x5804d0
mov dword [esp + 8], 0x5804cc
mov dword [esp + 0xc], 0x5804c8
mov dword [esp + 0x10], 0x5804c4
mov dword [esp + 0x14], 0x574d98
mov dword [esp + 0x18], 0x564b64
mov dword [esp + 0x1c], 0x5804c0
mov dword [esp + 0x20], 0x5804bc
mov dword [esp + 0x24], 0x5804b8
mov dword [esp + 0x28], 0x5804b4
mov dword [esp + 0x2c], 0x5804b0
mov dword [esp + 0x30], 0x571224
mov dword [esp + 0x34], 0x5804ac
mov dword [esp + 0x38], 0x57a1a0
mov dword [esp + 0x3c], 0x5804a8
mov dword [esp + 0x40], str.______
mov dword [esp + 0x44], 0x580498
mov dword [esp + 0x48], 0x579aa0
mov dword [esp + 0x4c], 0x580050
mov dword [esp + 0x50], 0x580494
mov dword [esp + 0x54], 0x580490
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x58048c
mov dword [esp + 0x64], 0x580488
mov dword [esp + 0x68], 0x580484
mov dword [esp + 0x6c], 0x5711dc
mov dword [esp + 0x70], 0x579a2c
mov dword [esp + 0x74], 0x579a94
mov dword [esp + 0x78], 0x579a88
mov dword [esp + 0x7c], 0x579a68
mov dword [esp + 0x80], 0x579a8c
mov dword [esp + 0x84], str.vui
mov dword [esp + 0x88], 0x579a6c
mov dword [esp + 0x8c], 0x579a60
mov dword [esp + 0x90], 0x580480
mov dword [esp + 0x94], 0x5711d8
mov dword [esp + 0x98], str.eoa
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x580044
mov dword [esp + 0xc0], 0x580014
mov dword [esp + 0xc4], 0x57fffc
mov dword [esp + 0xc8], 0x58004c
mov dword [esp + 0xcc], str.ZYXVUTSRQPONMLKJIHGFEDCBA
mov dword [esp + 0xd0], 0x58003c
mov dword [esp + 0xd4], str._:_n__
mov dword [esp + 0xd8], 0x579a9c
mov dword [esp + 0xdc], 0x580018
mov dword [esp + 0xe0], 0x580020
jae 0x47e1f1
and ecx, 0xff
mov eax, dword [esp + ecx*4]
add esp, 0xe4
ret
Function at 0x483cca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x483d02
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00481d81
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00481d59
jmp 0x483d0e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4853bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x485401
call fcn.0048b130
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485401
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4853f8
xor eax, eax
jmp 0x485409
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048540f
pop edi
pop esi
pop ebx
ret 4

Function at 0x48b660
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48b68e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48b6ac
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b5c6
jmp 0x48b6ac
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48b6ac
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048b5c6
test edi, edi
mov eax, edi
jne 0x48b696
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ce9
cmp eax, ebx
je 0x401533
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f31
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x40308f
push dword [0x4321cc]
call fcn.00402f1a
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402fa6
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402ee8
test eax, eax
je 0x4030a1
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x402ffd
cmp dword [0x470680], ebx
jne 0x402ffd
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e4f
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.004068f4
test eax, eax
jl 0x4030a6
mov esi, dword [0x426158]
sub esi, ebp
je 0x40305b
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030ab
cmp esi, dword [esp + 0x10]
jne 0x4030ab
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fcc
jmp 0x403067
cmp dword [0x426154], ebx
jne 0x4030a6
cmp edi, ebx
je 0x4030a6
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f90
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403099
push 0xfffffffffffffffd
pop eax
jmp 0x403099
push 0xfffffffffffffffe
jmp 0x4030a8
Function at 0x4030af
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030db
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f31
cmp eax, edi
jl 0x4031d4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d0
cmp dword [ebp - 4], esi
jne 0x4031d0
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f31
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031d3
cmp dword [ebp + 0x10], edi
jne 0x40319f
cmp dword [ebp + 8], edi
jle 0x4031cb
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40314f
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d0
cmp edi, dword [ebp - 4]
jne 0x4031d0
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp dword [ebp + 0x14], edi
jne 0x40319b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x403142
jmp 0x4031cb
push 0xfffffffffffffffe
jmp 0x4031d2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031aa
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d0
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031d3
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405816
Capabilities:
Create process on windows

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

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a25
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405a28
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
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 0x405a57
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 [0x4088ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405aa7
test edi, edi
jne 0x405a64
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405aa1

Function at 0x405aab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b24
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b0d
cmp dword [ebp + 0x14], 1
je 0x405b12
cmp dword [ebp + 0x14], 2
je 0x405b12
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40616c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562b0
push esi
call fcn.00405be2
push esi
call fcn.00405931
mov edi, eax
test edi, edi
jne 0x40618d
xor eax, eax
jmp 0x4061eb
push edi
call fcn.00405c11
test byte [0x470608], 0x80
je 0x4061aa
movzx eax, word [edi]
test ax, ax
je 0x406189
cmp ax, 0x5c
je 0x406189
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4061cc
push esi
call fcn.00405cc2
test eax, eax
je 0x4061c6
test byte [eax], 0x10
je 0x4061f0
push esi
call fcn.0040613f
push esi
call ebx
cmp eax, edi
jg 0x4061b7
push esi
call fcn.00406110
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4061ea
Function at 0x406485
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089d4
mov ebx, 0x45a2b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x4064d3
push 1
push ebp
push edi
call fcn.00405a28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40664a
cmp eax, esi
jg 0x40664a
push esi
mov edi, 0x45f910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40664a
cmp eax, esi
jg 0x40664a
push ebp
push ebp
push esi
push 0x45aab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40664a
push ebp
push ebp
push esi
mov esi, 0x45b108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40664a
push esi
push 0x45aab8
push str._s_s_r_n
push 0x45b508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.004061f4
push 4
push 0xc0000000
push edi
call fcn.00405a28
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40664a
push ebp
push eax
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
cmp esi, ebp
je 0x406640
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406640
cmp edi, dword [esp + 0x10]
jne 0x406640
push str._Rename__r_n
push esi
call fcn.0040598e
cmp eax, ebp
jne 0x4065d7
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406608
push 0x4089c8
add eax, 0xa
push eax
call fcn.0040598e
mov ebp, eax
test ebp, ebp
je 0x406606
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4065f9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4065f3
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40660a
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b508
add eax, esi
push eax
call fcn.004059e4
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406683
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040616c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4066b8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x40685e
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4066d3
test eax, eax
je 0x406809
test cl, 2
je 0x406809
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405be2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4066f6
push str..
push esi
call edi
jmp 0x4066fc
push ebx
call fcn.0040613f
cmp word [ebx], 0
jne 0x40670c
cmp word [0x45b908], 0x5c
jne 0x406714
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4067f8
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004058dd
xor edi, edi
cmp word [eax], di
je 0x40675b
cmp word [ebp - 0x28], di
je 0x40675b
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406776
movzx eax, word [esi + 2]
cmp ax, di
je 0x4067d5
cmp ax, 0x2e
jne 0x406776
cmp word [esi + 4], di
je 0x4067d5
push esi
push dword [ebp - 4]
call fcn.00405be2
test byte [ebp - 0x25c], 0x10
je 0x40679d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4067d5
push dword [ebp + 0xc]
push ebx
call fcn.00406683
jmp 0x4067d5
push ebx
call fcn.00405a08
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4067cd
test byte [ebp + 0xc], 4
je 0x4067c5
push ebx
push 0xfffffffffffffff1
call fcn.00404b9d
push edi
push ebx
call fcn.00406650
jmp 0x4067d5
inc dword [0x470668]
jmp 0x4067d5
push ebx
push 0xfffffffffffffff2
call fcn.00404b9d
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40673b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4067fa
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406809
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40685d
cmp dword [ebp - 0xc], esi
je 0x40684d
push ebx
call fcn.00405cc2
test eax, eax
je 0x40685d
push ebx
call fcn.00406110
push ebx
call fcn.00405a08
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406855
test byte [ebp + 0xc], 4
je 0x40684d
push ebx
push 0xfffffffffffffff1
call fcn.00404b9d
push esi
push ebx
call fcn.00406650
jmp 0x40685d
inc dword [0x470668]
jmp 0x40685d
push ebx
push 0xffffffffffffffe5
call fcn.00404b9d
pop esi
pop ebx
leave
ret 8
Function at 0x406863
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068a1
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 0x406877
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406872
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068ce
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 0x4068af
not eax
pop ebp
ret 0xc
Function at 0x408ac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4e5c84]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3f0], 0
mov al, byte [0x4e67b5]
mov byte [ebp - 0x3ec], al
push 0x3e7
push 0
lea ecx, [ebp - 0x3eb]
push ecx
call fcn.00476530
add esp, 0xc
mov dword [ebp - 0x3f8], 0
push 0x44
push 0
lea edx, [ebp - 0x44c]
push edx
call fcn.00476530
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x408]
push eax
call fcn.00476530
add esp, 0xc
mov dword [ebp - 0x44c], 0x44
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x420], 1
xor ecx, ecx
mov word [ebp - 0x41a], cx
mov dword [ebp - 0x418], 0
xor edx, edx
mov word [ebp - 0x41c], dx
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x44c]
push ecx
push 0
push 0
push 0x10
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408bb2
mov dword [ebp - 0x3f4], 1
jmp 0x408bbc
mov dword [ebp - 0x3f4], 0
mov eax, dword [ebp - 0x3f4]
mov dword [ebp - 0x3f0], eax
cmp dword [ebp - 0x3f0], 0
je 0x408bfa
mov ecx, dword [ebp + 8]
push ecx
push str.rc_winnt_system:_Kommando:__s
lea edx, [ebp - 0x3ec]
push edx
call fcn.00403fe0
add esp, 0xc
lea eax, [ebp - 0x3ec]
push eax
call fcn.00409d20
add esp, 4
jmp 0x408c34
push 0
mov ecx, dword [ebp - 0x408]
push ecx
lea edx, [ebp - 0x3f8]
push edx
call fcn.0047c01e
add esp, 0xc
mov dword [ebp - 0x3f0], eax
cmp dword [ebp - 0x3f0], 0xffffffff
je 0x408c34
cmp dword [ebp - 0x3f8], 1
jge 0x408c34
mov dword [ebp - 0x3f0], 0
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475844
mov esp, ebp
pop ebp
ret

Function at 0x408c50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4e5c84]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0xff
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x408c99
push 0x4e67b4
call fcn.00409ee0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x408cad
lea eax, [ebp - 0x104]
push eax
call fcn.00409ee0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475844
mov esp, ebp
pop ebp
ret
Function at 0x409ac0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e5c84]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x110], 0xff
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x409b14
mov dword [ebp - 0x10c], 1
jmp 0x409b1e
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x409b47
lea ecx, [ebp - 0x104]
push ecx
call fcn.00409ee0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0040a610
add esp, 4
test eax, eax
jg 0x409b63
mov dword [ebp - 0x108], 1
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475844
mov esp, ebp
pop ebp
ret

Function at 0x409ee0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x409ef3
mov dword [ebp - 4], 0
jmp 0x409f38
mov eax, dword [ebp + 8]
push eax
call fcn.0040a610
add esp, 4
add eax, 1
push eax
call fcn.0047ac6c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409f28
push str.string
call fcn.00471770
add esp, 4
push 1
call fcn.0047c3b0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0047a3e0
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret