joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10504058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105041a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1050407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050406a
add dl, dl
jne 0x10504089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105040dc
xor eax, eax
add dl, dl
jne 0x10504096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050417d
add dl, dl
jne 0x105040a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105040b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105040bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105040c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105040d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10504075
mov eax, 1
add dl, dl
jne 0x105040ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105040f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105040e1
sub eax, ebx
mov ebx, 1
jne 0x10504128
mov ecx, 1
add dl, dl
jne 0x1050410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10504119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10504105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10504075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1050413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10504136
cmp eax, 0x7d00
jae 0x1050416d
cmp eax, 0x500
jb 0x10504168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10504075
cmp eax, 0x7f
ja 0x10504170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10504075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1050419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10504075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100011b5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, 0x100aa2e0
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100011e2
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x100011f8
push 0x80000301
push 0
push 0x3e8
push 1
mov ebx, 0x1bc
call fcn.1007e9c0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1000122d
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.10001300
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push 0x101
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000126e
push 0xb7
push 0x4027a2a
push 6
call fcn.1007e2a1
add esp, 0xc
push 0x80000301
push 0
push 0x80
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call fcn.1000138c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100012c0
push ebx
call fcn.1007e29b
add esp, 4
jmp 0x100012d0
mov eax, 0
jmp 0x100012da
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100012eb
push ebx
call fcn.1007e29b
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100012fb
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x1000147e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push OleUIBusyA
push 0
push 0x1000165f
push 1
mov ebx, 0x9dc
call fcn.1007ea10
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
cmp dword [ebp - 8], esp
je 0x100014d1
push 0x4e
push 0x4020627
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1000151e
push 0x4e
push 0x4020627
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1000154d
push 0x4e
push 0x4020627
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 1
jmp 0x10001557
mov esp, ebp
pop ebp
ret
Function at 0x1000203a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.1007eaf0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000207f
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
cmp dword [ebp - 8], esp
je 0x100020b4
push 0x36
push 0x4020630
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x100020d0
push eax
mov ebx, eax
call fcn.10001321
inc eax
push eax
call fcn.1007e295
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100020d5
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100020e6
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x10003676
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x1000367f
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x100036a2
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x100036a2
mov eax, ebx
jmp 0x100036b7
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x1000368e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret

Function at 0x100040fa
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
jmp 0x1000410f
mov eax, dword fs:[0x30]
mov dword [eax + 0x68], 0x70
leave
ret
Function at 0x10007531
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov eax, 0
sete al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x100075a6
push 0
call fcn.1007e2bf
add esp, 4
mov dword [ebp - 8], esp
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x10007597
push 0x56
push 0x4027a63
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 1
jmp 0x10007616
cmp dword [ebp + 8], 0
jle 0x1000760c
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1000761c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x1000760c
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x10007602
push 0x132
push 0x4027a63
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, 1
jmp 0x10007616
mov eax, 0
jmp 0x10007616
mov esp, ebp
pop ebp
ret 8

Function at 0x1000ad21
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x1000ad4d
add dword [esp], 5
retf
Function at 0x1000d893
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
jmp 0x1000d8b5
push 0x33
call 0x1000d8bc
add dword [esp], 5
retf
Function at 0x1000e633
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push OleUIBusyA
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x1000e651
mov eax, 0x100aa368
push eax
push 1
mov ebx, 0x194
call fcn.1007eb30
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000e67b
mov eax, 0
jmp 0x1000e6ef
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jle 0x1000e6dc
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x1000e6c5
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x1000e6b4
xor ecx, eax
xor edx, ebx
dec edi
jne 0x1000e6a5
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4
mov esp, ebp
pop ebp
ret 4

Function at 0x10011204
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0xf0000000
push 0x18
push 0x100aa45a
push 0x100aa45a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001125c
push 0x24
push 0x4028ea0
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100112c1
mov dword [ebp - 0xc], esp
push 0
push 0x18
push 0x100aa45a
push 0x100aa45a
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100112aa
push 0x7d
push 0x4028ea0
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100112c1
mov eax, 0x100aa368
jmp 0x1001133a
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.10005c03
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100112e6
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x1001131b
push 0x120
push 0x4028ea0
push 6
call fcn.1007e2a1
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011335
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007e295
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1001133a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001134b
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8

Function at 0x10011e6f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
jmp 0x10011e84
mov eax, dword fs:[0x30]
xor ecx, ecx
mov cl, byte [eax + 2]
mov eax, ecx
leave
ret
Function at 0x100189b6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x100189fb
push 0x59
push 0x4021eb6
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1007f180
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10018a5e
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x10018a8c
push 0xfb
push 0x4021eb6
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1007f180
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10018aef
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 8], esp
je 0x10018b1d
push 0x19d
push 0x4021eb6
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.1007f180
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10018b80
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.1007e9f0
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10018b88
mov esp, ebp
pop ebp
ret
Function at 0x1004178e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x5c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100417e8
push 0x46
push 0x4021efd
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100417ff
mov eax, 0x100abefd
jmp 0x100418e2
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x100aa3ca]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x100aa3ca]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.1000210c
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.1007e9c0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10041856
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fadd qword [0x100aa3da]
fstp qword [ebp - 0x1c]
mov dword [ebp - 0x20], esp
fld qword [ebp - 0x1c]
call fcn.1000210c
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10041882
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x100418ac
push 0x165
push 0x4021efd
push 6
call fcn.1007e2a1
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100418c3
mov eax, 0x100abefd
jmp 0x100418e2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100418dd
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1007e295
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100418e2
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100418f3
push ebx
call fcn.1007e29b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1007f1b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1007f1ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x1007f1c3
pop esi
ret

Function at 0x1007f6c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1007f729
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.1007e740
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x1007fbd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
call fcn.10083560
mov edi, dword [esp + 0x34]
xor esi, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
call dword [0x100b0360]
add esp, 8
test ebx, ebx
je 0x1007fd0b
test eax, eax
je 0x1007fd0b
inc eax
push ebp
push eax
call fcn.10095eea
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10089ab0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1007fc42
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1007fcf7
push 0x400
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x1c], 3
call fcn.10095eea
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x1007fcca
cmp eax, 0xea
jne 0x1007fce3
push esi
call fcn.10095f13
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10095eea
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x10]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x1007fc95
cmp dword [esp + 0x18], 3
jne 0x1007fce3
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.10083000
add esp, 8
mov dword [esp + 0x14], eax
push esi
call fcn.10095f13
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10095f13
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop ebp
jne 0x1007fd32
mov esi, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1007fd3d
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1007fd3d
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
call fcn.10083000
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1007fd50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.10083560
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x100b0360]
add esp, 8
test ebx, ebx
je 0x1007fe94
test eax, eax
je 0x1007fe94
inc eax
push eax
call fcn.10095eea
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10089ab0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1007fdc2
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1007fe81
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.10095eea
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x1007fe4a
cmp eax, 0xea
jne 0x1007fe6d
push esi
call fcn.10095f13
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10095eea
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x1007fe15
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x1007fe58
cmp eax, 2
jne 0x1007fe6d
push esi
call dword [0x100b0360]
push eax
push esi
call fcn.10083040
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.10095f13
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10095f13
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x1007febd
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1007fec9
mov esi, dword [esp + 0x40]
test esi, esi
je 0x1007fec9
push esi
call dword [0x100b0360]
push eax
push esi
call fcn.10083040
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10080403
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x100803d1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x100803d1.2
jmp dword [eax*4 + 0x1008045c]
mov word [esp + 0x48], di
jmp 0x1008040a
mov word [esp + 0x48], 2
jmp 0x1008040a
mov word [esp + 0x48], 3
jmp 0x1008040a
mov word [esp + 0x48], 4
jmp 0x1008040a
mov word [esp + 0x48], 7
jmp 0x1008040a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x10080454
cmp dword [esp + 0x70], edi
je 0x10080440
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x10080960
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x100809f2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x100809e4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x100809dc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x100809a5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret