joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100280ed
Capabilities:
Encode data using xor

Disassembly:
push 0x7c
mov eax, 0x10036e9d
call fcn.10034323
mov esi, ecx
call fcn.10027c7f
xor ebx, ebx
cmp al, 6
jne 0x1002819d
movaps xmm0, xmmword [0x1003dc90]
mov ecx, ebx
movups xmmword [ebp - 0x24], xmm0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x10028117
lea eax, [ebp - 0x23]
mov byte [ebp - 0x15], bl
push eax
lea ecx, [ebp - 0x58]
call fcn.10002607
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x1003e8c0]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x25727f7b
mov word [ebp - 0x14], 0x2a
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10028150
lea eax, [ebp - 0x27]
mov byte [ebp - 0x13], bl
push eax
lea ecx, [ebp - 0x40]
call fcn.10002607
push ebx
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
push eax
call dword [0x1003cc18]
lea ecx, [ebp - 0x40]
call fcn.10002413
lea ecx, [ebp - 0x58]
call fcn.10002413
jmp 0x10028264
push 6
mov edi, ebx
lea eax, [esi + 0x110]
pop ecx
cmp dword [eax - 4], ebx
jbe 0x100281b4
cmp dword [eax], ebx
jbe 0x100281b4
add edi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x100281a8
mov ecx, dword [esi + 0x34]
call fcn.100094ba
test al, al
je 0x100281d2
mov ecx, dword [esi + 0x34]
xor dl, dl
call fcn.10009377
push ecx
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.10007874
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x100281f0
mov eax, dword [eax]
movaps xmm0, xmmword [0x1003dff0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x5b0d08
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x10028205
sub esp, 0x18
mov byte [ebp - 0x15], bl
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0x70]
push eax
call fcn.1000485f
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x100]
call fcn.10009be1
lea ecx, [ebp - 0x70]
call fcn.10002413
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.10002413
mov ecx, dword [esi + 0xfc]
mov dl, 1
call fcn.10009377
call fcn.10034300
ret
Function at 0x1002a960
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0xb110765
sub esp, 0x18
mov dword [ebp - 0x10], 0xa09063a
lea ecx, [ebp - 0x14]
mov word [ebp - 0xc], 0x16
mov byte [ebp - 0xa], 0
mov esi, esp
mov edi, dword [ebx]
call fcn.10001431
push eax
mov ecx, esi
call fcn.10002607
mov ecx, edi
call fcn.1000914c
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 4], eax
mov cl, 0x78
mov dword [ebp - 0x14], 0x111c1d78
xor eax, eax
mov dword [ebp - 0x10], 0x190c270c
mov word [ebp - 0xc], 0x1f
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 8
jae 0x1002a9d0
mov cl, byte [ebp - 0x14]
jmp 0x1002a9c1
sub esp, 0x18
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, esi
call fcn.1000914c
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 8], eax
mov cl, 0x13
mov dword [ebp - 0x14], 0x7d677113
xor eax, eax
mov dword [ebp - 0x10], 0x7d7c704c
mov dword [ebp - 0xc], 0x7e617a75
mov byte [ebp - 8], 0
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x1002aa1d
mov cl, byte [ebp - 0x14]
jmp 0x1002aa0e
sub esp, 0x18
mov byte [ebp - 8], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, esi
call fcn.1000914c
mov edi, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov esi, esp
mov dword [ebp - 0x14], 0x574d5b39
mov dword [ebp - 0x10], 0x555c5d66
mov dword [ebp - 0xc], 0x5c4d5c
call fcn.1000220d
push eax
mov ecx, esi
call fcn.10002607
mov ecx, edi
call fcn.1000914c
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 0x10], eax
mov cl, 0xf
mov dword [ebp - 0x14], 0x6862660f
xor eax, eax
mov dword [ebp - 0x10], 0x636e7f50
mov dword [ebp - 0xc], 0x6a7b7b6a
mov byte [ebp - 8], 0
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x1002aa9d
mov cl, byte [ebp - 0x14]
jmp 0x1002aa8e
sub esp, 0x18
mov byte [ebp - 8], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, esi
call fcn.1000914c
add esp, 0x18
mov dword [ebx + 0x14], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002aac1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x50
mov eax, 0x100371df
call fcn.10034356
mov esi, ecx
mov eax, dword [esi]
mov dword [0x1004633c], eax
mov ecx, dword [esi]
call fcn.100094ba
test al, al
je 0x1002aba9
cmp byte [ebp + 8], 0
jne 0x1002aba9
xor ebx, ebx
mov dword [ebp - 0x3c], 0x7b614a0f
mov cl, 0xf
mov dword [ebp - 0x38], 0x5b2f7d6a
mov dword [ebp - 0x34], 0x462f686e
mov eax, ebx
mov word [ebp - 0x30], 0x4b
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x1002ab1f
mov cl, byte [ebp - 0x3c]
jmp 0x1002ab10
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.10002607
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], 0x7d
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], bl
call fcn.10002607
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
mov ecx, dword [esi + 8]
call fcn.100096df
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.10002413
mov ecx, dword [esi + 8]
or edx, 0xffffffff
call fcn.10009731
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.10002607
mov byte [ebp - 4], 2
lea edx, [ebp - 0x5c]
mov ecx, dword [esi + 8]
call fcn.10009b61
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.10002413
mov ecx, dword [esi + 8]
call fcn.10009794
lea ecx, [ebp - 0x28]
call fcn.10002413
call fcn.10034314
ret 0xc
Function at 0x1002b614
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], 0xb110765
xor ebx, ebx
mov dword [ebp - 0x14], 0xa17013a
push edi
mov cl, 0x65
mov word [ebp - 0x10], 0x15
mov edi, dword [esi]
mov eax, ebx
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 8
jae 0x1002b64a
mov cl, byte [ebp - 0x18]
jmp 0x1002b63b
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, edi
call fcn.1000914c
movaps xmm0, xmmword [0x1003df50]
add esp, 0x18
mov edi, dword [esi]
mov ecx, ebx
mov byte [ebp - 0xc], bl
mov dword [esi + 0x10], eax
push 0xf
movups xmmword [ebp - 0x1c], xmm0
pop ebx
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, ebx
jb 0x1002b67d
sub esp, 0x18
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, edi
call fcn.1000914c
movaps xmm0, xmmword [0x1003e5a0]
add esp, 0x18
mov edi, dword [esi]
xor ecx, ecx
mov dword [esi + 0x14], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x76707261
mov byte [ebp - 0xc], 0
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x13
jb 0x1002b6c2
sub esp, 0x18
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, edi
call fcn.1000914c
mov edi, dword [esi]
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x39
mov dword [ebp - 0x1c], 0x574d5b39
xor eax, eax
mov dword [ebp - 0x18], 0x574c5f66
mov dword [ebp - 0x14], 0x4a58555a
mov word [ebp - 0x10], 0x4a
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x1002b71e
mov cl, byte [ebp - 0x1c]
jmp 0x1002b70f
sub esp, 0x18
mov byte [ebp - 0xf], 0
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, edi
call fcn.1000914c
mov edi, dword [esi]
add esp, 0x18
mov dword [esi + 8], eax
xor eax, eax
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x17], 0x50617b6d
mov dword [ebp - 0x13], 0x7b7b6063
mov dword [ebp - 0xf], 0x767d6a
xor byte [ebp + eax - 0x17], bl
inc eax
cmp eax, 0xb
jae 0x1002b768
mov bl, byte [ebp - 0x18]
jmp 0x1002b759
sub esp, 0x18
mov byte [ebp - 0xc], 0
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10002607
mov ecx, edi
call fcn.1000914c
mov ecx, dword [0x1007cfb8]
add esp, 0x18
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x1002b7af
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1002b7af
mov ecx, dword [ecx]
call fcn.10009295
mov ecx, dword [esi]
add edx, 0xf5
push 5
call fcn.1000932e
pop ecx
mov ecx, dword [esi]
push 0x14
pop edx
call fcn.10009497
mov ecx, dword [esi]
mov dl, 1
call fcn.10009377
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002b7d0
xor dl, dl
call fcn.10009377
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002b7de
xor dl, dl
call fcn.10009377
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1002b7ec
xor dl, dl
call fcn.10009377
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002ca0d
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
mov dword [0x10067420], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x1006741c], ebx
push edi
push ebx
mov dword [0x10067418], eax
mov dword [0x10067424], ebx
mov dword [0x10067428], eax
mov dword [0x1006742c], ebx
mov dword [0x10067430], ebx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov esi, eax
mov dword [0x10067444], edx
mov eax, 0x55555555
mov dword [0x10067440], esi
xor edi, edi
mov dword [0x100687c0], eax
pop ecx
mov dword [0x100687c4], eax
inc edi
push 0x5851f42d
mov ecx, edx
xor eax, eax
push 0x4c957f2d
shr ecx, 0x1e
xor eax, edx
xor ecx, esi
push eax
push ecx
call fcn.10034650
mov esi, eax
mov eax, 0x138
add esi, edi
mov dword [edi*8 + 0x10067440], esi
adc edx, ebx
mov dword [edi*8 + 0x10067444], edx
inc edi
cmp edi, eax
jb 0x1002ca6b
movaps xmm0, xmmword [0x1003e490]
pop edi
pop esi
mov dword [0x10067438], eax
mov eax, 0x10067418
movups xmmword [0x100687c8], xmm0
pop ebx
ret 0x10

Function at 0x1002cc2a
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x10037315
call fcn.10034356
mov esi, dword [0x1007cda4]
xor edi, edi
mov al, 1
xchg byte [esi], al
push 4
call fcn.100332d2
mov dword [ebp - 0x14], eax
mov dword [eax], esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
push ecx
push edi
push eax
push 0x1002da19
push edi
push edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x1c
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1002cc8a
cmp dword [esi + 0x60], edi
je 0x1002cc7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call fcn.10034314
ret
push 6
mov dword [ebp - 0x18], edi
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1002fea5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x1002feee
cmp word [edx], cx
je 0x1002feee
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1002ff13
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 0x14]
push ebx
push 1
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x1002ff11
cmp ecx, esi
je 0x1002ff11
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100332c4
leave
ret
Function at 0x1003012f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x1003019b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10030181
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x100301c8
inc ax
mov word [ebp - 0xa], ax
jmp 0x1003019b
cmp eax, 0xe7
jne 0x100301c8
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x100301c8
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10030164
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100332c4
leave
ret
xor al, al
jmp 0x100301b9

Function at 0x100305c0
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.10030790
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003069d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003060a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10044004]
ja 0x1003060a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100305da
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1003062f
jmp 0x1003069d
cmp dword [ebp - 0x14], 0x10000
jne 0x10030683
cmp dword [ebp - 0x18], 0x10000
jb 0x10030683
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 0x10030666
mov eax, dword [ebp - 8]
jmp 0x1003069f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10030676
xor eax, eax
jmp 0x1003069f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10030698
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10030790
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100305da
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100306b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100307c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10030785
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100306f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10044004]
ja 0x100306f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100306c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
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 0x1003071a
jmp 0x10030785
cmp dword [ebp - 0x14], 0x10000
jne 0x1003076e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003076e
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 0x10030751
mov eax, dword [ebp - 8]
jmp 0x10030787
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10030761
xor eax, eax
jmp 0x10030787
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10030780
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100307c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100306c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100307f0
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.10030be0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100458e8], 0
jne 0x1003082d
cmp dword [0x100458e4], 0
je 0x1003082d
mov eax, dword [0x100458e4]
mov dword [0x100458e8], eax
cmp dword [0x100458e8], 0
je 0x100308aa
mov ecx, dword [0x100458e8]
cmp dword [ecx + 8], 0
je 0x100308aa
mov edx, dword [0x100458e8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100308aa
mov ecx, dword [0x100458e8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100308aa
mov eax, dword [0x100458e8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10030879
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10030880
xor eax, eax
jmp 0x100309c9
mov ecx, dword [0x100458e8]
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 sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100309c9
mov edx, dword [0x100458e4]
mov dword [0x100458e8], edx
jmp 0x100308c6
mov eax, dword [0x100458e8]
mov ecx, dword [eax + 4]
mov dword [0x100458e8], ecx
cmp dword [0x100458e8], 0
je 0x10030906
cmp dword [0x100458e8], 0
je 0x10030904
mov edx, dword [0x100458e8]
cmp dword [edx + 8], 0
je 0x10030904
mov eax, dword [0x100458e8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10030904
mov edx, dword [0x100458e8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10030904
jmp 0x1003085e
jmp 0x100308b8
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.100309d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100309c7
mov eax, dword [ebp - 0x18]
mov dword [0x100458e8], eax
mov ecx, dword [0x100458e8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100458e8]
mov dword [edx + 8], 0
mov eax, dword [0x100458e8]
mov ecx, dword [0x100458e4]
mov dword [eax + 4], ecx
mov edx, dword [0x100458e8]
mov dword [0x100458e4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100458e8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10030997
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100309b7
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 0x1003098e
mov eax, dword [0x100458e8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003085e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10031710
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100458e4]
mov dword [ebp - 4], eax
jmp 0x10031729
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10031750
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 0x1003174e
call sub.KERNEL32.dll_GetLastError
jmp 0x10031752
jmp 0x10031720
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10031bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100458f4], eax
je 0x10031c14
mov eax, 0x10dd
jmp 0x10031dbc
cmp dword [0x100458f8], 0
je 0x10031c27
mov eax, dword [0x100458f8]
jmp 0x10031dbc
cmp dword [ebp + 0xc], 0
jne 0x10031c37
mov eax, 0x57
jmp 0x10031dbc
cmp dword [ebp + 8], 0
jne 0x10031c47
mov eax, 6
jmp 0x10031dbc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10031c70
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100458f8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100458fc], edx
mov eax, dword [ebp - 8]
jmp 0x10031dbc
push 0x18
call fcn.100332d2
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10031ccb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100458f8], ecx
cmp dword [ebp - 4], 0
je 0x10031cba
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10033325
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100458fc], ecx
mov eax, dword [ebp - 8]
jmp 0x10031dbc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10031bd0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10031bd0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10031d0b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10031d27
mov dword [ebp - 8], 9
cmp dword [0x100458ec], 0
je 0x10031d22
jmp 0x10031c99
jmp 0x10031c90
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10031d4e
mov dword [ebp - 8], 9
cmp dword [0x100458ec], 0
je 0x10031d49
jmp 0x10031c99
jmp 0x10031c90
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10031d79
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10031c90
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10045904]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10045904], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8