joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ff2c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x40
push ebx
push edi
mov edi, dword [esp + 0x4c]
xor ebx, ebx
push 0x65
push edi
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x6fed20
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call dword [sym.imp.user32.dll_LoadIconA]
push 5
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.gdi32.dll_GetStockObject]
mov dword [esp + 0x38], eax
mov eax, dword [0x7ab6d0]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.user32.dll_RegisterClassExA]
test ax, ax
jne 0x6ff33d
push 0x7ab708
call fcn.00455190
add esp, 4
push 0xffffffffffffffff
call fcn.00727817
mov al, byte [0x8056e5]
push esi
cmp al, bl
mov esi, 0x82000000
mov dword [esp + 0xc], ebx
je 0x6ff39f
mov edx, dword [0x8056c0]
mov eax, dword [0x8056c4]
mov esi, 0x2ca0000
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.user32.dll_AdjustWindowRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
sub eax, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
jmp 0x6ff3b6
mov eax, dword [0x8056c4]
mov ecx, dword [0x8056c0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, dword [0x7ab6d4]
push ebx
push edi
push ebx
push ebx
push eax
mov eax, dword [0x7ab6d0]
push ecx
push ebx
push ebx
push esi
push edx
push eax
push ebx
call dword [sym.imp.user32.dll_CreateWindowExA]
mov esi, eax
push esi
call sub.imm32.dll_ImmGetContext
push ebx
push esi
call sub.imm32.dll_ImmAssociateContext
mov eax, esi
pop esi
pop edi
pop ebx
add esp, 0x40
ret
Function at 0x700380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x7003ba
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7ab970]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x700398
pop esi
ret

Function at 0x70274f
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x70277c
push esi
call fcn.0070a5f2
cmp byte [esi + 0x40], 0
pop ecx
je 0x702775
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x7027eb
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x7027e0
mov eax, dword [esi + 8]
test eax, eax
je 0x70279d
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x7027dc
cmp eax, 2
je 0x7027e0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x702792
cmp eax, 3
je 0x7027c1
cmp eax, 1
jne 0x702792
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x702792
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x702792
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x702809
cmp eax, 0xcc
je 0x702809
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.00702627
pop esi
ret
Function at 0x7076e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x707701
mov eax, 0x8876086c
jmp 0x7077ec
cmp dword [ebp + 0x7c], esi
je 0x70777b
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x70775b
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00727710
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x70777b
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_CreateFileW]
jmp 0x707794
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x7077d4
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x7077d4
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x7077d4
push esi
push dword [edi]
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x7077ea
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x7077ec
and eax, 0xffff
or eax, 0x80070000
jmp 0x7077ec
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x726150
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
lea eax, [edi + 1]
push eax
call fcn.00726f70
mov dword [esi], eax
add esp, 4
xor eax, eax
test edi, edi
jle 0x7261a9
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edx, eax
sub edx, ebp
mov dl, byte [edx + ebx]
mov ebx, dword [esi]
xor dl, cl
mov byte [ebx + eax], dl
mov edx, eax
xor edx, 0x2a
add edx, ecx
and edx, 0xff
inc eax
cmp eax, edi
mov ecx, edx
jl 0x726176
mov eax, dword [esi]
pop ebp
pop ebx
mov byte [eax + edi], 0
pop edi
pop esi
ret 0x10
mov ecx, dword [esi]
mov byte [ecx + edi], 0
pop edi
pop esi
ret 0x10

Function at 0x7263f0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x726420
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov edi, dword [esp + 0x40]
test edi, edi
je 0x726433
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [edi], eax
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
push esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test ebp, ebp
jne 0x72645a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov edi, dword [esp + 0x38]
xor esi, esi
test edi, edi
push ebx
je 0x72649b
mov esi, dword [edi]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [edi]
mov ebx, dword [esp + 0x2c]
mov eax, ecx
xor edx, edx
div ebx
test edx, edx
je 0x72649b
mov eax, ecx
xor edx, edx
div ebx
mov esi, eax
mov eax, dword [esp + 0x40]
imul esi, ebx
sub ecx, esi
mov dword [edi], esi
add eax, ecx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x40]
push edx
push esi
push 0
push 4
push ebp
call dword [sym.imp.kernel32.dll_MapViewOfFile]
push ebp
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x726610
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x726635
push eax
call fcn.00726ea6
add esp, 4
mov ecx, 0x93e32c
mov dword [esi], 0
call fcn.00726a00
push 0x400
call fcn.00726f70
add esp, 4
mov dword [esi], eax
xor edi, edi
push 8
push edi
mov ecx, esi
call fcn.00726560
mov ecx, dword [esi]
mov ebx, 8
shl eax, 0x18
mov dword [ecx + edi*4], eax
mov ecx, esi
call fcn.007265b0
mov edx, dword [esi]
lea ecx, [edx + edi*4]
mov edx, dword [edx + edi*4]
mov ebp, edx
and ebp, 0x80000000
neg ebp
sbb ebp, ebp
and ebp, eax
lea eax, [edx + edx]
xor ebp, eax
dec ebx
mov dword [ecx], ebp
jne 0x72665d
mov ecx, dword [esi]
push 0x20
mov edx, dword [ecx + edi*4]
mov ecx, esi
push edx
call fcn.00726560
mov ecx, dword [esi]
inc edi
cmp edi, 0x100
mov dword [ecx + edi*4 - 4], eax
jl 0x726646
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x7266d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c4]
test eax, eax
jne 0x7266e2
call fcn.007267b0
mov eax, dword [esi + 0x9c4]
dec eax
mov dword [esi + 0x9c4], eax
mov eax, dword [esi + 0x9c0]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
pop esi
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x726780
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 4]
push esi
mov eax, 1
mov dword [ecx], edx
mov edx, dword [ecx]
add ecx, 4
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, eax
inc eax
mov dword [ecx], esi
cmp eax, 0x270
jl 0x72678c
pop esi
ret 4

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
mov esi, ecx
push edi
call fcn.00726860
mov ebx, eax
push edi
mov ecx, esi
shr ebx, 1
call fcn.00726840
mov ecx, dword [esp + 0x10]
pop edi
neg eax
and eax, 0x9908b0df
pop esi
xor ebx, eax
mov eax, dword [ecx]
xor eax, ebx
pop ebx
ret 0xc

Function at 0x726a00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x726a1b
push eax
call fcn.00726ea6
add esp, 4
mov dword [esi], 0
push 0x400
call fcn.00726f70
add esp, 4
mov dword [esi], eax
xor edi, edi
push 8
push edi
mov ecx, esi
call fcn.00726560
mov ecx, dword [esi]
mov ebx, 8
shl eax, 0x18
mov dword [ecx + edi*4], eax
mov ecx, esi
call fcn.00726970
mov edx, dword [esi]
lea ecx, [edx + edi*4]
mov edx, dword [edx + edi*4]
mov ebp, edx
and ebp, 0x80000000
neg ebp
sbb ebp, ebp
and ebp, eax
lea eax, [edx + edx]
xor ebp, eax
dec ebx
mov dword [ecx], ebp
jne 0x726a43
mov ecx, dword [esi]
push 0x20
mov edx, dword [ecx + edi*4]
mov ecx, esi
push edx
call fcn.00726560
mov ecx, dword [esi]
inc edi
cmp edi, 0x100
mov dword [ecx + edi*4 - 4], eax
jl 0x726a2c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x728e68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x728e88
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00727c41
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x728eab
test byte [esp + 8], 2
je 0x728eab
call fcn.00727cb4
mov dword [eax], 0xd
call fcn.00727cbd
mov dword [eax], 5
jmp 0x728e84
xor eax, eax
ret

Function at 0x737370
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x7373a7
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + edi]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7c4510]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x737385
pop edi
pop ebx
pop esi
ret 0xc
Function at 0x94b3a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x94b3c1
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x94b3d1
pop eax
pop ecx
pop edi
pop esi
ret

Function at 0x94b58a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0094b550
test eax, eax
jne 0x94b5f9
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x94b616
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0094b550
test eax, eax
je 0x94b610
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x94b61b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x94b5d6
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401399
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4013d0
lea ebx, [ebx]
cmp esi, edx
jae 0x4013d4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4013c0
cmp esi, edx
jb 0x4013db
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401db0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x18]
movq qword [ebp - 0x20], xmm0
push eax
mov esi, ecx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 1
call edi
test eax, eax
je 0x401f01
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
test eax, eax
je 0x401f01
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043f760
xor eax, eax
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
push 0x103
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x183]
push 0
push eax
mov dword [ebp - 0x50], 0x101
mov byte [ebp - 0x184], 0
call fcn.0043f760
add esp, 0x18
lea eax, [ebp - 0x184]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.cmd.exe
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0
call fcn.00401f90
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [ebp - 0xc]
test eax, eax
setne bl
test edi, edi
je 0x401ed1
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Wow64RevertWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ed1
push edi
call eax
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
test bl, bl
je 0x401f01
push dword [ebp - 0x30]
call edi
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edi, edi
je 0x401f7c
mov esi, edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401f25
sub esi, edx
je 0x401f7c
push 0
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ecx + 0xc]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [esi + edi - 1], 0xa
je 0x401f6f
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push 1
push 0x45be54
push dword [eax + 0xc]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402980
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
test edi, edi
jne 0x4029d0
mov ecx, dword [ebp + 8]
push 0x45bf7c
call fcn.00401560
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [section..data]
push ebx
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push edi
push 0
push 0x410
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x402af2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x402ac1
push 0
push 2
mov dword [ebp - 0x448], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402a78
mov edi, dword [ebp + 8]
push 0x45bf7c
mov ecx, edi
call fcn.00401560
add esi, 0xfffffff0
jmp 0x402b0b
lea eax, [ebp - 0x448]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402aa6
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp edi, dword [ebp - 0x440]
je 0x402aa6
lea eax, [ebp - 0x448]
push eax
push ebx
call esi
test eax, eax
jne 0x402a90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401870
mov ebx, dword [ebp - 0x10]
jmp 0x402aef
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ad0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 0xc]
call fcn.004017b0
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.00402bb0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b25
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop ebx
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x402b40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push ebx
push eax
push 0x28
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402ba2
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402c20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00447f00
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0x800
push 0x800
push eax
call fcn.0043cd44
add esp, 0x14
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret
Function at 0x4039f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x403a19
push 0x104
mov ecx, esi
call fcn.00401740
push edi
mov edi, dword [esi]
cmp dword [edi - 8], 0x104
jl 0x403a82
xor ecx, ecx
push ecx
push 0x23
mov dword [edi - 0xc], 0x104
mov eax, dword [esi]
push edi
push ecx
mov word [eax + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStoreprofilesconfig.ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esi]
pop edi
test eax, eax
jne 0x403a59
xor ecx, ecx
jmp 0x403a6b
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403a82
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x403a82
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
pop esi
pop ebp
ret 4
push 0x80070057
call fcn.004018e0
int3

Function at 0x403a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov ecx, 1
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x403ac1
push 0x104
mov ecx, edi
call fcn.00401740
mov ebx, dword [edi]
cmp dword [ebx - 8], 0x104
jl 0x403b6a
xor ecx, ecx
push ecx
push 0x23
mov dword [ebx - 0xc], 0x104
mov eax, dword [edi]
push ebx
push ecx
mov word [eax + 0x208], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStoreApp
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x40
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x403b74
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.AppConfig.ini
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi]
test eax, eax
jne 0x403b36
xor ecx, ecx
jmp 0x403b48
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403b6a
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x403b6a
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
push esi
mov word [eax + ecx*2], dx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004018e0
push 0x8007000e
call fcn.004018e0
int3