joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a23c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00479947
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004798fc
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00479947
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004798fc
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00479937
jb 0x47a334
cld
invalid
daa
call 0xfb14492d
invalid
Function at 0x40416c
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, si
shr esi, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov bx, word [ebp + 8]
push edi
mov dword [ebp - 4], esi
mov di, si
mov dword [ebp - 8], 0x40
sub eax, 0x61c88647
movzx edx, ax
mov dword [ebp - 0xc], eax
mov ax, di
shr ax, 5
lea ecx, [edx + esi]
shl esi, 4
xor cx, ax
xor cx, si
add bx, cx
mov word [ebp + 8], bx
mov ax, bx
mov ecx, dword [ebp + 8]
add edx, ecx
shr ax, 5
xor dx, ax
shl ecx, 4
xor dx, cx
add di, dx
sub dword [ebp - 8], 1
mov word [ebp - 4], di
je 0x4041e3
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x404194
mov al, byte [ebp + 8]
pop edi
pop esi
and al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404540
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x404556
imul eax, eax, 0x21
inc edx
movzx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x40454d
pop ebp
ret

Function at 0x40455e
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x404576
imul eax, eax, 0x21
lea edx, [edx + 2]
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x40456b
pop ebp
ret

Function at 0x404e53
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x20
push esi
call fcn.00404fd3
pop ecx
pop ecx
test eax, eax
je 0x404e78
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x404f24
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not ecx
test edx, edx
je 0x404f5e
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, byte [esi]
dec edx
push 8
xor ecx, eax
inc esi
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
not eax
inc eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x404f42
test edx, edx
jne 0x404f38
pop edi
pop esi
not ecx
mov eax, ecx
pop ebp
ret

Function at 0x4050b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4050d7
push edi
mov edi, dword [ebp + 0xc]
mov edx, eax
sub edi, eax
mov cl, byte [edi + edx]
xor byte [edx], cl
inc edx
sub esi, 1
jne 0x4050cb
pop edi
pop esi
pop ebp
ret
Function at 0x4050da
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor esi, esi
push edi
mov eax, esi
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x4050ea
mov edi, esi
xor edx, edx
mov bl, byte [ebp + edi - 0x104]
mov eax, edi
movzx ecx, bl
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + edi - 0x104], al
inc edi
mov byte [ebp + esi - 0x104], bl
cmp edi, 0x100
jb 0x4050fb
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov eax, esi
test ebx, ebx
je 0x4051a4
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x14], ecx
sub edi, ecx
inc eax
movzx ecx, al
mov dword [ebp - 4], ecx
mov dl, byte [ebp + ecx - 0x104]
movzx eax, dl
add eax, esi
movzx esi, al
mov al, byte [ebp + esi - 0x104]
mov byte [ebp + ecx - 0x104], al
mov byte [ebp + esi - 0x104], dl
movzx ecx, byte [ebp + ecx - 0x104]
movzx eax, dl
add ecx, eax
mov eax, dword [ebp + 0x14]
movzx ecx, cl
mov cl, byte [ebp + ecx - 0x104]
xor cl, byte [edi + eax]
mov byte [eax], cl
inc eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 4]
sub ebx, 1
jne 0x40514e
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4054ad
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x4c5
push ebx
push esi
mov esi, dword [ebp + 8]
xor esi, 0x183c
shl esi, 0x10
xor esi, dword [ebp + 8]
xor esi, 0x9973
mov eax, esi
shr eax, 0x15
push edi
cmp eax, ecx
ja 0x405530
je 0x405529
sub eax, 0xbd
je 0x405522
sub eax, 0x189
je 0x40551b
sub eax, 0x38
je 0x405514
sub eax, 0x8b
je 0x40550d
sub eax, 0x30
je 0x405506
sub eax, 0x26
jne 0x405554
mov eax, 0x4053f5
jmp 0x405573
mov eax, 0x405306
jmp 0x405573
mov eax, 0x405691
jmp 0x405573
mov eax, 0x4053b1
jmp 0x405573
mov eax, 0x405378
jmp 0x405573
mov eax, 0x40561f
jmp 0x405573
mov eax, 0x40533f
jmp 0x405573
sub eax, 0x4d2
je 0x40556e
sub eax, 0x66
je 0x405567
sub eax, 0x74
je 0x405560
sub eax, 0x10f
je 0x405559
sub eax, 0x78
jne 0x405554
mov eax, 0x4055e6
jmp 0x405573
mov eax, dword [ebp + 8]
jmp 0x405573
mov eax, 0x4056ca
jmp 0x405573
mov eax, 0x405658
jmp 0x405573
mov eax, fcn.00405401
jmp 0x405573
mov eax, 0x4053bd
call eax
mov edi, eax
test edi, edi
je 0x4055cc
mov ecx, dword [edi + 0x3c]
and esi, 0x1fffff
xor ebx, ebx
mov ecx, dword [ecx + edi + 0x78]
add ecx, edi
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, edi
mov dword [ebp - 8], eax
add edx, edi
mov eax, dword [ecx + 0x1c]
add eax, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp + 8], eax
test eax, eax
je 0x4055cc
mov eax, dword [edx + ebx*4]
add eax, edi
push eax
call fcn.0040528c
and eax, 0x1fffff
pop ecx
cmp eax, esi
je 0x4055d5
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x4055ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
movzx eax, word [eax + ebx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x4055ce
Function at 0x405ecd
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
push edi
lea eax, [ebp - 0x15c]
push eax
push 0x90
push 4
push 0x108
push 0x41b838
call fcn.00404580
add esp, 0x14
xor esi, esi
xor eax, eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0x15c]
push esi
push esi
push esi
push esi
push eax
call dword [0x41b748]
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x4060ed
mov word [ebp - 0x30], ax
xor ecx, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x3c
push eax
push esi
push esi
push dword [ebp + 8]
inc ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [0x41b664]
test eax, eax
jne 0x405f79
push edi
call dword [0x41b790]
xor eax, eax
jmp 0x4060ed
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x34]
push ebx
push esi
mov word [ecx + eax*2], dx
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push edi
call dword [0x41b7a8]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x405fa0
push edi
jmp 0x406001
mov eax, dword [ebp - 0x1c]
cmp word [eax], si
jne 0x405fae
push 0x2f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x54]
push eax
push 8
push 9
push 0x7a6
push 0x41b838
call fcn.00404580
add esp, 0x14
xor eax, eax
cmp dword [ebp - 0x3c], 2
mov ecx, 0x800000
mov word [ebp - 0x4c], ax
cmove eax, ecx
or eax, 0x100
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [0x41b830]
mov ebx, eax
test ebx, ebx
jne 0x40600e
push edi
call dword [0x41b790]
push dword [ebp - 0xc]
call dword [0x41b790]
xor eax, eax
jmp 0x4060ec
lea eax, [ebp - 0xc8]
mov edi, esi
push eax
push 0x72
push 7
push 0x394
push 0x41b838
call fcn.00404580
add esp, 0x14
xor eax, eax
mov word [ebp - 0x56], ax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0xc8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ebx
call dword [0x41b7c4]
test eax, eax
jne 0x40607f
call fcn.00403dad
cmp eax, 0x2f8f
jne 0x40607b
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x13300
push eax
push 0x1f
push ebx
call dword [0x41b7f4]
test eax, eax
push 1
pop eax
cmovne edi, eax
test edi, edi
jne 0x406033
mov eax, dword [ebp + 0x18]
push esi
push ebx
mov dword [eax], esi
call dword [0x41b73c]
mov edi, dword [ebp - 8]
test eax, eax
je 0x4060d3
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push esi
push 0x20000013
push ebx
call dword [0x41b824]
mov ecx, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x4060d3
push dword [ebp + 0x14]
push ebx
call fcn.00405de6
pop ecx
pop ecx
mov esi, eax
push edi
call dword [0x41b790]
push dword [ebp - 0xc]
call dword [0x41b790]
push ebx
call dword [0x41b790]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406604
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4066a8
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
mov eax, ebx
sub eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
sub eax, ecx
push edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
xor edi, edi
push eax
call fcn.0040673a
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add dword [eax + 0x20], 1
jne 0x406649
inc dword [eax + 0x24]
cmp esi, 0x40
jbe 0x406680
mov ebx, dword [ebp - 4]
mov edx, edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
add ecx, edx
push 0x40
mov al, byte [ebx + ecx]
xor al, byte [ecx]
inc edx
mov byte [edi + ecx], al
pop eax
cmp edx, eax
jb 0x406656
mov ebx, dword [ebp + 0x10]
sub esi, eax
add dword [ebp + 0x14], eax
add ebx, eax
add dword [ebp + 0xc], eax
add dword [ebp - 4], eax
mov dword [ebp + 0x10], ebx
jmp 0x40662d
test esi, esi
je 0x4066a6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
sub eax, ecx
sub ebx, ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x44]
add ecx, edi
mov al, byte [eax + ecx]
xor al, byte [ecx]
inc edi
mov byte [ebx + ecx], al
mov eax, dword [ebp + 0xc]
cmp edi, esi
jb 0x406691
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4066cb
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x100
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x10], eax
jne 0x4066ff
add ecx, 0x10
mov esi, str.expand_32_byte_kexpand_16_byte_k
jmp 0x406704
mov esi, 0x417e60
mov eax, dword [ecx]
mov dword [edx + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [edx + 0x30], eax
mov eax, dword [ecx + 8]
mov dword [edx + 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0x38], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [0x41c18c], esi
mov dword [edx + 0x3c], eax
pop esi
pop ebp
ret
Function at 0x40791b
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.0040358e
mov al, byte [ebp - 1]
push dword [ebp + 0x10]
and byte [ebp - 0x20], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ebp - 1], al
lea eax, [ebp - 0x70]
push eax
call fcn.00407c77
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040733d
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040754c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00408191
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 8]
call fcn.004079a6
add esp, 0x40
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408d4f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp + 0x14], 0xa
mov eax, dword [edi + esi]
mov ecx, dword [esi]
xor ecx, eax
and ecx, ebx
xor eax, ecx
cdq
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
mov eax, dword [esi]
xor eax, ecx
sub dword [ebp + 0x14], 1
cdq
mov dword [esi], eax
lea esi, [esi + 8]
mov dword [esi - 4], edx
jne 0x408d69
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408d94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x408ec6
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test ebx, ebx
jne 0x408dbc
test edi, edi
jne 0x408ec6
mov esi, dword [ebp + 0x18]
mov eax, 0xc8
cmp esi, eax
jae 0x408ec6
push eax
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.004035b3
add esp, 0xc
cmp edi, esi
jb 0x408e28
mov eax, ebx
lea ecx, [ebp - 0xcc]
sub eax, ecx
mov dword [ebp - 4], eax
xor edx, edx
test esi, esi
je 0x408e0d
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x408df8
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xcc]
push eax
call fcn.00408ed0
add dword [ebp - 4], esi
sub edi, esi
add ebx, esi
mov dword [ebp + 0x14], edi
pop ecx
cmp edi, esi
jae 0x408def
mov al, byte [ebp + 0x1c]
xor byte [ebp + edi - 0xcc], al
xor byte [ebp + esi - 0xcd], 0x80
test edi, edi
je 0x408e5a
lea eax, [ebp - 0xcc]
sub ebx, eax
xor edx, edx
lea ecx, [ebp - 0xcc]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc edx
cmp edx, edi
jb 0x408e48
lea eax, [ebp - 0xcc]
push eax
call fcn.00408ed0
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
pop ecx
cmp edi, esi
jb 0x408e9e
test esi, esi
je 0x408e86
push esi
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.0040358e
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
call fcn.00408ed0
mov eax, dword [ebp + 8]
add eax, esi
sub edi, esi
mov dword [ebp + 8], eax
jmp 0x408e6c
test edi, edi
je 0x408eb3
push edi
lea edx, [ebp - 0xcc]
push edx
push eax
call fcn.0040358e
add esp, 0xc
xor al, al
lea edi, [ebp - 0xcc]
mov ecx, 0xc8
rep stosb byte es:[edi], al
xor eax, eax
jmp 0x408ec9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x102e6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.102e61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102e607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e606a
add dl, dl
jne 0x102e6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e60dc
xor eax, eax
add dl, dl
jne 0x102e6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102e617d
add dl, dl
jne 0x102e60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102e60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102e6075
mov eax, 1
add dl, dl
jne 0x102e60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102e60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e60e1
sub eax, ebx
mov ebx, 1
jne 0x102e6128
mov ecx, 1
add dl, dl
jne 0x102e610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102e6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102e613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102e614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102e6136
cmp eax, 0x7d00
jae 0x102e616d
cmp eax, 0x500
jb 0x102e6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e6075
cmp eax, 0x7f
ja 0x102e6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102e6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102e619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102e6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x418e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x5183c0]
test esi, esi
jle 0x418f10
mov edi, dword [0x5183c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x418e34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x418eb5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x418e20
mov dword [esp], eax
mov ebx, eax
call fcn.004196f0
test eax, eax
mov edi, eax
je 0x418f37
mov eax, dword [0x5183c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004197f0
add eax, dword [edi + 0xc]
mov edx, dword [0x5183c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x418f17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x418eae
sub eax, 4
and eax, 0xfffffffb
jne 0x418ec0
add dword [0x5183c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x5183c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x418eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004a7060
lea esi, [esi]
xor esi, esi
jmp 0x418e3e
mov eax, dword [0x5183c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004a7060
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004a7060
mov esi, esi
lea edi, [edi]

Function at 0x419370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5183d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5183d0]
sub esp, 4
test ebx, ebx
je 0x4193c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4193be
test esi, esi
je 0x4193be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4193a0
mov dword [esp], 0x5183d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41de20
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x518424], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x518428], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41de90
mov dword [esp + 4], 0x41dd40
mov dword [esp], eax
mov dword [0x518420], eax
call fcn.00428b40
test eax, eax
jne 0x4a7105
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41de7a