joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3020
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4c3054
mov eax, esi
call fcn.004c7450
cmp byte [esi + 0x40], 0
je 0x4c304c
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4c3105
mov dword [esi + 0x14], 0xcb
nop
cmp dword [esi + 0x14], 0xcb
jne 0x4c30e4
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4c30dc
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3088
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
lea esi, [esi]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4c30a0
xor bl, bl
jmp 0x4c3105
cmp edi, 2
je 0x4c30da
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4c3078
cmp edi, 3
je 0x4c30b8
cmp edi, 1
jne 0x4c3078
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4c3078
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
mov esi, esi
jmp 0x4c3078
mov esi, esi
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4c30fc
cmp dword [esi + 0x14], 0xcc
je 0x4c30fc
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004c3460
lea esi, [esi]
mov eax, esi
call fcn.004c3110
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e7650
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x4e767e
jmp 0x4e76ec
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x4e769a
jmp 0x4e76ec
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004e7630
push ebp
push 0x414900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004e7630
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e7e10
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e7df0
push ebp
push 0x414900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e7e63
jmp 0x4e7ee0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.0045f3a0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.0045f2f0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.0045fab0
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00460cc0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e7f37
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e7dd0
push ebp
push 0x414900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e7dd0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e7df0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x514740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x51475b
jmp 0x514768
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x514770
jmp 0x514778
jmp 0x51482a
xor eax, eax
push 0x514807
push ebp
push 0x414c80
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d3e0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x5147e9
jmp 0x5147fc
cmp dword [ebp - 8], 0
jne 0x5147f1
jmp 0x5147fc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x51482a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x551250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.00551230
push ebp
push 0x414900
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5e00d8]
lea eax, [ebp - 0x10]
call fcn.0040a5d0
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a8d0
cmp dword [ebp - 0xc], 0
jg 0x5512aa
jmp 0x5512cc
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x5512bd
mov eax, 0x5f02f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
lea esi, [esi]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a8d0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b040
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x5512f5
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x551301
mov eax, 0x5f02f0
call fcn.0042e260
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00551230
mov esp, ebp
pop ebp
ret
Function at 0x552a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5e07d0
call fcn.0040ebf0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00552a80
push ebp
push 0x414900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408b20
mov eax, dword [ebp - 0xc]
mov edx, fcn.004e4830
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.00409480
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408b20
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00550820
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00553130
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x552b95
jmp 0x552bb4
mov eax, dword [ebp - 4]
call fcn.00507f30
test al, al
je 0x552ba3
jmp 0x552bb4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00552a80
mov esp, ebp
pop ebp
ret
Function at 0x571d90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8f85
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4f2480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.00484ccf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], al
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push 0x4e72c0
push eax
call fcn.004851a8
lea eax, [ebp - 0x3c]
push eax
call fcn.00485464
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
call fcn.004851f3
mov eax, dword [ebp - 0x44]
add esp, 0x10
test eax, eax
je 0x401d69
push eax
call fcn.004a2c03
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0
test eax, eax
je 0x401d80
push eax
call fcn.004a2c03
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x4c], 0
test eax, eax
je 0x401d97
push eax
call fcn.004a2c03
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], 0
test eax, eax
je 0x401dae
push eax
call fcn.004a2c03
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x401dc5
push eax
call fcn.004a2c03
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], 0
test eax, eax
je 0x401ddc
push eax
call fcn.004a2c03
add esp, 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0
call fcn.00484d27
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0x3c
push esi
movlpd qword [ebp - 0x18], xmm0
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x10], xmm0
mov esi, ecx
movlpd qword [ebp - 8], xmm0
movaps xmm0, xmmword [0x4e9820]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40389d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_execute__ls_as_admin:_Error__d_n
call fcn.0042aee0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
xor eax, eax
cmp dword [ebp + 8], 1
push esi
setne al
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x18], xmm0
push eax
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x403932
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_execute__ls_as_admin:_Error__d_n
call fcn.0042aee0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004ac98d
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov dword [ebp - 0x28], eax
mov esi, ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4039cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to_exe11cute_2222_s_as_admin:_Error__d_n
call fcn.0042aeb0
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004ad089
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4040c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0049e5e0
mov eax, dword [0x4f2480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
push ecx
mov dword [ebp - 0x1018], edx
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404123
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x404212
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x404204
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1010]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call edi
test eax, eax
je 0x4041cd
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x4041cd
push 0
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call ebx
test eax, eax
je 0x4041f8
push 0
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call edi
test eax, eax
jne 0x404191
push 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1014], 0x10
push eax
push dword [ebp - 0x1018]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x40422c
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0049d991
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c98e7
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13a8
call fcn.0049e5e0
mov eax, dword [0x4f2480]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x13b0], esi
mov dword [ebp - 0x13a8], esi
mov dword [ebp - 0x13b4], esi
xorps xmm0, xmm0
mov dword [ebp - 0x13ac], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x13ac], 1
call fcn.00418040
call fcn.004893b0
mov edx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x139c], edx
mov ecx, 1
nop word [eax + eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x139c], edx
inc ecx
cmp ecx, 0x270
jb 0x405bf0
mov dword [ebp - 0x13a0], 0x270
test edi, edi
je 0x405cb1
lea ecx, [ebp - 0x13a0]
call fcn.004261f0
mov ecx, 0x3e
mul ecx
cmp eax, ecx
jae 0x405c58
cmp eax, 4
jae 0x405c58
mov esi, ecx
nop
lea ecx, [ebp - 0x13a0]
call fcn.004261f0
mul esi
cmp eax, 4
jb 0x405c40
mov esi, dword [ebp - 0x13b0]
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov byte [ebp - 0x13a4], al
cmp ecx, edx
jae 0x405c8d
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x405c7d
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x13a4]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x405ca8
push dword [ebp - 0x13a4]
mov byte [ebp - 0x13a8], 0
push dword [ebp - 0x13a8]
push ecx
mov ecx, esi
call fcn.0041d6d0
sub edi, 1
jne 0x405c21
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x405ce0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x405cf3
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call ebx
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049da05
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0xf
jbe 0x405d2c
mov esi, dword [esi]
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405d67
push edi
xor bl, bl
call fcn.0049da00
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov bl, 1
call fcn.0049da00
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407380
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4073a9
test al, 2
je 0x4073a5
and eax, 0xfffffffd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop esi
setne al
ret
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x408240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4f2480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov byte [ebp - 0x439], 0
push 0
push 2
mov dword [ebp - 0x444], eax
mov ebx, ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, 0xffffffff
jne 0x408295
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408365
push edi
nop word [eax + eax]
push dword [ebp - 0x430]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40838f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x408388
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408303
sub ecx, edx
mov esi, ebx
sar ecx, 1
cmp dword [ebx + 0x14], 7
jbe 0x40831c
mov esi, dword [ebx]
mov edx, dword [ebx + 0x10]
cmp edx, ecx
jne 0x408382
lea eax, [ebp - 0x20c]
test edx, edx
je 0x408342
mov ecx, eax
sub esi, ecx
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x408382
add eax, 2
sub edx, 1
jne 0x408331
mov ecx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x430]
push edi
mov byte [ebp - 0x439], 1
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x440]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x439]
xor ecx, ebp
pop esi
pop ebx
call fcn.0049d991
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x440]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4082c0
jmp 0x408364

Function at 0x4083b0
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4083dd
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
setne al
pop edi
ret
xor al, al
pop edi
ret