joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaedd00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb4306a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0xb6a890]
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], 0xb6d24c
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x45]
push eax
push 0x8000
lea ecx, [ebp - 0x44]
call fcn.00ac7920
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00aec840
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.00aeb230
push eax
push 0x8000
push 0
lea ecx, [ebp - 0x44]
call fcn.00ac7980
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00aeb230
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00aeb230
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00aa86c0
push 0
lea ecx, [ebp - 0x44]
call fcn.00ac7980
push eax
lea ecx, [ebp - 0x34]
call fcn.00aad330
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00af4d80
add esp, 8
movzx eax, al
test eax, eax
je 0xaede33
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00aeb530
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00aad3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00ac7960
mov eax, dword [ebp + 8]
jmp 0xaede83
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.00af13b0
mov ecx, dword [ebp - 0xac]
or ecx, 1
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00aad3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00ac7960
mov eax, dword [ebp + 8]
jmp 0xaede83
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00b13e32
mov esp, ebp
pop ebp
ret
Function at 0xaee520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb43221
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xb6a890]
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.00aeb230
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0xaee5d6
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.00ac7920
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.00ac7980
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00aeb230
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.00ac7980
push eax
mov ecx, dword [ebp + 8]
call fcn.00aad330
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00ac7960
mov eax, dword [ebp + 8]
jmp 0xaee5f5
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00aad380
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 0xaee9f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb43311
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xb6a890]
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 0xaeea98
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.00ac7920
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.00ac7980
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.00ac7980
push eax
mov ecx, dword [ebp + 8]
call fcn.00aad330
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00ac7960
mov eax, dword [ebp + 8]
jmp 0xaeeab3
mov ecx, dword [ebp + 8]
call fcn.00ac0860
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 0xaef470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb43581
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0xb6a890]
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.00ac7920
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.00ac7980
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.00ac7980
push eax
mov ecx, dword [ebp + 8]
call fcn.00aad330
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00ac7960
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 0xb03160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb465e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0xb6a890]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsx eax, byte [0xb81650]
test eax, eax
jne 0xb03195
call fcn.00b03050
movzx ecx, byte [0xb81649]
test ecx, ecx
jne 0xb0324f
movzx edx, byte [0xb81648]
test edx, edx
jne 0xb0324f
cmp dword [0xb81754], 0
je 0xb031f8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0xb81754]
push ecx
call fcn.00aeef30
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x186
mov eax, dword [0xb81754]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0xb81754]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0xb0324f
push 0xb81650
lea ecx, [ebp - 0x74]
call fcn.00aeaa60
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.00aeed40
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.00aa86c0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0xb0324f
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 0xb0d280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0xb0d28f
mov eax, dword [eax + 4]
jmp 0xb0d292
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xb0d31b
push esi
mov esi, dword [0xb81af0]
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 0xb0d300
cmp eax, 3
je 0xb0d300
cmp eax, 0x7b
je 0xb0d300
cmp eax, 0x57
je 0xb0d300
cmp eax, 0xa1
je 0xb0d300
cmp eax, 0x35
je 0xb0d300
cmp eax, 0x20
jne 0xb0d2f5
mov eax, dword [0xb81af4]
mov dword [ecx], eax
mov edx, dword [0xb81af8]
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 [0xb81af4]
mov dword [ecx], eax
mov edx, dword [0xb81af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0xb81af4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0xb81af8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0xb0d348
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

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

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0xb0d36f
mov eax, dword [eax + 4]
jmp 0xb0d372
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xb0d3fb
push esi
mov esi, dword [0xb81af0]
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 0xb0d3e0
cmp eax, 3
je 0xb0d3e0
cmp eax, 0x7b
je 0xb0d3e0
cmp eax, 0x57
je 0xb0d3e0
cmp eax, 0xa1
je 0xb0d3e0
cmp eax, 0x35
je 0xb0d3e0
cmp eax, 0x20
jne 0xb0d3d5
mov eax, dword [0xb81af4]
mov dword [ecx], eax
mov edx, dword [0xb81af8]
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 [0xb81af4]
mov dword [ecx], eax
mov edx, dword [0xb81af8]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0xb81af4]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0xb81af8]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0xb0d428
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0xb13e32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xb6a890]
jne 0xb13e3c
repz ret
jmp fcn.00b1f58c
Function at 0xb1fbef
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 + 0xb6b200]
je 0xb1fc0a
inc edi
cmp edi, 0x17
jb 0xb1fbfb
cmp edi, 0x17
jae 0xb1fd8a
push ebp
push 3
call fcn.00b2d0ae
cmp eax, 1
pop ecx
je 0xb1fd56
push 3
call fcn.00b2d0ae
test eax, eax
pop ecx
jne 0xb1fc3e
cmp dword [0xb6a950], 1
je 0xb1fd56
cmp ebx, 0xfc
je 0xb1fd89
push 0xb6f09c
mov ebx, 0x314
push ebx
mov ebp, 0xb81f80
push ebp
call fcn.00b12fda
add esp, 0xc
test eax, eax
je 0xb1fc74
push esi
push esi
push esi
push esi
push esi
call fcn.00b1470c
add esp, 0x14
push 0x104
mov esi, 0xb81f99
push esi
push 0
mov byte [0xb8209d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0xb1fcb8
push 0xb6f084
push 0x2fb
push esi
call fcn.00b12fda
add esp, 0xc
test eax, eax
je 0xb1fcb8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00b1470c
add esp, 0x14
push esi
call fcn.00b13800
inc eax
cmp eax, 0x3c
pop ecx
jbe 0xb1fcfd
push esi
call fcn.00b13800
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0xb82294
push 0xb6f080
sub ecx, eax
push ecx
push eax
call fcn.00b13e41
add esp, 0x14
test eax, eax
je 0xb1fcfd
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00b1470c
add esp, 0x14
jmp 0xb1fcff
xor esi, esi
push 0xb6d8f8
push ebx
push ebp
call fcn.00b12f69
add esp, 0xc
test eax, eax
je 0xb1fd1f
push esi
push esi
push esi
push esi
push esi
call fcn.00b1470c
add esp, 0x14
push dword [edi*8 + 0xb6b204]
push ebx
push ebp
call fcn.00b12f69
add esp, 0xc
test eax, eax
je 0xb1fd41
push esi
push esi
push esi
push esi
push esi
call fcn.00b1470c
add esp, 0x14
push 0x12010
push 0xb6f058
push ebp
call fcn.00b2cef1
add esp, 0xc
jmp 0xb1fd89
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0xb1fd89
cmp ebp, 0xffffffff
je 0xb1fd89
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0xb6b204]
push dword [esi]
call fcn.00b13800
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 0xb2cef1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00b1edc7
xor ebx, ebx
cmp dword [0xb8262c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0xb2cfc7
push 0xb70888
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0xb2d0a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xb7087c
push edi
call esi
cmp eax, ebx
je 0xb2d0a7
push eax
call fcn.00b1ed59
mov dword [esp], 0xb7086c
push edi
mov dword [0xb8262c], eax
call esi
push eax
call fcn.00b1ed59
mov dword [esp], 0xb70858
push edi
mov dword [0xb82630], eax
call esi
push eax
call fcn.00b1ed59
mov dword [0xb82634], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00b1854f
test eax, eax
pop ecx
pop ecx
je 0xb2cf95
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00b1470c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0xb2cfc7
push 0xb7083c
push edi
call esi
push eax
call fcn.00b1ed59
cmp eax, ebx
pop ecx
mov dword [0xb8263c], eax
je 0xb2cfc7
push 0xb70824
push edi
call esi
push eax
call fcn.00b1ed59
pop ecx
mov dword [0xb82638], eax
mov eax, dword [0xb82638]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0xb2d04c
cmp dword [0xb8263c], ecx
je 0xb2d04c
push eax
call fcn.00b1edd0
push dword [0xb8263c]
mov esi, eax
call fcn.00b1edd0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0xb2d04c
cmp edi, ebx
je 0xb2d04c
call esi
cmp eax, ebx
je 0xb2d019
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0xb2d019
test byte [ebp - 0x18], 1
jne 0xb2d04c
lea eax, [ebp - 0x10]
push eax
call fcn.00b185fe
test eax, eax
pop ecx
je 0xb2d034
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00b1470c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0xb2d043
or dword [ebp + 0x10], 0x200000
jmp 0xb2d087
or dword [ebp + 0x10], 0x40000
jmp 0xb2d087
mov eax, dword [0xb82630]
cmp eax, dword [ebp - 8]
je 0xb2d087
push eax
call fcn.00b1edd0
cmp eax, ebx
pop ecx
je 0xb2d087
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0xb2d087
mov eax, dword [0xb82634]
cmp eax, dword [ebp - 8]
je 0xb2d087
push eax
call fcn.00b1edd0
cmp eax, ebx
pop ecx
je 0xb2d087
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xb8262c]
call fcn.00b1edd0
cmp eax, ebx
pop ecx
je 0xb2d0a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0xb2d0a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xb39c7b
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 0xb39d00
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00b14dc0
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 0xb39cc3
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 0xb39ce5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0xb39d5b
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00b399cb
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0xb39d47
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 0xb39d5b
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0xb39c84
pop esi
pop ebx
leave
ret

