joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a5e0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1004a62c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1004a61b
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004a614
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1004a5f1
pop edi
push dword [ebx]
push 0
push dword [0x1007a70c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x1004a630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007a010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1007a7f0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004a691
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004b324
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004a6b2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1004a6d3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004a6d3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1004a6cd
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1004a6d3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004b324
mov esp, ebp
pop ebp
ret
Function at 0x1004a730
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x1007a7f8]
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x1004a764
mov eax, dword [0x1007a7f0]
add eax, 0x14
nop
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1004a76c
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1004a750
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x1004a822
test ebx, ebx
lea ecx, [ebp - 0x10]
setne al
or edx, 0xffffffff
push eax
call fcn.1004a440
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004a822
mov ecx, dword [0x1007a7f8]
push edi
cmp esi, ecx
jae 0x1004a7da
imul edi, esi, 0x2c
mov eax, dword [0x1007a7f0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1004a7cf
mov edx, ebx
mov ecx, esi
call fcn.1004a630
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004a7da
mov ecx, dword [0x1007a7f8]
jmp 0x1004a7d2
mov eax, dword [ebp - 4]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1004a7a4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1004a821
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1004a80f
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004a809
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1004a7e8
push ebx
push 0
push dword [0x1007a70c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002a90
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013bca5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [section..data]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x34]
mov ebx, dword [ebp + 8]
lea edx, [esi + 0xc]
push ecx
push edx
mov dword [ebp - 0x3c], eax
lea edi, [esi + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
push eax
push edi
push dword [ebp - 0x3c]
mov dword [esi], 6
push ebx
mov dword [esi + 4], ebx
mov dword [edx], 0
mov dword [esi + 0x30], 0
mov dword [ecx], 0
mov dword [edi], 6
mov dword [esi + 0x14], eax
call dword [sym.imp.node.exe_napi_get_cb_info]
add esp, 0x18
test eax, eax
je 0x10002b5c
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x38]
call fcn.100023d0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.100029a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10002be5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002bdb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c31
jmp 0x10002bdb
mov eax, dword [edi]
cmp eax, dword [esi]
jbe 0x10002c11
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10128052
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esi + 0x14], eax
push 0
push 0
push eax
push edi
push dword [ebp - 0x3c]
push ebx
call dword [sym.imp.node.exe_napi_get_cb_info]
add esp, 0x18
test eax, eax
je 0x10002c11
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x38]
call fcn.100023d0
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.100029a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10002be5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002bdb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c36
push ecx
push edx
call fcn.10128044
add esp, 8
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
test eax, eax
je 0x10002c11
cmp byte [ebp - 0x30], 0
jne 0x10002c11
push eax
push dword [ebp - 0x38]
call dword [sym.imp.node.exe_napi_delete_reference]
add esp, 8
mov eax, esi
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.10128001
mov esp, ebp
pop ebp
ret 8
call fcn.1012b7f0
call fcn.1012b7f0
int3
Function at 0x100030e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013bd7b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + 8]
mov dword [esi], 0x10155b8c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [esi + 0x18], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
lea ecx, [eax + 4]
mov byte [ebp - 4], 1
call fcn.10006800
lea ecx, [ebx + 0xc]
call fcn.10001420
test eax, eax
je 0x1000319e
lea ecx, [ebx + 0xc]
call fcn.10001420
cmp eax, 7
jne 0x1000319e
push ecx
lea eax, [ebx + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.100069c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x100488b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x100488dd
push esi
lea esi, [edx + 1]
nop dword [eax + eax]
mov ecx, dword [eax + 0x98]
mov edx, esi
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax + 0x98], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x100488c0
pop esi
ret
Function at 0x10055530
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ebx, edx
push 0
push 0x14
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10055563
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [0x10165b3c], 0
je 0x100555af
mov eax, dword [0x10165c38]
test eax, eax
je 0x10055583
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x100555af
mov eax, dword [esp + 0x1c]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x10021c90
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.1012bb2f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100555c2
jmp 0x100555b5
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x100555dd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [esp + 0x1c]
mov dword [ebx], eax
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebp], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100783d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov eax, edx
mov ebx, ecx
mov ecx, dword [esp + 0x18]
push ebp
push esi
cmp byte [eax + 0x2b], 1
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
je 0x100784f5
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x100784f5
nop dword [eax]
test ecx, ecx
je 0x1007844b
movzx eax, word [ebp + 0x34]
xor edi, edi
test eax, eax
je 0x100784e2
mov ebx, dword [ebp + 4]
cmp word [ebx], 0
jl 0x100784d2
mov eax, dword [ebp + 0x20]
mov esi, ecx
mov eax, dword [eax + edi*4]
sub esi, eax
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x100784b2
test edx, edx
jne 0x100784c4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
test ecx, ecx
je 0x1007846d
mov eax, dword [ebx]
xor esi, esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1007846d
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x10078465
mov eax, dword [ebx + 0x78]
mov edi, ebx
test eax, eax
mov ecx, esi
cmovne edi, eax
mov eax, 1
shl eax, cl
mov edx, dword [edi + 0x58]
test edx, eax
jne 0x10078499
bts edx, esi
mov dword [edi + 0x58], edx
cmp esi, 1
jne 0x10078499
mov ecx, edi
call fcn.10077e40
mov eax, dword [edi + 0x54]
mov edx, ebp
bts eax, esi
mov ecx, ebx
push 0xffffffffffffffff
mov dword [edi + 0x54], eax
call fcn.10074cc0
add esp, 4
jmp 0x100784e2
movzx ecx, byte [ecx + 0x10150a70]
movzx edx, byte [edx + 0x10150a70]
sub edx, ecx
jne 0x100784ca
inc eax
jmp 0x10078430
movzx eax, word [ebp + 0x34]
mov ecx, dword [esp + 0x24]
inc edi
add ebx, 2
cmp edi, eax
jl 0x10078415
mov ebx, dword [esp + 0x14]
mov ebp, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test ebp, ebp
jne 0x10078400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100ddac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
lea esi, [edi*8]
call fcn.100cb1b0
test eax, eax
jne 0x100ddc41
push eax
push esi
call fcn.1001e4e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100ddc41
push esi
push 0
push ebx
call fcn.101298f0
mov esi, dword [ebp + 0x10]
add esp, 0xc
test esi, esi
je 0x100ddb68
cmp dword [0x10165b38], 0
je 0x100ddb5e
mov eax, dword [0x10168b88]
test eax, eax
je 0x100ddb2c
push eax
call dword [0x10165b88]
add esp, 4
push esi
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push esi
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x100ddb68
push eax
call dword [0x10165b90]
jmp 0x100ddb65
push esi
call dword [0x10165b5c]
add esp, 4
cmp byte [ebp], 1
mov eax, 0x100dd9a0
mov ecx, 0x100dda20
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 8]
cmovne eax, ecx
mov dword [ebp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [ebp + 8], 0
test ebx, ebx
je 0x100ddc37
lea ecx, [edi - 1]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp eax, 0x100dda20
jne 0x100ddbd0
xor eax, eax
test esi, esi
jle 0x100ddbc9
movsx ecx, byte [edi]
lea edx, [eax*8]
xor edx, ecx
lea edi, [edi + 1]
dec esi
xor eax, edx
test esi, esi
jg 0x100ddbb3
and eax, 0x7fffffff
jmp 0x100ddbd7
push esi
push edi
call eax
add esp, 8
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx]
and ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x100ddc0b
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x100ddc03
mov dword [eax], ebx
mov dword [ecx + 4], ebx
jmp 0x100ddc24
mov dword [ebp + 8], ebx
mov dword [ecx + 4], ebx
jmp 0x100ddc24
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100ddc1a
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [ebp + 8], ebx
inc dword [edx]
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ebx
mov ebx, esi
test esi, esi
jne 0x100ddba0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10103760
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x1010379c
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.101033f0
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x1010385c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.1004b340
push edi
call fcn.10049d90
add esp, 0x14
cmp eax, 0x65
jne 0x101037f3
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.101034c0
add esp, 0x1c
jmp 0x1010384a
cmp eax, 0x64
jne 0x1010384a
push 0
push edi
call fcn.1004a950
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x10103815
cmp edx, ecx
je 0x1010384a
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.101034c0
add esp, 0x2c
push edi
call fcn.10048d60
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x1010385c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10108260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [ecx], eax
test edi, edi
je 0x101083c3
mov ebx, dword [ebp + 0xc]
lea edx, [eax + 0xd]
lea esi, [ebx - 1]
test esi, esi
js 0x101082b7
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [ebx + esi]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
sub esi, 1
jns 0x101082a0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [edx*8]
xor eax, edx
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x18], eax
test edi, edi
je 0x1010833e
cmp dword [edi + 8], ecx
jne 0x10108337
cmp dword [edi + 4], ebx
jne 0x10108337
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x10108301
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10108306
add edx, 4
add esi, 4
sub ecx, 4
jae 0x101082f0
cmp ecx, 0xfffffffc
je 0x1010834e
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10108333
cmp ecx, 0xfffffffd
je 0x1010834e
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10108333
cmp ecx, 0xfffffffe
je 0x1010834e
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10108333
cmp ecx, 0xffffffff
je 0x1010834e
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x1010834e
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x101082d8
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.100cb1b0
test eax, eax
je 0x10108360
jmp 0x10108370
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1010838c
test edi, edi
je 0x1010837b
mov eax, 7
jmp 0x1010837d
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10108398
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.101298f0
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.1012ad80
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101261e0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x101261ff
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x101262aa
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x1014e260]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x10126220
movzx edx, word [ebp*4 + 0x1014e260]
movzx eax, byte [ebp*4 + 0x1014e263]
add eax, edx
cmp ecx, eax
jge 0x1012628e
movzx eax, byte [ebp*4 + 0x1014e262]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1012628e
shr eax, 1
movzx eax, word [eax*2 + 0x1014f700]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x101262b8
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.100f5ae0
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x101262ba
mov eax, ecx
add esp, 8
ret

Function at 0x1012cd8b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1012cdca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1012cdca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012cdca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1012cdca
cmp dword [ecx + 0x74], 0xe
jbe 0x1012cdca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1012f62d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013fe3c
push 0x1013fe34
push str.FlsAlloc
push 0x1f
call fcn.1012f4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012f661
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013e1e8]
call esi
jmp 0x1012f667
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1012f6ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013fe4c
push 0x1013fe44
push str.FlsGetValue
push 0x21
call fcn.1012f4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012f6e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013e1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1012f6ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1013fe54
push 0x1013fe4c
push str.FlsSetValue
push 0x22
call fcn.1012f4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012f724
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1013e1e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10134865
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10134902
push ebx
push esi
call fcn.1013482e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101347c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101348af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10134901
push edi
push eax
call fcn.1012e9a9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101348cf
call fcn.1012e96f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10134900
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101347c2
add esp, 0x20
test eax, eax
jne 0x101348ee
push edi
call fcn.1012e96f
jmp 0x101348f6
push ebx
call fcn.1012e96f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10134905
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10134916
pop esi
ret
push ebx
push edi
push esi
call fcn.1013482e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1012e9a9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1013493e
push ebx
push esi
push edi
call fcn.1012ad80
add esp, 0xc
push 0
call fcn.1012e96f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10134d0e
Capabilities:
Set environment variable

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