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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4324c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x433388]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24c], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4330d0]
cmp eax, dword [ecx + 4]
jg 0x406597
cmp dword [0x432498], 0
jne 0x40657a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.004071b0
test al, al
jne 0x406489
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x432488
je 0x406571
mov ecx, dword [0x43249c]
cmp ecx, 0x10
jb 0x40652e
mov edx, dword [0x432488]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406524
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065cd
jmp 0x406524
push edi
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov edi, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0040eff0
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4064f7
cmp dword [ebp - 0x240], esi
je 0x4064eb
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4064d0
jmp 0x4064f7
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
add esp, 0x10
mov esi, eax
cmp esi, 0x432488
pop edi
jmp 0x406446
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [0x432498], 0
mov dword [0x43249c], 0xf
mov byte [0x432488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x432488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x432498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.004014b0
pop esi
push 0x432488
mov ecx, ebx
call fcn.00402750
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040d686
mov esp, ebp
pop ebp
ret
push 0x4330d0
call fcn.0040d5b0
add esp, 4
cmp dword [0x4330d0], 0xffffffff
jne 0x40640d
push 0x426650
call fcn.0040d8f3
push 0x4330d0
call fcn.0040d566
add esp, 8
jmp 0x40640d
call fcn.004109df
int3
Function at 0x4065e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4259e6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4324c4]
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]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x24c], esi
call fcn.0040eff0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x218]
push 0x7e
push eax
call fcn.0040ecf0
lea ecx, [ebp - 0x218]
add esp, 8
mov edx, eax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406665
sub ecx, edi
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
push eax
test edx, edx
je 0x40675e
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040ab50
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406bf0
mov ecx, dword [ebp - 0x234]
add esp, 0x10
cmp ecx, 0x10
jb 0x40670f
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406705
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067a3
push ecx
push edx
call fcn.0040d493
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x406786
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40677c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067a3
jmp 0x40677c
call fcn.00401ef0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 2
push eax
push esi
call fcn.0040ab50
add esp, 8
jmp 0x40672a
push ecx
push edx
call fcn.0040d493
add esp, 8
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.0040d686
mov esp, ebp
pop ebp
ret
call fcn.004109df
int3
Function at 0x40e021
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e060
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e060
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e060
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e060
cmp dword [ecx + 0x74], 0xe
jbe 0x40e060
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41914b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004190cd

Function at 0x41b991
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433a88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b9d1
cmp byte [ebx], 0xa
jne 0x41b9d1
or byte [eax + edi + 0x28], 4
jmp 0x41b9d6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bad4
mov al, byte [edx]
cmp al, 0x1a
je 0x41bab6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ba05
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ba2a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ba34
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41b9e7
jmp 0x41bad4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bab1
cmp dword [ebp - 0xc], 0
je 0x41bab1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433a88]
test byte [eax + edi + 0x28], 0x48
je 0x41ba8b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ba76
mov byte [esi], dl
jmp 0x41ba87
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433a88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bad4
cmp byte [ebp - 1], 0xa
jne 0x41ba9a
cmp esi, ebx
jne 0x41ba9a
mov byte [esi], 0xa
jmp 0x41bad3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c3df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bad4
mov byte [esi], 0xd
jmp 0x41bad3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bad0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bad4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41badd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x433a88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bb20
cmp word [esi], dx
jne 0x41bb20
or byte [edi + eax + 0x28], 4
jmp 0x41bb25
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bc78
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bc58
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bb67
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bb9d
cmp eax, edx
jae 0x41bba9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bb3f
jmp 0x41bc78
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bc54
cmp dword [ebp - 0x14], 0
je 0x41bc54
mov eax, dword [ebx*4 + 0x433a88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bc2c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bbf5
mov word [esi], cx
jmp 0x41bc28
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433a88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x433a88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433a88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bc78
pop ebx
cmp word [ebp - 4], bx
jne 0x41bc3d
cmp esi, dword [ebp + 0xc]
jne 0x41bc3d
mov word [esi], bx
jmp 0x41bc75
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c3df
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bc78
push 0xd
jmp 0x41bc71
mov ecx, dword [ebx*4 + 0x433a88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bc78
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d790
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1e8
push 0x42b1e0
push str.FlsAlloc
push 0x1e
call fcn.0041d62e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d7c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271b4]
call esi
jmp 0x41d7ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d80e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1f8
push 0x42b1f0
push str.FlsGetValue
push 0x20
call fcn.0041d62e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d845
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41eb44
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ebe1
push ebx
push esi
call fcn.0041eb0d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d42a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41eb8e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ebe0
push edi
push eax
call fcn.004199fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ebae
call fcn.004199c3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ebdf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d42a
add esp, 0x20
test eax, eax
jne 0x41ebcd
push edi
call fcn.004199c3
jmp 0x41ebd5
push ebx
call fcn.004199c3
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4239e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423961
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423b5d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423b5d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x423b0c
jg 0x423a3e
test eax, eax
je 0x423b02
push 1
push 0x1000
call fcn.0041db47
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423a64
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x423af9
push 0x8000
push ebx
call fcn.004170cb
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423a90
jg 0x423a8b
cmp ecx, 0x1000
jb 0x423a90
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041cd2a
add esp, 0x10
cmp eax, 0xffffffff
je 0x423ad5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x423a8b
jl 0x423abc
test ecx, ecx
jne 0x423a7d
push dword [ebp - 0xc]
push ebx
call fcn.004170cb
push esi
call fcn.004199c3
add esp, 0xc
xor edi, edi
jmp 0x423b6e
cmp byte [edi + 0x24], 0
je 0x423aec
cmp dword [edi + 0x20], 5
jne 0x423aec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423af7
mov edi, dword [edi + 0x18]
jmp 0x423af9
xor edi, edi
push esi
call fcn.004199c3
pop ecx
jmp 0x423b6e
test ecx, ecx
jg 0x423ace
jl 0x423b0c
test eax, eax
jae 0x423ace
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c3df
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x423b2f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423ace
jmp 0x423b66
push ebx
call fcn.0041efae
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x423ace
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x423b6e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423b6b
mov edi, dword [edi + 0x18]
jmp 0x423b6e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c3df
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43fbad
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5e8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fbf0
push str.SystemFunction040
push dword [0x46b5e8]
call edi
push str.SystemFunction041
push dword [0x46b5e8]
mov dword [0x46b5f0], eax
call edi
mov dword [0x46b5f4], eax
jmp 0x43fbf5
mov eax, dword [0x46b5f4]
cmp dword [0x46b5f0], 0
je 0x43fc06
test eax, eax
jne 0x43fcad
push 0x46b5ec
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fcb7
push str.CryptProtectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f0], 0
mov dword [0x46b5f8], eax
jne 0x43fc6b
test eax, eax
jne 0x43fc6b
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28
push str.cryputil.cpp
call fcn.004037d3
jmp 0x43fcb7
push str.CryptUnprotectMemory
push dword [0x46b5ec]
call edi
cmp dword [0x46b5f4], 0
mov dword [0x46b5fc], eax
jne 0x43fcad
test eax, eax
jne 0x43fcad
call dword [sym.imp.kernel32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2d
jmp 0x43fc5f
mov dword [0x46b600], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x441d86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x441d95
pop dword [ebp - 0x10]
mov eax, 0xcababc6a
add eax, 0x3589612b
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x52c40
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xb29c1e0f
sub ecx, 0xb29bca63
xor ebx, ebx
add ebx, eax
mov edi, 0x9dd34ba4
add edi, 0x6274225c
add edi, dword [ebp - 0x10]
mov edx, 0xb0ca2c0b
sub edx, 0xda055de6
xor dword [ebp - 8], 0xdf8f053d
mov esi, dword [edi]
sub dword [ebp - 4], eax
xor esi, edx
sub dword [ebp - 4], eax
mov dword [ebx], esi
sub dword [ebp - 4], esi
add ebx, 4
add edi, 0xb5dc7b62
add edi, 0x4a2384a2
loop 0x441df1
add eax, 0xa15d788f
add eax, 0x5ea3c8f4
mov ebx, eax
add eax, 0xe13cd875
sub eax, 0xe13cd870
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
movzx ecx, word [esp + 4]
mov edx, dword [0x40cdc0]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x401021
pop ebx
ret
mov eax, dword [0x40cdc0]
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x401038
pop ebp
pop ebx
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401053
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x18]
push edi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401083
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x40cdc0]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x4010bb
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
cmp ebx, dword [esp + 0x14]
sete cl
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40148e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401498
repz ret
jmp fcn.00401ce0

Function at 0x40611c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402b52
and dword [ebp - 0x14], 0
cmp dword [0x40db18], 0
mov dword [ebp - 0x18], eax
jne 0x4061cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406277
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a21c
push ebx
call edi
test eax, eax
je 0x406277
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40db18], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40db1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40db20], eax
call edi
push eax
call esi
mov dword [0x40db28], eax
test eax, eax
je 0x4061cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40db24], eax
mov eax, dword [0x40db24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406228
cmp dword [0x40db28], ecx
je 0x406228
push eax
call esi
push dword [0x40db28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406228
test ebx, ebx
je 0x406228
call edi
test eax, eax
je 0x40621f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40621f
test byte [ebp - 8], 1
jne 0x406228
or dword [ebp + 0x10], 0x200000
jmp 0x40625b
mov eax, dword [0x40db1c]
cmp eax, dword [ebp - 0x18]
je 0x40625b
push eax
call esi
test eax, eax
je 0x40625b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40625b
mov eax, dword [0x40db20]
cmp eax, dword [ebp - 0x18]
je 0x40625b
push eax
call esi
test eax, eax
je 0x40625b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40db18]
call esi
test eax, eax
je 0x406277
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406279
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040148e
leave
ret
Function at 0x401320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], 0xc
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 1
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x30], 0
jmp 0x401393
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 5
jge 0x401435
push 0
push 0x80
push 3
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xc0000000
push 0x4286cc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4013c7
jmp 0x401435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 5
jne 0x4013e4
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 4], 1
xor al, al
jmp 0x401473
cmp dword [ebp - 0x34], 2
jne 0x4013f4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40138a
cmp dword [ebp - 0x34], 0xe7
je 0x401401
xor al, al
jmp 0x401473
push 0
push 0x4286cc
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x401430
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
je 0x401427
cmp dword [ebp - 0x34], 0x79
jne 0x40142c
jmp 0x40138a
xor al, al
jmp 0x401473
jmp 0x40138a
mov dword [ebp - 0x18], 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x401469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x401473
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4014b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4014cf
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x4014d3
xor al, al
jmp 0x4014d5
mov al, 1
mov esp, ebp
pop ebp
ret