joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004cab0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x100bb2a8]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.1006c6ee
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x1004cb15
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x1004cb15
lea eax, [esp]
push eax
call dword [0x100b000c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005a19b
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.1005a19b
add esp, 0x108
ret
Function at 0x1004f870
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x1004f89b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1004f88a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x1004f8d0
cmp dword [esi + 8], 0
jne 0x1004f8be
push 0x100b9e18
push dword [eax + 8]
call fcn.1006480a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1004f8be
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.1006a940
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004f8f2
mov eax, dword [esi + 8]
test eax, eax
je 0x1004f8ec
push eax
call fcn.100645f9
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x10053eb0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10053ec0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10053ee7
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x10053f00
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x10053ef0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x10053f7a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10053f6e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x100b0004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10054030
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x100bb2a8]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100540d4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.10053fa0
lea eax, [esp + 0x28]
push 8
push eax
call fcn.10057690
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100540e7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1005a19b
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.1005a19b
add esp, 0x24
ret
Function at 0x10058d30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10058d57
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x10058d9f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x10058da3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10058e05
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10058dc4
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x10058e37
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x1009a420
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x1009a421
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10058e10
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x10075ef7
Capabilities:
Read file on windows

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

Function at 0x1007a725
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007a3e5
Function at 0x10096060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097e98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100bb2a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 0
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x100960a9
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x100a9120
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x100960e1
movzx esi, ax
mov ecx, esi
call fcn.10001cf0
test eax, eax
je 0x100960f0
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10007d68
jmp 0x100960f0
push 1
push 0x100a9120
lea ecx, [ebp - 0x10]
call fcn.10008e96
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.10095b30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x100961aa
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x100961aa
push edi
call fcn.1005a95d
add esp, 4
mov esi, eax
push esi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x100961a1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100a6c28
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x100961a1
cmp dword [ebp - 0x1c], 0
je 0x100961a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0xfeef04bd
jne 0x100961a1
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x10]
push 0x100aa214
push eax
call fcn.100096bf
add esp, 0x18
push esi
call fcn.1005a1ac
add esp, 4
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x100961cd
cmp ecx, dword [edi]
jne 0x100961cd
mov esi, edi
lock inc dword [eax]
jmp 0x100961fb
mov eax, dword [ecx]
push 1
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x100961e1
call fcn.10008e8b
mov eax, dword [edi + 4]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
lea eax, [edi + 0x10]
mov edx, dword [edi + 4]
inc edx
push edx
push eax
call fcn.100010b0
add esp, 8
lea eax, [esi + 0x10]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov dword [ebx], eax
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10096221
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x1009623a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10096250
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097ed3
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100bb2a8]
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 edi, ecx
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
je 0x1009629a
call fcn.10096490
jmp 0x10096451
push dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call ebx
test eax, eax
je 0x10096451
push 0x104
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.1005cd30
add esp, 0xc
lea eax, [ebp - 0x258]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [edi + 0x974]
lea eax, [edi + 0x974]
mov dword [ebp - 0x3f], 0x697078
mov dword [ebp - 0x260], eax
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x48], 0x255c7325
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0x73255c73
push eax
lea eax, [ebp - 0x150]
mov byte [ebp - 0x40], 0x2e
push eax
call fcn.10017370
add esp, 0x14
lea eax, [ebp - 0x150]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x150]
push eax
call ebx
test eax, eax
je 0x10096451
lea eax, [ebp - 0x38]
mov word [ebp - 0x26], 0x7269
push eax
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x1f], 0x65747865
mov dword [ebp - 0x2b], 0x5c616c6c
mov word [ebp - 0x30], 0x4d5c
mov word [ebp - 0x2d], 0x697a
mov dword [ebp - 0x18], 0x736e6f
mov word [ebp - 0x1a], 0x6973
mov byte [ebp - 0x27], 0x46
mov dword [ebp - 0x34], 0x65726177
mov dword [ebp - 0x24], 0x786f4665
mov byte [ebp - 0x2e], 0x6f
mov dword [ebp - 0x38], 0x74666f53
mov byte [ebp - 0x20], 0x5c
mov byte [ebp - 0x1b], 0x6e
call fcn.10006677
mov byte [ebp - 4], 1
mov ebx, 1
mov eax, dword [edi + 0x978]
mov ecx, ebx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x100963d3
push 0x104
lea ecx, [edi + 0x978]
call fcn.10008e39
mov eax, dword [ebp - 0x25c]
mov edi, dword [edi + 0x978]
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, 0x104
or ecx, ebx
jge 0x10096405
push 0x104
lea ecx, [ebp - 0x25c]
call fcn.10008e39
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x150]
push ecx
push edi
push eax
push reloc.WS2_32.dll_accept
call fcn.100969e0
push ecx
mov ecx, dword [ebp - 0x260]
call fcn.10006851
push ecx
lea ecx, [ebp - 0x25c]
call fcn.10006851
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10096451
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10096470
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1005a19b
mov esp, ebp
pop ebp
ret 8
Function at 0x10096490
Capabilities:
Contain obfuscated stackstrings
Get common file path
Get file size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10097f0b
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x100bb2a8]
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 edi, ecx
push 0x104
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.1005cd30
add esp, 0xc
lea eax, [ebp - 0x338]
push 0x104
push 0
push eax
call fcn.1005cd30
add esp, 0xc
lea eax, [ebp - 0x230]
push 0x104
push 0
push eax
call fcn.1005cd30
add esp, 0xc
call fcn.10001e63
mov ecx, eax
test ecx, ecx
jne 0x10096517
push 0x80004005
call fcn.10001bd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x33c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push dword [edi + 0x974]
mov dword [ebp - 0x1c], 0x70782e73
push dword [edi + 0x97c]
mov dword [ebp - 0x20], 0x255c7325
push eax
lea eax, [ebp - 0x33c]
mov word [ebp - 0x18], 0x69
push eax
call fcn.100096bf
add esp, 0x10
lea eax, [ebp - 0x128]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x338]
push 0x104
push eax
call fcn.100641e0
mov esi, dword [ebp - 0x33c]
lea eax, [ebp - 0x128]
add esp, 0xc
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0
push 3
push 0
push 0
push accept
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10096627
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.1005cd30
add esp, 0xc
lea eax, [ebp - 0x230]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ecx
lea eax, [ebp - 0x340]
mov dword [ebp - 0x340], 0
push eax
sub esp, 8
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.10096670
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10096646
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1005a19b
mov esp, ebp
pop ebp
ret
Function at 0x100969e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100bb2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10096a5c
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.1005cd30
mov ebx, dword [ebp - 0x114]
lea eax, [ebp - 0x118]
add esp, 0xc
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x11c], 1
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10096ae4
mov edx, dword [ebp - 0x110]
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10096ac0
sub ecx, edi
push ecx
push edx
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10096b48
xor esi, esi
jmp 0x10096b48
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x108]
mov ecx, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10096b12
test dl, dl
je 0x10096b0e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10096b12
add eax, 2
add ecx, 2
test dl, dl
jne 0x10096af2
xor eax, eax
jmp 0x10096b17
sbb eax, eax
or eax, 1
test eax, eax
je 0x10096b48
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10096b20
sub ecx, edx
push ecx
push ebx
push 1
push 0
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005a19b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10003b9f
Capabilities:
Terminate process

Disassembly:
push 0
push str.Unable_to_run_Blitz_Basic_module
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100064b8
Capabilities:
Set console window title

Disassembly:
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10006509
push esi
call fcn.100065ec
mov esi, eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, esi
call fcn.10001866
push 0x100891e4
push str.CONIN_
call fcn.10024477
push 0x100891d8
push str.CONOUT_
mov dword [0x100891c8], eax
call fcn.10024477
add esp, 0x10
mov dword [0x100891cc], eax
mov al, 1
pop esi
ret
xor al, al
ret

Function at 0x10006916
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call fcn.100240e1
add esp, 0xc
push 0x50000
push str._INTERNAL_ERROR_
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.10024584
jmp 0x1000695f
mov dword [0x100a0aa4], vtable.BBDebugger.0
ret

Function at 0x1000c344
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x78]
push 0xe
push eax
call edi
mov ebp, eax
lea ebx, [ebp + 1]
push ebx
call fcn.10022a32
pop ecx
push eax
push ebx
push 0xd
push dword [esi + 0x78]
mov dword [esp + 0x20], eax
call edi
push 0x10
call fcn.10022a32
test eax, eax
pop ecx
je 0x1000c392
push ebp
push dword [esp + 0x14]
mov ecx, eax
call fcn.10009e25
mov esi, eax
jmp 0x1000c394
xor esi, esi
push dword [esp + 0x10]
call fcn.10022560
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1000f380
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0x14
push esi
push edi
mov esi, ecx
jne 0x1000f43d
xor edi, edi
cmp dword [esi + 0x34], edi
je 0x1000f416
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esi + 0x34]
mov dword [ebp + 0xc], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 4], edi
mov dword [ebp + 0x14], eax
jle 0x1000f3ff
push ebx
xor ebx, ebx
cmp dword [ebp - 8], ebx
jle 0x1000f3f6
mov eax, dword [esi + 0x38]
push 0xcc0020
push 0
push 0
push dword [ebp + 0xc]
push dword [esi + 0x3c]
push eax
push edi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x38]
add ebx, eax
cmp ebx, dword [ebp - 8]
jl 0x1000f3d1
add edi, dword [esi + 0x3c]
cmp edi, dword [ebp - 4]
jl 0x1000f3c7
pop ebx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1000f438
cmp dword [esi + 0x30], edi
je 0x1000f43d
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x30]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
push 1
pop eax
jmp 0x1000f452
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop edi
pop esi
leave
ret 0x14
Function at 0x10016e6e
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x74], 0
push edi
jne 0x10016f6b
cmp dword [0x100a6570], 0
je 0x10016e9d
call sub.WINMM.dll_timeGetTime
add eax, dword [0x100a6570]
mov dword [ebp - 0xc], eax
xor ebx, ebx
cmp dword [0x100a6570], ebx
je 0x10016eb5
call sub.WINMM.dll_timeGetTime
mov ebx, dword [ebp - 0xc]
sub ebx, eax
jns 0x10016eb5
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x118], eax
xor eax, eax
push 0x3f
pop ecx
mov dword [ebp - 0x11c], 1
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
mov ecx, 0x3e8
mov eax, ebx
cdq
mov edi, ecx
idiv edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
cdq
idiv ecx
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea eax, [ebp - 0x11c]
push eax
push edi
imul edx, edx, 0x3e8
mov dword [ebp - 0x14], edx
call sub.WSOCK32.dll_select
cmp eax, edi
je 0x10016f6b
cmp eax, 1
jne 0x10016f67
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x10016f67
and byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
lea ecx, [esi + 0x20]
call fcn.10017934
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x50]
push ecx
push edi
push dword [ebp - 8]
mov dword [esi + 0x70], edi
mov eax, dword [esi + 0x24]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x10], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x10016f6f
jmp 0x10016e9d
or dword [esi + 0x74], 0xffffffff
xor eax, eax
jmp 0x10016f87
and byte [ebp - 1], 0
lea ecx, [ebp - 1]
push ecx
push eax
lea ecx, [esi + 0x20]
call fcn.10017934
mov ecx, esi
call fcn.1001701c
pop edi
pop esi
pop ebx
leave
ret