joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ae90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029a20
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.100141e0
add esp, 0xc
mov dword [ebp - 0x18], ebx
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push esi
call fcn.10008990
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.1000c780
add esp, 4
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x1000b020
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000b014
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x2c], 7
push eax
call fcn.10008990
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.1000c780
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x40]
lea esi, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
add esp, 4
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp ebx, 8
cmovae esi, edi
cmp edx, dword [ebp - 0x18]
jne 0x1000afc0
test edx, edx
je 0x1000afb1
sub esi, eax
nop dword [eax + eax]
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x1000afc0
add eax, 2
sub edx, 1
jne 0x1000afa0
lea ecx, [ebp - 0x40]
mov ebx, 1
call fcn.100026c0
jmp 0x1000b014
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x1000aff8
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1000afee
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b074
push ecx
push edi
call fcn.10011b41
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000af40
xor ebx, ebx
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000b056
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000b04c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b074
push edx
push ecx
call fcn.10011b41
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
call fcn.10016079
int3
Function at 0x1000b380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
lea esi, [ecx + 2]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x838], eax
xor eax, eax
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b3f6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10005a50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x834]
push eax
push 0x20119
push 0
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
call esi
test eax, eax
jne 0x1000b487
lea eax, [ebp - 0x830]
push eax
push 0x20119
push 0
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x1000b4ce
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x828]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x828], ax
movq xmm0, qword [ebp - 0x818]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
jmp 0x1000b59e
lea eax, [ebp - 0x82c]
push eax
push 0x20119
push 0
push dword [ebp - 0x840]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x1000b506
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
jmp 0x1000b487
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.100141e0
add esp, 0xc
mov dword [ebp - 0x844], 0x400
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x838]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b571
sub ecx, edx
sar ecx, 1
mov ecx, edi
jne 0x1000b592
lea eax, [ebp - 0x828]
push eax
call fcn.1000b080
jmp 0x1000b59e
lea eax, [ebp - 0x810]
push eax
call fcn.10002580
lea ecx, [ebp - 0x828]
call fcn.100026c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
Function at 0x1000b5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x838], eax
xor eax, eax
mov word [ebp - 0x828], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x82c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b646
sub ecx, dword [ebp - 0x82c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10005a50
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push SysReAllocString
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b6e1
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push esi
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
je 0x1000b728
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x828]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
mov word [ebp - 0x828], ax
movq xmm0, qword [ebp - 0x818]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 7
jmp 0x1000b803
push 0
lea eax, [ebp - 0x830]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x1000b76b
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
jmp 0x1000b6e1
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.100141e0
add esp, 0xc
mov dword [ebp - 0x840], 0x400
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x838]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x834]
call esi
push dword [ebp - 0x82c]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b7d6
sub ecx, edx
sar ecx, 1
mov ecx, edi
jne 0x1000b7f7
lea eax, [ebp - 0x828]
push eax
call fcn.1000b080
jmp 0x1000b803
lea eax, [ebp - 0x810]
push eax
call fcn.10002580
lea ecx, [ebp - 0x828]
call fcn.100026c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret
Function at 0x1000b830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push VariantInit
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call esi
test eax, eax
jne 0x1000b962
lea eax, [ebp - 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 4]
call esi
test eax, eax
je 0x1000b89d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0xc]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
je 0x1000b8d7
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x1000b910
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b920
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0xf013f
push 0
push str.SoftWare
push SysReAllocString
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ba5e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x1000b9e1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x1000ba15
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ba20
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029e86
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1003c0ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1000f65c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1000f65c
call fcn.1000e190
mov edi, eax
jmp 0x1000f77b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000f67f
call fcn.1000e190
jmp 0x1000f76e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000f69d
call fcn.1000e190
jmp 0x1000f76e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000f6be
mov edi, 0x8007000e
jmp 0x1000f770
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x1000f7b4
jb 0x1000f6dc
cmp eax, 0xffffffff
ja 0x1000f7b4
cmp eax, 0x400
jbe 0x1000f6f1
push eax
lea ecx, [ebp - 0x418]
call fcn.1000e010
jmp 0x1000f717
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x1000f717
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1000f72e
mov edi, 0x8007000e
jmp 0x1000f770
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000f74e
call fcn.1000e190
jmp 0x1000f76e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000f410
mov edi, eax
test esi, esi
je 0x1000f77b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000f794
lea ecx, [ebp - 0x418]
call fcn.1000e630
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10011b54
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.1000c080
int3
Function at 0x10023f93
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10023c53
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x441d02
push 0x14
push 0x45ffe8
call fcn.00442090
push 1
call fcn.004418e8
pop ecx
test al, al
jne 0x441bb9
push 7
call fcn.00442351
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004418b3
mov byte [ebp - 0x24], al
mov eax, dword [0x7960c4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x441bb2
test eax, eax
jne 0x441c23
mov dword [0x7960c4], ecx
push 0x45237c
push 0x452364
call fcn.004470cc
pop ecx
pop ecx
test eax, eax
je 0x441c06
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x441cfc
push 0x452360
push 0x45230c
call fcn.00447070
pop ecx
pop ecx
mov dword [0x7960c4], 2
jmp 0x441c28
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00441a42
pop ecx
call fcn.00442605
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x441c58
push esi
call fcn.004419b8
pop ecx
test al, al
je 0x441c58
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00442087
call esi
call fcn.0044260b
mov esi, eax
cmp dword [esi], edi
je 0x441c76
push esi
call fcn.004419b8
pop ecx
test al, al
je 0x441c76
push dword [esi]
call fcn.00446510
pop ecx
call fcn.0044246c
movzx eax, ax
push eax
call fcn.0044701d
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0044641f
test al, al
jne 0x441ca1
push esi
call fcn.00446548
test bl, bl
jne 0x441caa
call fcn.004464eb
push edi
push 1
call fcn.00441a5f
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x441cfc
call fcn.004420d6
ret
call fcn.004424f4
jmp 0x441b9a
Function at 0x4031e0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x792274]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403229
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403229
push 0xc00
call eax
test eax, eax
jne 0x4032c7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4032c7
cmp eax, 0x104
ja 0x4032c7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403267
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4032c6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4032a0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x403290
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x403287
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004412be
mov esp, ebp
pop ebp
ret
Function at 0x4084f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00442d00
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408587
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x452570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4085d0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x4085b4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x4085b0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408620
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408610
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4095f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409639
cmp edx, 0x40
je 0x40962b
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00442d00
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x409680
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4096e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x79224c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x409e90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00445d4e
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x409ebd
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cde0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push 0x2002
call fcn.00410850
test al, al
jne 0x40ce13
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410880
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40ce63
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00442780
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40ce63
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.00410880
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.00410880
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ce80
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44de88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x792274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp + 0xb], bl
test bl, bl
je 0x40cf6e
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40cf6e
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040cde0
push 0
mov bh, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040bef0
mov ecx, dword [ebp - 0x14]
inc ecx
mov byte [ebp - 4], 1
push ecx
push dword [ebp - 0x18]
push 1
call fcn.0040cde0
mov edi, 1
movzx ecx, bh
test al, al
lea eax, [ebp - 0x24]
push edi
push esi
cmovne ecx, edi
push eax
mov dword [ebp + 0xc], ecx
call fcn.0040bef0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040a850
push dword [ebp - 0x24]
call fcn.004414c6
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040cde0
mov ecx, dword [ebp + 0xc]
test al, al
push dword [ebp - 0x18]
movzx ecx, cl
cmovne ecx, edi
mov dword [ebp + 8], ecx
call fcn.004414c6
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x40cf73
xor al, al
mov dword [ebp + 8], eax
test bl, bl
je 0x40cf80
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8