joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015350
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x10015360
pop esi
ret

Function at 0x100153a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x100153b0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x100153f2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x10017e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x4a2b2f78
xor esi, esi
mov dword [ebp - 0x18], 0x564a4b27
mov dword [ebp - 0x14], 0x14141c
cmp esi, 0xb
jb 0x10017ebc
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x1b]
xor bl, byte [ebp - 0x1c]
cmp esi, 0xb
jb 0x10017edf
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x1b], bl
inc esi
cmp esi, 0xa
jb 0x10017ea0
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x11], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x10017f08
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0x6c677102
xor esi, esi
mov word [ebp - 0xc], 0x66
cmp esi, 5
jb 0x10017f33
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 5
jb 0x10017f56
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 4
jb 0x10017f17
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], 0
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
test eax, eax
je 0x10017f00
mov ecx, eax
call fcn.10017830
cmp al, 0xe9
je 0x10017f00
mov dword [ebp - 0x10], 0xf1d194e
xor esi, esi
mov dword [ebp - 0xc], 0x2a202b1d
mov byte [ebp - 8], 0
cmp esi, 8
jb 0x10017fb0
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 8
jb 0x10017fd3
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 7
jb 0x10017f94
lea eax, [ebp - 0xf]
mov byte [ebp - 8], 0
push eax
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
test eax, eax
je 0x10017ffc
mov ecx, eax
call fcn.10017830
cmp al, 0xe9
jne 0x10018004
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10018010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x63020651
xor esi, esi
mov dword [ebp - 0x18], 0x7f63620e
mov dword [ebp - 0x14], 0x3d3d35
cmp esi, 0xb
jb 0x1001804c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x1b]
xor bl, byte [ebp - 0x1c]
cmp esi, 0xb
jb 0x1001806f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x1b], bl
inc esi
cmp esi, 0xa
jb 0x10018030
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x11], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x10018098
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x10], 0x383e295b
xor esi, esi
mov word [ebp - 0xc], 0x2d
cmp esi, 5
jb 0x100180c3
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 5
jb 0x100180e6
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 4
jb 0x100180a7
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], 0
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
test eax, eax
je 0x10018090
mov ecx, eax
call fcn.10017830
cmp al, 0xe9
je 0x10018090
mov dword [ebp - 0x10], 0x12000453
xor esi, esi
mov dword [ebp - 0xc], 0x25303601
mov byte [ebp - 8], 0
cmp esi, 8
jb 0x10018140
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0xf]
xor bl, byte [ebp - 0x10]
cmp esi, 8
jb 0x10018163
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0xf], bl
inc esi
cmp esi, 7
jb 0x10018124
lea eax, [ebp - 0xf]
mov byte [ebp - 8], 0
push eax
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
test eax, eax
je 0x1001818c
mov ecx, eax
call fcn.10017830
cmp al, 0xe9
jne 0x10018194
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10019380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1011b07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x6d12c0
call fcn.10017830
cmp al, 0xe9
jne 0x100193a6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push 0x6d12c0
call esi
test eax, eax
jne 0x100193e9
mov dword [0x1012068c], 0x6d12c0
call fcn.1004bfc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004c490
push 0x10018200
push 0x1012068c
call fcn.1004b840
call fcn.1004c020
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6d141e
push eax
call esi
test eax, eax
jne 0x1001942d
push 4
push 0x100181a0
call esi
test eax, eax
jne 0x1001942d
call fcn.1004bfc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1004c490
push 0x100181a0
lea eax, [ebp - 8]
push eax
call fcn.1004b840
call fcn.1004c020
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1004d370
mov esp, ebp
pop ebp
ret
Function at 0x1001b890
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x1011b07c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2f4], 0x140c2a78
xor esi, esi
mov dword [ebp - 0x2f0], 0x1c191734
mov dword [ebp - 0x2ec], 0x110a0c2b
mov word [ebp - 0x2e8], 0x1f16
mov byte [ebp - 0x2e6], 0
push ebx
cmp esi, 0xe
jb 0x1001b8f1
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x2f3]
xor bl, byte [ebp - 0x2f4]
cmp esi, 0xe
jb 0x1001b91a
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x2f3], bl
inc esi
cmp esi, 0xd
jb 0x1001b8d5
mov byte [ebp - 0x2e6], 0
xor esi, esi
mov dword [ebp - 0x2e4], 0x45554f21
mov dword [ebp - 0x2e0], 0x450f4d4d
mov word [ebp - 0x2dc], 0x4d4d
mov byte [ebp - 0x2da], 0
cmp esi, 0xa
jb 0x1001b970
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x2e3]
xor bl, byte [ebp - 0x2e4]
cmp esi, 0xa
jb 0x1001b999
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x2e3], bl
inc esi
cmp esi, 9
jb 0x1001b954
lea eax, [ebp - 0x2f3]
mov byte [ebp - 0x2da], 0
push eax
lea eax, [ebp - 0x2e3]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
pop ebx
add esi, 0x430
jne 0x1001b9e4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004d370
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001b9d3
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.10052910
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001b9d3
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001b9d3
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001b9d3
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x100024b0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1001b9d3
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004d370
mov esp, ebp
pop ebp
ret
Function at 0x1001bbe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1001bc1e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001bc22
cmp edx, esi
jne 0x1001bc07
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1001bc42
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001bc46
cmp edx, esi
jne 0x1001bc2b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1001bc66
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001bc6a
cmp edx, esi
jne 0x1001bc4f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001bd20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1011b07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.10015040
test eax, eax
je 0x1001be7b
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1001be7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1001be7b
movaps xmm0, xmmword [0x1010d540]
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
cmp esi, 0xf
jb 0x1001bd9c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x23]
xor bl, byte [ebp - 0x24]
cmp esi, 0xf
jb 0x1001bdbf
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x23], bl
inc esi
cmp esi, 0xe
jb 0x1001bd80
mov byte [ebp - 0x15], 0
xor esi, esi
mov dword [ebp - 0x14], 0x35253f51
mov dword [ebp - 0x10], 0x357f3d3d
mov word [ebp - 0xc], 0x3d3d
mov byte [ebp - 0xa], 0
cmp esi, 0xa
jb 0x1001be03
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov bl, byte [ebp + esi - 0x13]
xor bl, byte [ebp - 0x14]
cmp esi, 0xa
jb 0x1001be26
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1003dac0
add esp, 0xc
mov byte [ebp + esi - 0x13], bl
inc esi
cmp esi, 9
jb 0x1001bde7
lea eax, [ebp - 0x23]
mov byte [ebp - 0xa], 0
push eax
lea eax, [ebp - 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov edi, eax
call fcn.100178a0
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1001be98
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
call edi
test eax, eax
jns 0x1001be83
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x1001be91
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d370
mov esp, ebp
pop ebp
ret
Function at 0x1003ccb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1afe
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1011b07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1003ca60
lea ecx, [ebp - 0x7c]
call fcn.1003cb10
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003cc00
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x1003cd5c
inc eax
push 1
push eax
push dword [ebp + 0xc]
call fcn.10007470
add esp, 0xc
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.10006f50
lea ecx, [ebp + 8]
call fcn.10006df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d370
mov esp, ebp
pop ebp
ret

Function at 0x1003d1b0
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.1004e6d0
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 0x1003d1d3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10041a50
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0x100419e0
push 0x1011ed0c
call fcn.100477b0
add esp, 8
cmp dword [0x1011b064], 0xffffffff
je 0x10041a99
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1011b064]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10041a97
push 0x70
push 0x100d99c8
push str.TlsSetValue_current_thread_tls_key__new_data_
call fcn.1006dd90
add esp, 0xc
jmp 0x10041ab1
xor eax, eax
jne 0x10041ab1
push 0x74
push 0x100d9a70
push 0x100d9ab4
call fcn.1006dd90
add esp, 0xc
pop ebp
ret
Function at 0x10044340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d23ac
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1011b07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.boost::detail::thread_data_base.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.100a4cb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.10043fd0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.10044100
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10044100
mov byte [ebp - 4], 3
push 0
push 1
call fcn.1000a350
add esp, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.1003f090
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
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

Function at 0x1004a6a0
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.1004a870
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1004a77d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1011b068]
jb 0x1004a6ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1011b06c]
ja 0x1004a6ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004a6ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10052910
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 0x1004a70f
jmp 0x1004a77d
cmp dword [ebp - 0x14], 0x10000
jne 0x1004a763
cmp dword [ebp - 0x18], 0x10000
jb 0x1004a763
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 0x1004a746
mov eax, dword [ebp - 8]
jmp 0x1004a77f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1004a756
xor eax, eax
jmp 0x1004a77f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004a778
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1004a870
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004a6ba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004a790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1004a8a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1004a865
mov edx, dword [ebp - 4]
cmp edx, dword [0x1011b068]
jb 0x1004a7d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1011b06c]
ja 0x1004a7d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1004a7a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10052910
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 0x1004a7fa
jmp 0x1004a865
cmp dword [ebp - 0x14], 0x10000
jne 0x1004a84e
cmp dword [ebp - 0x18], 0x10000
jb 0x1004a84e
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 0x1004a831
mov eax, dword [ebp - 8]
jmp 0x1004a867
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1004a841
xor eax, eax
jmp 0x1004a867
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1004a860
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1004a8a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1004a7a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1004a8d0
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.1004acc0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1011ed20], 0
jne 0x1004a90d
cmp dword [0x1011ed1c], 0
je 0x1004a90d
mov eax, dword [0x1011ed1c]
mov dword [0x1011ed20], eax
cmp dword [0x1011ed20], 0
je 0x1004a98a
mov ecx, dword [0x1011ed20]
cmp dword [ecx + 8], 0
je 0x1004a98a
mov edx, dword [0x1011ed20]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1004a98a
mov ecx, dword [0x1011ed20]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1004a98a
mov eax, dword [0x1011ed20]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1004a959
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1004a960
xor eax, eax
jmp 0x1004aaa9
mov ecx, dword [0x1011ed20]
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.10052910
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1004aaa9
mov edx, dword [0x1011ed1c]
mov dword [0x1011ed20], edx
jmp 0x1004a9a6
mov eax, dword [0x1011ed20]
mov ecx, dword [eax + 4]
mov dword [0x1011ed20], ecx
cmp dword [0x1011ed20], 0
je 0x1004a9e6
cmp dword [0x1011ed20], 0
je 0x1004a9e4
mov edx, dword [0x1011ed20]
cmp dword [edx + 8], 0
je 0x1004a9e4
mov eax, dword [0x1011ed20]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1004a9e4
mov edx, dword [0x1011ed20]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1004a9e4
jmp 0x1004a93e
jmp 0x1004a998
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.1004aab0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1004aaa7
mov eax, dword [ebp - 0x18]
mov dword [0x1011ed20], eax
mov ecx, dword [0x1011ed20]
mov dword [ecx], 0x52727464
mov edx, dword [0x1011ed20]
mov dword [edx + 8], 0
mov eax, dword [0x1011ed20]
mov ecx, dword [0x1011ed1c]
mov dword [eax + 4], ecx
mov edx, dword [0x1011ed20]
mov dword [0x1011ed1c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1011ed20]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1004aa77
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1004aa97
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 0x1004aa6e
mov eax, dword [0x1011ed20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1004a93e
xor eax, eax
mov esp, ebp
pop ebp
ret