joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10253e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x10253fa
or eax, 0xffffffff
jmp 0x102555b
push edi
push dword [ebp + 0x18]
push dword [ebp + 8]
call fcn.01024f6c
mov edi, eax
mov dword [ebp - 4], edi
cmp dword [0x102f99c], esi
je 0x1025557
cmp dword [0x102f990], edi
jl 0x1025557
cmp edi, esi
jl 0x1025557
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push 0x102f890
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x102555a
lea eax, [ebp + 0x18]
push eax
push ebx
mov eax, edi
call fcn.010251d0
test eax, eax
jne 0x1025550
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0xf]
cdq
and edx, 0xf
add eax, edx
mov esi, eax
mov eax, dword [ebp + 0x18]
sar esi, 4
imul esi, dword [ebp + 0x14]
add esi, esi
test eax, eax
je 0x10254b8
lea ecx, [ebp - 0xc]
push ecx
push ebx
call fcn.01025285
test eax, eax
jne 0x1025550
movsx eax, word [ebp - 8]
movsx ecx, word [ebp - 6]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
imul eax, ecx
add eax, eax
cmp eax, esi
jge 0x10254b8
and dword [ebp + 0x18], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x102f998]
push ebx
call fcn.01025126
test eax, eax
jne 0x1025550
cmp dword [ebp + 0x18], eax
jne 0x10254e2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
lea eax, [eax + esi + 8]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 6], ax
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
mov word [ebp - 8], di
call fcn.010252e1
test eax, eax
jne 0x1025550
push eax
lea eax, [ebp + 8]
push eax
movzx esi, si
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1025550
cmp dword [ebp + 8], esi
jne 0x1025550
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push ebx
call fcn.0102522d
test eax, eax
jne 0x1025550
lea eax, [ebp - 0x1c]
push eax
push dword [0x102f998]
push ebx
call fcn.0102517b
test eax, eax
jne 0x1025550
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x102555a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1025566
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1025588
or eax, 0xffffffff
jmp 0x1025616
push esi
call fcn.0100abc1
push edi
mov esi, 0x80
push esi
push 0x102f890
call fcn.01008286
test eax, eax
jl 0x1025612
push 0
push esi
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1025612
push 0
lea eax, [ebp - 0x70]
push eax
push 0x66
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x102560b
cmp dword [ebp - 0x70], 0x66
jne 0x102560b
mov eax, dword [ebp - 0xa]
mov dword [0x102f998], eax
add eax, 0xe
mov dword [0x102f994], eax
movsx eax, word [ebp - 0x1e]
dec eax
push esi
mov dword [0x102f990], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x102f99c], 1
xor eax, eax
jmp 0x1025615
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01026cc5
leave
ret 4
Function at 0x102562a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x102cd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x284], ecx
cmp eax, ebx
je 0x10257e6
cmp ecx, ebx
je 0x10257e6
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01008286
test eax, eax
jl 0x10257e6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push 0x1001d74
mov word [ebp + eax*2 - 0x212], cx
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010082c0
test eax, eax
jl 0x10257e6
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x10257e6
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push ebx
lea ecx, [ebp - 0x27c]
push ecx
push 0x66
lea ecx, [ebp - 0x274]
push ecx
push eax
call esi
mov dword [ebp - 0x278], eax
cmp eax, ebx
je 0x10257cb
cmp dword [ebp - 0x27c], 0x66
jne 0x10257cb
mov eax, 0x1900
cmp word [ebp - 0x226], ax
ja 0x10257cb
mov edi, dword [ebp - 0x212]
push ebx
push ebx
add edi, 0xe
push edi
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x10257d1
push 0x320
push ebx
push dword [ebp - 0x284]
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [ebp - 0x226]
jge 0x10257d1
push ebx
lea eax, [ebp - 0x27c]
push eax
push 4
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x280]
call esi
mov dword [ebp - 0x278], eax
cmp eax, ebx
je 0x10257d1
cmp dword [ebp - 0x288], ebx
je 0x10257ba
cmp dword [ebp - 0x27c], 4
jne 0x10257ba
mov edx, dword [ebp - 0x284]
movzx ecx, di
mov eax, ecx
shr eax, 3
add eax, edx
and ecx, 0x80000007
jns 0x10257b1
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, 0x80
sar edx, cl
or byte [eax], dl
movsx ecx, word [ebp - 0x226]
inc edi
movzx eax, di
cmp eax, ecx
jl 0x1025760
jmp 0x10257d1
mov dword [ebp - 0x278], ebx
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x278]
pop edi
jmp 0x10257e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01026cc5
leave
ret 8
Function at 0x1026cb6
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1029920
call fcn.01027094
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x102fd04
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1026a71
cmp eax, esi
jne 0x1026a64
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1026a74
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1026a4b
xor esi, esi
inc esi
mov eax, dword [0x102fd00]
cmp eax, esi
jne 0x1026a87
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1026ab6
mov eax, dword [0x102fd00]
test eax, eax
jne 0x1026ab0
mov dword [0x102fd00], esi
push 0x10018d8
push 0x10018cc
call fcn.010269ad
pop ecx
pop ecx
test eax, eax
je 0x1026ab6
jmp 0x1026bda
mov dword [0x102f9c8], esi
mov eax, dword [0x102fd00]
cmp eax, esi
jne 0x1026ada
push 0x10018c8
push 0x10018a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102fd00], 2
cmp dword [ebp - 0x20], ebx
jne 0x1026ae7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x102fd10], ebx
je 0x1026b08
push 0x102fd10
call fcn.01027009
pop ecx
test eax, eax
je 0x1026b08
push ebx
push 2
push ebx
call dword [0x102fd10]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1026bda
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1026b72
cmp cx, bx
je 0x1026b2d
cmp dword [ebp - 0x1c], ebx
jne 0x1026b72
movzx ecx, word [eax]
cmp cx, bx
je 0x1026b42
cmp cx, 0x20
ja 0x1026b42
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1026b2d
test byte [ebp - 0x40], 1
je 0x1026b4e
movzx ecx, word [ebp - 0x3c]
jmp 0x1026b51
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x102f9c4], eax
cmp dword [0x102f9b8], ebx
jne 0x1026bb7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1026b83
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1026b17
cmp dword [0x102f9c8], ebx
jne 0x1026bc5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x102f9c4]
jmp 0x1026be6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010270d9
ret
call fcn.010271e1
jmp 0x1026a0e

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1008065
Capabilities:
Check mutex on windows

Disassembly:
push 0x284
mov eax, 0x101a560
call fcn.0101679c
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0x290], eax
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
test ebx, ebx
jne 0x1008096
mov edi, 0x80004005
jmp 0x10082c7
mov esi, dword [sym.imp.msvcrt.dll__wcsnicmp]
push 5
push 0x1001570
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x10080b9
mov dword [ebp - 0x288], 2
jmp 0x100810e
push 5
push 0x1001564
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x10080d6
mov dword [ebp - 0x288], 4
jmp 0x100810e
push 0xc
push 0x1001548
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x10080f3
mov dword [ebp - 0x288], 3
jmp 0x100810e
push 4
push 0x100153c
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100808c
mov dword [ebp - 0x288], 1
push dword [ebp - 0x288]
xor ebx, ebx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x284]
push ebx
call fcn.0100b3ba
mov dword [ebp - 4], ebx
push 0x1001518
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x28c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
jne 0x100816a
push 0x70c
call esi
push eax
lea ecx, [ebp - 0x284]
call fcn.01009cff
mov edi, 0x80004005
cmp dword [ebp - 0x28c], ebx
jne 0x1008177
mov edi, 0x80004005
cmp edi, ebx
jl 0x1008298
call fcn.01009635
test eax, eax
je 0x10081e3
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x288]
call fcn.01009686
test eax, eax
je 0x10081e3
push ebx
call esi
push eax
lea ecx, [ebp - 0x284]
call fcn.0100af4f
mov edi, eax
cmp edi, ebx
jne 0x10081da
push ebx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x22c], 1
call fcn.0100b40a
mov edi, eax
cmp edi, ebx
jl 0x10081e3
jmp 0x1008298
cmp edi, 1
je 0x1008298
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x288], ebx
call fcn.0100adb0
mov edi, eax
cmp edi, ebx
jl 0x1008298
call fcn.01009635
test eax, eax
jne 0x100822f
call fcn.010094d5
test eax, eax
jne 0x100822f
push 0x70d
call esi
push eax
lea ecx, [ebp - 0x284]
call fcn.01009cff
mov edi, 0x80004005
cmp edi, ebx
jl 0x1008298
push ebx
call esi
push eax
lea ecx, [ebp - 0x284]
call fcn.0100af08
mov edi, eax
cmp edi, ebx
jl 0x1008298
push dword [ebp - 0x288]
lea ecx, [ebp - 0x284]
call fcn.0100cbfc
sub eax, ebx
je 0x1008279
dec eax
je 0x1008272
push dword [ebp - 0x288]
call fcn.010096c6
mov edi, 0x80004005
jmp 0x1008298
mov edi, 0x800704c7
jmp 0x1008298
push ebx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x284]
call fcn.01009dc9
lea ecx, [ebp - 0x284]
mov edi, eax
call fcn.01009db9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call fcn.01009c9c
cmp dword [ebp - 0x28c], ebx
je 0x10082c7
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.0101682e
ret 4
Function at 0x10094d5
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100953f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1009536
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01016715
leave
ret

Function at 0x10096c6
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x454], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x38
lea eax, [ebp - 0x450]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x1001680
push 0x1001674
push 1
push 0
mov dword [ebp - 0x418], 0x208
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov edi, eax
test edi, edi
jl 0x1009777
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x454], 0x3c
mov dword [ebp - 0x450], 0x100
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x438], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1009777
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1009775
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01016715
leave
ret 4

Function at 0x1009a3f
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x1020c08], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x1009a85
call ebx
test eax, eax
jns 0x1009a7b
push 0x100179c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x1001790
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x1020c04], eax
mov dword [0x1020c08], 1
mov eax, dword [0x1020c04]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x1009aa1
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1009ad1
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x1009ac7
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x1009abc
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x1009ac1
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x1009ad0
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x1009db9
Capabilities:
Delete file

Disassembly:
add ecx, 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

Function at 0x1009dc9
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
lea eax, [esi + 0x64]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x58]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x10017f4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x140
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1009e37
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1009e31
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jl 0x1009e78
cmp dword [ebp - 4], 0
je 0x1009e73
push 0xffffffffffffffff
push dword [ebp - 4]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x60
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], edi
jne 0x1009e78
cmp dword [ebp + 0xc], edi
jne 0x1009e78
push dword [ebp + 8]
call fcn.010096c6
jmp 0x1009e78
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x1009ef8
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 6
je 0x1009f1d
cmp word [ebp - 0x24], 9
je 0x1009f1d
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x100ac68
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
test ax, ax
je 0x100ac8e
lea ecx, [esi + 0x34]
push ecx
push eax
mov ecx, esi
call fcn.0100ac0d
test eax, eax
jge 0x100aca0
push 0x10019f0
push 0xb
add esi, 0x34
push esi
call fcn.01008a20
mov edi, eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x100afad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
call fcn.01009ef8
test eax, eax
mov eax, 0x1001b80
jne 0x100afcb
mov eax, 0x1001af8
lea ecx, [ebp - 4]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b020
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1001ad4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b017
cmp dword [ebp - 0xc], 4
jne 0x100b017
cmp dword [ebp - 0x10], 1
jne 0x100b017
xor edi, edi
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x100b02a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push ebx
mov ebx, ecx
jne 0x100b053
mov eax, 0x80070057
jmp 0x100b128
push esi
push edi
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01008a20
mov edi, eax
test edi, edi
jl 0x100b124
push 0x1001c08
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01008a5a
mov edi, eax
test edi, edi
jl 0x100b124
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x234], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x238], 0x1001bf0
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x22c], 1
mov edi, 0x80004005
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x100b124
push 0xffffffffffffffff
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100b118
lea esi, [ebx + 0x60]
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100b118
cmp dword [esi], 0
jne 0x100b118
xor edi, edi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01016715
leave
ret 4

Function at 0x100b2ed
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100a1a1
Function at 0x100c390
Capabilities:
Delete file

Disassembly:
push 0x25c
mov eax, 0x101a8f6
call fcn.0101679c
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x100c3af
mov eax, dword [edi]
jmp 0x100c3b1
mov eax, edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x238], eax
je 0x100c509
lea ecx, [ebp - 0x244]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x100c4f4
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x238], 0xffffffff
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x248]
sbb eax, dword [ebp - 0x240]
cmp eax, 0x580
jb 0x100c509
ja 0x100c43e
cmp ecx, 0x28e44000
jbe 0x100c509
cmp dword [esi + 0x18], 8
jb 0x100c448
mov eax, dword [edi]
jmp 0x100c44a
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100c509
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x23c], ebx
call fcn.0100becb
mov dword [ebp - 4], ebx
push 0xa
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x23c]
call fcn.01016d47
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0100c193
add esp, 0x1c
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0100bf6a
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x268]
call fcn.0100b5ff
inc dword [ebp - 0x23c]
cmp dword [esi + 0x18], 8
jb 0x100c4d1
mov eax, dword [edi]
jmp 0x100c4d3
mov eax, edi
push ebx
push eax
call dword [sym.imp.msvcrt.dll__waccess]
cmp eax, 2
pop ecx
pop ecx
jne 0x100c46e
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0100b5ff
cmp dword [ebp - 0x238], 0xffffffff
je 0x100c509
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0101682e
ret 4
Function at 0x100cfa9
Capabilities:
Download url
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 0x14]
cmp dword [edi], eax
mov dword [ebp - 0x214], eax
jne 0x100d000
mov ecx, dword [esi + 0xc]
push eax
push eax
push 0x105
lea edx, [ebp - 0x210]
push edx
push ecx
push eax
call sub.urlmon.dll_URLDownloadToCacheFileW
mov ebx, eax
test ebx, ebx
jl 0x100d054
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.0100cec5
xor eax, eax
lea ecx, [ebp - 0x214]
push ecx
push 0x1001d48
push 1
push eax
push 0x1001d38
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x100d054
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x28]
mov ebx, eax
test ebx, ebx
jl 0x100d054
mov edi, dword [edi]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov ebx, eax
cmp ebx, 0x80004005
jne 0x100d054
cmp dword [esi + 0x1c], 0
je 0x100d054
xor ebx, ebx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x100d064
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01016715
leave
ret