joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x490bcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0
je 0x40abc4
mov dword [ebp - 0x18], 0x20106
jmp 0x40abcb
mov dword [ebp - 0x18], 0x20206
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ac62
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx]
mov word [ebp - 0xe], dx
add dword [ebp - 0xc], 2
cmp word [ebp - 0xe], 0
jne 0x40ac09
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x28]
sar eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ac58
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451fd2
mov esp, ebp
pop ebp
ret
Function at 0x40f990
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.GlobalNamNDISCFGMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f9c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f9c0
xor eax, eax
jmp 0x40fb8b
cmp dword [ebp + 8], 2
jl 0x40fa06
push 0x47f554
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.004535f2
add esp, 8
test eax, eax
je 0x40fa06
push 0x47f55c
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
call fcn.004535f2
add esp, 8
test eax, eax
jne 0x40fa0b
call fcn.0040f820
call fcn.0040f930
mov byte [0x49504c], al
movzx eax, byte [0x49504c]
test eax, eax
jne 0x40fa52
mov ecx, dword [str.inspect]
mov dword [0x4950b0], ecx
mov edx, dword [0x47f568]
mov dword [0x4950b4], edx
mov eax, dword [0x47f56c]
mov dword [0x4950b8], eax
mov cx, word [0x47f570]
mov word [0x4950bc], cx
jmp 0x40fabf
push 0x60
push 0
push 0x495050
call fcn.004543e0
add esp, 0xc
mov edx, dword [str.NetFlt]
mov dword [0x4950b0], edx
mov eax, dword [0x47f578]
mov dword [0x4950b4], eax
mov ecx, dword [0x47f57c]
mov dword [0x4950b8], ecx
mov edx, dword [str.hf_netflt]
mov dword [0x495050], edx
mov eax, dword [0x47f588]
mov dword [0x495054], eax
mov ecx, dword [0x47f58c]
mov dword [0x495058], ecx
mov edx, dword [0x47f590]
mov dword [0x49505c], edx
mov ax, word [0x47f594]
mov word [0x495060], ax
cmp dword [ebp + 8], 2
jne 0x40fb16
push str._install
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.004535f2
add esp, 8
test eax, eax
jne 0x40fb16
push 0
push 0
push 0
push 0x409ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x495110], eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ebe0
call fcn.00409b40
jmp 0x40fb7f
cmp dword [ebp + 8], 2
jne 0x40fb43
push str._uninstall
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.004535f2
add esp, 8
test eax, eax
jne 0x40fb43
call fcn.0040f430
jmp 0x40fb7f
cmp dword [ebp + 8], 3
jne 0x40fb7f
push str._unbind
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.004535f2
add esp, 8
test eax, eax
jne 0x40fb7f
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.0040c9d0
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411990
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x473189
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
call fcn.00403760
sub esp, 8
lea ecx, [edi + 0x18]
mov dword [esp + 0x24], 0
call fcn.00412360
sub esp, 8
lea ecx, [edi + 0xb0]
mov byte [esp + 0x24], 1
call fcn.00412360
lea ecx, [edi + 0x148]
mov byte [esp + 0x1c], 2
call fcn.00412d60
mov byte [esp + 0x1c], 3
mov dword [edi + 0x15c], 0
mov dword [edi + 0x160], 0
call fcn.004138c0
mov dword [edi + 0x15c], eax
lea ecx, [edi + 0x164]
mov byte [esp + 0x1c], 4
call fcn.00403760
lea ecx, [edi + 0x17c]
mov byte [esp + 0x1c], 5
call fcn.00403760
lea esi, [edi + 0x194]
mov byte [esp + 0x1c], 6
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.00403760
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 7
call fcn.00403760
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 8
call fcn.00403760
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 9
call fcn.00403760
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 0xa
call fcn.00403760
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 0xb
call fcn.00403760
lea ecx, [esp + 0xb]
call fcn.00404470
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
mov byte [esi + 0x9e], 0
lea esi, [edi + 0x238]
mov byte [esp + 0x1c], 0xc
sub esp, 8
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.00412360
lea ecx, [esi + 0x98]
mov byte [esp + 0x1c], 0xd
call fcn.00403760
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1c], 0xe
call fcn.00403240
lea ecx, [edi + 0x300]
mov byte [esp + 0x1c], 0xf
call fcn.00403760
lea ecx, [edi + 0x318]
mov byte [esp + 0x1c], 0x10
call fcn.00403760
lea ecx, [edi + 0x330]
mov byte [esp + 0x1c], 0x11
call fcn.00433840
mov byte [esp + 0x1c], 0x12
lea ecx, [esp + 0xb]
mov dword [edi + 0x408], 0
call fcn.00404470
push 0x200
lea ecx, [edi + 0x40c]
mov dword [edi + 0x40c], 0
mov dword [edi + 0x410], 0
mov dword [edi + 0x414], 0
call fcn.00425d90
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x411d70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473283
push eax
mov dword fs:[0], esp
sub esp, 0x18
cmp byte [0x4956d0], 0
push ebx
push esi
push edi
jne 0x411edc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push eax
mov dword [0x495114], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x411df1
push 0x418
call fcn.00452817
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
test eax, eax
je 0x411dda
mov ecx, eax
call fcn.00411990
jmp 0x411ddc
xor eax, eax
push eax
mov dword [esp + 0x30], 0xffffffff
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [0x495434]
test ebx, ebx
jne 0x411e06
call fcn.00411490
mov ebx, dword [0x495434]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 0x14]
xor edi, edi
or edi, dword [esp + 0x10]
push 0
add edi, 0x2ac18000
push 0x989680
adc esi, 0xfe624e21
push esi
push edi
call fcn.004584a0
push 0
push 0x989680
push edx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call fcn.00458460
push 0
sub edi, eax
push 0xa
sbb esi, edx
push esi
push edi
call fcn.004584a0
movq xmm0, qword [esp + 0x10]
movq qword [ebx + 0x30], xmm0
mov dword [esp + 0x18], eax
movq xmm0, qword [esp + 0x18]
lea ecx, [esp + 0x10]
movq qword [ebx + 0x38], xmm0
call fcn.0040fe90
mov dword [esp + 0x10], vtable.log4cplus::Logger.0
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x411ec0
mov eax, dword [ecx + 0x14]
lea edx, [ecx + 0x14]
mov eax, dword [eax + 4]
add edx, eax
or ecx, 0xffffffff
lea eax, [edx + 8]
lock xadd dword [eax], ecx
cmp ecx, 1
sete al
test al, al
je 0x411ec0
test edx, edx
je 0x411ec0
mov eax, dword [edx]
push 1
mov ecx, edx
call dword [eax]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], vtable.log4cplus::spi::AppenderAttachable.0
call fcn.00431490
mov byte [0x4956d0], 1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473939
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov dword [esp + 0x14], 0
push esi
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x20]
push edi
mov edi, ecx
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov esi, dword [edi + 0x30]
mov dword [esp + 0x10], 1
mov ecx, dword [esi]
cmp ecx, dword [ebp]
je 0x414035
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x41402b
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp]
mov dword [esi], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x414054
lea esp, [esp]
push dword [esi + 4]
mov ecx, dword [esi + 8]
push edi
push 1
call ecx
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x414040
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x415800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4734ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
cmp dword [esp + 0x2c], 0
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
je 0x415850
lea ecx, [esi + 0x158]
mov dword [esi + 4], 0x480038
call fcn.004140a0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 1
push ecx
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
push dword [esp + 0x2c]
mov ecx, esi
call fcn.00414a50
mov dword [esp + 0x14], 2
mov eax, dword [esi + 4]
mov dword [esi], vtable.log4cplus::FileAppender.0
mov eax, dword [eax + 4]
mov ecx, esi
mov dword [eax + esi + 4], vtable.log4cplus::FileAppender.1.0
call fcn.00415770
push dword [esp + 0x24]
mov dword [esp + 0x18], 3
mov eax, dword [esi + 4]
push dword [esp + 0x24]
mov dword [esi], vtable.log4cplus::RollingFileAppender.0
mov eax, dword [eax + 4]
mov ecx, esi
mov dword [eax + esi + 4], vtable.log4cplus::RollingFileAppender.1.0
call fcn.00415ae0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x18
Function at 0x415d80
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4739c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00411880
mov ebp, eax
mov dword [esp + 0x10], 0
lea edi, [esi + 0x48]
mov dword [esp + 0x9c], 0
lea ecx, [edi + 4]
call fcn.00419e70
test eax, eax
jne 0x415dd9
push eax
mov eax, dword [edi]
push 2
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00409c60
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea ecx, [esi + 0x48]
push 0
add ecx, eax
call fcn.00409d10
cmp byte [esi + 0x34], 0
je 0x415e30
lea eax, [esp + 0x5c]
lea ebx, [esi + 0xf0]
push eax
mov ecx, ebx
mov dword [esp + 0xa0], 0
call fcn.00409cb0
push eax
call fcn.0045d0af
add esp, 8
cmp eax, 0xffffffff
je 0x415e29
mov eax, dword [esp + 0x70]
cmp eax, dword [esi + 0x150]
jge 0x415e30
push 0xe
jmp 0x415f91
mov edx, dword [esi + 0x154]
lea ebx, [esi + 0xf0]
test edx, edx
jle 0x415f4a
mov ecx, ebx
call fcn.00414390
push 0x480408
mov edx, ebx
lea ecx, [esp + 0x18]
call fcn.0041bcb0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 3
call fcn.00409cb0
push eax
call fcn.0045b0eb
add esp, 4
test eax, eax
je 0x415e81
call fcn.00456953
push ebx
mov edx, str.Renaming_file
lea ecx, [esp + 0x60]
call fcn.00410310
add esp, 4
push str._to
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xa8], 4
call fcn.0040f770
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov edx, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 5
call fcn.0041b910
add esp, 4
push 0
push eax
push str.log4cplus:
push 0x410580
push 0x494ed8
mov ecx, ebp
mov byte [esp + 0xb0], 6
call fcn.004107a0
lea ecx, [esp + 0x2c]
call fcn.00403900
lea ecx, [esp + 0x44]
call fcn.00403900
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 3
call fcn.00403900
lea ecx, [esp + 0x14]
call fcn.00409cb0
push eax
mov ecx, ebx
call fcn.00409cb0
push eax
call fcn.0045b648
add esp, 8
test eax, eax
je 0x415f32
call fcn.00456953
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
mov edx, ebx
mov ecx, ebp
call fcn.00414150
add esp, 8
lea ecx, [esp + 0x14]
jmp 0x415f82
push str._has_no_backups_specified
mov edx, ebx
lea ecx, [esp + 0x60]
call fcn.0041bcb0
add esp, 4
push 0
push eax
push str.log4cplus:
push 0x410580
push 0x494ed8
mov ecx, ebp
mov byte [esp + 0xb0], 7
call fcn.004107a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0
call fcn.00403900
push 0x12
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push ebx
mov edx, edi
mov ecx, ebp
call fcn.00414310
mov ecx, dword [esp + 0x98]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
Function at 0x418070
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4739f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp byte [edi + 0x34], 0
je 0x4180b9
cmp byte [ebp + 8], 0
jne 0x4180b9
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [ebp - 0x18]
call fcn.0041b960
mov esi, dword [ebp - 0x18]
lea ebx, [edi + 0x48]
mov dword [ebp - 4], 0
lea ecx, [ebx + 4]
call fcn.00419e70
test eax, eax
jne 0x4180de
push eax
mov eax, dword [ebx]
push 2
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00409c60
mov eax, dword [ebx]
push 0
mov eax, dword [eax + 4]
lea ecx, [edi + 0x48]
push 0
add ecx, eax
call fcn.00409d10
cmp dword [edi + 0x100], 0
je 0x4181f7
call fcn.00411880
lea ebx, [edi + 0x16c]
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.00409cb0
push eax
call fcn.0045b0eb
add esp, 4
test eax, eax
je 0x418125
call fcn.00456953
lea eax, [edi + 0xf0]
push eax
mov edx, str.Renaming_file
lea ecx, [ebp - 0x64]
call fcn.00410310
add esp, 4
push str._to
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.0040f770
add esp, 0xc
push ebx
mov edx, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.0041b910
add esp, 4
mov ecx, dword [ebp + 8]
push 0
push eax
push str.log4cplus:
push 0x410580
push 0x494ed8
mov byte [ebp - 4], 5
call fcn.004107a0
lea ecx, [ebp - 0x4c]
call fcn.00403900
lea ecx, [ebp - 0x34]
call fcn.00403900
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00403900
mov ecx, ebx
call fcn.00409cb0
push eax
lea ecx, [edi + 0xf0]
call fcn.00409cb0
push eax
call fcn.0045b648
add esp, 8
test eax, eax
jne 0x4181dd
jmp 0x4181e4
call fcn.00456953
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push ebx
lea edx, [edi + 0xf0]
call fcn.00414150
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.0042ce80
movq xmm0, qword [ebp - 0x2c]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 8], xmm0
call fcn.00418290
mov eax, dword [edi]
push 0x12
mov ecx, edi
call dword [eax + 0x28]
push dword [edi + 0x168]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004169b0
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x1a0], xmm0
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x3c]
add esp, 4
movq qword [edi + 0x1a8], xmm0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41826e
mov ecx, esi
call fcn.00434ee0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x473aa8
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x41a1c7
cmp byte [edi + 0x46], 0
je 0x41a1c7
mov esi, dword [edi]
call fcn.00408c30
movzx eax, ax
push eax
mov ecx, edi
call dword [esi + 0xc]
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.00408c30
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00408c00
add esp, 8
test al, al
je 0x41a026
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x13]
call fcn.00404470
push eax
lea ecx, [esp + 0x3c]
call fcn.00404480
push 0
push 0
lea ecx, [esp + 0x40]
call fcn.00404390
push 0
push 8
lea ecx, [esp + 0x40]
call fcn.004042a0
test al, al
je 0x41a077
lea ecx, [esp + 0x38]
mov byte [esp + 0x14], 0
call fcn.004044f0
xorps xmm0, xmm0
push 8
lea ecx, [esp + 0x3c]
movq qword [eax], xmm0
call fcn.00404260
mov dword [esp + 0x5c], 0
lea ebp, [edi + 0x48]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403630
mov ecx, eax
call fcn.00404920
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.004036b0
add esi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403630
mov ecx, eax
call fcn.00404920
mov ecx, dword [edi + 0x40]
lea ebx, [esp + 0x24]
mov edx, dword [ecx]
push ebx
push esi
push eax
push ebp
call dword [edx + 0x20]
sub eax, 0
je 0x41a0fa
dec eax
je 0x41a0fe
sub eax, 2
je 0x41a1a7
lea ecx, [esp + 0x38]
xor bl, bl
call fcn.004033e0
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x46], 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403630
mov ecx, eax
call fcn.00404920
mov esi, dword [esp + 0x24]
sub esi, eax
je 0x41a143
push dword [edi + 0x50]
lea eax, [esp + 0x38]
push esi
push 1
push eax
lea ecx, [esp + 0x48]
call fcn.00403630
mov ecx, eax
call fcn.00404920
push eax
call fcn.0045b5ca
add esp, 0x10
cmp esi, eax
jne 0x41a0da
cmp byte [edi + 0x46], 0
je 0x41a1a7
test esi, esi
jne 0x41a082
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x41a19e
lea ebx, [ecx + 8]
push esi
push ebx
lea ecx, [esp + 0x40]
call fcn.004042a0
test al, al
je 0x41a082
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x38]
mov byte [esp + 0x18], 0
call fcn.004044f0
xorps xmm0, xmm0
push ebx
lea ecx, [esp + 0x3c]
movq qword [eax + esi], xmm0
call fcn.00404260
jmp 0x41a082
lea ecx, [esp + 0x38]
call fcn.00404430
lea ecx, [esp + 0x38]
mov bl, 1
call fcn.004033e0
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c9a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x473d6b
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push dword [0x495114]
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41ca0b
push 0x418
call fcn.00452817
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], esi
test eax, eax
je 0x41c9f4
mov ecx, eax
call fcn.00411990
mov esi, eax
jmp 0x41c9f6
xor esi, esi
push esi
mov dword [esp + 0x54], 0xffffffff
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x5c]
mov eax, dword [ebp]
lea ebx, [esi + 0x300]
push ebx
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call dword [eax + 4]
mov ecx, ebx
call fcn.004036b0
mov ecx, dword [ebp + 8]
cmp eax, ecx
jbe 0x41cac0
test byte [ebp + 0xc], 2
je 0x41ca7e
sub eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.0040f6b0
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x58], 1
call fcn.0040a360
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00403900
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
push ecx
push 0
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.0040f6b0
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x58], 2
call fcn.0040a360
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00403900
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
cmp eax, dword [ebp + 4]
jge 0x41cb42
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00407ce0
mov ecx, dword [ebx]
mov edi, eax
mov ecx, dword [ecx + 4]
mov eax, 0x20
movzx esi, word [ecx + ebx + 0x40]
mov word [ecx + ebx + 0x40], ax
mov ecx, dword [ebx]
test byte [ebp + 0xc], 1
mov ecx, dword [ecx + 4]
mov edx, 0x40
mov eax, 0x80
cmovne eax, edx
xor eax, dword [ecx + ebx + 0x14]
and eax, 0x1c0
xor dword [ecx + ebx + 0x14], eax
mov eax, dword [ebp + 4]
cdq
push edx
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00408f70
push dword [esp + 0x14]
push ebx
call fcn.0040a360
mov eax, dword [ebx]
movzx ecx, di
mov eax, dword [eax + 4]
mov word [eax + ebx + 0x40], si
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], ecx
jmp 0x41cb4c
push ebx
push dword [esp + 0x5c]
call fcn.0040a360
mov ecx, dword [esp + 0x50]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x41d270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473bc3
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41d2dc
push 0x418
call fcn.00452817
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x2c], esi
test eax, eax
je 0x41d2c5
mov ecx, eax
call fcn.00411990
mov esi, eax
jmp 0x41d2c7
xor esi, esi
push esi
mov dword [esp + 0x30], 0xffffffff
push dword [0x495114]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0xb0
mov ecx, esi
call fcn.00420f70
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.00436b00
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00409cd0
push dword [ebp + 8]
mov ecx, eax
mov dword [esp + 0x30], 1
call fcn.0041ee10
lea ecx, [esp + 8]
call fcn.00403900
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41d6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 7]
push eax
mov dword [esp + 0xc], edi
call fcn.004044a0
push eax
lea ecx, [esp + 9]
call fcn.00404fb0
lea eax, [esp + 5]
push eax
lea ecx, [esp + 0xa]
call fcn.00404fb0
lea eax, [esp + 6]
push eax
mov ecx, edi
call fcn.00404480
push 0
push 0
mov ecx, edi
call fcn.004047e0
push 0xffffffffffffffff
push 0
push dword [esp + 0x24]
mov ecx, edi
call fcn.004046a0
mov dword [esp + 0x14], 0
mov al, byte [edi + 0x20]
and al, 0xfe
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
or al, 2
mov byte [edi + 0x20], al
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [esp + 0x14], 1
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.00403760
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x50], eax
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret 8