Function at 0xb49f22
Capabilities:
Allocate or change rwx memory

Disassembly:
pushal
pushfd
push 0xb49f02
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xb49f0f
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xb49f43], eax
jmp 0xb49f47
push 0xb49f59
push 0x40
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0xb49f5d
mov eax, dword [0xb49f43]
mov byte [eax], 0x68
mov dword [eax + 1], 0xb49f77
mov byte [eax + 5], 0xc3
popfd
popal
jmp 0xb49fcc
pushal
pushfd
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0xb49fc8], eax
mov dword [sym.imp.KERNEL32.dll_VirtualProtect], reloc.KERNEL32.dll_VirtualProtect
popfd
popal
push 0xb14daf
ret
Function at 0x1019447e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b1590]
jne 0x10194488
repz ret
jmp fcn.1019539c

Function at 0x1019659b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10193834
and dword [ebp - 4], 0
cmp dword [0x101b2ccc], 0
mov ebx, eax
jne 0x1019664c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101966fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101966fd
push eax
call fcn.101937c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b2ccc], eax
call esi
push eax
call fcn.101937c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b2cd0], eax
call esi
push eax
call fcn.101937c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b2cd4], eax
call esi
push eax
call fcn.101937c2
pop ecx
mov dword [0x101b2cdc], eax
test eax, eax
je 0x1019664c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101937c2
pop ecx
mov dword [0x101b2cd8], eax
mov eax, dword [0x101b2cd8]
cmp eax, ebx
je 0x101966a4
cmp dword [0x101b2cdc], ebx
je 0x101966a4
push eax
call fcn.1019383d
push dword [0x101b2cdc]
mov esi, eax
call fcn.1019383d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101966a4
test edi, edi
je 0x101966a4
call esi
test eax, eax
je 0x1019669b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019669b
test byte [ebp - 0xc], 1
jne 0x101966a4
or dword [ebp + 0x10], 0x200000
jmp 0x101966dd
mov eax, dword [0x101b2cd0]
cmp eax, ebx
je 0x101966dd
push eax
call fcn.1019383d
pop ecx
test eax, eax
je 0x101966dd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101966dd
mov eax, dword [0x101b2cd4]
cmp eax, ebx
je 0x101966dd
push eax
call fcn.1019383d
pop ecx
test eax, eax
je 0x101966dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b2ccc]
call fcn.1019383d
pop ecx
test eax, eax
je 0x101966fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101966ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10197bc4
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [0x101b0dd4], 0x24f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x13da
xor edx, edx
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x101b0dd4], 0x13da
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x10197c45
mov eax, 1
mov dword [0x101b0dd4], 0x24bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x10197d30
jmp 0x10197c63
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10197ca2
jmp 0x10197c63
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
je 0x10197cbd
jmp 0x10197c77
xor eax, eax
mov dword [0x101b0dd4], 0x1321
mov dword [ebp - 0x20], eax
jmp 0x10197d30
mov eax, dword [ebp - 0x24]
add eax, 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffe00
mov dword [0x101b0dd4], ecx
cmp eax, 0x104
mov edx, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
jl 0x10197c45
jmp 0x10197cbd
mov dword [0x101b0dd4], 0xfffffa1e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10197d0e
jmp 0x10197c63
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x10197c63
mov dword [0x101b0dd4], 0x5bf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10197c63
mov dword [0x101b0dd8], 0x47
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10197c34
jmp 0x10197c63
mov dword [0x101b0dd8], 0x519
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10197c0d
jmp 0x10197c63
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop ebp
ret
Function at 0x10197fdb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, 0x11f9
mov dword [0x101b0de0], 0
mov byte [0x101b0de4], 0
mov dword [0x101b0dd4], 0x1887
mov dword [0x101b0ddc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x41f
mov ebx, ecx
mov dword [0x101b0dd8], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + ecx], bl
mov dword [0x101b0dd4], 0xaad
mov ecx, dword [0x101b0ddc]
add ecx, 1
mov dword [0x101b0ddc], ecx
cmp ecx, 0x100
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
jl 0x10198028
xor eax, eax
mov dword [0x101b0dd4], 0xfffff035
mov dword [0x101b0ddc], 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x101b0de8], 0
mov dword [ebp - 0x28], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101b0dd8]
mov ebx, edi
add ebx, 0x1f68
mov dword [0x101b0dd4], ebx
mov ebx, dword [0x101b0de0]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [esi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101b0de8], ecx
add edi, 0xfffffb7b
mov dword [0x101b0dd8], edi
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x2c]
idiv ecx
mov dword [0x101b0de0], edx
mov dword [0x101b0dd4], 0xb5f
mov edi, dword [ebp - 0x28]
mov cl, byte [esi + edi]
mov byte [0x101b0de4], cl
mov dword [0x101b0dd8], 0x148d
mov cl, byte [esi + edx]
mov byte [esi + edi], cl
mov edx, dword [0x101b0dd4]
add edx, 0xfffffb13
mov dword [0x101b0dd8], edx
mov cl, byte [0x101b0de4]
mov edx, dword [0x101b0de0]
mov byte [esi + edx], cl
mov dword [0x101b0dd4], 0x106c
mov edx, dword [0x101b0ddc]
add edx, 1
mov dword [0x101b0ddc], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x10198083
mov dword [0x101b0dd4], 0x3b1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret