joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e810
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102346ec], 0
mov byte [0x102346f0], 0
mov dword [0x102346e8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000e918
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
add ecx, 0xfffff6b9
mov dword [0x102346f4], 0
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x102346ec]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102346f4], esi
mov dword [0x102346e4], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x102346ec], edx
mov dword [0x102346e0], ecx
mov ecx, dword [ebp - 0x28]
mov cl, byte [ebx + ecx]
mov byte [0x102346f0], cl
mov dword [0x102346e4], 0xe30
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x28]
mov byte [ebx + edx], cl
mov ecx, dword [0x102346e4]
add ecx, 0xfffffd81
mov dword [0x102346e0], ecx
mov cl, byte [0x102346f0]
mov edx, dword [0x102346ec]
mov byte [ebx + edx], cl
mov edx, dword [0x102346e8]
add edx, 1
mov dword [0x102346e8], edx
cmp edx, 0x100
mov dword [ebp - 0x30], edx
jl 0x1000e964
jmp 0x1000e977
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102346e0], 0x1fdd
mov eax, dword [0x102346e8]
add eax, 1
mov dword [0x102346e8], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000e918
mov eax, 0x1fdd
xor ecx, ecx
mov dword [0x102346e8], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1000e850
mov eax, dword [0x102346e0]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1000e850
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000fa40
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102346e0], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000fa8a
xor eax, eax
mov dword [0x102346e4], 0x1864
mov dword [ebp - 0x14], eax
jmp 0x1000fb5a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x1000facf
mov eax, dword [ebp - 0x1c]
mov dword [0x102346e4], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x1000fae8
jmp 0x1000fa76
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1000fb06
jmp 0x1000fa76
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000fa8a
jmp 0x1000faa0
mov dword [0x102346e4], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1000fabe
jmp 0x1000fa76
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000fa76
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000fa76
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000fa76
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1000fa76
mov eax, dword [ebp - 0x14]
add esp, 0x20
pop ebp
ret
Function at 0x1000ff50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102346e8], 0
mov dword [0x102346ec], 0
mov dword [0x102346f8], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x1000ff9e
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x1000ffaf
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [0x102346e0], 0x1e8a
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x102346e8], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102346ec], edx
mov dword [0x102346e0], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x102346f0], cl
mov dword [0x102346e4], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x102346f0]
mov edx, dword [0x102346ec]
mov byte [ebx + edx], cl
mov edx, dword [0x102346e8]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x102346ec]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x102346f8], ecx
mov dword [0x102346e0], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov dword [0x102346e4], 0xbad
mov dword [0x102346e0], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x100100ac
mov eax, dword [0x102346ec]
mov ecx, dword [0x102346e8]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
jmp 0x1000ffaf
jmp 0x1000ff96
Function at 0x100100c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x102346e0], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.1000e9a0
lea ecx, [0x1000e710]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x64], edx
mov dword [esp + 0x80], 0x152000
mov edx, dword [0x102346cc]
mov dword [esp + 0x50], edx
mov edx, dword [0x102346d0]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102346d4]
mov dword [esp + 0x68], edx
mov edx, dword [0x102346d8]
mov dword [esp + 0x6c], edx
mov edx, dword [0x102346dc]
mov dword [esp + 0x2c], edx
mov dword [0x102346e0], 0x212d
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
jne 0x10010174
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x10010188
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1001014d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [0x102346e4], 0x1fcc
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x4c], eax
call fcn.1000fa40
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x100101ef
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000f360
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x102346e0], 0x1ed4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x426037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x42603d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0x25000]
push edi
lea esi, [eax + 0x1e8]
or ebp, 0xffffffff
xor ebx, ebx
nop
nop
nop
nop
add ebx, ebx
jne 0x426063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426070
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
jmp 0x426058
mov eax, 1
add ebx, ebx
jne 0x426080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x426075
jne 0x426091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426075
xor ecx, ecx
sub eax, 3
jb 0x4260ff
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42611a
mov ebp, eax
add ebx, ebx
jne 0x4260b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4260bd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4260e1
inc ecx
add ebx, ebx
jne 0x4260cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4260c2
jne 0x4260de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4260c2
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x426104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4260f1
jmp 0x426058
mov eax, ebp
jmp 0x4260a5
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426104
add edi, ecx
jmp 0x426058
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0xb03
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42612b
cmp byte [edi], 0xd
jne 0x42612b
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x426130
pop edi
mov eax, dword [edi]
or eax, eax
je 0x426195
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24020]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x426158
push edx
mov ecx, edi
jns 0x426185
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x426172
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4261c6
cmp al, 0xef
ja 0x4261b9
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42619b
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4261a8
popal
jmp 0x417400
Function at 0x40d030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d088
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x40d080
cmp ebp, ebx
jb 0x40d102
cmp ebp, dword [esp + 0x1c]
ja 0x40d113
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x40d082
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x40d070
jmp 0x40d0df
ja 0x40d088
cmp edx, edi
mov ebx, ebp
jne 0x40d045
mov edx, dword [esp + 0x24]
test edx, edx
je 0x40d0e3
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x40d0c0
mov esi, edi
sub ecx, ebx
jns 0x40d0d7
jmp 0x40d0e5
cmp edi, edx
je 0x40d0ec
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x40d0e5
xor al, 1
cmp esi, edx
jne 0x40d0a0
jmp 0x40d0e5
xor eax, eax
jmp 0x40d0e5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x45f728
push 0x2b
push 0x45ebcd
call fcn.00450d00
add esp, 0xc
ud2
push 0x45f718
push ebp
push ebx
call fcn.00451160
add esp, 0xc
ud2
push 0x45f718
push dword [esp + 0x20]
push ebp
call fcn.004510f0
add esp, 0xc
ud2
Function at 0x410ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a660
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x410f60
jmp 0x410f4e
jbe 0x410ff4
cmp esi, 0x201
jae 0x410f60
lea ebx, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov edi, esi
jmp 0x410f9b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x410f8c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.004513f0
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x410fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411057
cmp esi, edi
jne 0x410f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411073
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x410f4e
jmp 0x410f60
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x411090
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.00412630
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x411041
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.004417f0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x411031
jmp 0x411041
mov dword [ebp - 0x10], 0
push 0x461e00
push 0x28
push str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_string.rs
call fcn.00450d00
add esp, 0xc
jmp 0x41109f
push 0x461e10
push eax
push esi
call fcn.004510f0
add esp, 0xc
ud2
Function at 0x4172f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x417334
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x41733a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x417376
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x41739b
test eax, eax
js 0x417385
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x417391
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x46183c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00412220
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.0040f8b0
mov ecx, 7
int 0x29
ud2

Function at 0x417c90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x41a860
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x417d0e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x4619b0
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], 0x411610
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x4619dc
push eax
call fcn.00450c40
add esp, 8
ud2
Function at 0x4184b0
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, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a880
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x4184ee
test eax, eax
jne 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418517
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418548
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418510
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418510
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418577
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4185a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418570
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418570
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x4185d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418608
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4185d0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4185d0
test byte [ebp - 0x20], 1
je 0x41866a
mov ebx, dword [0x4a026c]
test ebx, ebx
je 0x41866a
mov dword [ebp - 0x20], 0
jmp 0x418637
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x418664
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418630
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x418630
test byte [ebp - 0x20], 1
jne 0x418684
movzx eax, byte [0x498134]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x4a026c]
jmp 0x41868f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x41866a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4186bb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41868c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x41868c
mov dword [ebp - 0x10], 0
push 0x461d04
push 0x2b
push 0x4603a0
call fcn.00450d00
add esp, 0xc
ud2
Function at 0x41a000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x4a0044]
mov esi, ecx
test eax, eax
je 0x41a026
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a03f
cmp dword [eax + 4], 0
je 0x41a03f
add eax, 8
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a01a
mov eax, dword [0x4a0044]
test eax, eax
je 0x41a0d6
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41a0f3
mov edi, eax
test eax, eax
jne 0x41a09f
movzx eax, byte [0x4a06e5]
push 4
push 0x10
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a107
mov dword [eax], 0x4a0044
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4a0044]
test eax, eax
je 0x41a0f8
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x41a0bf
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x41a0c3
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x41a0c3
xor ecx, ecx
xor edx, edx
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
lea eax, [edi + 8]
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a05d
xor eax, eax
pop esi
pop edi
ret
push 0x4a0044
call fcn.004515e0
add esp, 4
jmp 0x41a097
push 0x10
push 4
call fcn.00451c70
add esp, 8
ud2
Function at 0x41a120
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, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x41a910
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a175
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41a18e
cmp dword [eax + 4], 0
mov ebx, eax
je 0x41a18e
add ebx, 8
jmp 0x41a258
push 0x4a0054
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x41a165
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a239
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x41a256
mov edi, eax
test eax, eax
jne 0x41a1f2
movzx eax, byte [0x4a06e5]
push 4
push 0x10
call fcn.004417e0
add esp, 8
test eax, eax
je 0x41a27d
mov dword [eax], 0x4a0054
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x4a0054]
test eax, eax
je 0x41a26b
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x41a20c
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x41a210
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x41a210
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 0xc]
cmp dword [edi + 4], 0
lea ebx, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
je 0x41a258
test ecx, ecx
je 0x41a258
lock dec dword [ecx]
jne 0x41a258
call fcn.00410500
jmp 0x41a258
push 0x4a0054
call fcn.004515e0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x41a1ac
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4a0054
call fcn.004515e0
add esp, 4
jmp 0x41a1ea
mov dword [ebp - 0x10], 0
push 0x10
push 4
call fcn.00451c70
add esp, 8
ud2