joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b92a6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x5370b0]
mov esi, ecx
test eax, eax
je 0x4b93c8
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4b92e2
mov ebx, eax
mov eax, dword [eax]
or eax, dword [ebx + 4]
je 0x4b92e2
add ebx, 8
jmp 0x4b93be
mov eax, dword [0x5370b0]
test eax, eax
je 0x4b93d7
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4b9372
mov ebx, eax
test eax, eax
jne 0x4b9344
mov al, byte [0x538038]
mov ecx, 0x48
mov edx, 8
call fcn.004018b0
test eax, eax
je 0x4b93f5
mov ebx, eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 0x40], 0x5370b0
mov eax, dword [0x5370b0]
test eax, eax
je 0x4b93e6
dec eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x4b937d
mov eax, esp
mov ecx, 0x10
mov edx, esi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov edx, dword [eax]
or edx, dword [eax + 4]
je 0x4b9376
lea esi, [esp + 8]
lea edi, [esp + 0x40]
mov ecx, 0xe
jmp 0x4b938b
xor ebx, ebx
jmp 0x4b93be
mov ecx, esp
call fcn.004b91aa
lea edi, [esp + 0x40]
mov ecx, 0xe
mov esi, 0x52c670
mov eax, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], 0
mov dword [ebx], 1
add ebx, 8
lea esi, [esp + 0x40]
mov ecx, 0xe
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.004b91aa
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b92c5
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b92f0
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b933c
mov ecx, 8
mov edx, 0x48
call fcn.004e8800
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4b9452
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 4]
test eax, eax
je 0x4b9430
lock dec dword [eax]
jne 0x4b9430
mov ecx, dword [edi + 4]
call fcn.004224e0
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x4b945b
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
ret
mov ecx, esi
call fcn.004ec360
jmp 0x4b9413
mov ecx, esi
call fcn.004ec360
jmp 0x4b9446
Function at 0x4b9404
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x5370b0]
mov esi, ecx
test eax, eax
je 0x4b93c8
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4b92e2
mov ebx, eax
mov eax, dword [eax]
or eax, dword [ebx + 4]
je 0x4b92e2
add ebx, 8
jmp 0x4b93be
mov eax, dword [0x5370b0]
test eax, eax
je 0x4b93d7
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4b9372
mov ebx, eax
test eax, eax
jne 0x4b9344
mov al, byte [0x538038]
mov ecx, 0x48
mov edx, 8
call fcn.004018b0
test eax, eax
je 0x4b93f5
mov ebx, eax
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 0x40], 0x5370b0
mov eax, dword [0x5370b0]
test eax, eax
je 0x4b93e6
dec eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x4b937d
mov eax, esp
mov ecx, 0x10
mov edx, esi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov edx, dword [eax]
or edx, dword [eax + 4]
je 0x4b9376
lea esi, [esp + 8]
lea edi, [esp + 0x40]
mov ecx, 0xe
jmp 0x4b938b
xor ebx, ebx
jmp 0x4b93be
mov ecx, esp
call fcn.004b91aa
lea edi, [esp + 0x40]
mov ecx, 0xe
mov esi, 0x52c670
mov eax, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], 0
mov dword [ebx], 1
add ebx, 8
lea esi, [esp + 0x40]
mov ecx, 0xe
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.004b91aa
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b92c5
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b92f0
mov ecx, 0x5370b0
call fcn.004ec360
jmp 0x4b933c
mov ecx, 8
mov edx, 0x48
call fcn.004e8800
push edi
push esi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4b9452
dec eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 4]
test eax, eax
je 0x4b9430
lock dec dword [eax]
jne 0x4b9430
mov ecx, dword [edi + 4]
call fcn.004224e0
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x4b945b
dec eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
ret
mov ecx, esi
call fcn.004ec360
jmp 0x4b9413
mov ecx, esi
call fcn.004ec360
jmp 0x4b9446
Function at 0x4c3e88
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x28]
and esi, 0x1f
push edi
mov edi, dword [esp + 0x28]
cmp esi, 8
jb 0x4c3f1f
mov eax, esi
shr eax, 3
mov dword [esp + 0x10], eax
cmp dword [esp + 0x30], 1
jne 0x4c3ed1
push 8
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004e4d00
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
jmp 0x4c3ed6
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push ecx
push eax
push 0
push 0
call fcn.004c405a
push 0x1b
xor edx, ebx
xor eax, ebp
push edx
push eax
add edi, 8
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
add esp, 0x1c
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.004e4260
mov ebp, eax
mov ebx, edx
add ebp, 0xc2b2ae63
adc ebx, 0x85ebca77
sub esi, 8
sub dword [esp + 0x10], 1
jne 0x4c3eb0
cmp esi, 4
jb 0x4c3f92
cmp dword [esp + 0x30], 1
jne 0x4c3f41
push 4
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004e4d00
mov ecx, dword [esp + 0x34]
add esp, 0xc
jmp 0x4c3f43
mov ecx, dword [edi]
mov eax, 0x9e3779b1
mov dword [esp + 0x28], ecx
mul ecx
push 0x17
mov ecx, eax
add edi, 4
mov eax, 0x85ebca87
mul dword [esp + 0x2c]
add ecx, edx
xor eax, ebp
xor ecx, ebx
push ecx
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.004e4260
mov ebp, eax
mov ebx, edx
add ebp, 0x9e3779f9
adc ebx, 0x165667b1
sub esi, 4
test esi, esi
je 0x4c3fd6
movzx eax, byte [edi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.004e4260
xor ebx, edx
xor ebp, eax
push 0xb
push ebx
push ebp
inc edi
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.004e4260
mov ebp, eax
mov ebx, edx
sub esi, 1
jne 0x4c3f96
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
push ecx
xor esi, ebp
push esi
call fcn.004e4260
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.004e4260
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4d1b3d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x537eb4]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
add ecx, ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea esi, [edx + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0x38], ebp
push edx
lea ebp, [eax + edi]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x1004]
mov dword [esp + 0x30], esi
lea edx, [eax + 0x1004]
mov esi, dword [eax + 0x2810]
lea ecx, [eax + 0x1808]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004d2010
add esp, 0x20
cmp eax, 0xffffff88
ja 0x4d1d23
push 0xc
add esi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.004e4ba0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
sub eax, esi
mov dword [esp + 0x70], 1
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.004d0ee8
add esp, 0x18
cmp eax, 0xfffffff8
ja 0x4d1d20
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.004d0eba
push dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004d0eba
push dword [esp + 0x48]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004d0eba
lea eax, [esp + 0x60]
push eax
call fcn.004d128a
mov edx, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
ja 0x4d1ce1
test edx, edx
jle 0x4d1cdd
lea eax, [esp + 0x3c]
dec edx
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], edx
push eax
call fcn.004d1969
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x38]
lea esi, [esp + 0x78]
push ebp
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004d1d36
add esp, 0x20
cmp eax, 0xffffff88
ja 0x4d1d23
add ebx, eax
lea eax, [esp + 0x3c]
push eax
call fcn.004d128a
mov edx, dword [esp + 0x14]
pop ecx
cmp eax, 2
jbe 0x4d1c85
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.004c750a
pop ecx
test eax, eax
je 0x4d1d20
test edx, edx
js 0x4d1d20
sub ebp, edi
lea esi, [ebx + ebp]
cmp esi, dword [esp + 0x1c]
jbe 0x4d1d03
push 0xffffffffffffffba
jmp 0x4d1d22
test ebp, ebp
je 0x4d1d18
cmp ebx, edi
je 0x4d1d16
push ebp
push edi
push ebx
call fcn.004e5280
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x38]
mov eax, ebx
jmp 0x4d1d23
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e424b
add esp, 0x70
ret
Function at 0x4d6209
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x537eb4]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
mov ebx, edi
add eax, edi
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x2820]
lea edx, [ecx + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2824]
add eax, edi
mov dword [esp + 0x28], edx
push ecx
mov dword [esp + 0x1c], eax
lea edx, [ebp + 0x1004]
mov eax, dword [ebp + 0x2810]
push esi
mov dword [esp + 0x34], eax
lea eax, [ebp + 0x1808]
push edx
push eax
push ebp
lea eax, [esp + 0x38]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004d4d23
add esp, 0x20
cmp eax, 0xffffff88
ja 0x4d63d9
push 0xc
add esi, eax
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.004e4ba0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
push 4
pop eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
sub eax, esi
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.004d266a
add esp, 0x18
cmp eax, 0xffffff88
ja 0x4d63d6
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004d2d41
lea eax, [ebp + 0x1004]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.004d2d41
lea eax, [ebp + 0x1808]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004d2d41
lea eax, [esp + 0x58]
push eax
call fcn.004d128a
mov ebp, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
jg 0x4d638d
test ebp, ebp
jle 0x4d6389
lea eax, [esp + 0x34]
dec ebp
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004d5ec2
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push dword [esp + 0x30]
lea esi, [esp + 0x70]
push dword [esp + 0x20]
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004d63ec
add esp, 0x20
cmp eax, 0xffffff88
ja 0x4d63d9
add ebx, eax
lea eax, [esp + 0x34]
push eax
call fcn.004d128a
pop ecx
cmp eax, 2
jle 0x4d6336
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
call fcn.004c750a
pop ecx
test eax, eax
je 0x4d63d6
test ebp, ebp
js 0x4d63d6
mov eax, dword [esp + 0x18]
sub eax, edi
cmp edi, dword [esp + 0x18]
ja 0x4d63d6
lea esi, [eax + ebx]
cmp esi, dword [esp + 0x1c]
jbe 0x4d63b9
push 0xffffffffffffffba
jmp 0x4d63d8
test eax, eax
je 0x4d63ce
cmp ebx, edi
je 0x4d63cc
push eax
push edi
push ebx
call fcn.004e5280
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x30]
mov eax, ebx
jmp 0x4d63d9
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e424b
add esp, 0x68
ret
Function at 0x4ec360
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4ec3e1
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x4ec41c
cmp dword [esp + 4], 0
je 0x4ec403
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4ec43a
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x537fe4]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x537fe4], esi
jne 0x4ec3c0
mov byte [0x537fe0], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x4ec413
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4ec47b
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4ec407
mov edi, dword [esp]
jmp 0x4ec413
mov edi, dword [esi]
jmp 0x4ec412
mov edi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x529d64
push 0x529dc4
push eax
call fcn.004ec4b0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x529db4
mov dword [esp + 8], 0x529d7c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs
mov dword [esp + 0x14], 0
call fcn.004e8b50
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x529d7c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str.C:Usersigame.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004ec4e0
int3

Function at 0x4ec830
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00401b00
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x4ec8a3
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4ec8c5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4ec8d9
mov ecx, dword [0x528cb8]
mov edx, dword [0x528cbc]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x4ec8f1
push dword [esp + 8]
jmp 0x4ec8e3
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4ec8f1
push edi
push 0
push dword [0x537fc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x40e170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5148b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56858c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [ebp + 0x10]
movzx esi, byte [eax + ebx]
mov eax, 1
test esi, esi
je 0x40e25b
cmp byte [ebp + 0x14], 0
je 0x40e1d2
xor eax, eax
test esi, esi
jle 0x40e1d2
mov ecx, dword [edi]
add ecx, eax
lea edx, [ecx + ebx + 1]
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx]
xor byte [edx], cl
inc eax
cmp eax, esi
jl 0x40e1be
mov edx, dword [edi]
lea ebx, [edx + ebx + 1]
test ebx, ebx
jne 0x40e1e6
push 0x80070057
call fcn.00401000
mov eax, dword [0x5684f8]
mov edx, dword [eax]
push 1
push esi
mov ecx, 0x5684f8
call edx
test eax, eax
jne 0x40e200
call fcn.004015c0
lea edi, [eax + 0x10]
mov dword [ebp + 0x14], edi
test esi, esi
js 0x40e1dc
cmp esi, dword [edi - 8]
jg 0x40e1dc
push esi
push ebx
push esi
mov dword [edi - 0xc], esi
push edi
mov byte [edi + esi], 0
call fcn.00503a02
add esp, 0x10
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00409050
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e258
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414b10
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514f80
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56858c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [ebp - 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 8
call fcn.0042f2b0
mov dword [esi + 0x1bc], edi
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1cc], edi
mov dword [esi + 0x1d0], edi
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1dc], edi
mov dword [esi + 0x1e0], edi
mov dword [esi + 0x1e4], edi
mov dword [esi + 0x1e8], edi
mov dword [esi + 0x1ec], edi
mov dword [esi + 0x1f0], edi
mov dword [esi + 0x1f4], edi
mov dword [esi + 0x1f8], edi
mov dword [esi + 0x1fc], edi
mov dword [esi + 0x200], edi
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4410d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 8], 0
je 0x4410fc
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jle 0x4410fb
mov edx, dword [ebp + 8]
lea esp, [esp]
mov cl, byte [edi + 9]
xor byte [eax + edx], cl
inc eax
cmp eax, esi
jl 0x4410f0
pop esi
pop edi
pop ebp
ret 8

