joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ac
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x41f7e8], 0
push edi
je 0x4053f6
mov edi, dword [esp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x407
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ee
push edi
call esi
push eax
push edi
call fcn.004053f8
mov eax, dword [0x41f804]
pop ecx
pop ecx
pop esi
test eax, eax
je 0x4053f6
push eax
push edi
call fcn.004053f8
pop ecx
pop ecx
pop edi
ret

Function at 0x406630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406685
cmp dword [ebp - 0xc], esi
je 0x406682
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x406821
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x406871
push str.MoveFileExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40685f
push 5
push edi
push dword [esp + 0x28]
call eax
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 0
jne 0x406a17
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x400
test edi, edi
mov ebp, 0x418bd4
je 0x40688c
push esi
push ebp
push edi
call ebx
jmp 0x406896
mov eax, dword [0x407258]
mov dword [0x418bd4], eax
push esi
mov esi, 0x4187d4
push esi
push dword [esp + 0x28]
call ebx
push esi
push ebp
push str._s_s_r_n
push 0x4183d4
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x24], edi
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x406a17
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebx
lea eax, [edi + ebp + 0xa]
push eax
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4069ff
push ebx
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4069f3
push 0xffffffffffffffff
push str._Rename__r_n
push ebx
call fcn.00406a23
add esp, 0xc
test eax, eax
jne 0x406964
lea eax, [ebx + ebp]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add ebp, 0xa
mov eax, ebp
jmp 0x4069cb
push 0xffffffffffffffff
push 0x4088dc
push eax
call fcn.00406a23
mov esi, eax
mov edi, ebx
inc esi
sub edi, esi
add edi, ebp
push edi
push 0x4183d4
push esi
call fcn.00406a23
add esp, 0x18
test eax, eax
jne 0x4069e0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.004067df
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x30]
add eax, esi
push eax
call fcn.004067df
add esp, 0x18
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x24]
sub esi, ebx
mov eax, esi
mov esi, dword [esp + 0x14]
push edi
add eax, ebx
push 0x4183d4
push eax
call fcn.004067df
add esp, 0xc
add ebp, edi
jmp 0x4069e4
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x10], 1
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x406a7b
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp byte [esi], 0x20
jne 0x406a98
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
je 0x406a8e
cmp byte [esi], 0
je 0x406b1b
push esi
call edi
cmp byte [eax], 0x3a
mov bl, 0x5c
jne 0x406ab1
cmp byte [eax + 1], bl
jne 0x406ab1
lea esi, [eax + 2]
jmp 0x406adb
cmp byte [esi], bl
jne 0x406b1b
cmp byte [esi + 1], bl
jne 0x406b1b
push 2
pop ebp
mov al, byte [esi]
cmp al, bl
je 0x406ace
test al, al
je 0x406ace
push esi
call edi
mov esi, eax
jmp 0x406abd
cmp byte [esi], 0
je 0x406ad8
push esi
call edi
mov esi, eax
dec ebp
jne 0x406abd
mov al, byte [esi]
test al, al
je 0x406b1b
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, bl
je 0x406af8
test al, al
je 0x406af8
push esi
call edi
mov esi, eax
mov al, byte [esi]
jmp 0x406ae7
cmp byte [esi], 0
jne 0x406b07
push 0
push dword [esp + 0x18]
call ebp
jmp 0x406b15
and byte [esi], 0
push 0
push dword [esp + 0x18]
call ebp
mov byte [esi], bl
inc esi
mov al, byte [esi]
test al, al
jne 0x406ae7
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b7e
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 8]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406b6d
cmp dword [ebp + 8], 1
je 0x406b6f
mov byte [esi], bl
push dword [ebp + 0x14]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret
Function at 0x406c8f
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov al, byte [ebp]
mov dword [esp + 0x14], esi
test al, al
je 0x406de6
mov edi, 0x400
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, edi
jge 0x406de6
movzx ebx, al
inc ebp
cmp ebx, 0xdd
jge 0x406cd1
mov byte [esi], bl
inc esi
jmp 0x406ddb
cmp ebx, 0xff
jne 0x406ce5
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406ddb
lea eax, [ebx - 0xdd]
cmp eax, 0x21
ja case.default.0x406cfb
movzx eax, byte [eax + 0x406e0e]
jmp dword [eax*4 + 0x406dee]
push dword [0x420024]
push 0x4089a8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.default.0x406cfb
lea eax, [ebx - 0xde]
shl eax, 0xa
add eax, 0x418fe0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp case.default.0x406cfb
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406b20
add esp, 0x10
cmp byte [esi], 0
jne 0x406db3
push str.C:Program_Files
jmp 0x406d2b
push esi
push dword [ebx*4 + 0x4084c8]
call fcn.00406e30
pop ecx
pop ecx
jmp case.default.0x406cfb
push esi
push str.AppData
call fcn.00406e30
pop ecx
pop ecx
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406cfb.252
test al, 0x10
jne case.default.0x406cfb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.default.0x406cfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406cfb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi], 0
je 0x406dc2
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x406dc2
inc esi
jmp case.default.0x406cfb
cmp ebx, 0xf2
jle 0x406dd2
cmp byte [esi], 0x5c
jne 0x406dd2
and byte [esi], 0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x406caf
and byte [esi], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406e30
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.00406b20
add esp, 0x10
cmp byte [esi], 0
jne 0x406e5d
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop esi
ret
Function at 0x406e5f
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push 1
xor esi, esi
pop ebx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
je 0x406e88
cmp eax, esi
je 0x406e88
mov eax, ebx
jmp 0x406f72
lea eax, [ebp - 4]
push eax
push 0x407270
push ebx
push esi
push 0x407260
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406f69
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x407280
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x406f60
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x24], esi
je 0x406eeb
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [ebp + 0x28], esi
je 0x406efc
mov eax, dword [ebp - 4]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], esi
je 0x406f10
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x1c], esi
je 0x406f21
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp edi, esi
pop edi
jl 0x406f57
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x80c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406f57
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x4010f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 0x1599
mov edi, 0xd3
test ebx, ebx
je 0x4011a0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4011a0
cmp ebx, eax
jae 0x4011a0
mov esi, 0xbc1
mov eax, 0x4ec4ec4f
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401123
mov esi, 0x3e0c
mov ebx, 0x3410
mov eax, 0x1948b0fd
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401140
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub edx, ebx
mov eax, 0x4734
mov ecx, 0x2a
cmp edi, ecx
cmovl edi, ecx
dec eax
jne 0x401165
xor ecx, ecx
test edx, edx
je 0x401181
mov al, byte [ecx + ebx + 1]
add al, 0x16
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edx
jb 0x401173
mov eax, 0x30c30c31
imul esi
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401181
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011a0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0x341e
xor ecx, ecx
mov edi, 0x3e0c
mov ebx, 0x1599
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402d87
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1f]
mov dword [ebp + 8], eax
inc ecx
mov eax, ecx
and eax, 0x80000001
jns 0x402db4
dec eax
or eax, 0xfffffffe
inc eax
jne 0x402db7
inc ecx
cmp ecx, 0x6c2e
jl 0x402da5
nop
mov eax, 0x66666667
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402dc0
inc byte [esi + 0x1a]
movzx edi, byte [esi + 0x1a]
movzx eax, byte [esi + 4]
lea edx, [esi + 0x1f]
add edi, edx
movzx ecx, byte [edi]
add eax, ecx
mov byte [esi + 4], al
movzx esi, al
add esi, edx
push esi
push edi
call fcn.00403290
mov al, byte [esi]
mov ecx, dword [ebp + 8]
add esp, 8
add al, byte [edi]
movzx eax, al
mov cl, byte [eax + ecx]
jmp 0x402e10
mov eax, 0x36406c81
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402e10
movzx eax, cl
movzx ecx, byte [ebp + 0xc]
pop edi
pop esi
xor eax, ecx
pop ebx
pop ebp
ret
Function at 0x6b1370
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 0x6b138e
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 0x6da074
push ecx
mov edi, eax
call fcn.006c5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6b13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006c502e
push esi
call fcn.006c4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6b4850
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 0x6b48ae
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 0x6df720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6b48ba
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.006c51e1
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 0x6b48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6df720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6b492a
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.006c6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6b4957
mov word [eax], si
add eax, 2
push eax
call fcn.006c6030
add esp, 4
jmp 0x6b4959
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 0x6b48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6b48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x6b4ff0
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 0x6b5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6b50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6da458
push ecx
call fcn.006c51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006c51e1
add esp, 0x10
jmp 0x6b50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006c520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006c4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006b5050
mov eax, dword [0x6df728]
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 0x6b513b
push esi
call fcn.006b4fb0
add esp, 4
mov dword [0x6df728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6b514c
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.006b4ff0
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 0x6b8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6b84b7
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 0x6b848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6b8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6b847e
add edx, ecx
cmp ebx, edx
jb 0x6b848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6b8467
xor ecx, ecx
jmp 0x6b84a2
test eax, eax
jne 0x6b8492
xor ecx, ecx
jmp 0x6b84a2
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.006b83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6b88f0
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 0x6b8921
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 0x6b8946
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 0x6b896e
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 0x6b8993
push ecx
push esi
call fcn.006b84c0
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 0x6b9c00
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 0x6b9c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x6b9c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x6b9c38
add edx, eax
cmp ebx, edx
jb 0x6b9c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x6b9c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x6b9c50
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 0x6b9c70
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 0x6b9cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6b9c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6b9ca8
add edx, ecx
cmp ebx, edx
jb 0x6b9cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6b9c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x6b9f60
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.006c6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6b9ffb
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 0x6b9fdd
lea eax, [esp + 0x18]
push eax
jmp 0x6b9fe2
push 0x6df720
call fcn.006c5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6b9fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6b9f40
push 4
push ecx
push eax
call fcn.006c643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6ba310
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.006c6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6ba3ab
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 0x6ba38d
lea eax, [esp + 0x18]
push eax
jmp 0x6ba392
push 0x6df720
call fcn.006c5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6ba360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6b9f40
push 4
push ecx
push eax
call fcn.006c643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6bbf20
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 0x6bbfd7
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 0x6bbfcf
push ebx
push edi
push 0x6df770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x6bbfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x6df770
push esi
call ebx
test eax, eax
je 0x6bbfae
mov ebp, 3
cmp dword [0x6df774], ebp
jne 0x6bbfaa
push 0x3e8
call edi
push 0x6df770
push esi
call ebx
test eax, eax
jne 0x6bbf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x6bbfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x6bbfbb
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