joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005dbf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4767
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.1005cb30
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.1005cb30
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.1005cb30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.1005d4f0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.1005d4f0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.1005d4f0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005dec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b4857
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.1005ca60
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.1005ca60
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.1005ca60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.1005d510
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.1005d510
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.1005d510
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x30]
mov word [edx + 0x30], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x32]
mov word [edx + 0x32], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1005fd00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b506a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100dc890]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x14], 0x8000
mov dword [ebp - 0x10], 0x100df24c
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x45]
push eax
push 0x8000
lea ecx, [ebp - 0x44]
call fcn.10039920
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.1005e840
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb4]
call fcn.1005d230
push eax
push 0x8000
push 0
lea ecx, [ebp - 0x44]
call fcn.10039980
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.1005d230
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1005d230
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.1001a6c0
push 0
lea ecx, [ebp - 0x44]
call fcn.10039980
push eax
lea ecx, [ebp - 0x34]
call fcn.1001f330
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.10066d80
add esp, 8
movzx eax, al
test eax, eax
je 0x1005fe33
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.1005d530
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.1001f3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10039960
mov eax, dword [ebp + 8]
jmp 0x1005fe83
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.100633b0
mov ecx, dword [ebp - 0xac]
or ecx, 1
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.1001f3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10039960
mov eax, dword [ebp + 8]
jmp 0x1005fe83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10085e32
mov esp, ebp
pop ebp
ret
Function at 0x10060520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5221
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.1005d230
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x100605d6
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.10039920
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1005d230
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov ecx, dword [ebp + 8]
call fcn.1001f330
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10039960
mov eax, dword [ebp + 8]
jmp 0x100605f5
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001f380
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x100609f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5311
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x10060a98
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.10039920
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov ecx, dword [ebp + 8]
call fcn.1001f330
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10039960
mov eax, dword [ebp + 8]
jmp 0x10060ab3
mov ecx, dword [ebp + 8]
call fcn.10032860
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10061470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5581
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.10039920
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.10039980
push eax
mov ecx, dword [ebp + 8]
call fcn.1001f330
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10039960
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10075160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b85e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100dc890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsx eax, byte [0x100f3650]
test eax, eax
jne 0x10075195
call fcn.10075050
movzx ecx, byte [0x100f3649]
test ecx, ecx
jne 0x1007524f
movzx edx, byte [0x100f3648]
test edx, edx
jne 0x1007524f
cmp dword [0x100f3754], 0
je 0x100751f8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x100f3754]
push ecx
call fcn.10060f30
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x186
mov eax, dword [0x100f3754]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x100f3754]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x1007524f
push 0x100f3650
lea ecx, [ebp - 0x74]
call fcn.1005ca60
mov dword [ebp - 4], 0
push 0x10001
lea edx, [ebp - 0x74]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10060d40
add esp, 0x10
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.1001a6c0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1007524f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1007f280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x1007f28f
mov eax, dword [eax + 4]
jmp 0x1007f292
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007f31b
push esi
mov esi, dword [0x100f3af0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x1007f300
cmp eax, 3
je 0x1007f300
cmp eax, 0x7b
je 0x1007f300
cmp eax, 0x57
je 0x1007f300
cmp eax, 0xa1
je 0x1007f300
cmp eax, 0x35
je 0x1007f300
cmp eax, 0x20
jne 0x1007f2f5
mov eax, dword [0x100f3af4]
mov dword [ecx], eax
mov edx, dword [0x100f3af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x100f3af4]
mov dword [ecx], eax
mov edx, dword [0x100f3af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x100f3af4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x100f3af8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x1007f348
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

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

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x1007f36f
mov eax, dword [eax + 4]
jmp 0x1007f372
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1007f3fb
push esi
mov esi, dword [0x100f3af0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x1007f3e0
cmp eax, 3
je 0x1007f3e0
cmp eax, 0x7b
je 0x1007f3e0
cmp eax, 0x57
je 0x1007f3e0
cmp eax, 0xa1
je 0x1007f3e0
cmp eax, 0x35
je 0x1007f3e0
cmp eax, 0x20
jne 0x1007f3d5
mov eax, dword [0x100f3af4]
mov dword [ecx], eax
mov edx, dword [0x100f3af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x100f3af4]
mov dword [ecx], eax
mov edx, dword [0x100f3af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x100f3af4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x100f3af8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x1007f428
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x10085e32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100dc890]
jne 0x10085e3c
repz ret
jmp fcn.1009158c
Function at 0x10091bef
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100dd200]
je 0x10091c0a
inc edi
cmp edi, 0x17
jb 0x10091bfb
cmp edi, 0x17
jae 0x10091d8a
push ebp
push 3
call fcn.1009f0ae
cmp eax, 1
pop ecx
je 0x10091d56
push 3
call fcn.1009f0ae
test eax, eax
pop ecx
jne 0x10091c3e
cmp dword [0x100dc950], 1
je 0x10091d56
cmp ebx, 0xfc
je 0x10091d89
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100f3f80
push ebp
call fcn.10084fda
add esp, 0xc
test eax, eax
je 0x10091c74
push esi
push esi
push esi
push esi
push esi
call fcn.1008670c
add esp, 0x14
push 0x104
mov esi, 0x100f3f99
push esi
push 0
mov byte [0x100f409d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10091cb8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10084fda
add esp, 0xc
test eax, eax
je 0x10091cb8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1008670c
add esp, 0x14
push esi
call fcn.10085800
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10091cfd
push esi
call fcn.10085800
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100f4294
push 0x100e1080
sub ecx, eax
push ecx
push eax
call fcn.10085e41
add esp, 0x14
test eax, eax
je 0x10091cfd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1008670c
add esp, 0x14
jmp 0x10091cff
xor esi, esi
push 0x100df8f8
push ebx
push ebp
call fcn.10084f69
add esp, 0xc
test eax, eax
je 0x10091d1f
push esi
push esi
push esi
push esi
push esi
call fcn.1008670c
add esp, 0x14
push dword [edi*8 + 0x100dd204]
push ebx
push ebp
call fcn.10084f69
add esp, 0xc
test eax, eax
je 0x10091d41
push esi
push esi
push esi
push esi
push esi
call fcn.1008670c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1009eef1
add esp, 0xc
jmp 0x10091d89
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10091d89
cmp ebp, 0xffffffff
je 0x10091d89
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100dd204]
push dword [esi]
call fcn.10085800
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1009eef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10090dc7
xor ebx, ebx
cmp dword [0x100f462c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1009efc7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1009f0a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100e287c
push edi
call esi
cmp eax, ebx
je 0x1009f0a7
push eax
call fcn.10090d59
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100f462c], eax
call esi
push eax
call fcn.10090d59
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100f4630], eax
call esi
push eax
call fcn.10090d59
mov dword [0x100f4634], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1008a54f
test eax, eax
pop ecx
pop ecx
je 0x1009ef95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1008670c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1009efc7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10090d59
cmp eax, ebx
pop ecx
mov dword [0x100f463c], eax
je 0x1009efc7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10090d59
pop ecx
mov dword [0x100f4638], eax
mov eax, dword [0x100f4638]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1009f04c
cmp dword [0x100f463c], ecx
je 0x1009f04c
push eax
call fcn.10090dd0
push dword [0x100f463c]
mov esi, eax
call fcn.10090dd0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1009f04c
cmp edi, ebx
je 0x1009f04c
call esi
cmp eax, ebx
je 0x1009f019
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1009f019
test byte [ebp - 0x18], 1
jne 0x1009f04c
lea eax, [ebp - 0x10]
push eax
call fcn.1008a5fe
test eax, eax
pop ecx
je 0x1009f034
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1008670c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1009f043
or dword [ebp + 0x10], 0x200000
jmp 0x1009f087
or dword [ebp + 0x10], 0x40000
jmp 0x1009f087
mov eax, dword [0x100f4630]
cmp eax, dword [ebp - 8]
je 0x1009f087
push eax
call fcn.10090dd0
cmp eax, ebx
pop ecx
je 0x1009f087
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1009f087
mov eax, dword [0x100f4634]
cmp eax, dword [ebp - 8]
je 0x1009f087
push eax
call fcn.10090dd0
cmp eax, ebx
pop ecx
je 0x1009f087
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100f462c]
call fcn.10090dd0
cmp eax, ebx
pop ecx
je 0x1009f0a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1009f0a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100abc7b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x100abd00
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.10086dc0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x100abcc3
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x100abce5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x100abd5b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.100ab9cb
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x100abd47
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x100abd5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x100abc84
pop esi
pop ebx
leave
ret