Function at 0x4413b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x441506
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
push esi
mov esi, dword [ebp + 8]
shr eax, 5
push edi
test ecx, ecx
je 0x4413d8
mov ecx, dword [ecx + 0x10]
sar ecx, 5
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
test eax, eax
je 0x441456
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4413fc
xor edi, edi
jmp 0x441412
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x441408
mov eax, dword [eax + 0xc]
jmp 0x44140a
xor eax, eax
mov edi, dword [ebx + 8]
imul edi, eax
add edi, edx
xor edx, edx
mov eax, ecx
div dword [ebp - 0xc]
add ecx, 8
add esi, 0x20
lea eax, [edi + edx*4]
mov edx, dword [eax]
xor dword [esi - 0x20], edx
mov edx, dword [eax + 4]
xor dword [esi - 0x1c], edx
mov edx, dword [eax + 8]
xor dword [esi - 0x18], edx
mov edx, dword [eax + 0xc]
xor dword [esi - 0x14], edx
mov edx, dword [eax + 0x10]
xor dword [esi - 0x10], edx
mov edx, dword [eax + 0x14]
xor dword [esi - 0xc], edx
mov edx, dword [eax + 0x18]
xor dword [esi - 8], edx
mov eax, dword [eax + 0x1c]
xor dword [esi - 4], eax
dec dword [ebp - 4]
jne 0x4413f1
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
shr edi, 2
and edi, 7
test eax, eax
jne 0x44146a
xor ecx, ecx
jmp 0x441480
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x441476
mov edx, dword [ecx + 0xc]
jmp 0x441478
xor edx, edx
mov ecx, dword [ebx + 8]
imul ecx, edx
add ecx, eax
mov eax, dword [ebp - 8]
add eax, eax
add eax, eax
add eax, eax
xor edx, edx
div dword [ebp - 0xc]
lea ecx, [ecx + edx*4]
test edi, edi
jle 0x4414ab
mov edx, ecx
mov eax, esi
sub edx, esi
mov esi, edi
lea ecx, [ecx]
mov ebx, dword [edx + eax]
xor dword [eax], ebx
add eax, 4
dec esi
jne 0x4414a0
mov edx, dword [ebp + 0xc]
mov eax, edx
and eax, 3
dec eax
je 0x4414fa
dec eax
je 0x4414df
dec eax
jne 0x441504
mov bl, byte [ecx + edi*4 + 2]
mov eax, dword [ebp + 8]
xor byte [eax + edx - 3], bl
mov bl, byte [ecx + edi*4 + 1]
xor byte [eax + edx - 2], bl
mov cl, byte [ecx + edi*4]
xor byte [eax + edx - 1], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov bl, byte [ecx + edi*4 + 1]
mov eax, dword [ebp + 8]
xor byte [eax + edx - 2], bl
mov cl, byte [ecx + edi*4]
xor byte [eax + edx - 1], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov cl, byte [ecx + edi*4]
xor byte [eax + edx - 1], cl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8