joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446290
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x4462b7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00445c10
mov dword [esp + 4], eax
jmp 0x4462d1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x446384
mov cl, byte [esp + 0xc]
test cl, cl
js 0x4462f6
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x446306
mov esi, 2
jmp 0x446322
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x446315
mov esi, 3
jmp 0x446322
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x446370
mov esi, 4
mov eax, dword [esp + 0x14]
push ebx
lea ebx, [esi - 1]
mov byte [eax], cl
inc eax
cmp dword [edi + 4], 0
je 0x44634b
push ebx
push eax
push edi
call fcn.00445c10
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, ebx
pop ebx
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop edi
pop ecx
ret 8

Function at 0x448fc1
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x44901e
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x44901e
mov eax, dword [esi + 0x70]
test eax, eax
je 0x448ffd
push ebx
push esi
call eax
push esi
push ebx
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x848e34], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44903d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x449065
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14
Function at 0x4492c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [esp + 0x14]
mov edi, eax
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x8c]
add esi, edx
mov ecx, dword [edi + 0x90]
add ebx, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
mov eax, dword [edi + 0x74]
add edx, ecx
mov dword [esp + 0x20], edx
cmp eax, 2
je 0x449317
cmp eax, 3
je 0x449317
cmp eax, 8
je 0x449317
cmp eax, 0xc
jne 0x449490
mov dword [edi + 0x124], edx
mov eax, ebx
sub edx, ebp
mov dword [edi + 0x118], esi
sub eax, esi
mov dword [edi + 0x11c], ebp
mov ecx, edx
mov dword [esp + 0x14], eax
imul ecx, edx
imul eax, eax
mov dword [edi + 0x120], ebx
mov dword [esp + 0x18], edx
add ecx, eax
push ecx
push ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004c4fb0
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
fstp dword [edi + 0x128]
cmp ebp, ecx
jne 0x44937e
cmp esi, ebx
mov eax, 0x4491c2
mov ecx, 0x449202
cmovg eax, ecx
jmp 0x449391
cmp esi, ebx
jne 0x44939c
cmp ebp, ecx
mov eax, 0x449242
mov edx, 0x449282
cmovg eax, edx
mov dword [edi + 0xb4], eax
jmp 0x449490
push dword [esp + 0x14]
call fcn.004c4fbe
push dword [esp + 0x1c]
mov esi, eax
call fcn.004c4fbe
xor ebp, ebp
pop ecx
inc ebp
pop ecx
cmp esi, eax
jl 0x4493ce
and dword [edi + 0x130], 0
mov ecx, dword [edi + 0x124]
mov esi, dword [edi + 0x11c]
jmp 0x449404
mov eax, dword [edi + 0x11c]
mov esi, dword [edi + 0x118]
mov ecx, dword [edi + 0x120]
mov dword [edi + 0x118], eax
mov eax, dword [edi + 0x124]
mov dword [edi + 0x130], ebp
mov dword [edi + 0x11c], esi
mov dword [edi + 0x124], ecx
mov dword [edi + 0x120], eax
mov ebx, dword [edi + 0x118]
mov edx, dword [edi + 0x120]
cmp ebx, edx
jge 0x44941d
and dword [edi + 0x12c], 0
jmp 0x44944d
mov esi, dword [edi + 0x124]
mov eax, ebx
mov ecx, dword [edi + 0x11c]
mov ebx, edx
mov dword [edi + 0x118], edx
mov edx, eax
mov dword [edi + 0x12c], ebp
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], ecx
mov dword [edi + 0x11c], esi
sub ecx, esi
mov dword [edi + 0xb4], 0x4490ba
sub edx, ebx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, edx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movss dword [edi + 0x134], xmm1
movsd xmm1, qword [0x4ea198]
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movss dword [edi + 0x138], xmm0
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x449497
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x848e30]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x44950f
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x449523
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp + 0xa4]
cmp eax, dword [ebp + 0xac]
je 0x44953c
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x449559
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x449581
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x449617
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x44963c
cmp ecx, 3
je 0x44963c
cmp ecx, 8
je 0x44963c
cmp ecx, 0xc
jne 0x44964a
mov eax, dword [esp + 4]
test eax, eax
je 0x44964a
mov dword [edx + 0xb8], eax
ret 4

Function at 0x44964d
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x848e30]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x44967a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0x848e30]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4496f2
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x449706
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xac]
je 0x44971d
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x44bb90
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x44bbc8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44bbc3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.004303c0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x44c406
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x44c436
cmp esi, 2
je 0x44c436
cmp esi, 4
je 0x44c436
cmp esi, 8
je 0x44c436
cmp esi, 0x18
je 0x44c436
cmp esi, 0x20
je 0x44c436
xor eax, eax
jmp 0x44c603
mov ecx, dword [0x848c68]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x44c5ff
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x848ec4]
cmp dword [eax], edx
je 0x44c469
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x44c450
jmp 0x44c5ff
cmp dword [esp + 0x38], 0x20
jne 0x44c5d6
mov eax, dword [eax + 8]
test eax, eax
je 0x44c4a9
cmp esi, 0x20
je 0x44c485
cmp esi, 0xffffffff
jne 0x44c4a9
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x44c5fd
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x44c5ff
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x44c5a1
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x44c580
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x44c50f
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x44c4fc
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x848ec4]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x846350]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x44c5ff
cmp dword [esp + 0x38], 0x18
jne 0x44c5ff
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x452265
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x848c84]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4522c6
push esi
push dword [0x848c80]
push 8
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x848c84]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x848c7c]
jmp 0x4522b6
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4522b4
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4522a4
push edi
push 0x452203
call fcn.004a2cc7
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4522d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4522e6
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x848c80]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x45231f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x846350]
mov dword [0x848c84], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x848c84]
call ebx
mov esi, dword [0x848c80]
lea eax, [edi + esi]
push eax
push dword [0x848c84]
mov dword [0x848c80], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x848c84]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x45235e
test ebx, ebx
je 0x45237f
push 0x14
push 0x848c7c
call fcn.00452c62
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x45237f
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x452d90
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x452dc9
push ecx
push dword [0x848f54]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x452dd8
push ecx
push 0
push dword [0x848f54]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.00453220
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x452ec0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x4530e0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4530fe
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x453122
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x45313d
cmp edx, 0x100000
jle 0x453150
cmp ecx, 0x100000
jge 0x453137
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x848f54]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x453170
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x453190
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4531b7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4531b7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4531c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x453200
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x4533d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x8429f0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x45bbd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x45bcc3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x45bbe6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x45be40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x45bedc
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x45bea6
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x45be9b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x45be80
cmp esi, 4
jb 0x45be60
push dword [esp + 8]
push str.rand_s
jmp 0x45becd
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.004533f0
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x45bef8
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.0045b470
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret
Function at 0x470050
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x470070
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x470070
mov eax, dword [eax + 0x44]
test eax, eax
je 0x470070
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4a2cc7
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x848cc4], 0
push ebx
push esi
mov esi, 0x848ccc
jne 0x4a2cf3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x848ce4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x848cc4], 1
push dword [0x848ce4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4a2d90
push 0x14
push 8
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4a2dba
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x848cc8]
test eax, eax
je 0x4a2d35
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x848cc8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4a2dbf
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x848ce4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x846350]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a2dba
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4a3430
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a345d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a345d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret