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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x540010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x4c1686
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test ecx, ecx
js 0x4c1769
je 0x4c1698
test eax, eax
je 0x4c175b
lea edx, [ebp - 0x2c]
push ecx
push eax
push edx
call fcn.004dba90
add esp, 0xc
lea eax, [ebp - 0x38]
mov byte [eax + 0xb], 9
cmp eax, str.banner_id
ja 0x4c16c3
lea ecx, [ebp - 0x2f]
cmp ecx, str.banner_id
ja 0x4c1762
add esi, 0x18
mov dword [ebp - 0x34], 0x695f7265
mov dword [ebp - 0x38], 0x6e6e6162
mov word [ebp - 0x30], 0x64
lea edx, [ebp - 0x20]
mov dword [edx], eax
lea edi, [ebp - 0x19]
lea ebx, [ebp - 0x18]
mov ecx, esi
push edi
push edx
push 0x521940
push eax
push ebx
call fcn.004155d0
mov eax, dword [ebx]
lea esi, [eax + 0x1c]
cmp byte [eax + 0x27], 0
jns 0x4c170a
push dword [esi]
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x2c]
movsd qword [esi], xmm0
mov byte [ebp - 0x21], 0
mov word [ebp - 0x2c], 0
cmp byte [ebp - 0x2d], 0
js 0x4c173d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
push dword [ebp - 0x38]
call fcn.004dfb35
add esp, 4
cmp byte [ebp - 0x21], 0
jns 0x4c1729
push dword [ebp - 0x2c]
call fcn.004dfb35
add esp, 4
jmp 0x4c1729
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x4c176e
push str....._third_partylibc_srcinclude__stringchar_traits.h:245:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x4c176e
push str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x521354
call fcn.0044d640
int3
Function at 0x4c18b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x540010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x4c18d6
mov ecx, dword [eax + 4]
mov eax, dword [eax]
test ecx, ecx
js 0x4c19bd
je 0x4c18e8
test eax, eax
je 0x4c19af
lea edx, [ebp - 0x2c]
push ecx
push eax
push edx
call fcn.004dba90
add esp, 0xc
lea eax, [ebp - 0x38]
mov byte [eax + 0xb], 0xa
cmp eax, str.yandex_uid
ja 0x4c1913
lea ecx, [ebp - 0x2e]
cmp ecx, str.yandex_uid
ja 0x4c19b6
add esi, 0x18
mov word [ebp - 0x30], 0x6469
mov dword [ebp - 0x34], 0x755f7865
mov dword [ebp - 0x38], 0x646e6179
mov byte [ebp - 0x2e], 0
lea edx, [ebp - 0x20]
mov dword [edx], eax
lea edi, [ebp - 0x19]
lea ebx, [ebp - 0x18]
mov ecx, esi
push edi
push edx
push 0x521940
push eax
push ebx
call fcn.004155d0
mov eax, dword [ebx]
lea esi, [eax + 0x1c]
cmp byte [eax + 0x27], 0
jns 0x4c195e
push dword [esi]
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
movsd xmm0, qword [ebp - 0x2c]
movsd qword [esi], xmm0
mov byte [ebp - 0x21], 0
mov word [ebp - 0x2c], 0
cmp byte [ebp - 0x2d], 0
js 0x4c1991
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
push dword [ebp - 0x38]
call fcn.004dfb35
add esp, 4
cmp byte [ebp - 0x21], 0
jns 0x4c197d
push dword [ebp - 0x2c]
call fcn.004dfb35
add esp, 4
jmp 0x4c197d
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x4c19c2
push str....._third_partylibc_srcinclude__stringchar_traits.h:245:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
jmp 0x4c19c2
push str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x521354
call fcn.0044d640
int3
Function at 0x4c38c0
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov edi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x68], eax
xor eax, eax
push eax
push eax
push ecx
push 0x4c39b0
push eax
push eax
call fcn.004ef68e
add esp, 0x18
mov esi, eax
cmp dword [edi], eax
je 0x4c3930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x4c3918
call fcn.00492150
push dword [edi]
call fcn.0047b600
add esp, 4
mov dword [edi], 0
lea eax, [esi + 1]
cmp eax, 2
jb 0x4c3927
mov dword [edi], esi
call fcn.00492150
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [edi]
inc esi
cmp esi, 1
ja 0x4c398b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [esp + 4]
push eax
push ebx
call fcn.0050e3e0
add esp, 8
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
push 0x71
push str.InitializeThread
push 1
call fcn.00455540
lea ecx, [esp + 0x4c]
push 0x535adf
push str.Failed_to_create_thread_for_async_http_requests
call fcn.004147c0
mov ecx, edi
call fcn.00455590
cmp byte [ebx + 0xb], 0
jns 0x4c398b
push dword [esp + 4]
call fcn.004dfb35
add esp, 4
test esi, 0xfffffffe
setne bl
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d02d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.004dacb0
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4d02fe
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x4d031c
push dword [ebp - 0x1c]
call fcn.004dfb35
add esp, 4
cmp dword [ebp + 8], 0
je 0x4d03bf
test esi, esi
je 0x4d03bf
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.004dfb63
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.004dacb0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x4d035f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x4d0379
push dword [ebp - 0x1c]
call fcn.004dfb35
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4d03d8
push edi
call fcn.004fbc1b
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004db310
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x4d03a7
push dword [ebx]
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.004dfb6c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
push 0x521354
call fcn.0044d640
int3
Function at 0x4d0630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x540010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x4d0679
lea eax, [ebp - 0x14]
mov dword [eax], 0x4d0760
push 0
push eax
push 0x4d0610
push 0x552a68
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4d075b
cmp dword [0x552a6c], 0
je 0x4d068d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push dword [0x552a70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d0679
mov esi, eax
mov eax, 0x552a74
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x552a78]
mov ebx, dword [0x552a7c]
mov eax, dword [0x552a80]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x552a84]
mov dword [ebp - 0x20], eax
mov eax, dword [0x552a88]
mov dword [ebp - 0x24], eax
mov eax, 0x552a74
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x4d06f4
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [0x53a380]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x4d0709
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [0x53a380]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4d071f
mov edi, dword [esi + 8]
call dword [0x53a380]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x4d0738
mov edi, dword [esi + 0xc]
call dword [0x53a380]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x4d074d
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [0x53a380]
push edi
call ebx
add esp, 4
push esi
call fcn.004dd100
add esp, 4
jmp 0x4d0679
call fcn.004f4b6e
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x552a70], eax
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov dword [0x552a6c], ecx
pop ebp
ret
Function at 0x4d0780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [eax], 0x4d0760
push 0
push eax
push 0x4d0610
push 0x552a68
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4d0848
mov esi, dword [ebp + 0xc]
cmp dword [0x552a6c], 0
jne 0x4d0856
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x552a70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x4d080b
push 0x14
push 1
call fcn.004dd1a0
add esp, 8
test eax, eax
je 0x4d0856
mov edi, eax
push eax
push dword [0x552a70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4d084d
mov ebx, dword [ebp + 8]
mov esi, 0x552a74
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [ebp + 0x10]
mov dword [ebx*4 + 0x552a78], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004f4b6e
push edi
call fcn.004dd100
add esp, 4
mov ecx, dword [ebp + 0x10]
call dword [0x53a380]
push esi
call ecx
add esp, 4
xor esi, esi
jmp 0x4d0834

Function at 0x4d08a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4d0870
push 0x552a8c
call fcn.004df990
add esp, 8
mov ecx, dword [0x552a90]
test ecx, ecx
je 0x4d08d9
call dword [0x53a380]
push edi
push esi
call ecx
test eax, eax
je 0x4d08e8
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x4d08d5
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x4d08d5
call fcn.004f4b6e
int3
Function at 0x4d6890
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4d68a1
test eax, eax
jne 0x4d68f1
test eax, eax
jne 0x4d68b7
mov ecx, dword [0x552aec]
test ecx, ecx
je 0x4d68b7
call dword [0x53a380]
call ecx
cmp dword [0x552ae4], 0
je 0x4d68f1
mov esi, dword [0x552ae8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x4d68f7
test esi, esi
je 0x4d68f1
mov ecx, dword [0x552ae4]
call dword [0x53a380]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4d68db

Function at 0x4d8b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movdqu xmm4, xmmword [ecx]
movdqu xmm3, xmmword [ecx + 0x10]
movdqu xmm2, xmmword [ecx + 0x20]
movdqu xmm1, xmmword [ecx + 0x30]
movd xmm0, dword [ebp + 0x10]
pxor xmm0, xmm4
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x40
jae 0x4d8c20
movdqa xmm4, xmmword [0x526de0]
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x526df0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp eax, 0x10
jb 0x4d8bb8
movdqu xmm1, xmmword [ecx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add ecx, 0x10
add eax, 0xfffffff0
cmp eax, 0xf
ja 0x4d8b91
movdqa xmm1, xmmword [0x526df0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm2, xmm2
pxor xmm1, xmm1
pblendw xmm1, xmm0, 3
psrldq xmm0, 4
pclmulqdq xmm1, xmmword [0x526e00], 0
pxor xmm1, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm1, 3
pclmulqdq xmm0, xmmword [0x526e10], 0x10
pblendw xmm0, xmm2, 0xfc
pclmulqdq xmm0, xmmword [0x526e20], 0
pxor xmm0, xmm1
pextrd eax, xmm0, 1
pop ebp
ret
movdqa xmm4, xmmword [0x526dc0]
movdqa xmm5, xmmword [0x526dd0]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
movdqa xmm6, xmm3
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm6
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
movdqu xmm6, xmmword [ecx]
pxor xmm0, xmm6
movdqu xmm6, xmmword [ecx + 0x10]
pxor xmm3, xmm6
movdqu xmm6, xmmword [ecx + 0x20]
pxor xmm2, xmm6
movdqu xmm6, xmmword [ecx + 0x30]
pxor xmm1, xmm6
add eax, 0xffffffc0
add ecx, 0x40
cmp eax, 0x3f
ja 0x4d8c30
jmp 0x4d8b34
Function at 0x4d92f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x545990]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d9341
mov eax, dword [0x54598c]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x545990
call fcn.004dfba7
add esp, 4
cmp dword [0x545990], 0xffffffff
jne 0x4d9323
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004e3a90
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.004dfb05
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x5459c0]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d93ea
mov ecx, esi
push ebx
push 0x54599c
push edi
call fcn.0047af80
mov dword [0x54598c], esi
push 0x545990
call fcn.004dfc1d
add esp, 4
jmp 0x4d9323
push 0x5459c0
call fcn.004dfba7
add esp, 4
cmp dword [0x5459c0], 0xffffffff
jne 0x4d93c4
xorps xmm0, xmm0
movups xmmword [0x5459ac], xmm0
movups xmmword [0x54599c], xmm0
mov dword [0x5459bc], 0
push 0x54599c
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x5459c0
call fcn.004dfc1d
add esp, 4
jmp 0x4d93c4
Function at 0x4d9c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2010
call fcn.004e0fd0
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x542500]
cmp eax, 0xffffffff
jne 0x4d9c9b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
add esp, 0x2010
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
push dword [ebp - 0x2014]
call fcn.004b10d0
add esp, 8
jmp 0x4d9c74
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x4d9c74
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.004e3510
add esp, 0xc
mov ecx, dword [0x542500]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x2014], ecx
push ecx
call fcn.004b10d0
add esp, 8
test ebx, ebx
je 0x4d9cea
push ebx
call fcn.004dfb6c
add esp, 4
mov ecx, 0x101
mov dword [ebp - 0x2018], ecx
mov eax, dword [0x546a40]
mov ecx, dword [0x543ad4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d9e7d
mov ebx, dword [0x546a3c]
mov esi, ebx
shr esi, 0xe
mov edi, ebx
shr edi, 0x13
mov eax, dword [edi*4 + 0x548b80]
bt eax, esi
jae 0x4d9d8c
push ebx
call fcn.004a0180
add esp, 4
test ebx, ebx
je 0x4d9ecc
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x4d9d55
mov ecx, ebx
call fcn.0047c180
push 0x1000
push 0x545a38
lea eax, [ebp - 0x1810]
push eax
call fcn.004e3510
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [edi*4 + 0x548b80]
bt eax, esi
jae 0x4d9d9a
push ebx
call fcn.004a02a0
add esp, 4
jmp 0x4d9d9a
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x550b80], 1
jmp 0x4d9d3b
push 0x800
push 0xff
lea eax, [ebp - 0x2010]
push eax
call fcn.004e3a90
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x1804]
nop dword [eax + eax]
mov edx, dword [ecx]
mov dword [ebp + eax*8 - 0x2010], edx
mov word [ebp + eax*8 - 0x200c], ax
inc eax
add ecx, 0x10
cmp eax, 0x100
jne 0x4d9dc0
lea ecx, [ebp - 0x2010]
lea edx, [ebp - 0x1810]
push 1
push 0x10
call fcn.00485d60
add esp, 8
mov ebx, 4
xor eax, eax
nop dword [eax + eax]
movzx edx, word [ebp + ebx - 0x2010]
mov esi, dword [ebp + edx*8 - 0x810]
test esi, esi
jne 0x4d9e38
add ebx, 8
cmp ebx, 0x804
jne 0x4d9e00
mov ecx, dword [ebp - 0x2018]
dec ecx
je 0x4d9ec2
test al, 1
je 0x4d9c89
jmp 0x4d9cef
mov ecx, edx
shl ecx, 4
cmp dword [ebp + ecx - 0x1810], 0
je 0x4d9e13
mov edi, dword [ebp + edx*8 - 0x80c]
cmp edi, dword [ebp + ecx - 0x1808]
jne 0x4d9e13
mov ecx, dword [ebp + ecx - 0x180c]
test ecx, ecx
je 0x4d9e13
mov dword [ebp + edx*8 - 0x810], 0
call dword [0x53a380]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x4d9e13
push 0x546a40
call fcn.004dfba7
add esp, 4
cmp dword [0x546a40], 0xffffffff
jne 0x4d9d16
push 4
call fcn.004dfb05
add esp, 4
mov ebx, eax
mov ecx, eax
call fcn.0047c170
mov dword [0x546a3c], ebx
push 0x546a40
call fcn.004dfc1d
add esp, 4
jmp 0x4d9d16
call fcn.0050fe40
jmp 0x4d9c89
int3
Function at 0x4dd7b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x4dd7bf
pop ebp
jmp fcn.004dd250
cmp dword [ebp + 0x10], 0
jne 0x4dd7ca
call fcn.004de360
xor eax, eax
pop ebp
ret
Function at 0x4df9d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x4d0760
lea eax, [ebp - 0x14]
push 0
push eax
push 0x4d0610
push 0x552a68
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4dfa4a
xor esi, esi
cmp dword [0x552a6c], 0
jne 0x4dfa36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x552a70]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x4dfa36
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004f4b6e
int3

Function at 0x4e0281
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e02c0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e02c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e02c0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e02c0
cmp dword [ecx + 0x74], 0xe
jbe 0x4e02c0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4efc80
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004efe17
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4efdef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4efdef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4efda4
jg 0x4efcdc
test eax, eax
je 0x4efd9a
push 1
push 0x1000
call fcn.004dd200
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4efcff
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4efd91
push 0x8000
push ebx
call fcn.004f4c31
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4efd28
jg 0x4efd23
cmp ecx, 0x1000
jb 0x4efd28
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f73bd
add esp, 0x10
cmp eax, 0xffffffff
je 0x4efd6d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4efd23
jl 0x4efd54
test ecx, ecx
jne 0x4efd15
push dword [ebp - 0xc]
push ebx
call fcn.004f4c31
push esi
call fcn.004dd100
add esp, 0xc
xor ebx, ebx
jmp 0x4efdfd
cmp byte [edi + 0x24], 0
je 0x4efd84
cmp dword [edi + 0x20], 5
jne 0x4efd84
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4efd8f
mov ebx, dword [edi + 0x18]
jmp 0x4efd91
xor ebx, ebx
push esi
call fcn.004dd100
pop ecx
jmp 0x4efdfd
test ecx, ecx
jg 0x4efd66
jl 0x4efda4
test eax, eax
jae 0x4efd66
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f3ce2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4efdc4
cmp byte [edi + 0x1c], 0
je 0x4efd66
jmp 0x4efdf5
push ebx
call fcn.004f2a4a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4efd66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4efdfd
cmp byte [edi + 0x1c], 0
je 0x4efdfa
mov ebx, dword [edi + 0x18]
jmp 0x4efdfd
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004f3ce2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret