joyce8/EMBER2024-capa huggingface dataset:
Function at 0x624a9
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00027107
push 0x625fe
call sub.ntoskrnl.exe_wcslen
lea esi, [eax + eax + 4]
mov eax, dword [ebp + 0xc]
add si, word [eax]
mov dword [esp], 0x6d6d5049
movzx edi, si
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x62c2d
push dword [ebp + 0xc]
mov ecx, edi
mov edi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xe], si
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x62616
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0005b029
push ebx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp + 0xc], ebx
jne 0x6255d
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0x6262e
lea eax, [ebp - 0x18]
push eax
mov dword [0x505d8], ebx
mov dword [0x505d4], ebx
mov dword [0x505d0], ebx
mov dword [0x5062c], ebx
mov dword [0x50628], ebx
mov dword [0x505dc], ebx
call esi
mov esi, dword [ebp + 0x10]
push esi
push ebx
push 0x100
push 0x12
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, ebx
jl 0x625f6
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0005af84
test al, al
je 0x62c37
push 0x50584
call dword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
mov esi, dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push ebx
push edi
push 0x505c0
call esi
push ebx
push edi
push 0x505ac
mov dword [0x505a0], edi
mov dword [0x505a4], ebx
mov dword [0x505a8], ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, 0xc000009a
jmp 0x625f6
push dword [esi]
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
jmp 0x625f6
Function at 0x55b450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55b47d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55b47d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x55b9f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp edi, 0x1f
jb 0x55bb90
test edx, 3
je 0x55ba22
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jmp 0x55ba07
xor eax, dword [edx]
lea edi, [edx + edi - 0x1b]
sub edx, edi
lea ebx, [ebx]
mov ecx, dword [edi + edx + 0xc]
mov ebx, dword [edi + edx + 8]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x400]
xor ecx, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 4]
movzx esi, bl
xor ecx, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor ecx, dword [ebp + esi*4 + 0x1400]
xor ecx, dword [ebp + ebx*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [ebp + esi*4 + 0x2c00]
xor ecx, dword [ebp + ebx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [ebp + esi*4 + 0x2400]
xor ecx, dword [ebp + eax*4 + 0x2800]
mov eax, dword [edi + edx + 0x18]
mov ebx, dword [edi + edx + 0x14]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0xc00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x400]
xor eax, dword [ebp + ebx*4]
mov ebx, dword [edi + edx + 0x10]
movzx esi, bl
xor eax, dword [ebp + esi*4 + 0x1c00]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [ebp + esi*4 + 0x1800]
movzx esi, bl
shr ebx, 8
xor eax, dword [ebp + esi*4 + 0x1400]
xor eax, dword [ebp + ebx*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [ebp + esi*4 + 0x2c00]
xor eax, dword [ebp + ebx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [ebp + esi*4 + 0x2400]
xor eax, dword [ebp + ecx*4 + 0x2800]
add edx, 0x18
jae 0x55ba30
add edi, 0x18
sub edx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [ebp + eax*4]
xor eax, dword [ebp + ebx*4 + 0xc00]
xor eax, dword [ebp + ecx*4 + 0x800]
xor eax, dword [ebp + esi*4 + 0x400]
add edx, 4
jb 0x55bb89
xor eax, dword [edi + edx]
jmp 0x55bb57
add edx, edi
add edi, 3
sub edi, edx
test edi, edi
je 0x55bba7
movzx esi, byte [edx]
movzx ebx, al
inc edx
shr eax, 8
xor esi, ebx
xor eax, dword [ebp + esi*4]
dec edi
jne 0x55bb94
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x43b646
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
or ebx, ebx
inc edi
dec edi
call fcn.0043b67c
and ebx, ebx
sub edi, 1
dec edi
xor dword [eax], ecx
sub edi, 0xedd32dae
push ebx
pop edi
dec ebx
inc eax
dec edi
mov ebx, edi
sub ebx, edi
cmp eax, edx
jne fcn.0043b646
or edi, edi
or edi, edi
inc edi
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x28ca6edc
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x190b0fdb
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x59552301
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x238567be
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0xdc021e
Capabilities:
Encode data using xor

Disassembly:
add al, ah
add eax, dword [eax]
add byte [eax], al
add byte [eax], al
pushal
call 0xdc0224
pop ebp
sub ebp, 0x10
sub ebp, 0x9c0214
jmp 0xdc023a
mov eax, 0x9c0214
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e0
mov edx, 0xa9294116
xor byte [eax], dl
inc eax
dec ecx
jne 0xdc0251
jmp 0xdc0264
popfd
fistp dword [ebp + 0x16162a9f]
push ss
xchg edi, eax
xlatb
out dx, al
push ss
push ss
push ss
adc eax, 0x1612aedb
scasb al, byte es:[edi]
adc dl, byte [esi]
push ss
push ss
lodsb al, byte [esi]
push ss
push ss
push ss
loope 0xdc0274
adc eax, 0x1a979dde
push ss
push ss
push ss
adc eax, 0x729b46d3
xor ch, dl
lahf
adc dh, byte [edx]
jle 0xdc0216
invalid
Function at 0x41f573
Capabilities:
Parse pe header

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

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x74d5631c
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x66640d81
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100019c0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100019de
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100019d9
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100019c3
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
cmp edx, ebx
jne 0x10001b19
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000199a
add eax, dword [eax + 4]
jmp 0x10001987
mov dword [ebp + 0xc], ebx
jmp 0x100019e9
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10001a01
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10001a1f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10001a7d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10001a64
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10001a6d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10001a77
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10001a59
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100019e3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10001aca
dec eax
je 0x10001ac1
sub eax, 3
je 0x10001ab8
mov dword [ebp - 4], 0x40
jmp 0x10001ae7
mov dword [ebp - 4], 4
jmp 0x10001acd
mov dword [ebp - 4], 0x20
jmp 0x10001acd
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10001b19
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10001a99
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000132a
adc byte [esi + 0x75ff6cfe], ch
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x10001b25
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001a20
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100019de
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100019d9
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100019c3
adc ebx, ebp
or byte [ebx], bh
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
cmp edx, ebx
jne 0x10001b19
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000199a
add eax, dword [eax + 4]
jmp 0x10001987
mov dword [ebp + 0xc], ebx
jmp 0x100019e9
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10001a01
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10001a1f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10001a7d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10001a64
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10001a6d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10001a77
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10001a59
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100019e3
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10001aca
dec eax
je 0x10001ac1
sub eax, 3
je 0x10001ab8
mov dword [ebp - 4], 0x40
jmp 0x10001ae7
mov dword [ebp - 4], 4
jmp 0x10001acd
mov dword [ebp - 4], 0x20
jmp 0x10001acd
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10001b19
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10001a99
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000132a
adc byte [esi + 0x75ff6cfe], ch
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x10001b25
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4687c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4b000]
push edi
or ebp, 0xffffffff
jmp 0x4687e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4687e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4687d8
mov eax, 1
add ebx, ebx
jne 0x4687fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46880c
jne 0x46882b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46882b
dec eax
add ebx, ebx
jne 0x468818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4687f0
add ebx, ebx
jne 0x468827
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46887d
xor ecx, ecx
sub eax, 3
jb 0x468843
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4688b2
sar eax, 1
mov ebp, eax
jmp 0x46884e
add ebx, ebx
jne 0x46884e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46881c
inc ecx
add ebx, ebx
jne 0x46885c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46881c
add ebx, ebx
jne 0x468869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46885e
jne 0x46887a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46885e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46889c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46888e
jmp 0x4687de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46889c
add edi, ecx
jmp 0x4687de
pop esi
mov edi, esi
mov ecx, 0xe8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4688ba
cmp byte [edi], 4
jne 0x4688ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4688bf
lea edi, [esi + 0x66000]
mov eax, dword [edi]
or eax, eax
je 0x468937
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7b184]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7b1c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4688ec
mov ecx, edi
jns 0x46891b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7b1c4]
or eax, eax
je 0x468931
mov dword [ebx], eax
add ebx, 4
jmp 0x468909
call dword [esi + 0x7b1d4]
mov ebp, dword [esi + 0x7b1c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46896b
sub esp, 0xffffff80
jmp 0x40200c
Function at 0x401fea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push dword [esp + 8]
or bl, 0xff
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402039
xor bl, bl
test al, al
js 0x402039
test al, 1
je 0x402009
inc bl
test al, 2
je 0x402010
or bl, 2
test al, 4
je 0x402017
or bl, 4
test al, 0x10
je 0x40201e
or bl, 0x10
test al, 0x20
je 0x402025
or bl, 0x20
test eax, 0x800
je 0x40202f
or bl, 0x40
test eax, 0x4000
je 0x402039
or bl, 0x80
mov al, bl
pop ebx
ret 4

Function at 0x40203f
Capabilities:
Set file attributes

Disassembly:
mov cl, byte [esp + 8]
xor eax, eax
test cl, cl
jne 0x402050
mov eax, 0x80
jmp 0x40208b
test cl, 1
je 0x402058
xor eax, eax
inc eax
test cl, 2
je 0x402060
or eax, 2
test cl, 4
je 0x402068
or eax, 4
test cl, 0x10
je 0x402070
or eax, 0x10
test cl, 0x20
je 0x402078
or eax, 0x20
test cl, 0x40
je 0x402082
or eax, 0x800
test cl, cl
jns 0x40208b
or eax, 0x4000
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8

Function at 0x402099
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, eax
je 0x4020e8
xor edx, edx
inc edx
cmp dword [ebp + 0x10], edx
jbe 0x40216b
xor esi, esi
xor eax, eax
xor ecx, ecx
lea ebx, [eax + edx]
cmp ebx, dword [ebp + 0x10]
jae 0x4020d9
lea ebx, [eax + edx]
movzx ebx, byte [ebx + edi]
shl ebx, cl
add ecx, 8
or esi, ebx
inc eax
cmp ecx, 0x20
jb 0x4020bd
add dword [ebp + 0x14], esi
add edx, edx
cmp edx, dword [ebp + 0x10]
jb 0x4020b7
jmp 0x40216b
cmp dword [ebp + 0xc], eax
je 0x40216b
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
inc ebx
push ebx
push eax
push eax
push dword [ebp + 0xc]
call esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], ebx
jbe 0x40215f
xor edi, edi
and dword [ebp - 4], edi
mov dword [ebp - 8], edi
lea eax, [edi + ebx]
cmp eax, dword [ebp + 0x10]
jae 0x402152
push 0
lea eax, [edi + ebx]
add eax, dword [ebp + 0x1c]
push 0
push eax
push dword [ebp + 0xc]
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 8
shl eax, cl
or dword [ebp - 8], eax
inc edi
cmp dword [ebp - 4], 0x20
jb 0x40210e
mov eax, dword [ebp - 8]
add dword [ebp + 0x14], eax
add ebx, ebx
cmp ebx, dword [ebp + 0x10]
jb 0x402106
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x405d65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417010]
jne 0x405d6f
repz ret
jmp fcn.00407d0b

Function at 0x40f0b2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417010]
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.00408950
and dword [ebp - 0x14], 0
cmp dword [0x47afd0], 0
mov dword [ebp - 0x18], eax
jne 0x40f165
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f20d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f20d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47afd0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47afd4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47afd8], eax
call edi
push eax
call esi
mov dword [0x47afe0], eax
test eax, eax
je 0x40f165
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47afdc], eax
mov eax, dword [0x47afdc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f1be
cmp dword [0x47afe0], ecx
je 0x40f1be
push eax
call esi
push dword [0x47afe0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f1be
test ebx, ebx
je 0x40f1be
call edi
test eax, eax
je 0x40f1b5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f1b5
test byte [ebp - 8], 1
jne 0x40f1be
or dword [ebp + 0x10], 0x200000
jmp 0x40f1f1
mov eax, dword [0x47afd4]
cmp eax, dword [ebp - 0x18]
je 0x40f1f1
push eax
call esi
test eax, eax
je 0x40f1f1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f1f1
mov eax, dword [0x47afd8]
cmp eax, dword [ebp - 0x18]
je 0x40f1f1
push eax
call esi
test eax, eax
je 0x40f1f1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47afd0]
call esi
test eax, eax
je 0x40f20d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f20f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d65
leave
ret