joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7751f59c
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ecx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x7751f63b
xor edi, edi
cmp dword [esi + 4], edi
je 0x7751f5c7
push dword [esi + 4]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call fcn.77461440
mov dword [esi + 4], edi
cmp dword [esi + 0x14], edi
je 0x7751f5e1
push dword [esi + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call fcn.77461440
mov dword [esi + 0x14], edi
test byte [esi], 4
je 0x7751f61a
cmp dword [esi + 8], edi
je 0x7751f600
push dword [esi + 8]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call fcn.77461440
mov dword [esi + 8], edi
cmp dword [esi + 0xc], edi
je 0x7751f61a
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call fcn.77461440
mov dword [esi + 0xc], edi
test byte [esi], 1
je 0x7751f62b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x7751f62b
call fcn.7751e94c
mov eax, dword fs:[0x30]
push esi
push edi
push dword [eax + 0x18]
call fcn.77461440
xor eax, eax
pop edi
inc eax
pop esi
pop ecx
ret
Function at 0x10005b9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10005baa
pop dword [ebp - 0x20]
mov eax, 0x1308da4
sub eax, 0xf13031fa
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x25a82d41
add dword [ebp - 0x30], 0x28aa180a
mov dword [ebp - 0x2c], 0x9a31a94b
sub dword [ebp - 0x2c], 0x67fe5d06
mov dword [ebp - 0x28], 0x9e8dea2f
add dword [ebp - 0x28], 0xadbe59ff
mov dword [ebp - 0x24], 0x7aaa3460
sub dword [ebp - 0x24], 0x7aaa3460
lea eax, [ebp - 0x30]
push eax
mov eax, 0xf11abf7f
sub eax, 0xe119ff5b
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf5dc6827
add dword [ebp - 0x30], 0x7e96012f
mov dword [ebp - 0x2c], 0xe7760fb8
add dword [ebp - 0x2c], 0x59f651bd
mov dword [ebp - 0x28], 0x15bd7b2a
sub dword [ebp - 0x28], 0xb24e0ebe
mov dword [ebp - 0x24], 0xa2b2d7ad
sub dword [ebp - 0x24], 0xa2b2d7ad
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x1d1eebde
sub eax, 0xd1e2bb2
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x385bb
push 0
call eax
mov ecx, 0x4967
mov edx, eax
mov edi, 0x27391a84
add edi, 0xe8cb597c
add edi, dword [ebp - 0x20]
mov esi, 0x3a925029
xor dword [ebp - 8], 0x2ed92c41
mov ebx, dword [edi]
sub dword [ebp - 0x1c], 0xdf419b71
add ebx, esi
add dword [ebp - 4], eax
mov dword [edx], ebx
add edx, 4
add edi, 4
loop 0x10005cc0
add eax, 0x2f9c9738
sub eax, 0x2f9b7ec9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x418852
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x418861
pop dword [ebp - 0x20]
mov eax, 0xe4e86780
sub eax, 0xe4a6df1f
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3ee58
push 0
mov eax, 0x6cf654dc
sub eax, 0x6cb402c4
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4c0b
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 0x20]
mov edi, 0x81c78e41
add dword [ebp - 0xc], ecx
mov ebx, dword [edx]
xor dword [ebp - 0x14], ecx
add ebx, edi
sub dword [ebp - 0x1c], 0xe6a3df3
mov dword [esi], ebx
mov dword [ebp - 0x14], 0xbfc4019d
add esi, 0x68f64c02
sub esi, 0x68f64bfe
add edx, 4
loop 0x4188b0
add eax, 0x46deac7f
add eax, 0xb9227680
mov ebx, eax
add eax, 5
mov ecx, 0x17ae125a
add ecx, 0xe891eda6
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x618726f8
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x26543bd9
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405e20
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov ebx, edx
mov esi, ecx
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [sym.imp.libLLVM.dll_llvm::StringError::ID]
push edx
call dword [eax + 0x18]
mov edi, dword [ebx]
mov dword [ebx], 0
test al, al
je 0x405e8d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
movsd xmm0, qword [eax]
movsd qword [esp + 0x94], xmm0
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], edi
call fcn.00403330
add esp, 0xc
mov eax, dword [ebx + 4]
test byte [eax], 1
jne 0x405e94
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
jmp 0x405ea1
mov dword [esi], edi
jmp 0x405fae
mov ecx, esp
push dword [eax + 4]
push dword [eax + 8]
call fcn.00406740
movzx eax, byte [esp]
mov edx, eax
shr edx, 1
test al, 1
lea eax, [esp + 1]
cmovne eax, dword [esp + 8]
mov ecx, dword [ebx + 8]
cmovne edx, dword [esp + 4]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov byte [esp + 0x78], 0
mov byte [esp + 0x80], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x10], 0x12
mov dword [esp + 0x11], 0x766e693c
mov dword [esp + 0x15], 0x64696c61
mov word [esp + 0x19], 0x3e
mov byte [esp + 0x1c], 0x12
mov dword [esp + 0x1d], 0x766e693c
mov dword [esp + 0x21], 0x64696c61
mov word [esp + 0x25], 0x3e
mov byte [esp + 0x28], 0x12
mov dword [esp + 0x29], 0x766e693c
mov dword [esp + 0x2d], 0x64696c61
mov word [esp + 0x31], 0x3e
mov byte [esp + 0x34], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x68], 0
xorps xmm0, xmm0
movsd qword [esp + 0x51], xmm0
movsd qword [esp + 0x4c], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x10]
lea ebx, [esp + 0x70]
push edx
push ebx
call dword [eax + 8]
test byte [esp + 0x28], 1
jne 0x405fb6
test byte [esp + 0x1c], 1
jne 0x405fc9
test byte [esp + 0x10], 1
jne 0x405fdc
test byte [esp], 1
je 0x405fa1
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov dword [esi], 0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x1c], 1
je 0x405f88
push dword [esp + 0x24]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x10], 1
je 0x405f8f
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp], 1
jne 0x405f95
jmp 0x405fa1
Function at 0x4067a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 8]
test byte [edx + 0x38], 1
jne 0x4067c3
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 0x10]
jmp 0x406954
mov ebx, dword [edx]
mov dword [edx], 0
test ebx, ebx
je 0x4068ea
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [sym.imp.libLLVM.dll_llvm::ErrorList::ID]
mov ecx, ebx
push edx
call dword [eax + 0x18]
test al, al
je 0x406898
mov dword [esp + 8], esi
mov eax, ebx
mov ebx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov esi, dword [eax + 8]
cmp ebx, esi
je 0x4068ce
xor edi, edi
mov byte [esp + 7], 1
jmp 0x40681b
add ebx, 4
cmp ebx, esi
je 0x4068d3
mov dword [esp + 0x10], edi
mov edi, dword [ebx]
mov dword [ebx], 0
mov eax, dword [edi]
mov ecx, edi
push dword [sym.imp.libLLVM.dll_llvm::ErrorInfoBase::ID]
call dword [eax + 0x18]
test al, al
je 0x406852
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edi
push dword [esp + 0xc]
call dword [eax + 0x1c]
mov byte [esp + 7], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00405bf0
add esp, 0xc
mov edi, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x406886
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406810
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406810
mov eax, dword [ebx]
mov edx, dword [sym.imp.libLLVM.dll_llvm::ErrorInfoBase::ID]
mov ecx, ebx
push edx
call dword [eax + 0x18]
test al, al
mov ecx, edi
je 0x4068ea
mov eax, dword [ecx]
mov ecx, edi
push ebx
push esi
call dword [eax + 0x1c]
mov byte [esp + 7], al
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, edi
cmp byte [esp + 7], 0
jne 0x4068ea
jmp 0x406954
mov byte [esp + 7], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 8]
mov ecx, dword [ebp + 8]
cmp byte [esp + 7], 0
je 0x406954
mov byte [esp + 0x18], 0x12
mov dword [esp + 0x19], 0x766e693c
mov dword [esp + 0x1d], 0x64696c61
mov word [esp + 0x21], 0x3e
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x34], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push esi
call dword [eax + 0x10]
test byte [esp + 0x38], 1
je 0x406941
push dword [esp + 0x40]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x18], 1
je 0x406954
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407a90
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
sub esp, 0x10
mov ecx, 0x4110fc
call fcn.0040af7a
cmp byte [0x4110f8], 0
jne 0x407b6b
mov ecx, 0x4110fc
call fcn.0040af80
mov ecx, 0x4110fc
call fcn.0040af86
cmp byte [0x4110f8], 0
jne 0x407ae4
mov dword [0x4110bc], 0x4110c8
mov dword [0x4110c4], 6
mov byte [0x4110f8], 1
mov dword [0x4110c0], 0
push str.DEBUGINFOD_URLS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x407b4e
mov dword [esp + 8], eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp], 0x40dbb8
mov dword [esp + 4], 1
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], 0x4110bc
lea ecx, [esp + 0x1c]
call fcn.0040af92
mov ecx, 0x4110fc
call fcn.0040af98
mov ecx, 0x4110fc
call fcn.0040af7a
cmp byte [0x4110f8], 0
je 0x407bdc
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], 6
cmp esi, 0x4110bc
je 0x407bca
mov edi, dword [0x4110c0]
test edi, edi
je 0x407bca
cmp edi, 7
jb 0x407bb2
mov ecx, esi
push 8
push edi
push eax
call fcn.0040ad7c
mov ecx, dword [0x4110c0]
test ecx, ecx
je 0x407bc7
mov eax, dword [esi]
jmp 0x407bb4
mov ecx, edi
shl ecx, 3
push ecx
push dword [0x4110bc]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi + 4], edi
mov ecx, 0x4110fc
call fcn.0040af80
mov eax, esi
add esp, 0x10
pop esi
pop edi
ret
call fcn.004096b0
int3
Function at 0x407bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
mov esi, dword [esp + 0xbc]
push str.DEBUGINFOD_CACHE_PATH
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x407c4b
mov edi, eax
and byte [esi + 0xc], 0xfe
push eax
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff8
jae 0x407e05
mov ebx, eax
cmp eax, 0xb
jae 0x407d04
mov eax, ebx
add al, bl
mov byte [esi], al
lea ebp, [esi + 1]
test ebx, ebx
jne 0x407d32
jmp 0x407d3d
lea ebx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x40
lea edi, [esp + 0x34]
push edi
call fcn.0040af9e
add esp, 4
test al, al
je 0x407d44
mov dword [esp + 4], str.llvm_debuginfod
mov word [esp + 0x14], 0x103
mov dword [esp + 0x20], str.client
mov word [esp + 0x30], 0x103
mov word [esp + 0xa4], 0x101
mov word [esp + 0x90], 0x101
lea eax, [esp + 0x80]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x20]
lea ebx, [esp + 4]
push eax
push ecx
push edx
push ebx
push edi
call fcn.0040afa4
add esp, 0x14
mov ecx, dword [esp + 0x38]
cmp ecx, 0xfffffff8
jae 0x407e0c
mov ebp, dword [esp + 0x34]
cmp ecx, 0xb
jae 0x407da9
mov eax, ecx
add al, cl
mov byte [esp + 4], al
lea edi, [esp + 5]
test ecx, ecx
lea ebx, [esp + 0x40]
jne 0x407dd3
jmp 0x407de2
mov esi, ebx
or ebx, 7
lea eax, [ebx + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0xbc]
mov dword [eax + 8], ebp
add ebx, 2
mov dword [eax], ebx
mov ebx, esi
mov esi, dword [esp + 0xbc]
mov dword [esi + 4], ebx
push ebx
push edi
push ebp
call sub.msvcrt.dll_memmove
add esp, 0xc
mov byte [ebp + ebx], 0
jmp 0x407d9c
call fcn.0040afaa
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 5
sub esp, 0x10
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], str.Unable_to_determine_appropriate_cache_directory.
call fcn.0040afb0
add esp, 0x10
or byte [esi + 0xc], 1
mov eax, dword [esp]
mov dword [esi], eax
mov dword [esp], 0
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x407d9c
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, ecx
or ebx, 7
lea eax, [ebx + 1]
push eax
mov edi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0xc], eax
add ebx, 2
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea ebx, [esp + 0x40]
push ecx
push ebp
push edi
mov ebp, ecx
call sub.msvcrt.dll_memmove
mov ecx, ebp
add esp, 0xc
mov byte [edi + ecx], 0
and byte [esi + 0xc], 0xfe
movsd xmm0, qword [esp + 4]
movsd qword [esi], xmm0
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x407d93
jmp 0x407d9c
mov ecx, esi
call fcn.004046f0
lea ecx, [esp + 4]
call fcn.004046f0
int3
Function at 0x407e20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp], str.DEBUGINFOD_TIMEOUT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x407f25
mov dword [esp + 0x20], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], str.__t_n_v_f_r
mov dword [esp + 0x14], 6
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
lea ecx, [esp + 0x20]
call fcn.0040ae9c
sub esp, 0xc
mov esi, dword [esp + 0x24]
cmp eax, esi
cmovae eax, esi
sub esi, eax
add eax, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], str.__t_n_v_f_r
mov dword [esp + 0x14], 6
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0040ae96
sub esp, 0xc
inc eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp eax, edx
cmovae eax, edx
mov edi, edx
sub edi, esi
add edi, eax
cmp edx, edi
cmovb edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
movsd xmm0, qword [esp + 0x18]
movsd qword [esp], xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
call fcn.0040ad88
test al, al
jne 0x407f25
mov eax, dword [esp + 0x10]
mov ecx, eax
sar ecx, 0x1f
xor ecx, dword [esp + 0x14]
jne 0x407f25
imul eax, eax, 0x3e8
mov edx, eax
sar edx, 0x1f
jmp 0x407f2c
xor edx, edx
mov eax, 0x15f90
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x408270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.00408120
movzx eax, byte [esp + 0x20]
lea ecx, [esp + 0x21]
test al, 1
je 0x4082b6
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x4082b8
shr eax, 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
call fcn.0040af74
mov ecx, eax
or eax, edx
je 0x40844e
mov ebp, 0x15
nop
mov dword [esp + 0x2c], edx
mov edi, edx
shld edi, ecx, 0x1f
mov esi, edx
shr esi, 1
mov ebx, edi
add ebx, esi
adc ebx, 0
mov eax, ebx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ebx, eax
sub edi, ebx
sbb esi, 0
mov eax, edi
mov edx, 0xcccccccd
mul edx
imul edi, edi, 0xcccccccc
add edi, edx
imul edx, esi, 0xcccccccd
add edx, edi
mov esi, eax
add esi, eax
lea esi, [esi + esi*4]
mov ebx, ecx
sub ebx, esi
or bl, 0x30
mov byte [esp + ebp + 0x47], bl
dec ebp
mov esi, 9
cmp esi, ecx
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
mov ecx, eax
jb 0x4082e0
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xfffffff8
jae 0x408468
cmp ebx, 0xa
ja 0x408377
mov eax, ebx
add al, bl
mov byte [esp + 0x14], al
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x74]
cmp ebp, 0x15
jne 0x4083a1
jmp 0x4083b9
mov esi, ebx
or esi, 7
lea eax, [esi + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov edi, eax
mov dword [esp + 0x1c], eax
add esi, 2
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x74]
cmp ebp, 0x15
je 0x4083b9
lea eax, [esp + ebp]
add eax, 0x48
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
add edi, ebx
mov byte [edi], 0
movzx eax, byte [esp + 0x14]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x15]
cmovne eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
movzx eax, byte [esp + 0x20]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x21]
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
cmovne ecx, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00407f40
test byte [esp + 0x14], 1
je 0x408431
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0x20], 1
je 0x408444
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov eax, esi
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0x5c], 0x30
mov ebp, 0x14
mov ebx, 0x15
sub ebx, ebp
cmp ebx, 0xfffffff8
jb 0x40835b
lea ecx, [esp + 0x14]
call fcn.004046f0
int3
Function at 0x40a810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x40a821
jmp dword [eax*4 + 0x40e150]
cmp dword [0x411088], 0
je 0x40a930
push 0x41108c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4110a4]
test edi, edi
je 0x40a925
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a86b
mov edi, dword [edi + 8]
test edi, edi
je 0x40a925
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a860
test esi, esi
je 0x40a860
mov ecx, dword [edi + 4]
call dword [0x40e21c]
push esi
call ecx
add esp, 4
jmp 0x40a860
call fcn.0040a1a0
jmp case.default.0x40a821
cmp dword [0x411088], 0
je case.default.0x40a821
push 0x41108c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4110a4]
test edi, edi
je 0x40a918
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a8d7
mov edi, dword [edi + 8]
test edi, edi
je 0x40a918
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x40a8d0
test esi, esi
je 0x40a8d0
mov ecx, dword [edi + 4]
call dword [0x40e21c]
push esi
call ecx
add esp, 4
jmp 0x40a8d0
cmp dword [0x411088], 0
jne 0x40a90c
push 0x41108c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x411088], 1
jmp case.default.0x40a821
push 0x41108c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x40a821
push 0x41108c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x411088]
cmp eax, 1
jne case.default.0x40a821
mov eax, dword [0x4110a4]
test eax, eax
je 0x40a962
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x40a950
mov dword [0x4110a4], 0
mov dword [0x411088], 0
push 0x41108c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40aa90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40c004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x40aaf6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x40aaf6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x40aaf6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x40aaf6
mov edx, dword [esp + 0xc]
sub edx, dword [0x40c004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x40aae6
add esi, 0x28
dec ecx
je 0x40aaf6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x40aae0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x40aae0
mov eax, esi
pop esi
pop edi
ret
Function at 0x10020978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10020987
pop dword [ebp - 0x1c]
mov eax, 0x10020987
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3ca67
push 0
mov eax, 0x870a5ad2
add eax, 0x88f8363a
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x4efe
mov edi, eax
mov esi, 0xd8707867
sub esi, 0xc86c0c67
add esi, dword [ebp - 0x1c]
mov ebx, 0x413d215f
add ebx, 0xa5aba372
xor dword [ebp - 0x10], 0xd9c4cc70
mov edx, dword [esi]
xor dword [ebp - 0x10], eax
add edx, ebx
sub dword [ebp - 0x18], 0x3b1040e3
mov dword [edi], edx
add edi, 4
add esi, 0x25cb6fe5
sub esi, 0x25cb6fe1
loop 0x100209db
add eax, 0xac17757f
add eax, 0x53e9b94c
mov ebx, eax
add eax, 0xb6689c29
sub eax, 0xb6689c24
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret