joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489502
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
cmp eax, ebx
jne 0x489526
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
jne 0x489526
xor al, al
jmp 0x489647
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x48951f
cmp dword [ebp - 0xc], ebx
jle 0x48963c
push esi
push edi
mov edi, 0x50739c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
cmp word [eax], 0x2f
jne 0x489630
add eax, 2
push eax
lea ecx, [ebp + 8]
call fcn.00404030
push edi
lea ecx, [ebp - 8]
call fcn.0041af40
push edi
lea ecx, [ebp - 4]
call fcn.0041af40
push 0
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.00432420
mov esi, eax
cmp esi, 0xffffffff
je 0x4895d4
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004297b0
push eax
lea ecx, [ebp - 4]
call fcn.004044f0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404d60
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004297e0
push eax
lea ecx, [ebp - 8]
call fcn.004044f0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404d60
jmp 0x4895e0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.004044f0
push 0x22
push 0x22
lea ecx, [ebp - 4]
call fcn.00482703
mov ecx, eax
call fcn.00486ab1
lea ecx, [ebp - 8]
call fcn.00404fb0
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00438a60
lea ecx, [ebp - 4]
push ecx
mov ecx, eax
call fcn.004044f0
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404d60
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x48954b
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
pop ebx
leave
ret 8
Function at 0x48a192
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x44c]
sub esp, 0x4cc
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x448], eax
mov eax, dword [ebp + 0x454]
mov eax, dword [eax]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x48a1e2
push 0xfffffffffffffffa
pop eax
jmp 0x48a2ca
push ebx
mov ebx, 0x3ff
push ebx
lea eax, [ebp + 0x49]
push esi
push eax
mov dword [ebp - 0x4c], 0xfffffffc
mov byte [ebp + 0x48], 0
call fcn.004a0bd0
add esp, 0xc
push esi
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp + 0x48]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x54], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48a227
mov dword [ebp - 0x4c], 0xfffffffa
jmp 0x48a2bd
push esi
lea ecx, [ebp - 0x64]
call fcn.0041c5d0
lea ecx, [ebp - 0x48]
call fcn.004207d0
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp - 0x80]
call fcn.004060b0
push 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.00420880
mov bl, al
neg bl
sbb bl, bl
push esi
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x80]
inc bl
call fcn.00405e20
test bl, bl
jne 0x48a2ad
push 0x4d8838
lea ecx, [ebp - 0x64]
call fcn.0041d220
mov ebx, eax
mov ecx, ebx
call fcn.0041d560
mov ecx, ebx
test al, al
je 0x48a292
call fcn.0041cf80
jmp 0x48a2a7
call fcn.0041d580
test al, al
je 0x48a2ad
mov ecx, ebx
call fcn.0041cda0
test eax, eax
setne al
mov byte [edi + 0xc], al
mov dword [ebp - 0x4c], esi
lea ecx, [ebp - 0x48]
call fcn.00422870
lea ecx, [ebp - 0x64]
call fcn.0041cb80
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
pop ebx
mov ecx, dword [ebp + 0x448]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x44c
leave
ret 4
Function at 0x48a2e3
Capabilities:
Check for time delay via gettickcount
Download url
Receive data

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x40
mov eax, 0x4c7c5a
call fcn.004a1699
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
push ebx
push ebx
xor edi, edi
inc edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x48a453
cmp eax, 0xffffffff
je 0x48a453
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00488a10
lea ecx, [ebp - 0x44]
call fcn.0042a760
mov dword [ebp - 0x40], edi
push dword [esi]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040eb50
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040ebb0
mov ecx, dword [eax]
add ecx, edi
mov eax, dword [eax + 4]
adc eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], eax
xor eax, eax
mov word [ebp], ax
push 0x7fe
push ebx
lea eax, [ebp + 2]
push eax
call fcn.004a0bd0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x400
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileW
mov dword [ebp - 0x24], eax
call edi
sub eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x48a41a
cmp dword [ebp - 0x30], ebx
jl 0x48a41a
mov dword [ebp - 4], ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404030
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0048a192
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404d60
cmp dword [esi + 8], 1
setl al
mov byte [esi + 0xd], al
or dword [ebp - 4], 0xffffffff
jmp 0x48a42f
cmp dword [ebp - 0x30], 0x80004004
jne 0x48a42c
mov dword [esi + 8], 0xfffffffe
jmp 0x48a42f
mov dword [esi + 8], eax
cmp dword [ebp - 0x14], ebx
je 0x48a440
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x44]
call fcn.0042a780
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00404d60
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004a0e91
add ebp, 0x804
leave
ret
Function at 0x48a551
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esi], ebx
call edi
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push eax
push esi
push 0x48a478
push eax
push eax
mov dword [ebp - 4], eax
call fcn.004a57c7
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x48a590
xor al, al
jmp 0x48a5d4
add ebx, 2
imul ebx, ebx, 0x3e8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x48a5c2
call edi
sub eax, dword [ebp - 8]
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 8], 0xfffffffd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 8], 1
setge al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x48aa17
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
push 0x4d7900
mov esi, ecx
push 0x4e0a50
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x3c]
push eax
call fcn.0047e1ed
lea ecx, [ebp - 0x38]
call fcn.00497159
push 0x4d78fc
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
call fcn.0047dfe5
xor eax, eax
lea edi, [ebp - 0x10]
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.004260c0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
call fcn.004260c0
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0048a7f6
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
add esp, 0x14
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea ebx, [esi + 0x78]
push ebx
mov ecx, esi
movzx edi, ax
call fcn.0048a9b5
mov byte [esi + 0x9b], al
test al, al
je 0x48ab2e
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
call fcn.004260c0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
call fcn.004260c0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push dword [ebp - 0x20]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.00486496
add esp, 0x18
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
call fcn.004260c0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004800e4
test al, al
jne 0x48abd6
push ebx
lea ecx, [esi + 0x20]
call fcn.00413880
jmp 0x48abd6
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
jle 0x48abd6
movzx eax, di
mov dword [ebp - 0x1c], eax
push dword [ebp - 4]
lea ecx, [ebp - 0x38]
call fcn.00496521
cmp dword [eax + 0x18], 8
jb 0x48ab58
mov eax, dword [eax + 4]
jmp 0x48ab5b
add eax, 4
push eax
lea ecx, [ebp - 8]
call fcn.00404030
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x20]
call fcn.00413880
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00404d60
mov edi, dword [ebp - 4]
push edi
lea ecx, [ebp - 0x38]
call fcn.00496521
cmp dword [eax + 0x18], 8
jb 0x48ab92
mov eax, dword [eax + 4]
jmp 0x48ab95
add eax, 4
push 0
push str.lang_code
push eax
lea ecx, [esi + 0x3c]
call fcn.0048a879
cmp dword [ebp - 0x1c], eax
jne 0x48abc9
push edi
lea ecx, [ebp - 0x38]
call fcn.00496521
cmp dword [eax + 0x18], 8
jb 0x48abbe
mov eax, dword [eax + 4]
jmp 0x48abc1
add eax, 4
push eax
mov ecx, ebx
call fcn.004045f0
inc edi
cmp edi, dword [ebp - 0x10]
mov dword [ebp - 4], edi
jl 0x48ab42
mov ecx, esi
call fcn.00487c70
lea ecx, [esi + 0x20]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
test eax, 0xfffffffc
jne 0x48abf3
push ebx
call fcn.00413880
lea ecx, [ebp - 0x38]
call fcn.0047dac7
push dword [ebp - 0x38]
call fcn.0049c830
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00404d60
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x48c518
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
mov dword [ebp - 0xc], ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
mov ebx, str.SYSTEMCurrentControlSetControlSession_Manager
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
test eax, eax
je 0x48c556
xor al, al
jmp 0x48c5ad
cmp dword [ebp - 8], 7
jne 0x48c552
mov eax, dword [ebp - 4]
test eax, eax
jne 0x48c567
mov al, 1
jmp 0x48c5ad
push 0x50740c
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a2cdf
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
test eax, eax
je 0x48c552
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ecx + 4], edx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push str.PendingFileRenameOperations
push ebx
push edi
call esi
neg eax
sbb al, al
inc al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48c5b2
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x48c682
push 0x104
push esi
call fcn.004a1b75
add eax, 0xfffffffc
pop ecx
pop ecx
cmp eax, 0xff
ja 0x48c682
mov eax, dword [0x4d7844]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d7848]
mov dword [ebp - 8], eax
mov ax, word [esi]
mov word [ebp - 0xc], ax
push dword [ebp - 0xc]
call fcn.00499338
pop ecx
cmp eax, 1
je 0x48c615
push 0x70
jmp 0x48c684
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
pop edi
test eax, eax
je 0x48c65c
cmp dword [ebp - 0x10], ebx
ja 0x48c65c
jb 0x48c658
cmp dword [ebp - 0x14], 0x11e1a300
ja 0x48c65c
push 0x6f
jmp 0x48c684
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x48c67e
push esi
call fcn.004922ba
pop ecx
test al, al
je 0x48c67e
xor eax, eax
jmp 0x48c685
push 0x6c
jmp 0x48c684
push 0x65
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
leave
ret
Function at 0x48c6d9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 1
mov edi, SysReAllocString
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x48c710
xor eax, eax
jmp 0x48c858
push 0
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x48c728
mov byte [ebp + 0xb], 1
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xb], 0
jne 0x48c74d
push 0
push ebx
push 3
push 0
push 1
push edi
push dword [ebp + 0xc]
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x48c74d
mov byte [ebp + 0xb], 1
xor eax, eax
cmp byte [ebp + 0xb], al
jne 0x48c766
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x48c766
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x14], eax
je 0x48c76f
mov byte [ebp + 0xb], 1
and dword [ebp + 0xc], 0
cmp byte [ebp + 0xb], 0
jne 0x48c83a
mov edi, 0x50740c
push edi
mov esi, 0x100000
push esi
call fcn.004a2cdf
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x48c7a9
push edi
push esi
call fcn.004a2cdf
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x48c7af
mov byte [ebp + 0xb], 1
jmp 0x48c81e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x48c814
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
je 0x48c814
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x48c814
cmp dword [ebp + 8], ebx
je 0x48c814
cmp eax, dword [ebp + 8]
jne 0x48c814
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004a36c8
add esp, 0xc
test eax, eax
jne 0x48c814
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x14]
jb 0x48c7b8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
setne byte [ebp + 0xb]
cmp dword [ebp - 8], ebx
je 0x48c82c
push dword [ebp - 8]
call fcn.004a2e1b
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x48c83a
push dword [ebp + 0xc]
call fcn.004a2e1b
pop ecx
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x48c850
push dword [ebp - 4]
call esi
xor eax, eax
cmp byte [ebp + 0xb], al
sete al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48c89a
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x48c8c7
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
jmp 0x48c8c9
xor eax, eax
pop esi
ret 4
Function at 0x48cccb
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
xor ebx, ebx
mov dword [eax], ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004703cd
cmp al, bl
je 0x48cdd4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_LockResource]
call edi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x507354]
mov dword [ebp + 0xc], eax
call esi
push eax
push dword [ebp + 0xc]
call fcn.0045a530
pop ecx
pop ecx
test eax, eax
jne 0x48cd66
push dword [ebp - 0xc]
push dword [0x507354]
call esi
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0045a430
add esp, 0xc
test eax, eax
jne 0x48cd66
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0047040d
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x48cd57
cmp eax, 0xffffffff
je 0x48cd57
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push dword [0x507354]
call esi
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
call edi
push ebx
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48cdcb
push dword [ebp - 0xc]
push dword [0x507354]
call esi
cmp eax, dword [ebp + 8]
jne 0x48cdcb
mov byte [ebp - 1], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
jmp 0x48cd57
Function at 0x48ce31
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x1f0]
and dword [ebp - 0x70], 0
push 0x11
pop ecx
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [ebp + 0x19c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov word [ebp - 0x6c], ax
lea eax, [ebp + 0x19c]
push eax
movsw word es:[edi], word [esi]
mov esi, 0x208
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0042a830
push ebx
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0042a830
lea eax, [ebp - 0x80]
push eax
push 1
push 0
lea eax, [ebp - 0x6c]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48cf0d
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x70]
push 4
pop ebx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
mov edi, str.DeleteFlag
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x48cf09
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x48cf09
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov al, 1
jmp 0x48cf0f
xor al, al
mov ecx, dword [ebp + 0x1e4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1e8
leave
ret
Function at 0x48cf27
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
sub esp, 0x668
lea ebp, [esp - 4]
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x668], eax
push 0x54
mov eax, 0x4c7c82
call fcn.004a1699
mov esi, dword [ebp + 0x674]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0048c8cd
test eax, eax
je 0x48d04f
xor eax, eax
mov word [ebp + 0x438], ax
push 0x206
push ebx
lea eax, [ebp + 0x43a]
push eax
call fcn.004a0bd0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x438]
push eax
push str._windir__system32_regsvr32.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [ebp], ax
push 0x436
push ebx
lea eax, [ebp + 2]
push eax
call fcn.004a0bd0
add esp, 0xc
push esi
lea eax, [ebp + 0x438]
push eax
lea eax, [ebp]
cmp dword [ebp + 0x678], ebx
je 0x48cfcd
push str.__s___s___s_
jmp 0x48cfd2
push str.__s___s__u___s_
push 0x438
push eax
call fcn.0041b220
add esp, 0x14
mov dword [ebp + 0x654], ebx
xor eax, eax
lea edi, [ebp + 0x658]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
push ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.004a0bd0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp + 0x654]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x48d0db
push dword [ebp + 0x658]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x654]
call esi
jmp 0x48d0db
mov esi, str.DllRegisterServer
lea edi, [ebp + 0x654]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, str.DllUnregisterServer
lea edi, [ebp + 0x640]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x654]
cmp dword [ebp + 0x678], ebx
jne 0x48d084
lea edi, [ebp + 0x640]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jl 0x48d101
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 8
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x48d0d5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x48d0d5
call eax
test eax, eax
jl 0x48d0cb
mov dword [ebp - 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
jmp 0x48d103
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x668]
xor ecx, ebp
call fcn.004a0e91
add ebp, 0x66c
leave
ret