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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042210
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x10052fda], 0
je 0x10011b02
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
sub eax, dword [0x10053000]
sbb edx, dword [0x10053004]
mov dword [ebp - 0x48], edx
jne 0x1001198b
cmp eax, 0xbb8
jb 0x10011b02
call esi
movaps xmm0, xmmword [0x1004a3d0]
xor ecx, ecx
mov dword [0x10053000], eax
mov dword [0x10053004], edx
movups xmmword [ebp - 0x20], xmm0
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xe
jb 0x100119a5
sub esp, 0x18
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10003b20
lea ecx, [ebp - 0x44]
call fcn.1003bce0
add esp, 0x18
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x4d], 0xa1
mov dword [ebp - 0x2c], vtable.ByteBuffer.0
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x1000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10008530
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
mov edi, edx
mov ecx, dword [ebp - 0x1c]
sub edi, ecx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], vtable.Packet.0
cmp edi, 0x989680
ja 0x10011a6f
lea esi, [eax + 1]
cmp edi, esi
jae 0x10011a62
push esi
lea ecx, [ebp - 0x1c]
call fcn.100086d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dl, byte [ebp - 0x4d]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
sub edx, ecx
mov byte [ebp - 4], 3
mov byte [ebp - 0x4d], 0xa2
cmp edx, 0x989680
ja 0x10011aa1
lea esi, [eax + 1]
cmp edx, esi
jae 0x10011a97
push esi
lea ecx, [ebp - 0x1c]
call fcn.100086d0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dl, byte [ebp - 0x4d]
mov byte [ecx + eax], dl
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.100083c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x48], eax
cmp ecx, 0x4000
ja 0x10011ae1
mov ecx, dword ds:[0x10045a9c]
mov ecx, dword ds:[ecx]
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call dword [0x10045a98]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], vtable.ByteBuffer.0
call fcn.10008660
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x10011b02
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fc80
mov esp, ebp
pop ebp
ret
Function at 0x10013180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10051018]
xor eax, esp
mov dword [esp + 0x30], eax
movaps xmm0, xmmword [0x1004a6c0]
push esi
mov esi, ecx
mov dword [esp + 0x14], 0x202c2661
movups xmmword [esp + 4], xmm0
mov byte [esp + 0x18], 0
xor ecx, ecx
mov al, byte [esp + 4]
xor byte [esp + ecx + 5], al
inc ecx
cmp ecx, 0x13
jb 0x100131b2
lea eax, [esp + 5]
mov byte [esp + 0x18], 0
push eax
mov edx, 0x100532b4
lea ecx, [esp + 0x20]
call fcn.1000e280
mov eax, dword [esi + 0x1fc]
add esp, 4
test eax, eax
je 0x100131ec
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp dword [esp + 0x30], 0x10
lea eax, [esp + 0x1c]
push 0x8010
cmovae eax, dword [esp + 0x20]
push 0
push 0
push 1
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi + 0x1fc], eax
test eax, eax
je 0x1001322d
cmp byte [esi + 0x200], 0
mov dword [esi + 0x14], eax
je 0x1001322d
push esi
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x10013241
inc eax
push eax
push dword [esp + 0x20]
call fcn.10004c80
mov ecx, dword [esp + 0x34]
pop esi
xor ecx, esp
call fcn.1003fc80
mov esp, ebp
pop ebp
ret
Function at 0x100133c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x58
mov dword [ebp - 0x2f8], 0x342c0a58
mov dword [ebp - 0x2f4], 0x3c393714
xor eax, eax
mov dword [ebp - 0x2f0], 0x312a2c0b
mov word [ebp - 0x2ec], 0x3f36
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1001341a
mov cl, byte [ebp - 0x2f8]
jmp 0x10013405
push ebx
mov byte [ebp - 0x2e8], 0x4f
mov al, 0x21
xor al, byte [ebp - 0x2e8]
mov bl, 0x23
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x2b
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor bl, al
mov byte [ebp - 0x2de], 0
xor ah, al
mov byte [ebp - 0x2ea], 0
xor bh, al
mov byte [ebp - 0x2e3], ah
mov dh, dl
mov byte [ebp - 0x2e4], bl
xor dl, al
mov byte [ebp - 0x2e0], bh
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x3b
mov byte [ebp - 0x2e1], dh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x61
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2f7]
push esi
push eax
lea eax, [ebp - 0x2e7]
mov byte [ebp - 0x2e2], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
jne 0x100134e1
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003fc80
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 0x100134cf
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 0x100134cf
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100134cf
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x100134cf
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001e90
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x100134cf
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
pop ebx
call fcn.1003fc80
mov esp, ebp
pop ebp
ret
Function at 0x100135b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov byte [ebp - 0x14], 0x35
mov al, 0x5b
xor al, byte [ebp - 0x14]
mov bl, 0x59
mov ah, bl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x14]
mov dl, 0x51
mov bh, ah
mov byte [ebp - 1], ah
mov dh, dl
mov byte [ebp - 0xa], 0
xor dl, al
mov byte [ebp - 0xa], 0
xor bl, al
mov byte [ebp - 0x11], dl
xor ah, al
mov byte [ebp - 0x10], bl
xor dh, al
mov byte [ebp - 0xf], ah
xor bh, al
mov byte [ebp - 0xd], dh
mov cl, 0x41
mov byte [ebp - 0xc], bh
xor cl, al
mov ch, 0x1b
xor ch, al
mov byte [ebp - 0x12], cl
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x14]
mov esi, dword [0x10053018]
mov byte [ebp - 0xb], al
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0xe], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
jne 0x1001362c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x1004a720]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x3329152f
mov dword [ebp - 0x18], 0x252024
mov cl, byte [ebp - 0x2c]
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 0x16
jb 0x10013647
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10013623
test esi, esi
jne 0x10013675
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013690
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.1000c3e0
test eax, eax
je 0x1001379c
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1001379c
push eax
call esi
test ebx, ebx
je 0x1001379c
movaps xmm0, xmmword [str.Ue__a0_80]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xe
jb 0x100136f0
mov byte [ebp - 0x18], 6
mov al, 0x68
xor al, byte [ebp - 0x18]
mov bl, 0x6a
mov ah, bl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x18]
mov dl, 0x62
mov bh, ah
mov byte [ebp - 9], ah
xor bl, al
mov byte [ebp - 0xe], 0
xor ah, al
mov byte [ebp - 0x19], 0
xor bh, al
mov byte [ebp - 0x13], ah
mov dh, dl
mov byte [ebp - 0x14], bl
xor dl, al
mov byte [ebp - 0x10], bh
xor dh, al
mov byte [ebp - 0x15], dl
mov cl, 0x72
mov byte [ebp - 0x11], dh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 0x28
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x17]
mov byte [ebp - 0x12], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.1000eed0
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100137b5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
jns 0x100137a4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x100137b2
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003fc80
mov esp, ebp
pop ebp
ret
Function at 0x10014600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x4f
mov al, 0x2d
xor al, byte [ebp - 0x10]
mov dl, 0x2e
mov byte [ebp - 0xf], al
mov dh, 0x10
mov al, byte [ebp - 0x10]
mov bl, 0x3c
push esi
xor dl, al
mov byte [ebp - 7], 0
xor dh, al
mov byte [ebp - 0xe], dl
push edi
mov esi, ecx
mov byte [ebp - 0xb], dh
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
mov ch, bl
mov ah, 0x2a
mov bh, 0x2c
mov cl, 0x20
xor bl, al
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
xor cl, al
mov byte [ebp - 0xa], bh
xor ch, al
mov byte [ebp - 9], cl
mov byte [ebp - 8], ch
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10014670
mov eax, dword [edx]
jmp 0x10014672
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001467f
xor ecx, ecx
jmp 0x1001468e
lea ecx, [ebp - 0xf]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014685
sub ecx, edi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.10004510
mov ecx, dword [esi]
call fcn.1000e680
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x100146bd
mov dword [esi + 4], 0
movaps xmm0, xmmword [str.X:_6_a_b9_07]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x100146d0
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x13], 0
jne 0x10014701
xor ecx, ecx
jmp 0x10014710
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014707
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10004510
mov ecx, dword [esi + 4]
call fcn.1000e680
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001473a
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x10014754
cmp dword [0x100532e8], 0
mov ecx, 0x10b78ba
sete dl
call fcn.1000ee00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x1004a8a0]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x263c102a
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0x3b2e3a3b
xor ecx, ecx
mov dword [ebp - 8], 0x212026
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10019880
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x100198b1
xor ecx, ecx
jmp 0x100198c0
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100198b7
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004510
mov ecx, dword [esi]
call fcn.1000e680
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002a550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042e40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10051018]
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 edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x100531d0], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x1002a707
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x1002a707
mov al, byte [ebx]
test al, al
je 0x1002a707
cmp byte [ebp + 8], 0
jne 0x1002a707
movaps xmm0, xmmword [0x1004a320]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1002a5d0
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10003b20
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x1c
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10003b20
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002a62a
push 4
push ebx
call esi
test eax, eax
jne 0x1002a62a
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a008]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002a640
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004c80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10003b20
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002a674
push 4
push ebx
call esi
test eax, eax
jne 0x1002a674
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a04c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002a68a
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004c80
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002a6a2
push 4
push ebx
call esi
test eax, eax
jne 0x1002a6a2
mov ecx, ebx
call dword [0x1004a010]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x2b
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10003b20
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x1002a6d8
push 4
push ebx
call esi
test eax, eax
jne 0x1002a6d8
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a050]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002a6ee
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10004c80
mov ecx, edi
call fcn.1002bc80
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002a707
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10004c80
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.1003fc80
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003bce0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100438e8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10051018]
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 + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
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.1003ba70
lea ecx, [ebp - 0x7c]
call fcn.1003bb20
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003bc10
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1003bd87
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10004c80
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.1003fc80
mov esp, ebp
pop ebp
ret
Function at 0x1003cbe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100439ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10051018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1003cc16
xor ebx, ebx
jmp 0x1003cc1f
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 0x1003cc61
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003cca0
test esi, esi
jne 0x1003cca4
push 0x1003c460
push 0x10052b10
call fcn.1003c150
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1003cc61
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003cc8e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003cc8e
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 0x1003cce6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003cccf
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 0x1003cca4
cmp dword [ebx + 0x18], 0
je 0x1003cc30
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003cd0d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003cd0d
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.1003c480
cmp dword [ebx + 0x18], 0
jne 0x1003ccf0
jmp 0x1003cc30
Function at 0x1003cfb0
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.1003d180
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003d08d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003cffa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003cffa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003cfca
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 0x1003d01f
jmp 0x1003d08d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d073
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d073
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 0x1003d056
mov eax, dword [ebp - 8]
jmp 0x1003d08f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d066
xor eax, eax
jmp 0x1003d08f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d088
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003d180
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003cfca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003d0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003d1b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003d175
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003d0e5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003d0e5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003d0b5
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 0x1003d10a
jmp 0x1003d175
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d15e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d15e
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 0x1003d141
mov eax, dword [ebp - 8]
jmp 0x1003d177
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d151
xor eax, eax
jmp 0x1003d177
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d170
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003d1b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003d0b5
xor eax, eax
mov esp, ebp
pop ebp
ret