joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029fa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402a0a
xor eax, eax
leave
ret
test byte [0x41e9c8], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a5f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402a5f
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a5f
jb 0x402a3b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a5f
push 0x2b
call fcn.00402490
push eax
call fcn.00409581
cmp eax, 1
pop ecx
pop ecx
je 0x402a58
or dword [0x41e9c8], 0xffffffff
jmp 0x402a06
or dword [0x41e9c8], 2
xor eax, eax
inc eax
leave
ret

Function at 0x403211
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402a9c
push 0x41a688
lea ecx, [ebp - 0xc]
call fcn.00402aed
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032ed
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401403
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017a8
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402aed
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x4032bc
push 0x41a684
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push 0x41a67c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push edi
call fcn.00403211
pop ecx
jmp 0x4032cc
push 0
push edi
call esi
test eax, eax
je 0x403310
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403310
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403257
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403310
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403310
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403318
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40331e
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41ea6c], 0
je 0x40332b
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403341
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x40335f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40335b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00403211
pop ecx
pop esi
ret
Function at 0x403415
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004014eb
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403453
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402ad5
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret

Function at 0x40372c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403749
xor eax, eax
jmp 0x4037a2
test al, 0x10
je 0x40375a
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4037a2
mov eax, dword [0x41e9cc]
test eax, eax
jne 0x40376c
push esi
call fcn.004036ff
pop ecx
jmp 0x4037a2
cmp eax, 2
jne 0x40379f
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403763
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403763
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403a96
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402a9c
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403ac7
push esi
lea ecx, [ebp - 0x18]
call fcn.004011b7
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403adb
cmp ax, 0x2f
jne 0x403ae4
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403b0a
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403afd
cmp ax, 0x5c
je 0x403afd
dec esi
test esi, esi
jg 0x403ae8
test esi, esi
je 0x403bb9
and word [edi + esi*2], 0
push edi
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403af9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403b41
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040372c
test eax, eax
pop ecx
pop ecx
je 0x403b41
xor esi, esi
jmp 0x403bde
push edi
call fcn.00401e7e
test eax, eax
pop ecx
jne 0x403b5b
push edi
push 0xc
push 1
call fcn.004095ee
add esp, 0xc
jmp 0x403b3a
cmp esi, ebx
jge 0x403bad
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403b93
jmp 0x403b92
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403b99
cmp ax, 0x2f
je 0x403b99
inc esi
cmp word [edi + esi*2], cx
jne 0x403b82
push edi
mov word [edi + esi*2], cx
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403b4c
cmp esi, dword [ebp - 4]
jl 0x403b5f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403bfe
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403be9
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403be9
cmp ax, 0x7a
ja 0x403be9
cmp word [ecx + 2], 0x3a
jne 0x403be9
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403bfe
push ecx
push 0xc
push 1
call fcn.004095ee
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40491c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.004044a3
not al
xor al, 0x9e
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
invalid
inc ebp
invalid
Function at 0x4053bb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
call fcn.00404481
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004044b3
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404468
add esp, 0xc
invalid
invalid

Function at 0x407550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407503
add esp, 0x1c
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x401bd7
pop dword [ebp - 0x44]
mov eax, 0x401bd7
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x11fea546
add dword [ebp - 0x54], 0x3c53a005
mov dword [ebp - 0x50], 0x9b7e3f42
add dword [ebp - 0x50], 0x96b50d03
mov dword [ebp - 0x4c], 0x3074147
add dword [ebp - 0x4c], 0x494502e7
mov dword [ebp - 0x48], 0xb5607e4b
sub dword [ebp - 0x48], 0xb5607e4b
lea eax, [ebp - 0x54]
push eax
mov eax, 0xaa47aca7
add eax, 0x55f8c3b9
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xbc245947
add dword [ebp - 0x54], 0xb84e100f
mov dword [ebp - 0x50], 0xe843a833
sub dword [ebp - 0x50], 0xa6d746be
mov dword [ebp - 0x4c], 0x550c3e7d
sub dword [ebp - 0x4c], 0xf19cd211
mov dword [ebp - 0x48], 0x61397125
sub dword [ebp - 0x48], 0x61397125
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3254f
push 0
call eax
mov ecx, 0xfeaccb45
sub ecx, 0xfeac943e
mov ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x44]
mov edi, 0x939614c
sub edi, 0x7b52f7da
xor dword [ebp - 0x18], esi
mov edx, dword [esi]
sub dword [ebp - 0xc], ecx
sub edx, edi
xor dword [ebp - 0x24], 0x97d2e030
mov dword [ebx], edx
add ebx, 0xe5d3929e
sub ebx, 0xe5d3929a
add esi, 4
loop 0x401ce9
add eax, 0xceef
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1123a4bc
add ecx, 0xef1c5b44
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40269d
Capabilities:
Encode data using xor

Disassembly:
pushal
lea ecx, [0xf2dfe0a8]
mov eax, 0x200b924d
xadd dl, bh
mov ch, dh
xadd ah, bl
mov al, bl
shld eax, ebp, 0xba
test ah, bh
movzx eax, bh
not edx
shld esi, ebx, 0x4a
test dh, ah
call 0x402661
shrd edx, eax, cl
mov ecx, 0x6503cb87
btc ebp, ebp
mov ecx, 0xb1353625
bswap edx
rcr dl, 0x60
cmp esi, eax
rcl edx, 0xc1
dec edx
bsf esi, ebx
test bh, 0xa8
inc bl
mov edx, ecx
mov ebx, edx
mov dh, bh
mov eax, 0x539b
imul esi, ebp, 0xa87d74d0
and dh, ch
mov bl, dl
xor eax, 0x4b5f
dec ebx
add byte [eax], al
test ecx, 0x1ce4b73c
sub eax, 0x6e0
neg bh
mov ecx, 0
mov dh, 0x80
add ecx, eax
inc dl
add al, bh
lea edx, [0xca71ca7e]
xchg ecx, edi
cmp esi, 0x9aaa
jae 0x4026cc
add dh, dl
sub edi, 0x13d

Function at 0x1147e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1147e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1147e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147e06a
add dl, dl
jne 0x1147e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147e0dc
xor eax, eax
add dl, dl
jne 0x1147e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1147e17d
add dl, dl
jne 0x1147e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1147e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1147e075
mov eax, 1
add dl, dl
jne 0x1147e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1147e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147e0e1
sub eax, ebx
mov ebx, 1
jne 0x1147e128
mov ecx, 1
add dl, dl
jne 0x1147e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1147e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1147e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1147e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1147e136
cmp eax, 0x7d00
jae 0x1147e16d
cmp eax, 0x500
jb 0x1147e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147e075
cmp eax, 0x7f
ja 0x1147e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1147e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1147e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1147e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10226b11
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10259608]
jne 0x10226b1b
repz ret
jmp fcn.1022808a

Function at 0x10228e30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.102266b1
and dword [ebp - 4], 0
cmp dword [0x1025b340], 0
mov ebx, eax
jne 0x10228ee1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10228f92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10228f92
push eax
call fcn.1022663f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1025b340], eax
call esi
push eax
call fcn.1022663f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1025b344], eax
call esi
push eax
call fcn.1022663f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1025b348], eax
call esi
push eax
call fcn.1022663f
pop ecx
mov dword [0x1025b350], eax
test eax, eax
je 0x10228ee1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1022663f
pop ecx
mov dword [0x1025b34c], eax
mov eax, dword [0x1025b34c]
cmp eax, ebx
je 0x10228f39
cmp dword [0x1025b350], ebx
je 0x10228f39
push eax
call fcn.102266ba
push dword [0x1025b350]
mov esi, eax
call fcn.102266ba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10228f39
test edi, edi
je 0x10228f39
call esi
test eax, eax
je 0x10228f30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10228f30
test byte [ebp - 0xc], 1
jne 0x10228f39
or dword [ebp + 0x10], 0x200000
jmp 0x10228f72
mov eax, dword [0x1025b344]
cmp eax, ebx
je 0x10228f72
push eax
call fcn.102266ba
pop ecx
test eax, eax
je 0x10228f72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10228f72
mov eax, dword [0x1025b348]
cmp eax, ebx
je 0x10228f72
push eax
call fcn.102266ba
pop ecx
test eax, eax
je 0x10228f72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1025b340]
call fcn.102266ba
pop ecx
test eax, eax
je 0x10228f92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10228f94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1022b472
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10259090], 0
mov byte [0x10259094], 0
mov dword [0x1025908c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1022b593
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add ecx, 0xfffff560
mov dword [0x10259098], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x10259090]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10259098], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x10259090], edx
mov dword [0x10259084], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x10259094], cl
mov dword [0x10259088], 0x21ee
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov cl, byte [0x10259094]
mov edx, dword [0x10259090]
mov byte [ebx + edx], cl
mov edx, dword [0x10259084]
add edx, 0xfffff153
mov dword [0x10259084], edx
mov ecx, dword [0x1025908c]
add ecx, 1
mov dword [0x1025908c], ecx
cmp ecx, 0x100
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
jl 0x1022b4b2
jmp 0x1022b5c5
mov eax, 0x25fd
xor ecx, ecx
mov dword [0x1025908c], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1022b4b2
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x10259084], 0x25fd
mov eax, dword [0x1025908c]
add eax, 1
mov dword [0x1025908c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1022b593
jmp 0x1022b577
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1022b5cd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x10259084]
add esi, 0xffffeeb0
mov dword [0x10259084], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x1022b641
mov eax, dword [ebp - 0x34]
add esp, 0x4c
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [0x10259088], 0x19f0
mov dword [ebp - 0x38], eax
call fcn.1022b3bb
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1022b044
xor ecx, ecx
mov dword [0x10259088], 0x22ca
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ecx
je 0x1022b5f9
jmp 0x1022b66d
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1022d348]
mov dh, byte [eax + 0x1022d319]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
je 0x1022b602
jmp 0x1022b641
mov eax, dword [ebp - 0x3c]
mov dword [0x10259084], 0x16e2
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1022bb6e
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10259088], 0x190b
mov dword [ecx + 0xd0], 0x4550
mov dword [0x10259084], 0xfffff83d
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x34], ecx
cmp ecx, 0
mov dword [ebp - 0x34], eax
je 0x1022b5f9
mov dword [0x10259088], 0x20b8
mov eax, dword [ebp - 0x40]
add eax, 0x2292
mov dword [ebp - 0x34], eax
jmp 0x1022b5f9
Function at 0x1022ba3c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x10259088], 0x126c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10259084], 0x12da
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1022baf5
mov eax, 1
mov dword [0x10259084], 0xcb8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x1022bb66
jmp 0x1022bb5f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1022bb5f
mov dword [0x10259088], 0xd8e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1022bb24
jmp 0x1022bb5f
mov dword [0x10259088], 0x1430
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1022ba7c
jmp 0x1022bb5f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x1022baa6
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
jl 0x1022baf5
jmp 0x1022baa6
mov dword [0x10259084], 0xfffff6b2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1022bb5f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1022bb5f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1022bada
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x1022bb66
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret