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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7457
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100fc8f0]
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.1007f790
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.1007f790
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.1007f790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.10080150
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.10080150
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.10080150
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 0x10080b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7547
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100fc8f0]
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.1007f6c0
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.1007f6c0
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.1007f6c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x44
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.10080170
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.10080170
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x104
call fcn.10080170
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 0x10082840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7cda
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100fc8f0]
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], 0x100ff358
mov byte [ebp - 0x45], 0
lea eax, [ebp - 0x45]
push eax
push 0x8000
lea ecx, [ebp - 0x44]
call fcn.10086200
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10081400
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.1007fe90
push eax
push 0x8000
push 0
lea ecx, [ebp - 0x44]
call fcn.100862a0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.1007fe90
push eax
mov ecx, dword [ebp + 0x10]
call fcn.1007fe90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.10043ed0
push 0
lea ecx, [ebp - 0x44]
call fcn.100862a0
push eax
lea ecx, [ebp - 0x34]
call fcn.1003ee10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.100899e0
add esp, 8
movzx eax, al
test eax, eax
je 0x10082973
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.10080190
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.1003ee90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10086240
mov eax, dword [ebp + 8]
jmp 0x100829c3
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.10085f20
mov ecx, dword [ebp - 0xac]
or ecx, 1
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.1003ee90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.10086240
mov eax, dword [ebp + 8]
jmp 0x100829c3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100a5605
mov esp, ebp
pop ebp
ret
Function at 0x10083060
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7e91
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100fc8f0]
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.1007fe90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x10083116
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.10086200
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.100862a0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.1007fe90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.100862a0
push eax
mov ecx, dword [ebp + 8]
call fcn.1003ee10
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10086240
mov eax, dword [ebp + 8]
jmp 0x10083135
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1003ee50
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 0x10083530
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7f81
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100fc8f0]
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 0x100835d8
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.10086200
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.100862a0
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.100862a0
push eax
mov ecx, dword [ebp + 8]
call fcn.1003ee10
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10086240
mov eax, dword [ebp + 8]
jmp 0x100835f3
mov ecx, dword [ebp + 8]
call fcn.1003ede0
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 0x10083fb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d81f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100fc8f0]
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.10086200
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.100862a0
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.100862a0
push eax
mov ecx, dword [ebp + 8]
call fcn.1003ee10
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10086240
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 0x1009f440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x1009f44f
mov eax, dword [eax + 4]
jmp 0x1009f452
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1009f4db
push esi
mov esi, dword [0x10113a18]
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 0x1009f4c0
cmp eax, 3
je 0x1009f4c0
cmp eax, 0x7b
je 0x1009f4c0
cmp eax, 0x57
je 0x1009f4c0
cmp eax, 0xa1
je 0x1009f4c0
cmp eax, 0x35
je 0x1009f4c0
cmp eax, 0x20
jne 0x1009f4b5
mov eax, dword [0x10113a1c]
mov dword [ecx], eax
mov edx, dword [0x10113a20]
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 [0x10113a1c]
mov dword [ecx], eax
mov edx, dword [0x10113a20]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x10113a1c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x10113a20]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x1009f508
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

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

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x1009f52f
mov eax, dword [eax + 4]
jmp 0x1009f532
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1009f5bb
push esi
mov esi, dword [0x10113a18]
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 0x1009f5a0
cmp eax, 3
je 0x1009f5a0
cmp eax, 0x7b
je 0x1009f5a0
cmp eax, 0x57
je 0x1009f5a0
cmp eax, 0xa1
je 0x1009f5a0
cmp eax, 0x35
je 0x1009f5a0
cmp eax, 0x20
jne 0x1009f595
mov eax, dword [0x10113a1c]
mov dword [ecx], eax
mov edx, dword [0x10113a20]
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 [0x10113a1c]
mov dword [ecx], eax
mov edx, dword [0x10113a20]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x10113a1c]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x10113a20]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x1009f5e8
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret

Function at 0x100a5605
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100fc8f0]
jne 0x100a560f
repz ret
jmp fcn.100b0ccc
Function at 0x100b132f
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 + 0x100fcc40]
je 0x100b134a
inc edi
cmp edi, 0x17
jb 0x100b133b
cmp edi, 0x17
jae 0x100b14ca
push ebp
push 3
call fcn.100bee9a
cmp eax, 1
pop ecx
je 0x100b1496
push 3
call fcn.100bee9a
test eax, eax
pop ecx
jne 0x100b137e
cmp dword [0x10113ac8], 1
je 0x100b1496
cmp ebx, 0xfc
je 0x100b14c9
push 0x101010ac
mov ebx, 0x314
push ebx
mov ebp, 0x10113e68
push ebp
call fcn.100a9ee5
add esp, 0xc
test eax, eax
je 0x100b13b4
push esi
push esi
push esi
push esi
push esi
call fcn.100a5b18
add esp, 0x14
push 0x104
mov esi, 0x10113e81
push esi
push 0
mov byte [0x10113f85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100b13f8
push 0x10101094
push 0x2fb
push esi
call fcn.100a9ee5
add esp, 0xc
test eax, eax
je 0x100b13f8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100a5b18
add esp, 0x14
push esi
call fcn.100a56e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100b143d
push esi
call fcn.100a56e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1011417c
push 0x10101090
sub ecx, eax
push ecx
push eax
call fcn.100aa83f
add esp, 0x14
test eax, eax
je 0x100b143d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100a5b18
add esp, 0x14
jmp 0x100b143f
xor esi, esi
push 0x100ff900
push ebx
push ebp
call fcn.100a9e74
add esp, 0xc
test eax, eax
je 0x100b145f
push esi
push esi
push esi
push esi
push esi
call fcn.100a5b18
add esp, 0x14
push dword [edi*8 + 0x100fcc44]
push ebx
push ebp
call fcn.100a9e74
add esp, 0xc
test eax, eax
je 0x100b1481
push esi
push esi
push esi
push esi
push esi
call fcn.100a5b18
add esp, 0x14
push 0x12010
push 0x10101068
push ebp
call fcn.100becdd
add esp, 0xc
jmp 0x100b14c9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100b14c9
cmp ebp, 0xffffffff
je 0x100b14c9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100fcc44]
push dword [esi]
call fcn.100a56e0
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 0x100becdd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100b0653
xor ebx, ebx
cmp dword [0x10114548], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100bedb3
push 0x10102898
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100bee93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010288c
push edi
call esi
cmp eax, ebx
je 0x100bee93
push eax
call fcn.100b05e5
mov dword [esp], 0x1010287c
push edi
mov dword [0x10114548], eax
call esi
push eax
call fcn.100b05e5
mov dword [esp], 0x10102868
push edi
mov dword [0x1011454c], eax
call esi
push eax
call fcn.100b05e5
mov dword [0x10114550], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100a66d7
test eax, eax
pop ecx
pop ecx
je 0x100bed81
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100a5b18
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100bedb3
push 0x1010284c
push edi
call esi
push eax
call fcn.100b05e5
cmp eax, ebx
pop ecx
mov dword [0x10114558], eax
je 0x100bedb3
push 0x10102834
push edi
call esi
push eax
call fcn.100b05e5
pop ecx
mov dword [0x10114554], eax
mov eax, dword [0x10114554]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100bee38
cmp dword [0x10114558], ecx
je 0x100bee38
push eax
call fcn.100b065c
push dword [0x10114558]
mov esi, eax
call fcn.100b065c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100bee38
cmp edi, ebx
je 0x100bee38
call esi
cmp eax, ebx
je 0x100bee05
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100bee05
test byte [ebp - 0x18], 1
jne 0x100bee38
lea eax, [ebp - 0x10]
push eax
call fcn.100a6786
test eax, eax
pop ecx
je 0x100bee20
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100a5b18
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100bee2f
or dword [ebp + 0x10], 0x200000
jmp 0x100bee73
or dword [ebp + 0x10], 0x40000
jmp 0x100bee73
mov eax, dword [0x1011454c]
cmp eax, dword [ebp - 8]
je 0x100bee73
push eax
call fcn.100b065c
cmp eax, ebx
pop ecx
je 0x100bee73
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100bee73
mov eax, dword [0x10114550]
cmp eax, dword [ebp - 8]
je 0x100bee73
push eax
call fcn.100b065c
cmp eax, ebx
pop ecx
je 0x100bee73
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10114548]
call fcn.100b065c
cmp eax, ebx
pop ecx
je 0x100bee93
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100bee95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100cb8da
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 0x100cb95f
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.100a97b0
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 0x100cb922
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 0x100cb944
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x100cb9ba
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.100cb62a
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x100cb9a6
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 0x100cb9ba
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x100cb8e3
pop esi
pop ebx
leave
ret
Function at 0x100d1d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100dc088
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100fc8f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1011458c]
test eax, eax
jne 0x100d1d52
xor esi, esi
jmp 0x100d1d5b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x100d1d9d
cmp dword [esi + 0x14], 0
jne 0x100d1ddf
cmp dword [esi + 0x10], 0
jne 0x100d1de5
push 0x100d0bb0
push 0x10114588
call fcn.100d1610
mov eax, dword [0x1011458c]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x100d1dcb
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100d1dcb
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x100d1e25
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x100d1e13
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x100d1de5
cmp dword [esi + 0x14], 0
je 0x100d1d77
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100d1e4a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x100d1e7b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100d1e7b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100d1e7b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x100d1e2f
jmp 0x100d1d71

Function at 0x408927
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub esi, esi
call fcn.00408951
mov edi, esi
sub esi, 0x91ac64fb
xor dword [edx], ecx
add edi, 0x7d63903a
inc edi
inc edx
cmp edx, ebx
jne fcn.00408927
ret
Function at 0x635370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x63538e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x65e074
push ecx
mov edi, eax
call fcn.00649198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6353cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0064902e
push esi
call fcn.00648fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret