joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9ca7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a9b18

Function at 0x4aa0a1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00490ed0
mov eax, dword [0x50c924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004a807c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4aa0e3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4aa23f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00490d00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x510cd8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004ab07e
mov ecx, dword [esi*4 + 0x510cd8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4aa238
cmp eax, dword [edi + ecx + 0x24]
jne 0x4aa238
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4aa238
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ab07e
add esp, 0x14
test edx, edx
jl 0x4aa238
jg 0x4aa1ae
test eax, eax
jb 0x4aa238
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4aa238
jl 0x4aa1c8
cmp dword [ebp - 0x1008], eax
ja 0x4aa238
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4aa1e6
test ebx, ebx
je 0x4aa21f
cmp ecx, edi
jae 0x4aa21f
mov al, byte [ecx]
cmp al, 0xd
jne 0x4aa200
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4aa20c
cmp byte [ecx + 1], 0xa
jne 0x4aa20c
inc ecx
jmp 0x4aa20c
movzx eax, al
movsx eax, byte [eax + 0x50cbb8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4aa1e6
cmp edx, ebx
jne 0x4aa1e6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4aa23d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004908a3
leave
ret
Function at 0x4aa536
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 + 0x510cd8]
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 0x4aa576
cmp byte [ebx], 0xa
jne 0x4aa576
or byte [eax + edi + 0x28], 4
jmp 0x4aa57b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4aa679
mov al, byte [edx]
cmp al, 0x1a
je 0x4aa65b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4aa5aa
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4aa5cf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4aa5d9
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 0x4aa58c
jmp 0x4aa679
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 0x4aa656
cmp dword [ebp - 0xc], 0
je 0x4aa656
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x510cd8]
test byte [eax + edi + 0x28], 0x48
je 0x4aa630
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4aa61b
mov byte [esi], dl
jmp 0x4aa62c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x510cd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4aa679
cmp byte [ebp - 1], 0xa
jne 0x4aa63f
cmp esi, ebx
jne 0x4aa63f
mov byte [esi], 0xa
jmp 0x4aa678
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ab09c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4aa679
mov byte [esi], 0xd
jmp 0x4aa678
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x510cd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4aa675
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4aa679
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4aa682
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 + 0x510cd8]
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 0x4aa6c5
cmp word [esi], dx
jne 0x4aa6c5
or byte [edi + eax + 0x28], 4
jmp 0x4aa6ca
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 0x4aa803
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 0x4aa7e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4aa70c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4aa742
cmp eax, edx
jae 0x4aa74e
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 0x4aa6e4
jmp 0x4aa803
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 0x4aa7df
cmp dword [ebp - 0x14], 0
je 0x4aa7df
mov eax, dword [ebx*4 + 0x510cd8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4aa7b7
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4aa7fd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x510cd8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x510cd8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x510cd8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4aa800
pop ebx
cmp word [ebp - 4], bx
jne 0x4aa7c8
cmp esi, dword [ebp + 0xc]
jne 0x4aa7c8
mov word [esi], bx
jmp 0x4aa800
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ab09c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4aa803
push 0xd
jmp 0x4aa7fc
mov ecx, dword [ebx*4 + 0x510cd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4aa7fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4aa803
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 0x4af0db
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 0x4af178
push ebx
push esi
call fcn.004af0a4
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.004ad57a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4af125
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4af177
push edi
push eax
call fcn.004a7153
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4af145
call fcn.004a7119
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4af176
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004ad57a
add esp, 0x20
test eax, eax
jne 0x4af164
push edi
call fcn.004a7119
jmp 0x4af16c
push ebx
call fcn.004a7119
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 0x4af17b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4af18c
pop esi
ret
push ebx
push edi
push esi
call fcn.004af0a4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a7153
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4af1b4
push ebx
push esi
push edi
call fcn.00492260
add esp, 0xc
push 0
call fcn.004a7119
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4af900
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af427
Function at 0x4b6ddb
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.004b6d57
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4b6f53
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4b6f53
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4b6f02
jg 0x4b6e34
test eax, eax
je 0x4b6ef8
push 1
push 0x1000
call fcn.004a8503
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4b6e5a
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4b6eef
push 0x8000
push ebx
call fcn.004a37eb
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 0x4b6e86
jg 0x4b6e81
cmp ecx, 0x1000
jb 0x4b6e86
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004a9918
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b6ecb
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 0x4b6e81
jl 0x4b6eb2
test ecx, ecx
jne 0x4b6e73
push dword [ebp - 0xc]
push ebx
call fcn.004a37eb
push esi
call fcn.004a7119
add esp, 0xc
xor edi, edi
jmp 0x4b6f64
cmp byte [edi + 0x24], 0
je 0x4b6ee2
cmp dword [edi + 0x20], 5
jne 0x4b6ee2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4b6eed
mov edi, dword [edi + 0x18]
jmp 0x4b6eef
xor edi, edi
push esi
call fcn.004a7119
pop ecx
jmp 0x4b6f64
test ecx, ecx
jg 0x4b6ec4
jl 0x4b6f02
test eax, eax
jae 0x4b6ec4
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ab09c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4b6f25
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b6ec4
jmp 0x4b6f5c
push ebx
call fcn.004aff52
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b6ec4
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 0x4b6f64
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4b6f61
mov edi, dword [edi + 0x18]
jmp 0x4b6f64
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ab09c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b7d00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b7d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b7d2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408700
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.0040867b
cmp byte [ebp - 0x220], 0
je 0x40873c
mov eax, dword [ebp - 0x224]
jmp 0x4087fb
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x218], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x21c], 0x43b6d0
mov dword [ebp - 0x214], 0x200
call fcn.00407f85
mov esi, eax
cmp esi, 0x80070002
je 0x408783
cmp esi, 0x80070003
jne 0x408796
xor esi, esi
inc esi
jmp 0x408796
lea eax, [ebp - 0x20c]
push eax
call fcn.00408700
mov esi, eax
test esi, esi
jne 0x4087e4
xor ecx, ecx
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x22c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x408788
call fcn.00407e8d
push ebx
mov ecx, edi
call fcn.00407e0f
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x43b6d0
call fcn.00407e8d
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416ed9
leave
ret 4

Function at 0x4092eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.00417a50
mov esi, dword [0x443f34]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.0040497d
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.004015ce
lea ecx, [ebp - 0x808]
call fcn.00409a32
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40939f
sub eax, 1
jne 0x409390
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.00416ed9
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409a32
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409aa1
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409a7d
push ebx
push edi
push eax
call fcn.00418ea0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x409a98
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x40f9ae
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40fa4b
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40fa4b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40fa4b
push 4
push 0xffffffffffffffff
push esi
push 0x410165
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40fa4b
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40fa16
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40fa4b
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40fa51
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40fa4d

Function at 0x40fb5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.00417a50
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40fbac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40fbc3
cmp ebx, 0x3e5
je 0x40fbc3
push 0xa
mov ecx, edi
call fcn.0040fdee
jmp 0x40fbcd
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413935
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x413970
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x413957
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x413968
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x413972
inc edi
add eax, 0x28
cmp edi, esi
jb 0x41394d
xor eax, eax
pop edi
pop esi
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a07c]
jne 0x401cdf
repz ret
jmp fcn.00402908

Function at 0x40837a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a07c]
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.00405b1d
and dword [ebp - 0x14], 0
cmp dword [0x42ce64], 0
mov dword [ebp - 0x18], eax
jne 0x40842d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4084d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4084d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ce64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ce68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ce6c], eax
call edi
push eax
call esi
mov dword [0x42ce74], eax
test eax, eax
je 0x40842d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ce70], eax
mov eax, dword [0x42ce70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408486
cmp dword [0x42ce74], ecx
je 0x408486
push eax
call esi
push dword [0x42ce74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408486
test ebx, ebx
je 0x408486
call edi
test eax, eax
je 0x40847d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40847d
test byte [ebp - 8], 1
jne 0x408486
or dword [ebp + 0x10], 0x200000
jmp 0x4084b9
mov eax, dword [0x42ce68]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084b9
mov eax, dword [0x42ce6c]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ce64]
call esi
test eax, eax
je 0x4084d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4084d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x401080
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, ebx
mov ebx, esi
mov eax, esi
xor ebx, ebx
mov eax, ebx
mov eax, ebx
mov eax, eax
xor esi, eax
mov eax, ebx
bswap esi
not edi
neg ebx
bswap esi
bswap edx
add eax, 0x12
ror edx, 0x1f
sbb edx, 0xb1
bswap edi
imul esi
neg ebx
and ebx, 0x5d
imul esi
inc eax
sub ebx, 0x37
rcl esi, 0xfa
and edx, 0x6e
inc edx
neg edi
or esi, 0x7e
or ebx, 0x44
rol ebx, 0xe8
neg esi
bswap esi
inc edi
rol eax, 0x4f
rol edx, 0x34
imul eax
imul ebx
not edi
neg ebx
add esi, 0xb8
rol edi, 0x2e
add ebx, 0xa
not edi
rol edx, 0x16
not eax
add edi, 0x55
bswap edx
bswap edi
or eax, 0x7d
rol ebx, 0x5e
sub edi, 0x48
neg esi
rcl esi, 0xad
dec edx
sub edi, 0xbd
neg esi
inc esi
sbb eax, 0xd8
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov eax, eax
xor esi, eax
xor eax, eax
mov ebx, eax
xor ebx, esi
dec eax
rol esi, 0x5c
mov edx, 0xec
rol eax, 0xe3
neg ebx
bswap ebx
sub edi, 0x99
or edi, 0x8b
sub ebx, 0x36
neg edi
sub esi, 0x47
or esi, 0x4a
imul esi
rol eax, 0xda
bswap esi
sub eax, 0xb9
neg edi
ror eax, 0xad
dec edx
not edi
neg edx
imul eax
and edx, 0xd7
imul edi
rcr edx, 0x94
inc edi
neg edx
bswap edi
ror eax, 0x4f
neg esi
dec eax
imul esi
neg esi
ror eax, 0xe3
neg ebx
neg ebx
bswap eax
neg ebx
inc eax
rcl edi, 0x61
dec edx
sub eax, 0xc9
inc edi
imul ebx
rcr edi, 0xde
rol ebx, 0xd6
and eax, 0x87
rol ebx, 0xe4
rol edx, 0x55
inc eax
mov ebx, esi
xor ebx, esi
mov ebx, ebx
xor ebx, ebx
mov ebx, eax
mov ebx, eax
mov eax, esi
xor ebx, ebx
xor eax, eax
mov ecx, dword [ebp + 0xc]
ror esi, 0x3a
bswap edx
rcl ebx, 0xb0
rol edi, 0x93
and edx, 0xd8
sbb eax, 0x5a
imul eax
rcr ebx, 0xb3
ror edx, 0x7a
imul ebx
or edi, 0xe1
or ebx, 0x9d
imul edi
not edi
bswap edi
neg eax
neg esi
mov eax, 0x24
and eax, 0xc7
not edx
rcl esi, 0x9f
imul edi
rcr edx, 0xb2
not edx
sub ebx, 0xf3
dec esi
inc esi
imul eax
mov ebx, 0x95
bswap edx
not edi
not ebx
neg eax
sbb edx, 0x6a
rcr esi, 0xf
sbb edi, 0x8c
dec edx
bswap edi
inc ebx
mov edx, 0x1a
neg esi
inc esi
rcl esi, 0xd
or esi, 0x4f
rcl esi, 0xf3
inc eax
neg eax
rcl edi, 0xce
mov edi, 0x96
neg esi
mov edi, dword [ebp + 8]
xor esi, ebx
mov eax, ebx
mov ebx, esi
mov esi, ebx
mov eax, esi
xor eax, eax
xor ebx, esi
xor eax, esi
mov ebx, esi
not byte [edi]
mov esi, esi
mov eax, eax
xor eax, esi
mov eax, esi
mov esi, ebx
mov eax, ebx
xor esi, esi
mov ebx, ebx
xor ebx, eax
mov ebx, eax
mov eax, eax
xor ebx, esi
sub byte [edi], 0xf1
add byte [edi], 0x63
mov ebx, esi
xor esi, ebx
xor esi, esi
mov eax, ebx
mov eax, eax
mov eax, ebx
xor ebx, ebx
xor esi, ebx
xor esi, eax
imul byte [edi]
inc edi
loop 0x40125f
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404dc0
Capabilities:
Parse pe header

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