joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b0
Capabilities:
Continue service
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x44
push ebp
xor eax, eax
push esi
push edi
xor edi, edi
push 0x10000000
push edi
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, edi
je 0x401266
push ebx
push 0xf01ff
push str.Apple_Mobile_Device
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x401253
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je case.default.0x4011bb
cmp dword [esp + 0x20], 4
je case.0x4011bb.4
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push ebx
call esi
mov eax, dword [esp + 0x10]
push eax
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [esp + 0x10]
push edx
push edi
mov ebp, eax
push ebp
push ebx
call esi
test eax, eax
je case.default.0x4011bb
cmp dword [ebp + 4], 2
je 0x4011ad
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je case.default.0x4011bb
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 6
ja case.default.0x4011bb
jmp dword [eax*4 + 0x401270]
push 3
mov edi, 1
call section..text
add esp, 4
test eax, eax
je case.default.0x4011bb
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je case.default.0x4011bb
push 2
jmp 0x401216
lea eax, [esp + 0x38]
push eax
jmp 0x401207
push 6
mov edi, 7
call section..text
add esp, 4
test eax, eax
je case.default.0x4011bb
lea ecx, [esp + 0x38]
push ecx
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je case.default.0x4011bb
push 5
mov edi, 4
call section..text
add esp, 4
test eax, eax
jne case.0x4011bb.4
jmp case.default.0x4011bb
push 5
mov edi, 4
call section..text
add esp, 4
test eax, eax
je case.default.0x4011bb
mov dword [esp + 0x14], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
test ebp, ebp
je 0x401266
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x44
ret
Function at 0x401290
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0x22c], eax
push 0x228
lea eax, [esp + 8]
push 0
push eax
call fcn.0048ab30
add esp, 0xc
lea ecx, [esp]
push ecx
push esi
mov dword [esp + 8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40130a
mov edi, edi
lea edx, [esp + 0x24]
push str.AppleMobileDeviceService.exe
push edx
call fcn.00485d85
add esp, 8
test eax, eax
je 0x401321
lea eax, [esp + 0x24]
push str.AppleMobileDeviceService
push eax
call fcn.00485d85
add esp, 8
test eax, eax
je 0x401321
lea ecx, [esp]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4012d0
xor al, al
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0048532c
add esp, 0x230
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov al, 1
call fcn.0048532c
add esp, 0x230
ret
Function at 0x4034e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4034f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403528
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403524
cmp esi, eax
jae 0x403528
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403514
cmp esi, eax
jb 0x40352e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x404410
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x24c
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0x248], eax
mov eax, dword [esp + 0x254]
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x40444c
test ebx, ebx
je 0x40453f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x40453f
push 0x228
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0048ab30
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404538
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
je 0x404525
xor esi, esi
test ebp, ebp
je 0x4044c2
lea ecx, [esp + 0x48]
push ebp
push ecx
call fcn.00485d85
add esp, 8
test eax, eax
jne 0x4044c2
lea esi, [eax + 1]
test ebx, ebx
je 0x4044d8
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.00485d85
add esp, 8
test eax, eax
je 0x4044dc
test esi, esi
je 0x404525
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__pid:_d__Process32First_Find_th32ProcessID:_d__szExeFile:_s
call fcn.0040bde0
mov edx, dword [esp + 0x3c]
add esp, 0x10
push edx
call fcn.00404680
test eax, eax
je 0x404525
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043e440
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40449d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048532c
add esp, 0x24c
ret 8
Function at 0x404ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5220
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x40], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x80], edi
mov ebx, dword [0x4c6ecc]
lea eax, [esp + 0x40]
add ebx, 0x10
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4c75b0]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.00406630
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], vtable.CMsgWndServer.0
mov byte [esp + 0x80], 1
xor esi, esi
cmp dword [0x4c4738], edi
jne 0x404b96
mov dword [0x4c4738], edi
lea ecx, [esp + 0x3c]
push ecx
push 0x4c6048
mov ebx, 0x4c4708
call fcn.00405810
add esp, 8
push esi
push 0
push 0x86000000
movzx ebx, ax
push 0
push edi
lea eax, [esp + 0x30]
call fcn.00405580
xor ebx, ebx
test eax, eax
jne 0x404c2a
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], vtable.CMsgWndServer.0
cmp eax, ebx
je 0x404be7
push eax
call fcn.0048509e
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x404bfc
push eax
call fcn.0048556b
add esp, 4
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
cmp eax, ebx
je 0x404c15
push eax
call fcn.0048556b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x74
ret
mov edx, dword [esp + 0x20]
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [esp + 0x40]
call fcn.00405dc0
mov esi, eax
call fcn.00405c70
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], vtable.CMsgWndServer.0
cmp eax, ebx
je 0x404c63
push eax
call fcn.0048509e
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x404c78
push eax
call fcn.0048556b
add esp, 4
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
cmp eax, ebx
je 0x404c91
push eax
call fcn.0048556b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x74
ret
Function at 0x404f00
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
sub esp, 0x28c
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x404f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreatePipe___failure__error__ld_n
call fcn.0048633a
add eax, 0x40
push eax
call fcn.0048621e
add esp, 0xc
jmp 0x4050e2
mov eax, dword [esp + 0x10]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x44
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.0048ab30
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff6
mov dword [esp + 0x3c], 0x44
call esi
mov edx, dword [esp + 0x14]
push 0xfffffffffffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
call esi
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0x208
lea eax, [esp + 0x84]
push eax
push 0
mov dword [esp + 0x70], 0x100
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 8
push 1
push 0
push 0
push str.fork_server
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edi, eax
call esi
test edi, edi
jne 0x405045
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failure__error__ld_n
call fcn.0048633a
add eax, 0x40
push eax
call fcn.0048621e
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call esi
jmp 0x4050e2
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x14], ax
mov byte [esp + 0x16], al
push 3
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call esi
test edi, edi
jne 0x405094
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_read_ok_from_IOSDB_Server__error___ld_n
jmp 0x404f55
cmp dword [esp + 0x18], 3
jne 0x4050cc
cmp byte [esp + 0xc], 0x4f
jne 0x4050cc
cmp byte [esp + 0xd], 0x4b
jne 0x4050cc
cmp byte [esp + 0xe], 0xa
jne 0x4050cc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0048532c
add esp, 0x28c
ret
push str.IOSDB_server_didnt_ACK_n
call fcn.0048633a
add eax, 0x40
push eax
call fcn.0048621e
add esp, 8
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0048532c
add esp, 0x28c
ret
Function at 0x407070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x407080
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407090
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4075f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40766a
xor eax, eax
cmp ecx, ebp
je 0x407652
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x407678
cmp ecx, ebp
je 0x40770b
push ecx
jmp 0x407705
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x4076da
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004075f0
mov ebx, eax
cmp ebx, ebp
jne 0x407728
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4076a0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4076ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004077a0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40770b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048532c
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x407737
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40770d
Function at 0x408220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4a54f0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c3518]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40829f
call fcn.00406990
mov esi, eax
jmp 0x408381
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x4082bb
call fcn.00406990
jmp 0x408378
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4082d4
call fcn.00406990
jmp 0x408378
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x408308
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4082f6
lea eax, [ebp]
call fcn.00406930
lea esi, [ebp - 0x1c]
call fcn.004070c0
mov eax, 0x8007000e
jmp 0x408393
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00406950
mov dword [ebp - 4], 1
jmp 0x408331
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40833f
mov esi, 0x8007000e
jmp 0x40837a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40835d
call fcn.00406990
jmp 0x408378
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004080d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x408391
lea eax, [ebp]
call fcn.00406930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0048532c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c360
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5b21
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [0x4c824c]
mov esi, ecx
mov ecx, dword [eax]
push 0x4c824c
mov dword [esp + 0x30], vtable._BaseModule::CAutoLocker.0
mov dword [esp + 0x34], 0x4c824c
call ecx
mov dword [esp + 0x110], 0
mov eax, dword [esi]
sub eax, 0x10
call fcn.00402740
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x110], 1
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x40c41d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40c573
cmp ecx, eax
jg 0x40c573
movzx eax, word [esi + ecx*2]
cmp ax, 0xa
je 0x40c41d
push 1
push 0x4b2c58
lea edx, [esp + 0x1c]
push edx
call fcn.0040b250
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
push 0xc6
push edx
lea eax, [esp + 0x3e]
push eax
mov word [esp + 0x40], dx
call fcn.0048ab30
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
movzx eax, word [esp + 0x2c]
add esp, 0xc
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push 0x4b2c5c
mov eax, 0x400
lea ebx, [esp + 0x50]
call fcn.0040c090
add esp, 0x1c
mov ecx, ebx
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c8b0
add esp, 8
mov ebx, eax
mov edi, 0x4c8268
mov byte [esp + 0x110], 2
call fcn.0040c9e0
mov byte [esp + 0x110], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4c8278]
mov ecx, eax
sub ecx, dword [0x4c8274]
sar ecx, 2
cmp ecx, 0x64
jbe 0x40c503
call fcn.0040c640
mov eax, dword [0x4c8278]
sub eax, dword [0x4c8274]
mov byte [esp + 0x110], 0
sar eax, 2
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c532
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x110], 0xffffffff
mov ecx, dword [0x4c824c]
mov edx, dword [ecx + 4]
push 0x4c824c
call edx
mov eax, edi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0048532c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403c30
int3
Function at 0x40c640
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a517b
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x4c3518]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3518]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [0x4c824c]
mov ecx, dword [eax]
push 0x4c824c
mov dword [esp + 0x30], vtable._BaseModule::CAutoLocker.0
mov dword [esp + 0x34], 0x4c824c
call ecx
xor edi, edi
mov dword [esp + 0x108], edi
mov eax, dword [0x4c8280]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c6b0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004851c5
add esi, esi
push esi
mov ebp, eax
push edi
push ebp
call fcn.0048ab30
add esp, 0x10
shr esi, 1
mov ecx, esi
je 0x40c709
cmp ecx, 0x7fffffff
ja 0x40c709
mov eax, dword [0x4c8280]
push eax
mov eax, 0x7ffffffe
mov edx, ebp
call fcn.0040bd80
push ebp
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x40c726
push edi
push ebp
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebp
call esi
test eax, eax
je 0x40c852
xor eax, eax
lea edx, [esp + 0x18]
xor ecx, ecx
push edx
mov word [esp + 0x1c], cx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xc6
lea ecx, [esp + 0x3a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x40], ax
call fcn.0048ab30
movzx edx, word [esp + 0x30]
movzx eax, word [esp + 0x2e]
movzx ecx, word [esp + 0x2c]
push edx
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x30]
push edx
push eax
push ecx
push 0x4b2c5c
mov eax, 0x400
lea ebx, [esp + 0x5c]
call fcn.0040c090
mov edx, dword [0x4c8280]
push 0x4b2c9c
push edx
call fcn.00487ee9
mov ebx, eax
add esp, 0x30
test ebx, ebx
je 0x40c852
mov dword [esp + 0x28], 1
cmp dword [0x4c8284], edi
je 0x40c7eb
lea eax, [esp + 0x34]
push eax
push 0x4b2ca0
push ebx
call fcn.00487f53
add esp, 0xc
mov dword [0x4c8284], edi
mov eax, dword [0x4c8278]
mov edi, eax
sub edi, dword [0x4c8274]
xor esi, esi
sar edi, 2
test edi, edi
jle 0x40c83f
jmp 0x40c815
mov eax, dword [0x4c8278]
sub eax, dword [0x4c8274]
sar eax, 2
cmp esi, eax
jb 0x40c827
call fcn.00485b29
mov ecx, dword [0x4c8274]
mov eax, dword [ecx + esi*4]
push eax
push ebx
call fcn.00487f53
inc esi
add esp, 8
cmp esi, edi
jl 0x40c810
push ebx
call fcn.00488171
push ebx
call fcn.00488244
mov edi, dword [esp + 0x30]
add esp, 8
test ebp, ebp
je 0x40c85f
push ebp
call fcn.00486213
add esp, 4
mov ecx, 0x4c8248
call fcn.0040c580
mov dword [esp + 0x108], 0xffffffff
mov edx, dword [0x4c824c]
mov eax, dword [edx + 4]
push 0x4c824c
call eax
mov eax, edi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0048532c
add esp, 0xf8
ret