joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
push edi
or ebp, 0xffffffff
jmp 0x445642
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x445649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x445638
mov eax, 1
add ebx, ebx
jne 0x44565b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x44566c
jne 0x44567c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x44567c
dec eax
add ebx, ebx
jne 0x445678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x445650
xor ecx, ecx
sub eax, 3
jb 0x445694
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x445706
sar eax, 1
mov ebp, eax
jmp 0x44569f
add ebx, ebx
jne 0x44569f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4456ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4456d0
inc ecx
add ebx, ebx
jne 0x4456bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4456b1
jne 0x4456cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4456b1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4456f0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4456e1
jmp 0x44563e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4456f0
add edi, ecx
jmp 0x44563e
pop esi
mov edi, esi
mov ecx, 0x11cf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44570e
cmp byte [edi], 0xc
jne 0x44570e
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 eax, ebx
loop 0x445713
lea edi, [esi + 0x43000]
mov eax, dword [edi]
or eax, eax
je 0x44578b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46044]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x445740
mov ecx, edi
jns 0x44576f
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 + 0x46098]
or eax, eax
je 0x445785
mov dword [ebx], eax
add ebx, 4
jmp 0x44575d
call dword [esi + 0x4609c]
popal
jmp 0x41845c
Function at 0xe6b85a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00e6b8d9
jae 0xe6b866
xor ecx, ecx
call fcn.00e6b8d9
jae 0xe6b890
xor eax, eax
call fcn.00e6b8d9
jae 0xe6b8a1
mov al, 0x10
call fcn.00e6b8d9
adc al, al
jae 0xe6b882
jne 0xe6b8ce
stosb byte es:[edi], al
jmp 0xe6b867
call fcn.00e6b8e5
dec ecx
loop 0xe6b8ad
mov eax, ebp
call fcn.00e6b8e3
jmp 0xe6b8cf
lodsb al, byte [esi]
shr eax, 1
je 0xe6b8f5
adc ecx, 2
mov ebp, eax
jmp 0xe6b8cf
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00e6b8e3
cmp eax, 0x7d00
jae 0xe6b8cd
cmp eax, 0x500
jae 0xe6b8ce
cmp eax, 0x7f
ja 0xe6b8cf
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xe6b867
pop ebp
ret 8
Function at 0x401353
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x402031
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.00401353
test eax, eax
jne 0x4020cb
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402f6b
sub eax, 0x402509
mov dword [esp], 0x402509
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4020cb
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401c8d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040241e
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c000
mov dword [esp], 0x40300c
call fcn.00402c6e
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40fbc8
Capabilities:
Encode data using xor

Disassembly:
mov esp, 0x1b52cb47
les esi, [edi + 0x40728d43]
Function at 0x81fe2d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x28], ecx
call fcn.0081fde8

Function at 0x81fe36
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 1]
jmp 0x81fe41
lea esp, [esp + 2]
lea ebx, [ebx + 0x40]
call fcn.0081fe70
add edx, 0xe35f565c
jmp 0x8230cd
mov esp, esi
call fcn.0082303c
push edx
ret
mov al, cl
rcl ah, 6
jo 0x823052
jno 0x823052
popal
call fcn.008230b7
lea edx, [esi + 0x40]
mov ah, byte [esp]
mov al, 0x45
jmp 0x82312f
push word [esp]
jmp 0x823156
sub edx, ecx
sub esp, 0x14
jge 0x823119
push word [esp]
sub esp, 0x1f
stc
lea esp, [esp + 1]
jmp 0x82317a
sub esp, 0x1f
stc
lea esp, [esp + 1]
jmp 0x82317a
lea esp, [esp + 2]
jmp 0x823945
jne 0x823142
mul cl
and byte [ebx - 0x66], ah
lea eax, [ebp - 0x80]
sub esp, 6
jp 0x823160
lea esp, [esp + 2]
call fcn.00823639
sti
jne 0x823173
invalid
lea esp, [esp + 2]
jmp 0x823623
lea esp, [esp + 2]
jmp 0x823623
mov esp, eax
pushfd
lea esi, [eax + edx - 0x40]
jmp 0x82366f
sub eax, edx
jmp 0x8235f2
mov ecx, edx
jmp 0x82380d
mov esi, ecx
mov edi, eax
jmp 0x823641
push esi
push edi
push ecx
jmp 0x823657
popfd
jmp fcn.00821f25
mov edi, dword [esp]
lea esp, [esp + 4]
pop esi
jmp 0x82368a
cld
rep movsb byte es:[edi], byte [esi]
pop ecx
jmp 0x8236c5
and al, 0xfc
pushal
push word [esp]
jbe 0x8235e2
ja 0x8235ec

Function at 0x82303c
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x82306f
bswap eax
sbb eax, 0x62e78b55
jns 0x823059
js 0x823059

Function at 0x8230b7
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, dword [esp]
xchg word [esp], ax
jmp 0x8230e4

Function at 0x82b838
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
jmp 0x81248f
xor ecx, ecx
cmp dword [esp + 4], ecx
jbe 0x8124a9
push esi
movzx esi, byte [ecx + edx]
rol eax, 7
xor eax, esi
inc ecx
cmp ecx, dword [esp + 8]
jb 0x812498
pop esi
jmp 0x8124b4
ret 4
not ebx
not bx
mov bx, word [esp]
mov ebx, dword [esp + 8]
jmp 0x82b842
mov ax, 0xbac3
mov eax, dword [esp + 4]
jmp 0x82b822
lea esp, [esp + 0xc]
push bp
push ebp
lea esp, [esp + 2]
lea esp, [esp + 4]
jmp 0x812482

Function at 0x82badc
Capabilities:
Check for trap flag exception

Disassembly:
push ebx
jmp 0x812d1a
pushfd
or dword [esp], reloc.iphlpapi.dll_GetAdaptersInfo
popfd
cpuid
nop
jmp 0x812d31
pop ebx
ret
jmp 0x812d0e

Function at 0x90833e
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push dword [esp + 2]
mov word [esp + 4], cx

Function at 0x43cf6e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
call fcn.0043cf98
add ebx, ecx
xor dword [eax], esi
dec ebx
add ecx, 0xf22c52b6
add eax, 1
sub ebx, 0x8249affa
cmp eax, edx
jne fcn.0043cf6e
sub ebx, ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x18c4563a
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x494a2807
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4015d0
Capabilities:
Encode data using xor

Disassembly:
push 0x401900
call sub.MSVBVM50.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
push edx
inc eax
add byte [eax], dh
add byte [eax], al
add byte [eax], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx + 0x40], dl
jno 0x4015df
mov edi, 0x9c11d4c9
mov esi, 0x26e477e9
mov byte [0x33], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [edi - 0x47000000], dh
movsb byte es:[edi], byte [esi]
mov bl, 0xcc
xor dword [eax], eax
push esi
inc edx
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
push es
mov ebx, 0xbfef713f
leave
aam 0x11
pushfd
mov esi, 0x26e477e9
mov byte [0x713fbc33], al
out dx, eax
mov edi, 0x9c11d4c9
mov esi, 0x26e477e9
mov byte [0xad4f3a33], al
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
add byte [edx - 0x6c2ca000], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
dec ebp
add al, byte [eax]
add byte [ecx], cl
add byte [eax], al
add byte [0x726f4600], al
insd dword es:[edi], dx
xor al, byte [eax]
or eax, 0xc8001201
std
salc
loope 0x401647
hlt

Function at 0x403000
Capabilities:
Terminate process

Disassembly:
xor eax, eax
xor ebx, ebx
xor edx, edx
mov ax, word [section..data]
mov bx, word [0x402002]
idiv bx
mov cx, word [section..data]
add cx, word [0x402002]
add cx, word [0x402004]
imul cx
neg ax
cwde
js 0x403051
push eax
push str.Result_is___d
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
call dword [sym.imp.msvcrt.dll__fgetchar]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
push eax
push str.Sign_is__d
call dword [sym.imp.msvcrt.dll_printf]
add esp, 8
call dword [sym.imp.msvcrt.dll__fgetchar]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4738bd
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4735cc
inc ebx
call fcn.004738fb
or ebx, ebx
xor dword [eax], ecx
dec ebx
add ebx, 0xcffacfdf
add eax, 2
mov edi, ebx
sub ebx, 0x8ef83cae
cmp eax, esi
jl fcn.004738bd
add edi, 0xf660561
add edi, 0xad6013de
or edi, ebx
ret
Function at 0x4040f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.0040242c
xor eax, eax
push ebp
push 0x404205
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
test ebx, ebx
je 0x40418d
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x404199
cmp esi, 0x30000000
jbe 0x404142
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00403ec0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4041e9
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x4040cc
mov eax, dword [ebp - 4]
call fcn.004038ac
test eax, eax
je 0x4041e9
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40420c
lea eax, [ebp - 0x2c]
mov edx, dword [0x4037bc]
call fcn.004024f0
ret

Function at 0x4042dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x40434b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401d50
mov esi, eax
test esi, esi
jle 0x40432b
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00401f9c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xbc
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x404311
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00401b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404352
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405114
Capabilities:
Reference the vmware io port

Disassembly:
xor eax, eax
push 0x40513c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x564d5868
mov ebx, 0x3c6cf712
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov eax, 1
jmp 0x40514f
xor ebx, ebx
pop dword fs:[ebx]
add esp, 4
ret

Function at 0x405158
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ecx, 0x4051a2
mov ebp, esp
push ebx
push ecx
push dword fs:[0]
mov dword fs:[0], esp
mov ebx, 0
mov eax, 1
invalid
Function at 0x4052dc
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x4052f4
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x4052ef
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x405300
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebx
xor ebx, ebx
push 0x405318
call sub.kernel32.dll_GetModuleHandleA_1
test eax, eax
je 0x405313
mov bl, 1
mov eax, ebx
pop ebx
ret

Function at 0x405324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x40538c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405377
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4053b8
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x4053c4
jne 0x405377
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x4053dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x405444
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40542f
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405470
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x40547c
jne 0x40542f
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x405494
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
xor ebx, ebx
push esp
push 1
push 0
push 0x4054fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054e7
mov dword [esp + 4], 0x101
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405528
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [esp + 8]
cmp eax, 0x405534
jne 0x4054e7
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x405674
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x40568b
jne 0x405692
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 1
jne 0x4056a1
mov dl, 1
cmp dword [ebp - 4], 1
jne 0x4056a9
xor edx, edx
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4056cc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
xor eax, eax
push ebp
push 0x405722
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405738
call fcn.00401b58
push 0
push dword [ebp - 4]
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x405705
xor eax, eax
leave
ret
mov eax, 1
leave
ret
Function at 0x405760
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add dword [eax + 0x20], 0x2000
ret

Function at 0x405a18
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405ab7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405cf4
test al, al
je 0x405aa1
xor eax, eax
push ebp
push 0x405a97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00401f48
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
and bl, 2
and bl, 1
and bl, 4
xor eax, eax
mov al, bl
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405aa1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405abe
lea eax, [ebp - 4]
call fcn.00401ac0
ret

Function at 0x405b20
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405b80
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x405b98
call fcn.00401b58
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00401b58
push 0
push esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, 0x80000001
call fcn.00406078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b87
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x405c3c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405ce1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov eax, dword [ebp + 8]
call fcn.00401d50
push eax
mov eax, dword [ebp + 8]
call fcn.00401f48
push eax
push 2
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
jne 0x405cb5
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ce8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 8]
call fcn.00401ac0
ret
Function at 0x405d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405dfa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405ddf
cmp esi, 0xffffffff
jne 0x405dc3
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00401f9c
push eax
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e01
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x406078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 0xc]
call fcn.00401f38
xor eax, eax
push ebp
push 0x406157
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00401b14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406134
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40612b
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402074
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00401f48
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40615e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 0xc]
call fcn.00401ac0
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00401f48
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406669
test al, 0x10
jne 0x40666d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret