joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0f5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40dcb8
call fcn.0040a2f4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40a135
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a135
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a14d
cmp eax, 0x20b
je 0x40a13a
mov dword [ebp - 0x1c], ebx
jmp 0x40a161
cmp dword [ecx + 0x84], 0xe
jbe 0x40a135
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x40a15b
cmp dword [ecx + 0x74], 0xe
jbe 0x40a135
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x410d50], 0xffffffff
or dword [0x410d54], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x410cf0]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x410cec]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x410d4c], eax
call fcn.0040a4a8
call fcn.0040a548
cmp dword [0x4102e0], ebx
jne 0x40a1c1
push fcn.0040a548
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0040a536
push 0x410024
push 0x410020
call sub.MSVCR71.dll__initterm
push 0x40a4ec
call fcn.0040a0e3
mov eax, dword [0x410ce8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x410ce4]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x40a215
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x41001c
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40a293
cmp al, bl
je 0x40a23f
cmp dword [ebp - 0x20], ebx
jne 0x40a293
mov al, byte [esi]
cmp al, bl
je 0x40a24f
cmp al, 0x20
ja 0x40a24f
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40a23f
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x40a26b
movzx eax, word [ebp - 0x54]
jmp 0x40a26e
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0040ab30
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x40a28b
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x40a2e8
cmp al, 0x22
jne 0x40a2a2
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x40a2b5
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x40a22d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040a32f
ret
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.10002ca0
add esp, 0x10
call dword [ebp - 4]
push 0x306c
push 0
push eax
call dword [ebp - 8]
push 0x306c
mov esi, eax
push 0
push esi
call fcn.10010260
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.10007bf0
push 0
push esi
call fcn.10007d10
push esi
call fcn.10002e30
push esi
call fcn.10006010
push esi
call fcn.10010970
push esi
call fcn.10004d00
add esp, 0x24
test eax, eax
jne 0x10001094
push str.____Init_error___config_signature_not_found._n
call fcn.10006110
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.10004d60
add esp, 4
cmp dword [esi + 0x178], 3
je 0x100010b9
push esi
call fcn.10005610
push str.Program_started._n
call fcn.10006160
add esp, 8
push esi
call fcn.10004ab0
push esi
call fcn.10004a40
push esi
call fcn.100052d0
add esp, 0xc
test eax, eax
jne 0x100010e7
push str.____Error_parsing_and_loading_config___exiting._n
call fcn.10006110
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.___JSON_config_loaded_successfully_n
call fcn.10006110
push esi
call fcn.10005000
push esi
call fcn.10006810
push esi
call fcn.10004e10
add esp, 0x10
cmp dword [esi + 0x188], 0
jne 0x1000111e
push esi
call fcn.10007eb0
push esi
call fcn.10007d60
add esp, 8
push esi
call fcn.10005960
push esi
call fcn.10002a00
push str.____All_task_finished__locker_exiting._n
call fcn.10006110
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
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
cmp dword [ebx + 0xe40], ecx
jle 0x10001e40
push esi
push edi
lea edi, [ebx + 0xe50]
mov eax, ebx
mov dword [ebp - 0xc], edi
nop dword [eax + eax]
mov ebx, dword [edi]
xor edi, edi
cmp dword [ebx + 8], edi
jle 0x10001e11
lea esi, [ebx + 0xc]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], 0
push eax
push esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10001da8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.____error_call_GetDiskFreeSpaceExW__ws___code__d_n
call fcn.10006110
add esp, 0xc
jmp 0x10001df1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3068], 0
jne 0x10001dd0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
shrd ecx, eax, 0x14
push ecx
push esi
shr eax, 0x14
push str.___Free_space_of_path__ws:__d_MB_n
call fcn.10006110
add esp, 0xc
push 0
push 0x64
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1000f830
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edx
push eax
call fcn.1000f930
cmp eax, 2
jle 0x10001e06
inc edi
add esi, 0x20a
cmp edi, dword [ebx + 8]
jl 0x10001d50
mov ecx, dword [ebp - 4]
jmp 0x10001e0e
mov ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
inc ebx
add edi, 0x30
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
cmp ebx, dword [eax + 0xe40]
jl 0x10001d40
pop edi
pop esi
mov dword [eax + 0x3068], 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x3068], 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001e60
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 0x10001eb8
lea edi, [ebx + 0x1488]
nop
mov eax, dword [edi]
test eax, eax
je 0x10001ee5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10001ed3
inc esi
add edi, 4
cmp esi, dword [ebx + 0x1184]
jl 0x10001e90
lea edi, [ebx + 0x14c8]
mov eax, dword [ebp - 4]
test eax, eax
jns 0x10001ef2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e77
push dword [ebx + esi*4 + 0x1488]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001eb2
mov eax, esi
lea edi, [ebx + 0x14c8]
mov dword [ebp - 4], eax
jmp 0x10001ebb
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 0x10001f04
push 0
add esi, 0x231
push 0
lea eax, [ebx + esi*8]
push eax
push 0x10007b10
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 0x10002940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x30
call fcn.10006350
mov edi, eax
mov eax, dword [ebp + 8]
push 0x3d38
mov dword [edi], 2
mov dword [edi + 4], eax
call fcn.10006350
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 0x100029ba
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 0x100029a3
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 0x10007c80
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 0x10002ca0
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.10008260
add esp, 0x10
test eax, eax
je 0x10002d39
nop dword [eax]
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push 1
push 0x1a
push eax
push dword [esi + 0x30]
call fcn.10008260
add esp, 0x10
test eax, eax
jne 0x10002d20
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 0x10002e1d
nop dword [eax]
mov eax, dword [esi]
push 0
add eax, ecx
lea ecx, [ebp - 0x24]
push 0xf
push ecx
push eax
call fcn.10008260
add esp, 0x10
test eax, eax
je 0x10002db2
mov eax, dword [ebp - 4]
inc edi
mov ecx, dword [ebp - 8]
add esi, 4
add ebx, 2
cmp edi, dword [eax + 0x18]
jb 0x10002d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx]
test ecx, ecx
js 0x10002e1d
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 0x10002e30
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 [0x10011470]
movq xmm0, qword [str.LoadLibraryA]
mov dword [ebp - 0x14], eax
mov al, byte [0x10011474]
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 [0x10011480]
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 [0x1001149c]
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 [0x10011494]
mov eax, dword [esi + 8]
movq qword [ebp - 0xc], xmm0
call eax
mov dword [esi + 0x20], eax
movzx eax, word [0x100114b0]
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 [0x100114bc]
movq xmm0, qword [str.NtQueryObject]
mov dword [ebp - 0x14], eax
movzx eax, word [0x100114c0]
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 0x10004a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push str.___Checking_mutex..._n
call fcn.10006110
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 0x17c], 0
je 0x10004a69
mov dword [ebp + 8], str.____Skip_mutex_check_by__nomutex_param._n
pop ebp
jmp fcn.10006110
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 0x10004a8e
cmp eax, 0xb7
jne 0x10004aa3
push str.____Exiting_by_mutext_check_n
call fcn.10006110
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret
Function at 0x10004b40
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 0x10004b60
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 0x10004be6
push edi
push str.____WnetOpenEnumA_failed_with_error__d_n
call fcn.10006110
add esp, 8
cmp edi, 0x4b8
jne 0x10004bdd
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push eax
push pe_nt_image_headers32
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.10006110
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call fcn.10006350
add esp, 4
mov edi, eax
push dword [ebp - 4]
push 0
push edi
call fcn.10010260
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 0x10004ca6
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], eax
jbe 0x10004bf3
mov ebx, edi
mov dword [ebp - 0x10], edi
cmp dword [edi + 4], 1
mov ecx, dword [ebp + 0x14]
jne 0x10004c6e
cmp dword [edi + 8], 3
jne 0x10004c6e
cmp esi, ecx
jge 0x10004c6e
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dl, byte [ecx]
test dl, dl
je 0x10004c67
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 0x10004c50
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
inc esi
mov ecx, dword [ebp + 0x14]
test dword [ebx + 0xc], 2
je 0x10004c92
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
mov dword [eax], esi
call fcn.10004b40
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 0x10004c27
jmp 0x10004bf3
cmp eax, 0x103
je 0x10004cbb
push eax
push str.____WNetEnumResource_failed_with_error__d_n
call fcn.10006110
add esp, 8
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], esi
call fcn.100063a0
add esp, 4
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
test eax, eax
je 0x10004cec
push eax
push str.WNetCloseEnum_failed_with_error__d_n
call fcn.10006110
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 0x10004e10
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.10010260
push 0x105
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10010260
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 0x10004e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_FindFirstVolumeA____code:__d_n
call fcn.10006110
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 0x10004e9b
nop
inc eax
cmp byte [ebp + eax - 0x110], 0
jne 0x10004e90
dec eax
cmp cl, 0x5c
jne 0x10004fcd
cmp ch, cl
jne 0x10004fcd
cmp byte [ebp - 0x10e], 0x3f
jne 0x10004fcd
cmp byte [ebp - 0x10d], cl
jne 0x10004fcd
lea esi, [ebp - 0x110]
add esi, eax
cmp byte [esi], cl
jne 0x10004fcd
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 0x10004fbf
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 0x10004f91
mov bh, byte [ebp - 0x320]
lea eax, [ebp - 0x320]
test bh, bh
je 0x10004f8e
mov dl, bh
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x10004f45
add dl, 0xe0
add dl, 0xbf
movsx ecx, dl
imul ecx, ecx, 0x105
add ecx, 0x15c0
add ecx, edi
cmp byte [ecx], 0
jne 0x10004f7c
mov edx, dword [ebp - 0x218]
test dl, dl
je 0x10004f7c
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 0x10004f70
test bh, bh
je 0x10004f86
inc eax
cmp byte [eax], 0
jne 0x10004f80
mov bh, byte [eax + 1]
inc eax
test bh, bh
jne 0x10004f38
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 0x10004e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10004fe1
push eax
push str.____error_call_FindNextVolumeA____code__d_n
jmp 0x10004fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____error_call_QueryDosDeviceA____code:__d_n
jmp 0x10004fd9
lea eax, [ebp - 0x110]
push eax
push str.____FindFirstVolumeW_FindNextVolumeW_returned_a_bad_path:__s_n
call fcn.10006110
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 0x10005000
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.10006110
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.10010260
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.10010260
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x68
lea eax, [ebp - 0x100]
push eax
push 0
push 0x200
call fcn.10007480
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.10007480
inc esi
add esp, 0x18
cmp esi, 0x2000
jl 0x100050e0
push 0x2c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.10010260
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 0x10007c80
push 0
push 0
call edi
mov dword [ebp + esi*4 - 0x20], eax
inc esi
cmp esi, 8
jl 0x10005160
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 0x10005195
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