joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401986
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401a1a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4019d5
cmp eax, 0x40
je 0x4019d5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401979
cmp eax, 0x40
je 0x401979
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401979
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]

Function at 0x401c90
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
je 0x401d30
movzx edx, byte [ebx]
cmp dl, 9
je 0x401d74
cmp dl, 0x20
je 0x401d74
cmp dl, 0x22
je 0x401d14
cmp dl, 9
mov eax, edx
je 0x401d28
cmp dl, 0x20
je 0x401d80
test dl, dl
lea esi, [esi]
jne 0x401d02
jmp 0x401d30
cmp al, 0x20
je 0x401d80
test al, al
nop
je 0x401d30
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x401cf4
jmp 0x401d28
cmp al, 0x22
je 0x401d1e
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x401d10
cmp al, 0x22
jne 0x401d28
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x401d80
cmp al, 9
je 0x401d80
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x401d3f
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x401cc1
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x401d80
cmp al, 0x20
jne 0x401d30
nop
jmp 0x401d80
Function at 0x15fde1f
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x18], ebx
pushal
call fcn.015fddff
mov ah, 0xff
je 0x15fddf5
adc al, 0xff
je 0x15fddf9
or ecx, dword [ecx + reloc.kernel32.dll_GetProcAddress]
push esp
push sp
jmp 0x15fdeda
push word [esp + 7]
je 0x15fddc3
mov dword [esp + 0x18], ebx
pop esp
and al, 0x18
pushal
jmp 0x15fde54
jmp 0x15fdded
push dword [esp + 0x14]
push dword [esp + 0xb]
mov dword [esp + 0x16], esi
jmp 0x15fddda
lea esp, [esp + 2]
mov dword [esp + 0x3c], esp
pushal
push si
lea esp, [esp + 2]
mov dword [esp + 0x58], ebp
call fcn.015fde90

Function at 0x15fdef2
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
xchg dword [esp + 0x20], esi
push cx
mov byte [esp], ch
push esi
jmp 0x15fdfbf
push word [esp + 2]
lea esi, [esi + 0x26]
pushfd
xchg dword [esp + 0x2c], esi
call 0x15fdf31
sub esp, 0xb4
mov ebp, esp
clc
jb 0x15fe151
dec dx
mov cx, word [esp]
jmp 0x15fe08f
not ebx
lea edx, [esi*4]
jmp 0x15fe012
mov eax, esp
lea edx, reloc.kernel32.dll_GetProcAddress
adc ebx, ebx
jmp 0x15fe05e
rcl edx, cl
je 0x15fe003
not ebx
lea edx, [esi*4]
mov eax, esp
lea edx, reloc.kernel32.dll_GetProcAddress
adc ebx, ebx
call 0x15fe048
sub esp, dword [esi - 0x75]
fnstsw word [eax - 0x39a72995]
neg dh
neg bl
xchg dword [esp], edx
jmp 0x15fe0be
push sp
lea esp, [esp + 2]
jmp 0x15fe06a
inc esi
lea eax, [ecx + ebx]
lea ebx, reloc.kernel32.dll_GetProcAddress
mov dx, 0x2620
inc ebx
jmp 0x15fe0e6
dec dx
mov cx, word [esp]
mov ecx, esi
mov bx, 0xe1
jmp 0x15fe02b
rcl al, cl
push ebx
lea esp, [esp]
lea ebx, [ecx + edi]
pop ebx
xchg dword [esp + 0x20], edx
jmp 0x15fe10e
adc edx, 0xb9cfe22b
bt ebx, eax
jmp 0x15fe0d0
mov ebx, dword [esp]
bswap ebx
pushal
mov ebx, dword [esp + 0xb]
lea ebx, [eax + ebx]
lea edx, [edx + 0x17]
jmp 0x15fe097
add esi, 0x334153b
or edx, 0x2a7627fe
jmp 0x15fe139
ja 0x15fe0a7
adc edx, 0xb9cfe22b
bt ebx, eax
jmp 0x15fe0d0
clc
mov ebx, esp
lea eax, [ebx*4]
shl edx, 0x1b
lea ebx, reloc.kernel32.dll_GetProcAddress
jmp 0x15fe16c
bsf ebx, edx
xchg bx, dx
not dh
lea ebx, [ebp - 0xde]
push dword [esp + 0x20]
ret 0x24
lea eax, [ebx*4]
shl edx, 0x1b
lea ebx, reloc.kernel32.dll_GetProcAddress
jmp 0x15fe16c
jl 0x15fe0f3
clc
mov ebx, esp
jmp 0x15fe123
jmp 0x15fe089
rol esi, 0
bt eax, ebp
je 0x15fe212
lea edx, [eax + esi]
xchg ebx, eax
jmp 0x15fe1a3
rol esi, 0
mov eax, dword [esp]
lea eax, [eax*4]
xchg bx, ax
jmp 0x15fe156
mov dl, al
jmp 0x15fe1c7
clc
jno 0x15fe1e7
jo 0x15fe1e7
rdtsc
mov dx, word [esp]
lea esp, [esp + 2]
jmp fcn.015fe22d
xchg ebx, eax
mov dl, al
not esi
xchg al, bl
mov eax, ecx
rdtsc
jmp 0x15fe1a7
jno 0x15fe1ac
rdtsc
mov dx, word [esp]
jmp 0x15fe1f0
add esi, dword [edi]
mov eax, edi
sub esp, 2
jmp 0x15fe1d1
lea esp, [esp + 2]
jmp fcn.015fe22d
lea edx, [eax + esi]
jmp 0x15fe1c4
Function at 0x169de81
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
mov dword [esp], ebp
mov ax, sp
pop dword [esp]
jmp 0x169dec6
mov edx, 0xea997b20
push ebx
mov ah, 0xd0
std
push dword [esp + 1]
jmp 0x169deee
xchg byte [esp + 2], dl
mov edi, 0xf7f2f0c6
pop edx
pushal
neg dl
add esp, 0x11
jmp 0x169deb0
mov ah, 2
rdtsc
xchg dword [esp + 3], eax
mov word [esp + 0xd], cx
pop dx
jmp 0x169df38
mov dword [esp + 0x11], ebp
std
xchg byte [esp + 0x13], dl
mov dx, di
mov eax, 0xeaa499c3
pop dword [esp + 3]
jmp 0x169ded8
setle dl
bsf dx, dx
mov di, sp
mov di, 0x37bd
pop eax
jmp 0x169df62
mov word [esp + 6], ax
mov edx, dword [esp + 7]
mov ah, dl
xchg di, ax
rdtsc
not di
jmp 0x169df22
inc dl
mov edx, dword [esp + 1]
xchg dword [esp + 2], edx
mov dl, bl
jmp 0x169dfa3
lea eax, [ecx*4]
stc
lea esp, [esp + 4]
cld
not dx
bswap edx
jmp 0x169df4c
not dx
xchg dword [esp + 2], eax
xchg dword [esp + 4], edi
xchg byte [esp + 7], dl
jmp 0x169dfcb
mov al, 0x2e
xchg dword [esp + 2], edx
pop ax
mov eax, esp
lea edx, [esi*4]
jmp 0x169df76
pop word [esp + 3]
push edi
cmc
not al
mov edi, 0xa03f04b5
not dl
jmp 0x169df8c
sub esp, 0x16
xchg dx, ax
pop eax
bsr eax, ebp
call fcn.0169dfb5
mov ax, word [esp]
not ax
lea eax, reloc.kernel32.dll_GetProcAddress
pushfd
add esp, 0xe
mov edx, dword [esp + 2]
jmp 0x169fd42
add esp, 0x16
push bx
mov al, 0x7a
bsf eax, ecx
call fcn.0169ed3f
push esi
invalid
mov ax, sp
cld
mov edi, dword [esp + 0xe]
lea edx, [esi + 0xc6]
clc
mov eax, dword [esp + 7]
jmp 0x169f9cb

Function at 0x169e600
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, si
neg edx
rdtsc
cmp dh, cl
push dword [esp]
jmp 0x169e210

Function at 0x169e827
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec al
mov ah, dh
lea esp, [esp + 0xc]
lea eax, [ebp*4]
jmp 0x169e87d
bsf ax, di
mov dh, bl
neg edi
pop dword [esp + 7]
mov ax, 0x79b2
jmp 0x169e811
xchg di, ax
neg ax
inc dx
rdtsc
shl di, 6
inc ax
jmp 0x169e896
lea edi, [ecx*4]
lea edx, [ebx + esi]
mov word [esp + 9], ax
mov eax, dword [esp + 5]
rdtsc
bswap edx
jmp 0x169e853
mov eax, dword [esp + 0x12]
pop edi
cmc
sub esp, 0x1b
pop dword [esp + 0xc]
xchg di, ax
call fcn.0169e864
mov cl, byte [edi]
lahf
cli
or ecx, esi
and bl, byte [ebp - 0x54]
mov edi, 0x86eb3186
jmp 0x169e83e
lea eax, [edx*4]
lea edx, reloc.kernel32.dll_GetProcAddress
mov di, si
jmp 0x169e918
dec al
xchg dx, di
mov dx, 0xe024
std
neg di
xchg dl, ah
jmp 0x169e902
Function at 0x837370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x83738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x860074
push ecx
mov edi, eax
call fcn.0084b198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8373cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0084b02e
push esi
call fcn.0084afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x83a850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x83a8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x865720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x83a8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0084b1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x83a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x865720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x83a92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0084c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x83a957
mov word [eax], si
add eax, 2
push eax
call fcn.0084c030
add esp, 4
jmp 0x83a959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x83a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x83a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x83aff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x83b080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x83b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x860458
push ecx
call fcn.0084b1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0084b1e1
add esp, 0x10
jmp 0x83b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0084b20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0084adff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0083b050
mov eax, dword [0x865728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x83b13b
push esi
call fcn.0083afb0
add esp, 4
mov dword [0x865728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x83b14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0083aff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x83e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x83e4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x83e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x83e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x83e47e
add edx, ecx
cmp ebx, edx
jb 0x83e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x83e467
xor ecx, ecx
jmp 0x83e4a2
test eax, eax
jne 0x83e492
xor ecx, ecx
jmp 0x83e4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0083e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x83e8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x83e921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x83e946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x83e96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x83e993
push ecx
push esi
call fcn.0083e4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x83fc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x83fc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x83fc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x83fc38
add edx, eax
cmp ebx, edx
jb 0x83fc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x83fc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x83fc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x83fc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x83fcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x83fc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x83fca8
add edx, ecx
cmp ebx, edx
jb 0x83fcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x83fc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x83ff60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0084c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x83fffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x83ffdd
lea eax, [esp + 0x18]
push eax
jmp 0x83ffe2
push 0x865720
call fcn.0084bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x83ffb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x83ff40
push 4
push ecx
push eax
call fcn.0084c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x840310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.0084c145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x8403ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x84038d
lea eax, [esp + 0x18]
push eax
jmp 0x840392
push 0x865720
call fcn.0084bfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x840360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x83ff40
push 4
push ecx
push eax
call fcn.0084c43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x841f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x841fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x841fcf
push ebx
push edi
push 0x865770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x841fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x865770
push esi
call ebx
test eax, eax
je 0x841fae
mov ebp, 3
cmp dword [0x865774], ebp
jne 0x841faa
push 0x3e8
call edi
push 0x865770
push esi
call ebx
test eax, eax
jne 0x841f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x841fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x841fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x845e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x85b8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x845ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.008427a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x845e61
mov edx, dword [eax]
jmp 0x845e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00844050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x845ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x845ebf
cmp esi, edi
je 0x845ebf
mov ecx, esi
call fcn.0083da00
push esi
call fcn.0084b1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00842990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x845ef5
mov eax, dword [eax]
jmp 0x845ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00841640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x845f25
mov eax, dword [eax]
jmp 0x845f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x845f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x845f76
cmp esi, edi
je 0x845f76
mov eax, dword [esi]
cmp eax, edi
je 0x845f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x845f6d
push eax
call fcn.0084b1c8
add esp, 4
push esi
call fcn.0084b1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x845f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x845ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x846035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00845e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x845fc5
mov edi, 0x8608b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x846035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00845e00
add edi, 4
add esp, 0xc
cmp edi, 0x8608c0
jb 0x846000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x846070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0084c082
mov esi, eax
add esp, 8
test esi, esi
je 0x846107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x846102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0084b946
add esp, 8
test eax, eax
je 0x8460e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x8460e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0084b946
add esp, 8
test eax, eax
jne 0x8460c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x846102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret