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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409a86
jl 0x409a7d
test edi, edi
jne 0x409a86
xor eax, eax
xor edx, edx
jmp 0x409b47
cmp dword [ebx + 0x38], 0
je 0x409a9b
push eax
push edi
push dword [ebp + 8]
call fcn.00409b4d
jmp 0x409b47
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409ae2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409ae2
cmp eax, edi
jb 0x409abc
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b570
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409ae8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409b3c
mov ecx, ebx
call fcn.004092cd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409b27
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412e86
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409b3c
jmp 0x409afa
test edx, edx
je 0x409b3c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412e86
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40acea
Capabilities:
Parse pe header

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

Function at 0x418b9a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3ac
push 0x42c3a4
push str.FlsAlloc
push 0x1e
call fcn.004189c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418bce
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
jmp 0x418bd4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418c18
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3bc
push 0x42c3b4
push str.FlsGetValue
push 0x20
call fcn.004189c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418c4f
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41c329
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c19a

Function at 0x41c723
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b070
mov eax, dword [0x43601c]
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.0041a127
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c765
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c8c1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427240
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 + 0x437b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d71a
mov ecx, dword [esi*4 + 0x437b90]
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 0x41c8ba
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c8ba
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 0x41c8ba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d71a
add esp, 0x14
test edx, edx
jl 0x41c8ba
jg 0x41c830
test eax, eax
jb 0x41c8ba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c8ba
jl 0x41c84a
cmp dword [ebp - 0x1008], eax
ja 0x41c8ba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c868
test ebx, ebx
je 0x41c8a1
cmp ecx, edi
jae 0x41c8a1
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c882
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c88e
cmp byte [ecx + 1], 0xa
jne 0x41c88e
inc ecx
jmp 0x41c88e
movzx eax, al
movsx eax, byte [eax + 0x4362b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c868
cmp edx, ebx
jne 0x41c868
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c8bf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a548
leave
ret
Function at 0x41cbb8
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 + 0x437b90]
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 0x41cbf8
cmp byte [ebx], 0xa
jne 0x41cbf8
or byte [eax + edi + 0x28], 4
jmp 0x41cbfd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ccfb
mov al, byte [edx]
cmp al, 0x1a
je 0x41ccdd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41cc2c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41cc51
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41cc5b
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 0x41cc0e
jmp 0x41ccfb
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 0x41ccd8
cmp dword [ebp - 0xc], 0
je 0x41ccd8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x437b90]
test byte [eax + edi + 0x28], 0x48
je 0x41ccb2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41cc9d
mov byte [esi], dl
jmp 0x41ccae
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ccfb
cmp byte [ebp - 1], 0xa
jne 0x41ccc1
cmp esi, ebx
jne 0x41ccc1
mov byte [esi], 0xa
jmp 0x41ccfa
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d738
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ccfb
mov byte [esi], 0xd
jmp 0x41ccfa
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ccf7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ccfb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41cd04
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 + 0x437b90]
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 0x41cd47
cmp word [esi], dx
jne 0x41cd47
or byte [edi + eax + 0x28], 4
jmp 0x41cd4c
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 0x41ce9f
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 0x41ce7f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cd8e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41cdc4
cmp eax, edx
jae 0x41cdd0
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 0x41cd66
jmp 0x41ce9f
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 0x41ce7b
cmp dword [ebp - 0x14], 0
je 0x41ce7b
mov eax, dword [ebx*4 + 0x437b90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ce53
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ce1c
mov word [esi], cx
jmp 0x41ce4f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x437b90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x437b90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x437b90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ce9f
pop ebx
cmp word [ebp - 4], bx
jne 0x41ce64
cmp esi, dword [ebp + 0xc]
jne 0x41ce64
mov word [esi], bx
jmp 0x41ce9c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d738
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ce9f
push 0xd
jmp 0x41ce98
mov ecx, dword [ebx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ce96
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ce9f
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 0x4200cd
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 0x42016a
push ebx
push esi
call fcn.00420096
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.0041ed1b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420117
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420169
push edi
push eax
call fcn.00419236
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420137
call fcn.004186ec
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420168
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ed1b
add esp, 0x20
test eax, eax
jne 0x420156
push edi
call fcn.004186ec
jmp 0x42015e
push ebx
call fcn.004186ec
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 0x427040
Capabilities:
Parse pe header

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

Disassembly:
pushal
call 0x75a6a6
pop ebp
sub ebp, 0x46154c
lea edi, [ebp + 0x463155]
mov esi, edi
mov ecx, 0x92
xor ebx, ebx
lodsb al, byte [esi]
xor al, 0x44
sub al, bl
rol al, 2
stosb byte es:[edi], al
inc ebx
loop 0x75a6bc
mov eax, dword [esp + 0x20]
inc eax
js 0x75a6d9
mov dword [ebp + 0x463159], 1
cmp dword [ebp + 0x463159], 0
jne 0x75a6e4
jmp 0x75a6fa
push ebp
lea eax, [ebp + 0x4615c2]
push eax
mov eax, 0x30
test edx, eax
adc eax, 0xb8500046
xor byte [eax], al
add byte [eax], al
push eax
call fcn.0075a789
pop ebp
jmp 0x75a70e
push ebp
lea eax, [ebp + 0x4615c2]
push eax
mov eax, 0x30
push eax
call fcn.0075aa16
pop ebp
mov ecx, 0x17a7
lea edi, [ebp + 0x4619ae]
mov esi, edi
lodsb al, byte [esi]
dec dword [eax + 0x2a]
mov eax, dword [0x8e59e8c0]
jle 0x75a6e6
rcr byte [ecx + 0x15eaa9ed], 0x80
imul esp, dword [eax + 0x3e04eda0], 0x98904060
cdq
in eax, dx
test eax, 0x698015ea
mov al, byte [0x3e04eda0]
pushal
inc eax
nop
cwde
push 0x34
jae 0x75a725
loope 0x75a725
mov dword [0x1bb4f401], eax
and dh, cl
cmpsb byte [esi], byte es:[edi]
add byte [esi], bl
mov bh, 0xaf
and dword [eax], esp
imul dword [edx - 0x427c331e]
pop ecx
xor dword [esi], eax
add byte [ebp + 2], dh
jmp 0x75a770
push ebp
lea eax, [ebp + 0x4621ce]
push eax
mov eax, 0x30
push eax
call fcn.0075aa16
pop ebp
jmp 0x75ab08
out dx, al
add al, cl
mov eax, 0xffe946f7
jp 0x75ab56
pop ds
cld
outsd dx, dword [esi]
insb byte es:[edi], dx
insd dword es:[edi], dx
insb byte es:[edi], dx
imul esp, dword [ecx + 0x70], 0xfffffff4
invalid
mov ecx, 0x31ab2e2c
wait
aaa
xchg ebp, eax
cmp al, 0xca
pop edi
scasb al, byte es:[edi]
and dword [ebx], esp
mov al, byte [0x8a2c9026]
xor dword [edi + 0x1816a354], esp
xchg ebp, eax
sbb eax, dword [ebp - 0x5bd980df]
dec ecx
cwde
or edi, dword [ebp + 0x10]
cli
dec ebp
xchg edx, eax
add eax, 0x102004a
add cl, bh
add edi, dword [ebp - 6]
sti
cli
mov ecx, 0x31cefeef
xor bl, 0x92
int3
Function at 0x75a789
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
dec ebp
add al, 3
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ecx + 0x7d8b0300]
or al, 6
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add dh, byte [ebx]
fild dword [ebx]
mov bx, dx
add al, 0x66
and ebx, 1
add dl, dl
jecxz 0x75a8d1
xor al, bl
add esp, dword [esi - 0x2f]
loop 0x75a8d9
mov bx, dx
add eax, 0xe38166
add byte [edx], 0xb5
add byte [ebx], 0x8b
jge 0x75a8f2
push es
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
cmp bh, ch
jne 0x75a956
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add eax, 0x3f28166
add byte [ebx], 0x8b
jge 0x75a94a
push es
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add bh, dh
rol dword [edx], 0xb5
or byte [ebx], al
mov edi, dword [ebp + 0xc]
push es
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp cl, ch
jne 0x75a88d
pop ecx
pop ebx
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x46315d]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [eax + 0x1460106]
inc ebx
add ecx, dword [ebx - 0x72f9f383]
mov edi, 0x463155
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
cmp ecx, ebx
jne 0x75a7e9
mov esp, ebp
ret 8
Function at 0x75aa16
Capabilities:
Check for trap flag exception

Disassembly:
mov ebp, esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4631aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add ecx, dword [ebx + 0x33020875]
fild dword [esi]
mov edx, 0x8b030001
jge 0x75aa66
push es
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
add byte [eax], al
pop dword fs:[0]
add esp, 4
mov ecx, dword [ebp + 4]
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x4631aa]
push edi
push dword fs:[0]
mov dword fs:[0], esp
mov edi, dword [ebp + 0xc]
lea edi, [edi + 0x463155]
mov dword [edi], 1
pushfd
or dword [esp], 0x100
popfd
xor edi, edi
add cl, byte [edx + 0x7d8b0306]
or al, 6
lea edi, [edi + 0x463155]
push es
mov dword [edi], 0
pop dword fs:[0]
add esp, 4
push ebx
push ecx
mov cl, 0
xor ebx, ebx
mov bx, dx
and bx, 1
shl bl, cl
xor al, bl
shl dx, 1
mov bx, dx
and bx, 0x8000
mov ch, 0x80
cmp bh, ch
jne 0x75aaed
xor dx, 0x8003
inc cl
mov ch, 8
cmp cl, ch
jne 0x75aaca
pop ecx
pop ebx
mov byte [esi], al
inc esi
inc ebx
cmp ecx, ebx
jne 0x75aa75
mov esp, ebp
ret 8
Function at 0x4076a0
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423288
push 0x418f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
pushal
pushfd
xor ebx, ebx
mov ecx, 0xa
mov eax, 0x564d5868
mov dx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete al
movzx eax, al
mov dword [0x42e650], eax
popfd
popal
jmp 0x407708
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x42e650]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f080
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423370
push 0x418f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1503e
Capabilities:
Check os version
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00015005
pop ebp
jmp fcn.00012900
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401030
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4010b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x4010d4
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push eax
push str..Global_s
push ecx
jmp 0x4010e3
mov edx, dword [esp + 0x44]
lea eax, [esp]
push edx
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401114
xor eax, eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x401127
mov dword [ecx], eax
mov eax, 1
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x40
ret

Function at 0x401140
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401164
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4028c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0xffffffff
push eax
push str.aegisdsk
call fcn.004010b0
mov eax, dword [esp + 8]
add esp, 8
cmp eax, 0xffffffff
jne 0x4028f7
push str.VRVSAFEC:___StartSYS_Error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x83000014
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 8
ret

Function at 0x402930
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0xffffffff
push eax
push str.aegisdsk
call fcn.004010b0
mov eax, dword [esp + 8]
add esp, 8
cmp eax, 0xffffffff
jne 0x402967
push str.StopSYS_Error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x83000010
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 8
ret