joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b6ad
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101bf625]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101c4ae4], 0x1540
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1000b31d
mov dword [0x101c4ae4], 0x1b9e
call fcn.1000b94a
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000b1f1
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1000b7d6
mov eax, dword [ebp - 0x3c]
mov dword [0x101c4ae4], 0x505
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 [0x101c4ae4], 0x1847
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000b58b
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101c4ae4], 0x14d0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x58], ecx
mov dword [0x101c4ae8], 0xc82
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1000b7d6
mov eax, dword [0x101c4ae4]
mov ecx, dword [ebp - 0x44]
add ecx, 0x1fe5
add eax, 0x2182
mov dword [0x101c4ae4], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x1000baa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101c4ae4], 0x11bb
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1000bb94
lea eax, [0x101bf625]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x101c4ae4], 0xfffff0ef
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.1000b31d
mov eax, dword [0x101c4ae4]
add eax, 0xffffdb0c
mov dword [0x101c4ae8], eax
mov dword [0x101c4ae4], 0x1b9e
call fcn.1000b94a
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1000b1f1
mov ecx, eax
mov dword [0x101c4b00], eax
mov eax, esp
mov edx, dword [ebp - 0x144]
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, dword [0x101c4ae4]
add edx, 0xffffec8a
mov dword [0x101c4ae4], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
jmp 0x1000bbf3
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x30
mov edi, edx
add edi, esi
add edi, 4
imul esi, eax, 0x30
add edx, esi
add edx, 0x2c
add eax, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, ecx
cmp eax, 0x18f
mov ecx, esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x138], eax
je 0x1000bad7
jmp 0x1000bb94
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, ecx, 0x30
mov edi, edx
add edi, esi
imul esi, ecx, 0x30
mov ebx, edx
add ebx, esi
add ebx, 0x2c
imul esi, ecx, 0x30
add edx, esi
add edx, 4
add ecx, 1
mov esi, dword [ebp - 0x148]
add esi, eax
mov ebx, dword [ebx]
mov edi, dword [edi]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], ecx
call fcn.1000c270
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x18f
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], eax
jne 0x1000bbf3
lea eax, [0x101bf633]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x148]
add esi, 0x4e47c
mov edi, dword [ebp - 0x148]
add edi, 0x3c91c
mov dword [0x101c4ae8], 0xda2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], esi
call fcn.1000b3bb
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x144]
mov dword [esp + 0xc], edx
call fcn.1000c498
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x16c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x15d400
mov edx, dword [ebp - 0x160]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2090
mov dword [0x101c4ae8], 0x1223
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000bfe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1000c2ef
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, dword [0x101c4ae4]
add edi, 0x20f3
mov dword [0x101c4ae4], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101c4ae8], 0x1487
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 0x1000c114
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
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 - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x1000c0bc
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x1000c06b
mov al, byte [ebp - 0x42]
test al, 1
jne 0x1000c0ef
jmp 0x1000c0c5
xor eax, eax
mov ecx, dword [ebp - 0x30]
add ecx, 2
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
jb 0x1000c051
jmp 0x1000c114
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101c4ae4], 0x954
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c11f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x101c4ae8]
add edx, 0xffffd94f
mov dword [0x101c4ae4], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
jmp 0x1000c1aa
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1000c244
jmp 0x1000c266
mov eax, dword [ebp - 0x24]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
mov eax, 1
mov dword [0x101c4ae4], 0xb63
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x1000c17a
jmp 0x1000c266
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edi
je 0x1000c1ee
mov eax, dword [ebp - 0x28]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
jl 0x1000c1aa
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [0x101c4ae4], ecx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1000c266
mov dword [0x101c4ae8], 0x7a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000c266
mov eax, dword [ebp - 0x2c]
add eax, 0xffffe7d7
mov dword [0x101c4ae4], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1000c162
jmp 0x1000c266
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000c266
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000c184
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x1000c17a
Function at 0x1000c498
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101c4aec], 0
mov dword [0x101c4af0], 0
mov dword [0x101c4afc], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000c5f2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, ecx
add edi, 1
add eax, 1
mov dword [0x101c4ae4], 0x581
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x101c4aec], edx
mov dword [0x101c4ae8], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101c4af0], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101c4af4], cl
mov dword [0x101c4ae8], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101c4af4]
mov edx, dword [0x101c4af0]
mov byte [ebx + edx], cl
mov edx, dword [0x101c4aec]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101c4af0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101c4afc], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101c4ae8], 0x2239
mov edx, dword [0x101c4ae4]
add edx, 0x97e
mov dword [0x101c4ae4], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1000c5f2
mov eax, dword [0x101c4aec]
mov ecx, dword [0x101c4af0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000c4f1
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000c5fa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101c4ae4], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000baa3
lea ecx, [0x1000b7e0]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x30], 0x15d400
mov edx, dword [0x101c4ad0]
mov dword [esp + 0x7c], edx
mov edx, dword [0x101c4ad4]
mov dword [esp + 0x84], edx
mov edx, dword [0x101c4ad8]
mov dword [esp + 0x60], edx
mov edx, dword [0x101c4adc]
mov dword [esp + 0x48], edx
mov edx, dword [0x101c4ae0]
mov dword [esp + 0x68], edx
mov dword [0x101c4ae8], 0x1d3f
mov dword [0x101c4ae4], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000c6cf
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000b6ad
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x1000c733
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1000c6f2
jmp 0x1000c6de
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
je 0x1000c6b9
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000c6cf
mov eax, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov dword [0x101c4ae4], 0x4417
mov dword [0x101c4ae8], 0x94b
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.1000c11f
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1000c68d
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp edi, 3
jne 0x405c50
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
push 0
xor edx, edx
mov eax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
test ecx, ecx
push edi
cmovne eax, edx
push eax
push 0x455f80
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x405c9e
cmp dword [ebp - 0x14], esi
mov ecx, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 8
push edi
mov eax, str.Microsoft_Base_Cryptographic_Provider_v1.0
cmove eax, ecx
push eax
push 0x455f80
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x405d54
test ebx, ebx
je 0x405d54
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x405d54
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x405d31
push 0
push edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x405d23
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x405d23
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x18]
push 0
push 1
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
mov ecx, 1
mov eax, dword [ebp - 0x10]
cmovne esi, ecx
test eax, eax
je 0x405d23
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405d31
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x405d41
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret
Function at 0x4060b0
Capabilities:
Delete file
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp esi, 0x10000
jb 0x406215
cmp esi, 0xffffffff
je 0x406215
test dword [esi + 0x1c], 0x2000
push ebx
mov ebx, dword [ebp + 0xc]
push edi
je 0x4061a6
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0x18]
add ecx, 0xfffffffc
push dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add ebx, ecx
call edi
push 4
push 0
push 0
push 0xf001f
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x14], eax
test eax, eax
je 0x406123
mov dword [eax], ebx
push dword [esi + 0x14]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
xor ebx, ebx
test byte [ebp + 0xc], 8
mov dword [esi + 8], 0
mov dword [esi + 0x30], 2
jne 0x406188
mov eax, dword [esi + 0x14]
test eax, eax
je 0x406160
test dword [esi + 0x1c], 0x3000
jne 0x406160
push eax
call fcn.0043d146
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x40616f
push eax
call fcn.0043d146
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x40617f
push eax
call fcn.0043d146
add esp, 4
push esi
call fcn.0043d146
add esp, 4
or edi, ebx
pop edi
pop ebx
je 0x406215
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
test bl, 1
je 0x4061ca
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4061ca
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [esi + 0x14]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x406123
lea eax, [ebp - 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x406123
cmp dword [ebp - 8], eax
jne 0x406123
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
test bl, 4
jne 0x40612c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
jmp 0x406133
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004380f8
mov esp, ebp
pop ebp
ret
Function at 0x407ff0
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 3
mov dword [ebp - 0x458], eax
mov eax, dword [ebp + 0x14]
push SysReAllocString
push edi
mov dword [ebp - 0x454], eax
call fcn.00406f20
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x40805d
push 0x10
push str.Error_opening_file
push str.File_does_not_exist
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push edi
push dword [ebp - 0x454]
lea eax, [ebp - 0x3ec]
push dword [ebp - 0x458]
push str._s__s___s_
push 0x3e7
push eax
call fcn.0040ae70
add esp, 0x18
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x450], 0x44
mov word [ebp - 0x40e], ax
xorps xmm0, xmm0
mov dword [ebp - 0x444], eax
mov ax, word [ebp + 0x18]
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x450]
movlpd qword [ebp - 0x44c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3ec]
movlpd qword [ebp - 0x440], xmm0
push eax
push 0
movlpd qword [ebp - 0x438], xmm0
movlpd qword [ebp - 0x430], xmm0
movlpd qword [ebp - 0x41e], xmm0
movlpd qword [ebp - 0x416], xmm0
movups xmmword [ebp - 0x3fc], xmm0
mov dword [ebp - 0x424], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40813f
push 0x1388
push dword [ebp - 0x3fc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x4081ba
call fcn.00415230
test eax, eax
je 0x4081ba
call fcn.00415230
cmp dword [eax], 0
je 0x4081ba
mov eax, dword [0x48d5e0]
test eax, eax
je 0x408163
mov esi, dword [eax + 0x190]
jmp 0x408169
mov esi, dword [0x48d5e4]
call fcn.00415230
test eax, eax
je 0x40817b
call fcn.00415230
mov edi, dword [eax]
jmp 0x40817d
xor edi, edi
push str.Error_starting_process__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408c60
add esp, 8
push eax
lea eax, [ebp - 0x3ec]
push eax
push str.Error_starting_process__s:__s
push dword [0x48d5e0]
push esi
push 0
push 0x7cb
push str.D:MyProjectsProPilotLibMisc.c
push 2
call edi
add esp, 0x28
push 0
push dword [ebp - 0x3f8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x3fc]
call ebx
push dword [ebp - 0x3f8]
call ebx
mov eax, dword [ebp - 0x3f4]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x3f0]
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x40c]
push eax
push 0x408770
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x40c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004380f8
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x3ec]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x3f4], eax
sub edx, edi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x409790
lea eax, [ebp - 0x3ec]
push 0x5c
push eax
call fcn.00444792
mov esi, eax
add esp, 8
test esi, esi
je 0x4097ba
mov byte [esi], 0
inc esi
jmp 0x4097c3
mov esi, edi
mov byte [ebp - 0x3ec], 0
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x3ec]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409820
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x3f4]
push 0
push 0
push esi
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004380f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret
Function at 0x40a900
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x479bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
xor eax, eax
push esi
mov word [ebp - 0x26], ax
mov dword [ebp - 0x5c], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x64], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x36], xmm0
movlpd qword [ebp - 0x2e], xmm0
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a997
push 0x1388
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x40aa0e
call fcn.00415230
test eax, eax
je 0x40aa0e
call fcn.00415230
cmp dword [eax], 0
je 0x40aa0e
mov eax, dword [0x48d5e0]
test eax, eax
je 0x40a9bb
mov esi, dword [eax + 0x190]
jmp 0x40a9c1
mov esi, dword [0x48d5e4]
push edi
call fcn.00415230
test eax, eax
je 0x40a9d4
call fcn.00415230
mov edi, dword [eax]
jmp 0x40a9d6
xor edi, edi
push str.Error_starting_process__s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408c60
add esp, 8
push eax
push ebx
push str.Error_starting_process__s:__s
push dword [0x48d5e0]
push esi
push 0
push 0x7cb
push str.D:MyProjectsProPilotLibMisc.c
push 2
call edi
add esp, 0x28
pop edi
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push 0x408770
mov dword [ebp - 0x24], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop esi
pop ebx
call fcn.004380f8
mov esp, ebp
pop ebp
ret