joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x45c050]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402a4f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402ab5
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
lea eax, [esp + 0x34]
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402a96
test dl, dl
je 0x402a92
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402a96
add ecx, 2
add eax, 2
test dl, dl
jne 0x402a76
xor eax, eax
jmp 0x402a9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x402aad
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x402a70
jmp 0x402ab5
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret

Function at 0x403680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4477e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x104
call fcn.0041ffba
add esp, 4
lea ecx, [ebp - 0x12c]
mov edx, str.Settings.ini
call fcn.00402790
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x4036de
mov esi, dword [esi]
push 0x104
call fcn.0041ffba
add esp, 4
mov edi, eax
push esi
push 0x104
push edi
push 0
push str.PortList
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x403740
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403736
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037d4
push edx
push ecx
call fcn.0041ffac
add esp, 8
mov dword [ebp - 0x11c], 0
mov ecx, 0x71
mov dword [ebp - 0x118], 0xf
xor edx, edx
mov byte [ebp - 0x12c], 0
mov al, byte [edx + 0x4567c4]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x158], al
and ecx, 0x800000ff
jns 0x403782
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x2b
jl 0x403762
push edi
push ebx
lea eax, [ebp - 0x158]
mov byte [ebp - 0x12d], 0
push eax
lea eax, [ebp - 0x114]
push str._s_action_s_protocolTCP_localport_s_nameTCP___nul
push eax
call fcn.00401090
lea eax, [ebp - 0x114]
push eax
call fcn.00428267
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
call fcn.00429c86
int3
Function at 0x4037e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4477e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x104
call fcn.0041ffba
add esp, 4
lea ecx, [ebp - 0x12c]
mov edx, str.Settings.ini
call fcn.00402790
mov esi, eax
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x40383e
mov esi, dword [esi]
push 0x104
call fcn.0041ffba
add esp, 4
mov edi, eax
push esi
push 0x104
push edi
push 0
push str.PortList
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x4038a0
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403896
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403934
push edx
push ecx
call fcn.0041ffac
add esp, 8
mov dword [ebp - 0x11c], 0
mov ecx, 0x71
mov dword [ebp - 0x118], 0xf
xor edx, edx
mov byte [ebp - 0x12c], 0
mov al, byte [edx + 0x4567c4]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x158], al
and ecx, 0x800000ff
jns 0x4038e2
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x2b
jl 0x4038c2
push edi
push ebx
lea eax, [ebp - 0x158]
mov byte [ebp - 0x12d], 0
push eax
lea eax, [ebp - 0x114]
push str._s_action_s_protocolUDP_localport_s_nameUDP___nul
push eax
call fcn.00401090
lea eax, [ebp - 0x114]
push eax
call fcn.00428267
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
call fcn.00429c86
int3
Function at 0x403940
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
push 0
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0x31], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x456b58
push 1
push 0
push 0x456c94
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [sym.imp.ole32.dll_CoUninitialize]
test eax, eax
jns 0x40398e
call ebx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x4039b3
call ebx
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
jns 0x4039d6
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call ebx
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x403ad9
mov ebx, dword [ebp - 0x10]
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x403aad
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x456bb0
push ecx
call dword [eax]
test eax, eax
js 0x403aad
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x403aad
mov eax, dword [ecx]
lea edx, [ebp - 8]
push edx
push ecx
call dword [eax + 0x6c]
cmp dword [ebp - 8], 2
jne 0x403aad
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ffba
add esp, 4
mov edi, eax
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push edi
mov esi, eax
call fcn.0041ff77
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x20], esi
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x1c]
test eax, eax
mov eax, dword [ebp - 0x10]
push eax
setns byte [ebp - 0x31]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, 2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ecx]
push 1
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x403a00
mov ebx, dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call ebx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x31]
xor ecx, ebp
pop esi
pop ebx
call fcn.0041ff69
mov esp, ebp
pop ebp
ret
Function at 0x43451f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ea40
push 0x44ea38
push str.FlsAlloc
push 0x1e
call fcn.0043438c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x434553
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a1ec]
call esi
jmp 0x434559
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43459d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44ea50
push 0x44ea48
push str.FlsGetValue
push 0x20
call fcn.0043438c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4345d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x44a1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x436913
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004365b5

Function at 0x43691e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00436744

Function at 0x438948
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420e30
mov eax, dword [0x45c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0043523f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43898a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x438ae6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00447080
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x45e3e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00439361
mov ecx, dword [esi*4 + 0x45e3e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x438adf
cmp eax, dword [edi + ecx + 0x24]
jne 0x438adf
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x438adf
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00439361
add esp, 0x14
test edx, edx
jl 0x438adf
jg 0x438a55
test eax, eax
jb 0x438adf
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x438adf
jl 0x438a6f
cmp dword [ebp - 0x1008], eax
ja 0x438adf
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x438a8d
test ebx, ebx
je 0x438ac6
cmp ecx, edi
jae 0x438ac6
mov al, byte [ecx]
cmp al, 0xd
jne 0x438aa7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x438ab3
cmp byte [ecx + 1], 0xa
jne 0x438ab3
inc ecx
jmp 0x438ab3
movzx eax, al
movsx eax, byte [eax + 0x45c998]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x438a8d
cmp edx, ebx
jne 0x438a8d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x438ae4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ff69
leave
ret
Function at 0x43da99
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 0x43db36
push ebx
push esi
call fcn.0043da62
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.0043b9d6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43dae3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43db35
push edi
push eax
call fcn.004333c9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43db03
call fcn.0043338f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43db34
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043b9d6
add esp, 0x20
test eax, eax
jne 0x43db22
push edi
call fcn.0043338f
jmp 0x43db2a
push ebx
call fcn.0043338f
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 0x43db39
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43db4a
pop esi
ret
push ebx
push edi
push esi
call fcn.0043da62
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004333c9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43db72
push ebx
push esi
push edi
call fcn.00421810
add esp, 0xc
push 0
call fcn.0043338f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43e2be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043dde5
Function at 0x442097
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 + 0x45e3e0]
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 0x4420d7
cmp byte [ebx], 0xa
jne 0x4420d7
or byte [eax + edi + 0x28], 4
jmp 0x4420dc
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4421da
mov al, byte [edx]
cmp al, 0x1a
je 0x4421bc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44210b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x442130
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44213a
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 0x4420ed
jmp 0x4421da
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 0x4421b7
cmp dword [ebp - 0xc], 0
je 0x4421b7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45e3e0]
test byte [eax + edi + 0x28], 0x48
je 0x442191
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44217c
mov byte [esi], dl
jmp 0x44218d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45e3e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4421da
cmp byte [ebp - 1], 0xa
jne 0x4421a0
cmp esi, ebx
jne 0x4421a0
mov byte [esi], 0xa
jmp 0x4421d9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043937f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4421da
mov byte [esi], 0xd
jmp 0x4421d9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45e3e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4421d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4421da
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4421e3
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 + 0x45e3e0]
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 0x442226
cmp word [esi], dx
jne 0x442226
or byte [edi + eax + 0x28], 4
jmp 0x44222b
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 0x44237e
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 0x44235e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44226d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4422a3
cmp eax, edx
jae 0x4422af
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 0x442245
jmp 0x44237e
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 0x44235a
cmp dword [ebp - 0x14], 0
je 0x44235a
mov eax, dword [ebx*4 + 0x45e3e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x442332
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4422fb
mov word [esi], cx
jmp 0x44232e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45e3e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45e3e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45e3e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44237e
pop ebx
cmp word [ebp - 4], bx
jne 0x442343
cmp esi, dword [ebp + 0xc]
jne 0x442343
mov word [esi], bx
jmp 0x44237b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043937f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44237e
push 0xd
jmp 0x442377
mov ecx, dword [ebx*4 + 0x45e3e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x442375
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44237e
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 0x10006c47
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x10006cd2
jmp 0x10006cb1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10006d12
jmp 0x10006d54
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10006c89
jmp 0x10006d54
mov dword [0x100c1cc8], 0x829
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x10006c71
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x10006d54
mov eax, dword [0x100c1cc4]
add eax, 0x1607
mov dword [0x100c1cc8], eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x6f
je 0x10006c9d
jmp 0x10006d54
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x10006d2e
jmp 0x10006d54
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10006d54
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x10006d5b
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x10006d5b
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x100071a9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x100c1cc8], 0x203b
mov dword [ebp - 0x10], eax
call fcn.10006e02
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + edx + 0x78]
mov dword [0x100c1cc4], 0x1ad2
mov edx, eax
add edx, 0x20
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add ecx, dword [ecx + edx]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [esi + edi + 0x24]
mov dword [0x100c1cc8], 0x12b5
mov edx, dword [esi + edi + 0x18]
cmp edx, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x1000731a
jmp 0x10007266
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x10007234
jmp 0x100072f2
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [0x100c1cc8], 0x206d
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
add edx, dword [edx + esi + 0x1c]
shl ecx, 2
add edx, ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
add eax, dword [ecx]
mov dword [ebp - 0x2c], eax
jmp 0x1000731a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x3c], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
jmp 0x1000727e
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x14]
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 - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x2d], cl
je 0x10007228
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2d]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x50], eax
jne 0x10007298
jmp 0x10007228
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x48]
add edx, 1
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], eax
jb 0x1000727e
mov eax, dword [ebp - 0x2c]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007325
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x100c1cc8], 0xdd8
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.100065fb
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x80], 0x138600
mov ecx, dword [0x100c1cb0]
mov dword [esp + 0x74], ecx
mov ecx, dword [0x100c1cb4]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x100c1cb8]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x100c1cbc]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x100c1cc0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
lea eax, [0x1000762f]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], ecx
mov edx, dword [0x100c1cc8]
add edx, 0xffffdd72
mov dword [0x100c1cc4], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x100073e5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x100073f9
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x100073c2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], eax
mov dword [0x100c1cc8], 0x268e
mov dword [0x100c1cc4], 0xfd6
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.10006c47
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x10007467
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100074e6
mov dword [0x100c1cc4], 0x13ad
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret