joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027e68
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0x60
mov eax, 0x10079cc5
call fcn.10040a5d
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.10009ee7
movzx eax, al
xor ebx, ebx
sub eax, ebx
je 0x10027f45
sub eax, 1
jne 0x10028009
mov cl, 0x20
mov dword [ebp - 0x38], 0x544f6c20
mov dword [ebp - 0x34], 0x59524554
mov eax, ebx
mov dword [ebp - 0x30], 0x4e455665
mov word [ebp - 0x2c], 0x54
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x10027ec2
mov cl, byte [ebp - 0x38]
jmp 0x10027eb3
lea eax, [ebp - 0x37]
mov byte [ebp - 0x2b], bl
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004181
mov dword [ebp - 4], 3
mov ecx, ebx
movaps xmm0, xmmword [0x10095d20]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x8514444
mov dword [ebp - 0x40], 0x46414742
mov dword [ebp - 0x3c], 0x64c4d
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x1a
jb 0x10027efa
lea eax, [ebp - 0x53]
mov byte [ebp - 0x39], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10004181
push ebx
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call dword [0x10093d04]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10004036
lea ecx, [ebp - 0x6c]
jmp 0x10028001
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.10009e0e
cmp dword [ebp - 0x18], 0
je 0x10027ffe
cmp dword [ebp - 0x18], 0xff
ja 0x10027ffe
mov cl, 0x22
mov dword [ebp - 0x38], 0x564d6e22
mov dword [ebp - 0x34], 0x5b504756
mov eax, ebx
mov dword [ebp - 0x30], 0x4c475467
mov word [ebp - 0x2c], 0x56
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x10027fa5
mov cl, byte [ebp - 0x38]
jmp 0x10027f96
lea eax, [ebp - 0x37]
mov byte [ebp - 0x2b], bl
push eax
lea ecx, [ebp - 0x50]
call fcn.10004181
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004181
push ebx
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x6c]
push eax
push eax
call dword [0x10093d04]
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.10004036
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10004036
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.10004036
call fcn.10040a07
ret 4
Function at 0x1002889a
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x10079dbe
call fcn.10040a5d
mov esi, ecx
mov eax, dword [esi]
mov dword [0x100a6304], eax
mov ecx, dword [esi]
call fcn.1000f7e5
test al, al
je 0x100289ab
cmp byte [ebp + 8], 0
jne 0x100289ab
movaps xmm0, xmmword [0x10095080]
xor ebx, ebx
movups xmmword [ebp - 0x3c], xmm0
mov ecx, ebx
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x100288d7
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10004181
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], 0x64
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10004181
xor ebx, ebx
lea edx, [ebp - 0x54]
inc ebx
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x10]
call fcn.1000fa0c
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004181
mov byte [ebp - 4], 2
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 0x10]
call fcn.1000fe8b
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov ecx, dword [esi + 0x10]
call fcn.1000fac1
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x21
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x2b], 0
call fcn.10004181
mov byte [ebp - 4], 3
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 0x20]
call fcn.1000ff04
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov ecx, esi
call fcn.100297e7
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.10004036
call fcn.10040a07
ret 0xc
Function at 0x100290d3
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x10079dbe
call fcn.10040a5d
mov esi, ecx
mov ecx, dword [esi]
xor dl, dl
call fcn.1000f6a4
movaps xmm0, xmmword [0x100950d0]
xor ebx, ebx
movups xmmword [ebp - 0x3c], xmm0
mov ecx, ebx
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x100290f9
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10004181
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], 0x26
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10004181
xor ebx, ebx
lea edx, [ebp - 0x54]
inc ebx
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x10]
call fcn.1000fa0c
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004181
mov byte [ebp - 4], 2
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 0x10]
call fcn.1000fe8b
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov ecx, dword [esi + 0x10]
call fcn.1000fac1
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x60
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x2b], 0
call fcn.10004181
mov byte [ebp - 4], 3
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 0x20]
call fcn.1000ff04
push 0
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.10004036
mov ecx, esi
call fcn.100297e7
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.10004036
call fcn.10040a07
ret
Function at 0x1002fddb
Capabilities:
Encode data using xor

Disassembly:
push 0xa0
mov eax, 0x1007a4f4
call fcn.10040a29
mov esi, ecx
call fcn.1002f97a
xor ebx, ebx
cmp al, 6
jne 0x1002fe94
movaps xmm0, xmmword [str._r_bzh]
mov ecx, ebx
movups xmmword [ebp - 0x48], xmm0
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0xe
jb 0x1002fe08
lea eax, [ebp - 0x47]
mov byte [ebp - 0x39], bl
push eax
lea ecx, [ebp - 0x7c]
call fcn.10004181
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x100960f0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x3c6b6662
mov word [ebp - 0x10], 0x33
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x14
jb 0x1002fe41
lea eax, [ebp - 0x23]
mov byte [ebp - 0xf], bl
push eax
lea ecx, [ebp - 0x64]
call fcn.10004181
push ebx
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push eax
call dword [0x10093d04]
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10004036
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.10004036
jmp 0x1002ff67
push 6
mov edi, ebx
lea eax, [esi + 0x110]
pop ecx
cmp dword [eax - 4], ebx
jbe 0x1002feab
cmp dword [eax], ebx
jbe 0x1002feab
add edi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x1002fe9f
mov ecx, dword [esi + 0x34]
call fcn.1000f7e5
test al, al
je 0x1002fec9
mov ecx, dword [esi + 0x34]
xor dl, dl
call fcn.1000f6a4
push ecx
mov edx, edi
lea ecx, [ebp - 0xac]
call fcn.1000dc46
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1002fee7
mov eax, dword [eax]
movaps xmm0, xmmword [0x10095470]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x5b0d08
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x12
jb 0x1002fefc
sub esp, 0x18
mov byte [ebp - 0x25], bl
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004181
lea eax, [ebp - 0x94]
push eax
call fcn.10003c4b
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x100]
call fcn.1000ff04
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.10004036
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
push ebx
push 1
call fcn.10004036
mov ecx, dword [esi + 0xfc]
mov dl, 1
call fcn.1000f6a4
call fcn.100409f2
ret
Function at 0x100326a1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 0x13091f7d
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x12111e22
mov cl, 0x7d
mov word [ebp - 0xc], 0x180e
mov byte [ebp - 0xa], bl
mov eax, ebx
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 9
jae 0x100326d7
mov cl, byte [ebp - 0x14]
jmp 0x100326c8
sub esp, 0x18
mov byte [ebp - 0xa], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 4], eax
add esp, 0x18
mov cl, 0x79
mov dword [ebp - 0x14], 0x101d1c79
mov dword [ebp - 0x10], 0x180d260d
mov eax, ebx
mov word [ebp - 0xc], 0x1e
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 8
jae 0x1003271c
mov cl, byte [ebp - 0x14]
jmp 0x1003270d
sub esp, 0x18
mov byte [ebp - 0xb], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 8], eax
add esp, 0x18
mov cl, 0x4a
mov dword [ebp - 0x14], 0x243e284a
mov dword [ebp - 0x10], 0x24252915
mov eax, ebx
mov dword [ebp - 0xc], 0x2738232c
mov byte [ebp - 8], bl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x10032765
mov cl, byte [ebp - 0x14]
jmp 0x10032756
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 0xc], eax
add esp, 0x18
mov cl, 0x68
mov dword [ebp - 0x14], 0x61c0a68
mov dword [ebp - 0x10], 0x40d0c37
mov eax, ebx
mov dword [ebp - 0xc], 0xd1c0d
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xa
jae 0x100327ab
mov cl, byte [ebp - 0x14]
jmp 0x1003279c
sub esp, 0x18
mov byte [ebp - 9], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 0x10], eax
add esp, 0x18
mov cl, 0x35
mov dword [ebp - 0x14], 0x52585c35
mov dword [ebp - 0x10], 0x5954456a
mov eax, ebx
mov dword [ebp - 0xc], 0x50414150
mov byte [ebp - 8], bl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x100327f4
mov cl, byte [ebp - 0x14]
jmp 0x100327e5
sub esp, 0x18
mov byte [ebp - 8], bl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
add esp, 0x18
mov dword [esi + 0x14], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003335b
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], 0x13091f7d
mov esi, ecx
mov dword [ebp - 0x14], 0x120f1922
mov cl, 0x7d
mov word [ebp - 0x10], 0xd
mov eax, ebx
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 8
jae 0x1003338e
mov cl, byte [ebp - 0x18]
jmp 0x1003337f
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
movaps xmm0, xmmword [0x100953c0]
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xf
jb 0x100333bc
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
movaps xmm0, xmmword [str.J___]
add esp, 0x18
mov dword [esi + 0x14], eax
mov ecx, ebx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x2f292b38
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x13
jb 0x100333fe
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 4], eax
add esp, 0x18
mov cl, 0x68
mov dword [ebp - 0x1c], 0x61c0a68
mov dword [ebp - 0x18], 0x61d0e37
mov eax, ebx
mov dword [ebp - 0x14], 0x1b09040b
mov word [ebp - 0x10], 0x1b
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x10033457
mov cl, byte [ebp - 0x1c]
jmp 0x10033448
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov dword [esi + 8], eax
add esp, 0x18
mov cl, 0x35
mov dword [ebp - 0x18], 0x5b415735
mov dword [ebp - 0x14], 0x415a596a
mov eax, ebx
mov dword [ebp - 0x10], 0x4c475041
mov byte [ebp - 0xc], bl
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x100334a0
mov cl, byte [ebp - 0x18]
jmp 0x10033491
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10004181
mov ecx, dword [esi]
call fcn.1000f474
mov ecx, dword [0x100a6050]
add esp, 0x18
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x100334e6
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x100334e6
mov ecx, dword [ecx]
call fcn.1000f5c0
mov ecx, dword [esi]
add edx, 0xf5
push 5
call fcn.1000f65b
pop ecx
mov ecx, dword [esi]
push 0x14
pop edx
call fcn.1000f7c2
mov ecx, dword [esi]
mov dl, 1
call fcn.1000f6a4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10033507
xor dl, dl
call fcn.1000f6a4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10033515
xor dl, dl
call fcn.1000f6a4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10033523
xor dl, dl
call fcn.1000f6a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10040be0
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x100360a3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003a4f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100a107c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10094e7c]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x10094e80]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10094e64]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10094e74]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x1003a5c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x1003a589
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x1003a5d6
inc ax
mov word [ebp - 0xa], ax
jmp 0x1003a59f
cmp eax, 0xe7
jne 0x1003a5d6
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x1003a5d6
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1003a570
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003fdc5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003fdc5
mov esp, ebp
pop ebp
ret
Function at 0x1003ccc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007ae3e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100a107c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100a1064]
cmp eax, 0xffffffff
jne 0x1003ccf6
xor ebx, ebx
jmp 0x1003ccff
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003cd41
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003cd80
test esi, esi
jne 0x1003cd84
push 0x1003c540
push 0x100a4d9c
call fcn.1003c230
mov eax, dword [0x100a1064]
add esp, 8
cmp eax, 0xffffffff
je 0x1003cd41
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003cd6e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003cd6e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003cdc6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003cdaf
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003cd84
cmp dword [ebx + 0x18], 0
je 0x1003cd10
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003cded
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003cded
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003c560
cmp dword [ebx + 0x18], 0
jne 0x1003cdd0
jmp 0x1003cd10
Function at 0x1003d0f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003d2c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003d1cd
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a1068]
jb 0x1003d13a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a106c]
ja 0x1003d13a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003d10a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10042b60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003d15f
jmp 0x1003d1cd
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d1b3
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d1b3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003d196
mov eax, dword [ebp - 8]
jmp 0x1003d1cf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d1a6
xor eax, eax
jmp 0x1003d1cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d1c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003d2c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003d10a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003d1e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003d2f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003d2b5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100a1068]
jb 0x1003d225
mov eax, dword [ebp - 4]
cmp eax, dword [0x100a106c]
ja 0x1003d225
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003d1f5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10042b60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003d24a
jmp 0x1003d2b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d29e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d29e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003d281
mov eax, dword [ebp - 8]
jmp 0x1003d2b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d291
xor eax, eax
jmp 0x1003d2b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d2b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003d2f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003d1f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003d320
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003d710
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100a4db0], 0
jne 0x1003d35d
cmp dword [0x100a4dac], 0
je 0x1003d35d
mov eax, dword [0x100a4dac]
mov dword [0x100a4db0], eax
cmp dword [0x100a4db0], 0
je 0x1003d3da
mov ecx, dword [0x100a4db0]
cmp dword [ecx + 8], 0
je 0x1003d3da
mov edx, dword [0x100a4db0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003d3da
mov ecx, dword [0x100a4db0]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003d3da
mov eax, dword [0x100a4db0]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003d3a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003d3b0
xor eax, eax
jmp 0x1003d4f9
mov ecx, dword [0x100a4db0]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10042b60
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003d4f9
mov edx, dword [0x100a4dac]
mov dword [0x100a4db0], edx
jmp 0x1003d3f6
mov eax, dword [0x100a4db0]
mov ecx, dword [eax + 4]
mov dword [0x100a4db0], ecx
cmp dword [0x100a4db0], 0
je 0x1003d436
cmp dword [0x100a4db0], 0
je 0x1003d434
mov edx, dword [0x100a4db0]
cmp dword [edx + 8], 0
je 0x1003d434
mov eax, dword [0x100a4db0]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003d434
mov edx, dword [0x100a4db0]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003d434
jmp 0x1003d38e
jmp 0x1003d3e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003d500
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003d4f7
mov eax, dword [ebp - 0x18]
mov dword [0x100a4db0], eax
mov ecx, dword [0x100a4db0]
mov dword [ecx], 0x52727464
mov edx, dword [0x100a4db0]
mov dword [edx + 8], 0
mov eax, dword [0x100a4db0]
mov ecx, dword [0x100a4dac]
mov dword [eax + 4], ecx
mov edx, dword [0x100a4db0]
mov dword [0x100a4dac], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100a4db0]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003d4c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003d4e7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003d4be
mov eax, dword [0x100a4db0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003d38e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003e240
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100a4dac]
mov dword [ebp - 4], eax
jmp 0x1003e259
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003e280
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003e27e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003e282
jmp 0x1003e250
xor eax, eax
mov esp, ebp
pop ebp
ret