joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501f50
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x562b78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00535a8f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.0054eddd
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0054b814
mov eax, dword [eax]
push 0x61ff3c
push eax
call fcn.0053c974
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.0054ed6f
test bl, bl
je 0x501fd0
push 0x61ff3c
lea ecx, [esp + 0xc]
call fcn.0054f14b
push 0x61ff38
lea ecx, [esp + 0xc]
call fcn.0054f14b
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00535b52
test eax, eax
je 0x502094
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00535d72
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x502050
lea ecx, [esp + 0x18]
call fcn.00535d39
test eax, eax
jne 0x502050
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00535e41
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.00501f50
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x502085
lea ecx, [esp + 0x18]
call fcn.00535d39
test eax, eax
jne 0x50208a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x50208a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00535e41
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.0054ed6f
test edi, edi
jne 0x502000
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00535b08
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.0054ed6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00535acc
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x502190
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x562ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x629954]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.0054eef8
push str..
lea ecx, [esp + 0x10]
call fcn.0054f14b
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x502233
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.0054ed6f
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0054ed6f
xor eax, eax
jmp 0x502378
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x61ff5c
push edx
call fcn.0053c974
add esp, 8
test eax, eax
je 0x502329
lea eax, [esp + 0x48]
push 0x61ff58
push eax
call fcn.0053c974
add esp, 8
test eax, eax
je 0x502329
test ebp, ebp
jne 0x502295
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0053ca23
add esp, 8
test eax, eax
je 0x502329
push esi
lea ecx, [esp + 0x14]
call fcn.0054eef8
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0054f172
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0054f14b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x5022d5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x5022f7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00502190
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x502329
test edi, edi
je 0x50231e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0053ca23
add esp, 8
test eax, eax
jne 0x50231e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.005023a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x502243
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.0054ed6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.0054ed6f
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x5023a0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x562bbb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0053d230
mov eax, dword [0x629954]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0054eef8
push 0x5c
lea ecx, [esp + 8]
call fcn.0054f172
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0054f14b
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x502446
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.0054ed6f
xor eax, eax
jmp 0x5024c3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x5024a1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x502493
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x50246d
jmp 0x5024a1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.0054ed6f
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x5042d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x504373
test eax, eax
jbe 0x504373
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x504373
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x50431e
xor esi, esi
jmp 0x504324
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x50434f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00480410
add esi, eax
push esi
mov ebx, esi
call fcn.00480410
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x504330
pop ebp
test edi, edi
pop edi
jne 0x504373
test ebx, ebx
je 0x504373
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0053d350
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x504685
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x50479d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50479d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00550898
mov esi, eax
test esi, esi
je 0x50479d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x50479d
mov ecx, esi
call fcn.005045b0
cmp edi, eax
jge 0x50479d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x504723
mov dword [esp + 0x34], 1
jmp 0x50477e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x50479d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005028b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x506a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x506a86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x506a86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x506a67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x506e10
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x506e48
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x507b10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x507b59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x507fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x563280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00507b80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00507c00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00507c00
lea ecx, [esi + 0xc]
call fcn.0054ecfa
lea ecx, [esi + 0x10]
call fcn.0054ecfa
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00509190
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00509190
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00509190
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0054ed6f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0054ed6f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x510050
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x51009c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x51009c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x510086
push eax
call ebp
test ax, ax
jl 0x510094
inc esi
add edi, 4
cmp esi, 6
jb 0x510078
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0050fd50
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x513d80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x513de0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x513de0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x513de0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x513de0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x513df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x51d5f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00523a70
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x51d6e9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0051d700
test eax, eax
jne 0x51d6e9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0051d700
test eax, eax
jne 0x51d6e9
lea edx, [esp + 0x10]
push 0x6270f8
push edx
call fcn.0053da90
mov esi, eax
add esp, 8
test esi, esi
jne 0x51d6ba
lea eax, [esp + 0x10]
push 0x6270f4
push eax
call fcn.0053da90
mov esi, eax
add esp, 8
test esi, esi
jne 0x51d6ba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x51d6bd
mov byte [esi], 0
push 0x6268bc
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x51d700
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x51d762
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x5206f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5646a4
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2ac]
mov ebp, ecx
push edi
mov ecx, esi
mov edi, dword [esp + 0x2ac]
lea eax, [ebp + 0x140]
xor ebx, ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp + 0x12c], eax
mov dword [ebp + 0x130], ecx
mov edx, dword [edi]
cmp dword [edx - 8], ebx
jne 0x520769
mov eax, dword [esp + 0x2a4]
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x522eac
push edi
lea eax, [esp + 0x38]
push str._body_
push eax
call fcn.0054f078
push eax
mov ecx, edi
mov dword [esp + 0x2a0], ebx
call fcn.0054eea8
lea ecx, [esp + 0x34]
mov dword [esp + 0x29c], 0xffffffff
call fcn.0054ed6f
push str.__body_
mov ecx, edi
call fcn.0054f14b
mov ecx, dword [ebp + 0x134]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x144], ecx
push 0x68cbac
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0054eddd
push 0x68cbac
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a0], 1
call fcn.0054eddd
push 0x68cbac
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 2
call fcn.0054eddd
push 0x68cbac
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 3
call fcn.0054eddd
mov eax, dword [0x629954]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x230], eax
mov ecx, dword [esp + 0x2b4]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x2a4], 5
call fcn.00523780
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [eax - 8]
cmp eax, ebx
jle 0x522d56
jmp 0x520870

Function at 0x5239b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x564728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x523a60
mov eax, dword [0x629954]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0054f19f
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0054f1ee
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0054f14b
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x523a47
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x523a47
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0054ed6f
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x526b60
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x564bb0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x526d07
mov ecx, dword [0x629954]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x526c5c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00525880
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0054eea8
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0054ed6f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x6268bc
call fcn.0054eddd
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00525c40
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0054eea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0054ed6f
lea ecx, [esp + 0xc]
call fcn.0054f283
mov ecx, dword [esp + 0xc]
push 0x6272fc
push ecx
call fcn.0053c974
add esp, 8
test eax, eax
je 0x526c84
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x526bbd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0054ed6f
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0054ed6f
jmp 0x526d0b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00526900
test eax, eax
push 0
je 0x526cef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00524fa0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x526cd5
cmp eax, 0x64
jg 0x526cc3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x526c60
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x526c60
cmp eax, 0x64
jge 0x526c5c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x526c60
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00524fa0
mov esi, eax
jmp 0x526c60
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x526d15
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x528040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x564bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov dword [esp + 8], ecx
push esi
push edi
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x34]
call fcn.0052a4b0
mov esi, dword [edi]
mov edx, dword [0x68cba8]
lea ebx, [edi + 8]
cmp esi, edx
mov dword [esp + 0x14], edi
mov ebp, ebx
jne 0x528086
mov esi, dword [ebx]
jmp 0x5280a4
mov eax, dword [ebx]
cmp eax, edx
je 0x5280a4
mov ecx, dword [eax]
cmp ecx, edx
je 0x52809a
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x528092
mov esi, dword [eax + 8]
lea ebp, [eax + 8]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
call fcn.0054aefb
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x52811a
mov eax, dword [edi]
mov dword [eax + 4], ecx
mov edx, dword [edi]
mov dword [ecx], edx
mov eax, dword [ebx]
cmp ecx, eax
jne 0x5280c9
mov dword [esi + 4], ecx
jmp 0x5280de
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
mov dword [eax], esi
mov edx, dword [ebx]
mov dword [ebp], edx
mov eax, dword [ebx]
mov dword [eax + 4], ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp dword [eax + 4], edi
jne 0x5280ef
mov dword [eax + 4], ecx
jmp 0x5280fd
mov eax, dword [edi + 4]
cmp dword [eax], edi
jne 0x5280fa
mov dword [eax], ecx
jmp 0x5280fd
mov dword [eax + 8], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x14], edi
mov dword [ecx + 4], edx
mov edx, dword [edi + 0x14]
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
mov dword [edi + 0x14], eax
mov ecx, edi
jmp 0x5281a9
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [edx + 4]
cmp dword [eax + 4], edi
jne 0x528131
mov dword [eax + 4], esi
jmp 0x52813f
mov eax, dword [edi + 4]
cmp dword [eax], edi
jne 0x52813c
mov dword [eax], esi
jmp 0x52813f
mov dword [eax + 8], esi
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
cmp dword [eax], edi
jne 0x528177
mov ebp, dword [0x68cba8]
cmp dword [ebx], ebp
jne 0x52815b
mov ebx, dword [edi + 4]
mov dword [eax], ebx
jmp 0x528177
mov ebx, dword [esi]
mov edx, esi
cmp ebx, ebp
je 0x528171
mov eax, ebx
mov edx, eax
mov eax, dword [edx]
cmp eax, ebp
jne 0x528165
mov eax, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov ebp, dword [edx + 4]
cmp dword [ebp + 8], edi
jne 0x5281a5
mov ebx, dword [0x68cba8]
mov eax, dword [edi]
cmp eax, ebx
jne 0x528190
mov edx, dword [edi + 4]
jmp 0x5281a2
mov eax, dword [esi + 8]
mov edx, esi
cmp eax, ebx
je 0x5281a2
mov edx, eax
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x528199
mov dword [ebp + 8], edx
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 0x14]
mov edi, 1
xor ebp, ebp
cmp eax, edi