joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51a400
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x218
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
push 0x56db04
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x1c]
push eax
push 0x53c0b0
push 0x104
push ecx
mov dword [esp + 0x24], esi
call fcn.0042dfe0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51a547
lea eax, [esp + 0x18]
push eax
call fcn.004ae180
add esp, 4
test eax, eax
je 0x51a547
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0xc], edi
je 0x51a547
push ebp
push 0x56dafc
push 0x56dae4
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, esi
je 0x51a52f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push ebp
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov ebp, eax
je 0x51a52f
test ebp, ebp
je 0x51a52f
lea esi, [ebp + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx], edi
je 0x51a52b
mov ecx, esi
xor eax, eax
mov edx, ecx
mov esi, dword [esp + 0x18]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1f21bc
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov edi, dword [ebx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
push ecx
call fcn.0041e550
mov edx, dword [ebx]
lea esi, [ebx + 4]
push edx
push esi
call fcn.00495d60
mov eax, dword [esi]
add esp, 0x14
test eax, eax
je 0x51a52b
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4
Function at 0x51a560
Capabilities:
Get file size

Disassembly:
sub esp, 0x624
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
test ecx, ecx
je 0x51a6f2
mov ebp, dword [esp + 0x63c]
mov ecx, 0x82
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x638]
push ebp
push eax
push 0x53c0b0
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.0042dfe0
add esp, 0x14
lea edx, [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x51a6f0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x51a6f0
cmp edi, 0xffffffff
je 0x51a6f0
mov eax, dword [ebx + 4]
push 0
push 0x539b44
push ebp
push eax
call fcn.00496dd0
add esp, 0x10
cmp edi, eax
jne 0x51a6f0
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], 0
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], ax
push 0x104
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x644]
test eax, eax
je 0x51a68c
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x220]
push ecx
push 0x56db24
push ebp
push edx
call fcn.00496be0
add esp, 0x14
lea eax, [esp + 0x428]
lea ecx, [esp + 0x10]
push 0x104
push eax
push ecx
mov ecx, ebx
call fcn.0051a2a0
jmp 0x51a6bf
mov eax, dword [ebx + 4]
lea edx, [esp + 0x220]
push edx
push 0x56db1c
push ebp
push eax
call fcn.00496be0
add esp, 0x14
lea ecx, [esp + 0x428]
lea edx, [esp + 0x10]
push 0x104
push ecx
push edx
mov ecx, ebx
call fcn.0051a140
lea eax, [esp + 0x21c]
push 0x104
lea ecx, [esp + 0x42c]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x51a6f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x624
ret 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x624
ret 0xc
Function at 0x51c818
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af70
push 0x51d85e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x51c89e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x51c876
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x51c8a4
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x51c86e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x51c86e
mov al, 1
jmp 0x51c870
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51c903
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x59cf00]
test esi, esi
je 0x51c927
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x51c90b
pop esi
pop ecx
ret

Function at 0x51c92a
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59cf0c], eax
je 0x51c940
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x59cf1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x51c98d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x51c97e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x51c97e
push eax
call fcn.0051c9f4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.0051d79a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51c94f
mov dword [0x59cf1c], ebx
call fcn.0051c9cd
mov esi, dword [0x59cf18]
cmp esi, ebx
je 0x51c9ba
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.0051d79a
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x51c9a2
pop edi
mov dword [0x59cf18], ebx
mov dword [0x59cf0c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x51cc77
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x59cf10]
push esi
test eax, eax
push edi
jne 0x51cce1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x51ccdf
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51cca3
push 8
pop edi
jmp 0x51ccbe
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x51cccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0051d79a
pop ecx
and dword [0x59cf14], 0
mov dword [0x59cf10], edi
mov eax, edi
jmp 0x51cce1
mov dword [esi + 4], edi
mov eax, dword [0x59cf18]
mov dword [esi], eax
mov dword [0x59cf18], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x51cf9e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x51cfc2
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x51cfc5
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x51cfd8
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x51cfdf
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x59cf04]
mov ecx, dword [0x59cf00]
test eax, eax
jne 0x51cff9
test ecx, ecx
je 0x51d00e
mov eax, ecx
mov dword [0x59cf04], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x51d00e
cmp edx, dword [ebp + 8]
jb 0x51d00e
cmp edx, dword [ebp - 4]
jbe 0x51d167
mov eax, ecx
test ecx, ecx
mov dword [0x59cf04], eax
je 0x51d03e
test eax, eax
je 0x51d032
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x51d032
cmp ecx, dword [ebp + 8]
jb 0x51d032
cmp ecx, dword [ebp - 4]
jbe 0x51d167
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x59cf04], eax
jne 0x51d01d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x51d0a6
cmp edi, 0x70000000
jb 0x51d063
cmp edi, 0x80000000
ja 0x51d063
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51d0a6
cmp dword [ebp - 0x10], ebx
jne 0x51d07e
cmp dword [ebp - 0x14], ebx
jae 0x51d08e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x51d04e
jmp 0x51d0a6
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59cf04], eax
jne 0x51d11d
cmp esi, dword [ebp - 4]
jae 0x51d18e
cmp esi, 0x70000000
jb 0x51d0c4
cmp esi, 0x80000000
ja 0x51d0c4
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51d18e
cmp dword [ebp - 0x10], ebx
jne 0x51d112
cmp dword [ebp - 0x14], ebx
jb 0x51d112
mov ecx, esi
and ecx, 0xffff
je 0x51d0fa
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x59cf04], eax
jne 0x51d11d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x51d0a6
mov dword [eax], 0x52727464
mov eax, dword [0x59cf04]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x59cf04]
mov edx, dword [0x59cf00]
mov dword [eax + 4], edx
mov eax, dword [0x59cf04]
mov dword [0x59cf00], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x51d14f
mov eax, dword [0x59cf04]
mov dword [eax + 8], ecx
mov eax, dword [0x59cf04]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x51d18e
cmp esi, dword [ebp - 4]
ja 0x51d18e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x51d190
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51d195
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52af80
push 0x51d85e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51d20a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x51d206
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x51d206
cmp word [eax + 0x14], 0
jne 0x51d1fb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x51d20c
mov eax, ecx
jmp 0x51d1f5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51d21b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x59cf0c], eax
je 0x51d23a
mov eax, 0x10dd
jmp 0x51d310
mov eax, dword [0x59cf10]
test eax, eax
jne 0x51d310
mov edi, dword [ebp + 8]
test edi, edi
jne 0x51d256
push 6
pop eax
jmp 0x51d310
cmp dword [edi], 0
jne 0x51d268
push 6
pop eax
mov dword [0x59cf10], eax
jmp 0x51d30a
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x51d27b
push 8
pop edi
jmp 0x51d2f4
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0051c7b0
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x51d2e9
cmp ecx, 0x17
ja 0x51d2e9
cmp dword [edi + 0x1c], eax
jne 0x51d2e9
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x51d2bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x51d2f4
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x59cf1c]
mov dword [esi], eax
mov dword [0x59cf1c], esi
xor eax, eax
jmp 0x51d310
cmp dword [0x59cf08], edx
push 9
pop edi
jne 0x51d2fa
mov dword [0x59cf10], edi
test esi, esi
je 0x51d305
push esi
call fcn.0051d79a
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x59cf14], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000838d
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x100083af
mov eax, 0xfffffffd
jmp 0x10008427
mov ebx, dword [0x100f4f90]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x100083f5
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x100f4f90]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x1000841d
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x10008427
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dd5c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret

Function at 0x10021f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100812d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1007694e
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10023730
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10021f84
jmp dword [ecx*4 + 0x100220ec]
mov al, byte [esi]
test al, al
je 0x10021fb2
cmp al, 0x20
je 0x10021f9e
cmp al, 0xa1
jne 0x10021fb2
cmp byte [esi + 1], al
jne 0x10021fb2
test al, 0x80
je 0x10021faa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10021fb2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10021f91
test ecx, ecx
je case.default.0x10021f84
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10021f84
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10021ff8
cmp dl, 0xa1
jne 0x10021fec
cmp byte [eax + 1], 0xa1
jne 0x10021fec
test ecx, ecx
jne 0x10021fe4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002200c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10022026
jmp 0x1002200c
cmp dl, 0x20
jne 0x1002200a
test ecx, ecx
jne 0x10022003
mov edi, eax
mov ecx, 1
jmp 0x1002200c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10021fcc
cmp ecx, 1
jne case.default.0x10021f84
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10021f84
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10021f84
mov al, byte [esi]
test al, al
je 0x1002207e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10022064
mov cl, byte [esi + 1]
test cl, cl
je 0x1002207e
cmp al, 0xa1
jne 0x10022054
cmp cl, al
je 0x10022061
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10023a00
inc esi
jmp 0x10022076
cmp al, 0x20
je 0x10022076
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10023a40
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002203d
push 0
lea ecx, [esp + 0x14]
call fcn.10023a40
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002cdd0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100220b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10087f10
call fcn.10023930
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100768e0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10023050
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x10096224
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10023010
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100230fa
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x1002315b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x100230dc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x100230e4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.10067ba0
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1002314f
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x1002312d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x100278a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008165b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.10076655
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10027922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100745a4
mov eax, dword [eax]
push 0x10096230
push eax
call fcn.100673b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100768e0
test bl, bl
je 0x10027922
push 0x10096230
lea ecx, [esp + 0xc]
call fcn.10076c70
push 0x10099d78
lea ecx, [esp + 0xc]
call fcn.10076c70
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1002795e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100768e0
jmp 0x10027a29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100279e2
lea edx, [esp + 0x7c]
push 0x10099d74
push edx
call fcn.100673b4
add esp, 8
test eax, eax
je 0x100279e2
lea eax, [esp + 0x7c]
push 0x10099d70
push eax
call fcn.100673b4
add esp, 8
test eax, eax
je 0x100279e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10027972
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100768e0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10028220
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10028282
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x10028290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100816db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100f1034]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x100283c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100282f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100768e0
xor eax, eax
jmp 0x1002843f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10076a1d
push esi
lea ecx, [esp + 0xc]
call fcn.10076cac
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002841d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10028220
test eax, eax
jne 0x1002841d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.10028220
test eax, eax
jne 0x1002841d
lea eax, [esp + 0x14]
push 0x10099d8c
push eax
call fcn.10068430
mov esi, eax
add esp, 8
test esi, esi
jne 0x100283fc
lea ecx, [esp + 0x14]
push 0x10099d88
push ecx
call fcn.100683b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100283fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x100283ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100769cd
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002830e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100768e0
xor eax, eax
jmp 0x1002843f
mov byte [esi], 0
push 0x10099d84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.100768e0
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4