joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5332d6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x42989d
xor al, al
jmp 0x4299bc
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e220
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x429916
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4298d2
test al, 0x10
jne 0x429916
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042de10
add esp, 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ebx, 1
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4298fe
mov ecx, dword [eax]
push dword [ebp - 0x18]
push edx
push dword [eax + 0x10]
push ecx
call fcn.00407430
add esp, 0x10
mov byte [ebp - 0x41], 0
test al, al
je 0x42991a
mov byte [ebp - 0x41], 1
test bl, 1
je 0x42992a
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffe
call fcn.004055c0
cmp byte [ebp - 0x41], 0
je 0x429936
mov byte [ebp - 0x41], 1
jmp 0x429989
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042de10
or ebx, 2
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x48], ebx
call fcn.00429860
add esp, 0x10
test al, al
je 0x429978
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x42997c
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429989
lea ecx, [ebp - 0x40]
call fcn.004055c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4299b9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4299af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4299d6
push edx
push ecx
call fcn.00460b61
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.004f639a
int3
Function at 0x4299e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533323
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x429a1d
xor al, al
jmp 0x429af9
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e320
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x429a7b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429a52
test al, 0x10
jne 0x429a7b
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042df00
lea ecx, [ebp - 0x28]
mov ebx, 1
push ecx
push eax
call fcn.00439090
add esp, 0x14
mov byte [ebp - 0x41], 0
test al, al
je 0x429a7f
mov byte [ebp - 0x41], 1
test bl, 1
je 0x429a8f
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffe
call fcn.00419810
cmp byte [ebp - 0x41], 0
je 0x429a99
mov bl, 1
jmp 0x429aef
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042df00
or ebx, 2
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x48], ebx
call fcn.004299e0
add esp, 0x10
test al, al
je 0x429adb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x429adf
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429aec
lea ecx, [ebp - 0x40]
call fcn.00419810
mov bl, byte [ebp - 0x41]
lea ecx, [ebp - 0x28]
call fcn.00419810
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x430be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533aef
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 4], 0
jb 0x430c3c
mov eax, dword [edi]
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x430da9
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x430c5d
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1a4], eax
cmp eax, 0xffffffff
je 0x430da9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a0], eax
cmp eax, 0xffffffff
je 0x430d9d
push 0
push 0
push 0
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x1a0]
call fcn.004fe758
add esp, 4
mov dword [ebp - 0x1a8], eax
lea ecx, [ebp - 0x1ac]
push 0
push ecx
push dword [ebp - 0x1a0]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430d8f
mov ecx, dword [ebp - 0x1a8]
mov ax, word [ecx]
mov dl, byte [ecx + 2]
mov word [ebp - 0x19c], ax
cmp al, 0xef
jne 0x430d1c
cmp byte [ebp - 0x19b], 0xbb
jne 0x430d80
cmp dl, 0xbf
jne 0x430d80
mov eax, dword [ebp - 0x1a0]
add eax, 0xfffffffd
push eax
lea eax, [ecx + 3]
push eax
jmp 0x430d87
cmp al, 0xff
jne 0x430d80
cmp byte [ebp - 0x19b], 0xfe
jne 0x430d80
push ecx
call fcn.004fe73d
add esp, 4
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3a8
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00428b90
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00430df0
push 0x3a8
push eax
push esi
mov byte [ebp - 4], 2
call fcn.00428cd0
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.00419810
lea ecx, [ebp - 0x58]
call fcn.00419810
jmp 0x430dc8
push dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404d10
push dword [ebp - 0x1a8]
call fcn.004fe73d
add esp, 4
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov eax, esi
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.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x430df0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533b26
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x53f9e0
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00416d80
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x430e5c
mov eax, dword [edi]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x430f35
cmp dword [edi + 0x14], 8
jb 0x430e7b
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x430f35
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x430f29
push 0
push 0
push 0
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.004fe758
add esp, 4
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x284]
push 0
push ecx
push edi
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430f1b
mov ecx, dword [ebp - 0x280]
movzx eax, word [ecx]
cmp al, 0xff
jne 0x430f0f
shr eax, 8
cmp al, 0xfe
jne 0x430f0f
lea eax, [edi - 2]
shr eax, 1
push eax
lea eax, [ecx + 2]
push eax
jmp 0x430f13
shr edi, 1
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00416d80
push dword [ebp - 0x280]
call fcn.004fe73d
add esp, 4
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
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.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x432e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533d75
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 8
mov dword [ebp - 0x160], esi
call fcn.00432370
mov edi, eax
add esp, 4
test edi, edi
jne 0x432e6c
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov dword [esi + 0x10], eax
mov byte [esi], al
jmp 0x433005
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ed350
add esp, 0xc
mov dword [ebp - 0x160], 0x104
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
je 0x432fbb
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x144], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432ef0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00404d10
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004295c0
lea ecx, [ebp - 0x12c]
add esp, 8
cmp ecx, eax
je 0x432f5a
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x178], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x168], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x432f78
movq xmm0, qword [ebp - 0x11c]
movq qword [ebp - 0x168], xmm0
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [ebp - 0x178], xmm0
lea ecx, [ebp - 0x15c]
call fcn.004055c0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x432fd9
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x432faf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433022
push edx
push ecx
call fcn.00460b61
add esp, 8
jmp 0x432fd9
movq xmm0, qword [ebp - 0x11c]
movq qword [ebp - 0x168], xmm0
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [ebp - 0x178], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x178]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x168]
movq qword [esi + 0x10], xmm0
mov eax, esi
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.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.004f639a
int3
Function at 0x438350
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x4384d7
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
lea ecx, [eax - 4]
cmp ecx, 6
ja case.0x4383a1.7
jmp dword [ecx*4 + 0x438598]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4383e6
cmp eax, 0xa
je 0x4383d3
cmp eax, 0x5a
jne case.default.0x4384d7
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x438404
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x4384d7
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x4384b5
sub eax, 1
je 0x4384a2
sub eax, 1
jne case.default.0x4384d7
cmp byte [ebp - 6], 1
jne 0x438460
cmp word [ebp - 0x144], 9
jne 0x438460
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x43847f
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je case.default.0x4384d7
mov eax, 0xb
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x4384d7
jmp dword [eax*4 + 0x4385b4]
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov eax, 0x11
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0
jne 0x438571
mov eax, 0x12
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
cmp eax, 3
jae 0x43856c
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
cmp eax, 6
jbe case.default.0x4384d7
mov eax, 0x13
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x4385d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x438612
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004ed350
add esp, 0xc
mov dword [ebp - 0x214], edi
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x438693
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x438693
lea edx, [ebp - 0x210]
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x438670
sub edx, edi
lea eax, [ebp - 0x210]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00416d80
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret

Function at 0x4386b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x438708
push edi
push dword [ebp + 0x10]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004ec850
movzx eax, word [ebp + 8]
add esp, 0xc
push edi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop ebp
ret
Function at 0x43a9e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5345a7
mov eax, dword fs:[0]
push eax
mov eax, 0x38e4
call fcn.00460bb0
mov eax, dword [0x57b270]
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 dword [ebp - 0x38e4], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x38f0], esi
mov dword [ebp - 0x38e8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x110
lea eax, [ebp - 0x38dc]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x38e8], 1
call fcn.004ed350
add esp, 0xc
mov dword [ebp - 0x38e0], 0x114
lea eax, [ebp - 0x38e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x38d0], 2
jne 0x43ac73
xor edi, edi
nop dword [eax]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004ed350
push edi
lea eax, [ebp - 0x110]
push 0x5403d8
push eax
call fcn.00428b10
add esp, 0x18
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43ac69
push 0x2710
lea eax, [ebp - 0x37c0]
mov dword [ebp - 0x38ec], 0
push 0
push eax
mov dword [ebp - 0x37c4], 0
mov dword [ebp - 0x37cc], 0
mov dword [ebp - 0x37c8], 0
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x38ec]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37c0]
push eax
push 0xc
lea eax, [ebp - 0x37cc]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43ac5c
push 0x3e8
lea eax, [ebp - 0xcc8]
push 0
push eax
call fcn.004ed350
push 0x3e8
lea eax, [ebp - 0x4f8]
push 0
push eax
call fcn.004ed350
push 0x3e8
lea eax, [ebp - 0x10b0]
push 0
push eax
call fcn.004ed350
push 0x3e8
lea eax, [ebp - 0x8e0]
push 0
push eax
call fcn.004ed350
mov ecx, dword [ebp - 0x38e4]
lea eax, [ebp - 0x10b0]
add esp, 0x30
push eax
push 0
push dword [ebp - 0x37b4]
lea eax, [ebp - 0x37c0]
push eax
call fcn.0043bd40
mov ecx, dword [ebp - 0x38e4]
lea eax, [ebp - 0x4f8]
push eax
push 0
push dword [ebp - 0x37b0]
lea eax, [ebp - 0x37c0]
push eax
call fcn.0043bd40
mov ecx, dword [ebp - 0x38e4]
lea eax, [ebp - 0x8e0]
push eax
push 0
push dword [ebp - 0x37ac]
lea eax, [ebp - 0x37c0]
push eax
call fcn.0043bd40
mov ecx, dword [ebp - 0x38e4]
lea eax, [ebp - 0xcc8]
push eax
push 0
push dword [ebp - 0x37a8]
lea eax, [ebp - 0x37c0]
push eax
call fcn.0043bd40
lea eax, [ebp - 0x4f8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43ac28
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.00404d10
lea eax, [ebp - 0x8e0]
mov ecx, esi
push eax
call fcn.00405190
lea eax, [ebp - 0xcc8]
mov ecx, esi
push eax
call fcn.00405190
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x10], 0
jne 0x43ac73
inc edi
cmp edi, 0x10
jl 0x43aa90
mov eax, esi
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.00460b6f
mov esp, ebp
pop ebp
ret 4
Function at 0x43b3f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53468f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x57b270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x43b440
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._d_r_n
call fcn.00419e30
add esp, 8
jmp 0x43b543
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x43b53d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x552bbc
push 1
push 0
push 0x552bac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43b53d
push 0xc
mov dword [ebp - 0x10], edi
call fcn.00460b31
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x43b4c5
push str.ROOT_CIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x43b59e
jmp 0x43b4c7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
test esi, esi
je 0x43b5a8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push dword [esi]
mov dword [ebp - 4], 1
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0043c1d0
test esi, esi
js 0x43b534
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x43b559
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.0043b5c0
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.004ebcb0
push 0x8007000e
call fcn.004ebcb0
int3
Function at 0x43c5c0
Capabilities:
Create thread
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x57b054]
mov esi, ecx
call fcn.004228c0
add esp, 4
cmp dword [0x57b064], 0
je 0x43c5f2
call fcn.004261a0
cmp dword [esi + 0x340], 0
je 0x43c6d1
cmp byte [0x581450], 0
je 0x43c67a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x43c66e
lea eax, [ebp - 0x428]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x420]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 1
push eax
push 0
push dword [ebp - 0x428]
mov dword [ebp - 0x418], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x43c6d1
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004ed350
cmp dword [0x57b200], 8
mov eax, 0x57b1ec
push str.kangnote.exe
cmovae eax, dword [0x57b1ec]
push eax
lea eax, [ebp - 0x414]
push 0x53fa1c
push eax
call fcn.00420180
push 0
push 0
push 1
lea eax, [ebp - 0x414]
push 0x53f9e0
push eax
call fcn.004587d0
add esp, 0x30
push 0
call fcn.00458d10
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004ed350
cmp dword [0x57b218], 8
mov eax, 0x57b204
push str.uninst.exe
cmovae eax, dword [0x57b204]
push eax
lea eax, [ebp - 0x20c]
push 0x53fa1c
push eax
call fcn.00420180
lea eax, [ebp - 0x20c]
push eax
call fcn.00456d00
add esp, 0x24
test eax, eax
je 0x43c737
lea eax, [ebp - 0x20c]
push eax
call fcn.00457af0
add esp, 4
call fcn.004259e0
push 0
push 0
push dword [esi + 4]
push 0x43c830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push 0
mov ecx, esi
call fcn.004635df
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00460b6f
mov esp, ebp
pop ebp
ret