joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001deb0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x104], 0
push edi
jne 0x1001def9
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x1001dfc0
push 0
push 0
mov byte [esi + 0x108], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x104], eax
test eax, eax
je 0x1001def9
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x10c]
test eax, eax
jl 0x1001dfa5
mov ecx, dword [esi + 0x120]
sub ecx, dword [esi + 0x11c]
sar ecx, 2
cmp eax, ecx
jae 0x1001dfa5
mov ebx, dword [esi + 0x11c]
cmp ebx, dword [esi + 0x120]
jbe 0x1001df32
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0x110]
mov edx, dword [esi + 0x10c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
test edi, edi
jne 0x1001df6a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov ecx, dword [esp + 0xc]
lea ebx, [ebx + ecx*4]
cmp ebx, dword [eax + 0x10]
ja 0x1001df75
test edi, edi
je 0x1001df6e
mov edi, dword [edi]
jmp 0x1001df70
mov eax, dword [edi]
jmp 0x1001df56
xor edi, edi
cmp ebx, dword [edi + 0xc]
jae 0x1001df7f
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call edi
jmp 0x1001df85
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1001dfb9
call edi
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x1001df98
call edi
mov ecx, dword [ebx]
lea eax, [esi + 0xac]
call fcn.1001ade0
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
call fcn.1001c9f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax]
jmp 0x1001df91
Function at 0x100208f0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test eax, eax
je 0x10020905
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 1
test eax, eax
je 0x10020943
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10020932
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
ret
Function at 0x10021290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10031f2b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x50], 0
je 0x100212df
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x54], 0
mov dword [esp + 0x14], 0
jle 0x100213d6
push 0x28
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0
test esi, esi
je 0x10021332
lea eax, [esi + 4]
push eax
mov dword [esi], 0
call fcn.10021920
push 0
push 0
push 0
push 0
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
jmp 0x10021334
xor esi, esi
push 0
lea edi, [esi + 4]
push 0
push edi
push 0x10021ab0
mov dword [esp + 0x38], 0xffffffff
push 0
push 0
mov dword [esp + 0x30], esi
mov dword [edi + 0xc], 0x10020ee0
mov dword [edi + 0x10], esi
mov dword [edi + 8], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
jne 0x1002139b
test esi, esi
je 0x100213c4
call fcn.100208f0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10021389
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.100219f0
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x100213c4
mov esi, dword [ebx + 0x6c]
mov edx, dword [esi + 4]
add ebx, 0x58
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.10021890
mov ecx, ebx
mov edi, eax
call fcn.10021e40
mov ebx, dword [ebp + 8]
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [ebx + 0x54]
mov dword [esp + 0x14], eax
jl 0x100212f1
xor eax, eax
cmp dword [ebx + 0x70], eax
setne al
mov dword [ebx + 0x50], eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10021400
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x10021420
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x1002142e
cmp edi, eax
je 0x10021434
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0xc], esi
je 0x10021564
test edi, edi
jne 0x10021559
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x1002145d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x10021479
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x100214ba
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100214a9
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x100214cf
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x1002150d
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100214fc
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x1002151b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.100219f0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x10021560
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x1002154a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x10021420
mov eax, dword [edi]
jmp 0x1002144e
mov eax, dword [eax]
jmp 0x1002153b
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x1002159f
jmp 0x10021580
mov esi, dword [eax]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x10021580
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100219f0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x1003073b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1004304c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x10021a61
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10021a50
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x10021a72
push esi
call fcn.10021b70
call fcn.10021cc0
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10021a99
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x10021ed0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
lea eax, [esp + 4]
push eax
xor bl, bl
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10021f0e
cmp dword [esp + 0x14], 2
jne 0x10021f0e
cmp dword [esp + 8], 6
mov al, 1
jae 0x10021f10
mov al, bl
mov ecx, dword [esp + 0x118]
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x118
ret
Function at 0x10021f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x51c
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
cmp edi, ebx
jne 0x10021f6b
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
push esi
push 0x3ff
lea eax, [esp + 0x129]
push ebx
push eax
mov byte [esp + 0x130], bl
call sub.MSVCR90.dll_memset
push 0xfe
lea edx, [esp + 0x36]
xor ecx, ecx
push ebx
mov esi, 0x400
push edx
mov dword [esp + 0x28], esi
mov word [esp + 0x3c], cx
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x3c]
add esp, 0x18
lea ecx, [edi + 8]
test eax, eax
je 0x10021fde
cmp ecx, ebx
je 0x10021fde
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10021fc0
sub eax, esi
inc eax
push eax
lea edx, [esp + 0x28]
push edx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push 0xffffffffffffffff
shr esi, 1
push esi
mov esi, dword [sym.imp.MSVCR90.dll__snwprintf_s]
lea ecx, [esp + 0x134]
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x130]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10022040
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
push 0x400
lea ecx, [esp + 0x128]
push ebx
push ecx
mov dword [esp + 0x20], ebx
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.PnpInstanceID
push edx
call edi
test eax, eax
jne 0x10022138
lea ecx, [esp + 0x124]
push ecx
push 0x10037380
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push 4
push edx
mov word [esp + 0x30], ax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
call esi
lea eax, [esp + 0x30]
push 4
push eax
call dword [sym.imp.MSVCR90.dll__wcslwr_s]
lea ecx, [esp + 0x38]
push 0x10037388
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 0x24
test eax, eax
jne 0x10022138
call fcn.10021ed0
test al, al
je 0x100220e7
mov edx, dword [esp + 0x18]
cmp dword [edx + 0x1a0], 6
jmp 0x10022134
push 0x400
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.MediaSubType
push ecx
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x10022138
cmp dword [esp + 0x124], 1
jne 0x10022138
mov bl, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x524]
pop esi
pop edi
mov al, bl
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x51c
ret
Function at 0x100221b0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
push 0x288
xor bl, bl
mov dword [esp + 0x14], 0x288
call edi
mov esi, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x10022203
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x14]
push ecx
call edi
add esp, 8
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1002226b
test esi, esi
je 0x1002226b
mov edi, esi
lea ecx, [ecx]
mov ecx, edi
call fcn.10021f30
test al, al
jne 0x10022223
mov edi, dword [edi]
test edi, edi
jne 0x10022210
jmp 0x1002222e
mov ecx, ebp
mov eax, edi
call fcn.10022160
mov bl, 1
xor eax, eax
cmp ax, word [ebp]
jne 0x1002226b
mov eax, esi
jmp 0x10022240
lea ecx, [eax + 0x1b0]
test ecx, ecx
jne 0x10022262
mov eax, dword [eax]
test eax, eax
jne 0x10022240
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
mov ecx, ebp
call fcn.10022160
mov bl, 1
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x10022c70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x68], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0x67452301
mov dword [esp + 4], 0xefcdab89
mov dword [esp + 8], 0x98badcfe
mov dword [esp + 0xc], 0x10325476
jb 0x10022cc0
mov ecx, dword [ecx + 4]
jmp 0x10022cc3
add ecx, 4
push ecx
lea ecx, [esp + 4]
call fcn.100223c0
cmp byte [esp + 0x68], 0
jne 0x10022ce4
push esi
lea esi, [esp + 4]
mov byte [esp + 0x6c], 1
call fcn.10022460
pop esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, edi
call fcn.1002dfc6
add esp, 0x70
ret
Function at 0x10022e40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10022ee9
push 0x22c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10022ee2
mov ecx, edi
lea eax, [esp + 0x2c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10022ec6
test dx, dx
je 0x10022ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10022ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10022ea0
xor eax, eax
jmp 0x10022ecb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10022ee0
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10022e97
jmp 0x10022ee2
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x230
ret
Function at 0x10024760
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
push 0x114
lea eax, [esp + 0x10]
mov esi, ecx
push 0
push eax
mov dword [esi + 0x14], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x1c], 2
jne 0x100247cc
mov ecx, esi
call fcn.10024a80
test eax, eax
jne 0x100247e0
mov ecx, esi
call fcn.10024d00
test eax, eax
jne 0x100247e0
call fcn.10024ef0
jmp 0x100247e0
xor edi, edi
mov edi, edi
test eax, eax
jne 0x100247e0
push esi
call fcn.10024920
inc edi
cmp edi, 0xa
jl 0x100247d0
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x10024822
cmp eax, dword [esi + 0x10]
jge 0x10024822
mov edx, eax
shl edx, 7
lea ecx, [edx + esi + 0x18]
push ecx
inc eax
push 0x40
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1002dfc6
add esp, 0x124
ret
mov ecx, dword [esp + 0x128]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1002dfc6
add esp, 0x124
ret
Function at 0x10024ef0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x221c
call fcn.1002ea40
mov eax, dword [0x1004304c]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jmp 0x10024f20
cmp dword [esi + 0x10], 0x20
jge 0x10025092
push edi
push str..PhysicalDrive_d
lea edx, [esp + 0x2c]
call fcn.10025270
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10025084
mov edi, dword [esi + 0x10]
xor eax, eax
push 0x2000
lea ecx, [esp + 0x228]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push ebp
call ebx
test eax, eax
je 0x10024ffc
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x23c]
shl edx, 7
lea ecx, [edx + esi + 0x18]
lea eax, [esp + eax + 0x224]
push ecx
call fcn.100250b0
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_isalnum]
add esp, 4
test eax, eax
je 0x10024ffc
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x10]
jne 0x10025077
push 0x2000
lea ecx, [esp + 0x228]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x2d0c10
push ebp
call ebx
test eax, eax
je 0x10025077
mov ecx, dword [esi + 0x10]
shl ecx, 7
lea ebx, [ecx + esi + 0x18]
lea edi, [esp + 0x234]
call fcn.10025230
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_isalnum]
add esp, 4
test eax, eax
je 0x10025077
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
xor ebx, ebx
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x10024f20
mov ecx, dword [esp + 0x2224]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002dfc6
add esp, 0x221c
ret
Function at 0x1002d8c6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10044890], 0
push esi
jne 0x1002d839
call fcn.1002d75f
test eax, eax
je 0x1002d87c
mov eax, dword [0x10044890]
cmp eax, 1
jne 0x1002d85a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1002d87c
pop esi
ret
push eax
call dword [0x10044898]
test eax, eax
jne 0x1002d8c4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1002d880
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10044890]
call dword [0x10044898]
mov edi, eax
test edi, edi
je 0x1002d8a5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1002d8c1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10044890]
call dword [0x10044894]
add edi, 0x10
cmp edi, esi
jb 0x1002d8ad
mov eax, edi
pop edi
pop esi
ret
jmp 0x1002d826

Function at 0x1002dfc6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004304c]
jne 0x1002dfd0
repz ret
jmp fcn.1002e6b0
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.iz81dgeu]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.iz81dgeu]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.iz81dgeu]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.iz81dgeu]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.iz81dgeu]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.iz81dgeu]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1001ba0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x10040be
pop ebp
ret 4
push dword [0x1007044]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 2
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002555
test al, 0x10
jne 0x1004225
test eax, 0x1000
jne 0x100422d
push esi
push 0
push 0x100000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1004246
mov eax, esi
pop esi
pop ebp
ret 4
or eax, 0xffffffff
jmp 0x100257f
test dword [0x1007040], 0x200
jne 0x1002555
mov byte [0x100fe24], 1
jmp 0x1004225
push dword [ebp + 8]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [0x1007044]
add eax, 0x40
push 4
push eax
call fcn.0100508a
add esp, 0x10
jmp 0x100257c