joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425c80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x488133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dl, byte [esp + 0x2c]
mov eax, ecx
mov ecx, dword [esp + 0x30]
push esi
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
mov dword [eax + 0xc], 1
mov dword [eax], vtable.Blizzard::IOMopaqSectorReadUnitInternal.0
lea ecx, [eax + 0x18]
mov dword [eax + 0x10], 3
mov dword [eax + 0x14], ecx
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [eax + 0x40], edx
lea ecx, [eax + 0x48]
mov dword [eax + 0x44], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x78], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x7c], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x70], esi
mov esi, dword [esp + 0x24]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x74], esi
mov esi, dword [eax + 0x14]
mov byte [eax + 0x85], dl
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], edx
mov dword [eax + 0x90], ecx
mov byte [eax + 0x84], 1
mov dword [esi], edx
mov edx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20

Function at 0x426fd0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x54
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 4]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [0x4e062c], eax
jne 0x42701e
mov dword [0x4e062c], 1
lea ecx, [esp + 0x28]
push ecx
mov dword [0x4e0628], 1
call fcn.00422ef0
add esp, 4
test al, al
je 0x427149
mov eax, dword [esp + 0x3c]
test al, 0x10
je 0x42704a
mov esi, 1
test eax, 0x800000
je 0x427054
or esi, 2
test eax, 0x2000000
je 0x42705e
or esi, 4
test dword [esp + 0x4c], 0x80000000
je 0x42706b
or esi, 8
push 0xc
lea edx, [esp + 0x2c]
push str.GenuineIntelAuthenticAMDCyrixInsteadCentaurHalls
push edx
call fcn.00472be5
add esp, 0xc
test eax, eax
jne 0x4270cb
test dword [esp + 0x3c], 0x4000000
mov dword [0x4e0620], 1
je 0x42709a
or esi, 0x10
cmp dword [esp + 0x34], 4
jb 0x427149
mov eax, dword [esp + 0x40]
shr eax, 0x1a
je 0x427149
movzx eax, al
or esi, 0x40
add eax, 1
mov dword [0x4e0624], esi
mov dword [0x4e0628], eax
pop esi
add esp, 0x54
ret
push 0xc
lea ecx, [esp + 0x2c]
push 0x4bd094
push ecx
call fcn.00472be5
add esp, 0xc
test eax, eax
jne 0x42711d
test dword [esp + 0x3c], 0x4000000
mov dword [0x4e0620], 2
je 0x4270fa
or esi, 0x10
movzx eax, byte [esp + 0x54]
test eax, eax
jbe 0x427149
movzx edx, al
or esi, 0x40
add edx, 1
mov dword [0x4e0624], esi
mov dword [0x4e0628], edx
pop esi
add esp, 0x54
ret
push 0xc
lea eax, [esp + 0x2c]
push 0x4bd0a0
push eax
call fcn.00472be5
add esp, 0xc
test eax, eax
je 0x427149
push 0xc
lea ecx, [esp + 0x2c]
push 0x4bd0ac
push ecx
call fcn.00472be5
add esp, 0xc
mov dword [0x4e0624], esi
pop esi
add esp, 0x54
ret
Function at 0x427630
Capabilities:
Allocate thread local storage

Disassembly:
push esi
call fcn.00438c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, dword [esp + 8]
not eax
mov dword [esi], eax
not eax
cmp eax, 0xffffffff
jne 0x42764f
xor al, al
pop esi
ret
mov eax, dword [esp + 0xc]
push 0x4dfedc
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4dfef4]
mov dword [eax*4 + 0x4dfef8], esi
add eax, 1
push 0x4dfedc
mov dword [0x4dfef4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret

Function at 0x4283c0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4881cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
mov al, byte [esp + 0x560]
push esi
mov esi, ecx
mov byte [esi + 8], al
mov eax, dword [esp + 0x560]
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 4], 0
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], eax
push eax
mov dword [esp + 0x560], 0
mov dword [esi], vtable.Blizzard::IOCoreAlignedFileUnit.0
call fcn.0041d470
mov edi, eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x24], edx
mov eax, dword [edi]
push eax
call fcn.0041d6b0
mov ecx, dword [edi]
add eax, 1
push eax
push ecx
lea edx, [esp + 0x164]
push edx
call fcn.0041e8a0
lea eax, [esp + 0x168]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428453
sub eax, edx
add eax, 1
cmp eax, 0x12c
mov dword [esp + 0x20], eax
ja 0x428472
lea eax, [esp + 0x28]
jmp 0x42847b
push eax
call fcn.00450669
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x158]
push edx
push eax
mov dword [esp + 0x30], eax
call fcn.0041e8a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edi, eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4284cb
push eax
call fcn.00450664
add esp, 4
test edi, edi
je 0x4284df
mov ecx, dword [esp + 8]
lea eax, [ecx - 1]
test ecx, eax
jne 0x4284df
mov dword [esi + 0x1c], eax
jmp 0x4284e6
mov dword [esi + 0x1c], 0xffff
mov eax, dword [esi + 0x1c]
push 0x48ce64
push 0x7c
push str.d:_buildserverwork_trunkcore_repository_trunk_blizzardcore_source_systemmemoryStackedAllocator.cpp
push 0
add eax, 0x100000
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00423260
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
lea edx, [eax + ecx]
add esp, 0x18
not eax
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x554]
and edx, eax
mov dword [esi + 0x18], edx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x558
ret 8
Function at 0x428b10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4881f1
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x428b43
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
test eax, eax
push esi
jne 0x428b71
push eax
push 0x44
push str.d:_buildserverwork_trunkcore_repository_trunk_blizzardcore_sourcepackagesiounitIOUnitContainer.cpp
push 1
lea eax, [esp + 0x1c]
push 0x128
push eax
mov byte [esp + 0x4c], 1
call fcn.00423260
mov esi, dword [eax]
add esp, 0x18
jmp 0x428b89
mov esi, dword [eax]
mov dl, byte [eax + 4]
lea ecx, [esi + 0x12b]
and ecx, 0xfffffffc
mov dword [eax], ecx
mov byte [esp + 0x34], dl
mov byte [eax + 4], 0
mov dword [esp + 8], esi
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x428bd7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push edi
push eax
push ecx
push edx
mov ecx, esi
call fcn.004261c0
mov eax, dword [esp + 0x30]
mov dword [esi + 0x124], eax
mov dword [esi], vtable.Blizzard::IOReadOnlyMPQFileUnit.0
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
pop esi
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x428bf0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4881f1
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x30]
test esi, esi
je 0x428c98
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x428c42
push eax
push 0x44
push str.d:_buildserverwork_trunkcore_repository_trunk_blizzardcore_sourcepackagesiounitIOUnitContainer.cpp
push 1
lea eax, [esp + 0x18]
push 0x230
push eax
mov byte [esp + 0x48], 1
call fcn.00423260
mov ecx, dword [eax]
add esp, 0x18
jmp 0x428c5a
mov ecx, dword [eax]
lea edx, [ecx + 0x233]
and edx, 0xfffffffc
mov dword [eax], edx
mov dl, byte [eax + 4]
mov byte [esp + 0x30], dl
mov byte [eax + 4], 0
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ecx
test ecx, ecx
mov dword [esp + 0x18], 0
je 0x428c98
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push esi
push eax
mov eax, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
call fcn.00426670
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4293f0
Capabilities:
Get file size

Disassembly:
sub esp, 0x15c
push esi
mov esi, dword [esp + 0x164]
cmp byte [esi + 8], 0
jne 0x429519
mov ecx, dword [esi]
push edi
lea eax, [esp + 8]
push eax
push ecx
mov byte [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x429430
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x429518
mov eax, dword [esi + 0x48]
test eax, eax
je 0x42943c
cmp dword [eax], 0
jne 0x42944e
mov eax, dword [esp + 8]
xor edx, edx
xor ecx, ecx
or edx, edi
or eax, ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov edx, dword [esi + 0x4c]
push edx
lea ecx, [esp + 0x34]
call fcn.00427510
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov edi, eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x429483
push eax
call fcn.00450664
add esp, 4
test edi, edi
je 0x429514
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0041edf0
mov dword [esi + 0x2c], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.0041edf0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x28]
push ecx
push edx
mov dword [esi + 0x30], eax
call fcn.0041edf0
mov edi, dword [esp + 0x24]
push edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.0041df50
mov cl, al
shr cl, 5
and cl, 1
add esp, 0x1c
cmp edi, 0xffffffff
mov dword [esi + 0x20], eax
mov byte [esi + 0x44], cl
jne 0x429502
mov byte [esi + 8], 1
pop edi
mov dword [esi + 0x40], 0
mov byte [esi + 8], 1
pop esi
add esp, 0x15c
ret
and al, 0x40
neg al
mov byte [esi + 8], 1
sbb eax, eax
neg eax
add eax, 1
mov dword [esi + 0x40], eax
mov byte [esi + 8], 1
pop edi
pop esi
add esp, 0x15c
ret
Function at 0x438c70
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x48ce64
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437eb8
push esi
sub eax, edx
push edi
mov edi, eax
lea eax, [edi + 0x38]
push eax
call fcn.0047155f
push 0x38
mov esi, eax
push 0
push esi
call fcn.00470ce0
add edi, 1
push edi
lea ecx, [esi + 0x30]
push 0x48ce64
push ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 2
call fcn.0041e8a0
push esi
call fcn.00435f70
push esi
push 0x4e4994
mov dword [0x4dfed4], esi
call fcn.0043af10
mov edx, dword [0x4dfed4]
mov eax, 1
add esp, 0x28
mov dword [edx + 0x10], eax
mov ecx, dword [0x4dfed4]
pop edi
mov dword [ecx + 0x14], eax
pop esi
ret
cmp byte [0x4dfeda], 0
jne 0x438cec
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4dfedc
mov byte [0x4dfeda], 1
call esi
push 0x4e00f8
call esi
call fcn.00438c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
not eax
mov dword [0x4e4994], eax
not eax
cmp eax, 0xffffffff
pop esi
je 0x438ce7
push 0x4dfedc
mov dword [0x4e4998], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4dfef4]
mov dword [eax*4 + 0x4dfef8], 0x4e4994
add eax, 1
push 0x4dfedc
mov dword [0x4dfef4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x437eb0
ret

Function at 0x4395c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x488a36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x1c], bl
lea edi, [esi + 0x34]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00427b30
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov byte [eax + 0x61], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x439640
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.00438c70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004371d0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov esi, eax
mov ecx, edi
and ecx, 1
lea eax, [esi + 4]
push eax
add ecx, ecx
add ecx, ecx
push ecx
push esi
push 0x437f80
push edx
push 0
mov dword [ebx], esi
call fcn.00474def
mov dword [esi], eax
mov eax, dword [ebx]
not edi
add esp, 0x24
and edi, 1
mov dword [eax + 0x10], edi
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x4396a0
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00438c70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call fcn.004371d0
mov esi, eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x437f80
push 0
push 0
call fcn.00474def
add esp, 0x24
lea ecx, [esi + 0x14]
mov dword [esi], eax
mov dword [esi + 0x10], 1
call fcn.0041e3a0
test eax, eax
jg 0x43970b
mov eax, dword [esi]
test eax, eax
je 0x4396fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.00437240
push esi
call fcn.00471622
add esp, 8
mov al, 1
pop esi
ret
Function at 0x439710
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4880c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4dfedc
mov ebp, eax
mov dword [esp + 0x10], 0x4dfedc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4e4900]
xor ebx, ebx
cmp ecx, 0x10
mov dword [esp + 0x18], ebx
jl 0x439772
push 0x4dfedc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
xor edx, edx
cmp ecx, ebx
push esi
jle 0x439792
mov eax, 0x4e0124
mov edi, edi
cmp dword [eax], ebp
je 0x439899
add edx, 1
add eax, 0x18
cmp edx, ecx
jl 0x439780
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4398e2
push edi
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x4e4900]
lea edx, [ecx + ecx*2]
lea edi, [edx*8 + 0x4e0118]
mov edx, dword [esp + 0x10]
mov dword [edi], edx
mov edx, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
add ecx, 1
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov dword [0x4e4900], ecx
call fcn.00438c70
mov eax, 0x48ce64
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x439810
sub eax, ecx
mov ebp, eax
lea eax, [ebp + 0x38]
push eax
call fcn.0047155f
push 0x38
mov esi, eax
push ebx
push esi
call fcn.00470ce0
add ebp, 1
push ebp
lea ecx, [esi + 0x30]
push 0x48ce64
push ecx
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x438dc0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 2
call fcn.0041e8a0
push esi
call fcn.00435f70
lea edx, [esi + 4]
push edx
push ebx
push esi
push 0x437f80
push ebx
push ebx
call fcn.00474def
add esp, 0x38
push 0x4dfedc
mov dword [esi], eax
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea eax, [ecx + ecx*2]
add ecx, 1
mov dword [0x4e4900], ecx
lea ecx, [edx + edx*2]
add ecx, ecx
add ecx, ecx
mov edx, dword [ecx + ecx + 0x4e0120]
mov esi, dword [ecx + ecx + 0x4e011c]
add ecx, ecx
mov ecx, dword [ecx + 0x4e0118]
lea eax, [eax*8 + 0x4e0118]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], esi
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
push 0x4dfedc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x439b20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x488aa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov esi, ecx
push 0
mov dword [esp + 0x18], esi
call edi
mov dword [esi + 4], eax
push 0
push 0
push 0
push 0
mov dword [esp + 0x24], 0
call edi
mov dword [esi + 8], eax
mov byte [esp + 0x14], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00438c70
push 0x48ce64
push esi
push 0x420f00
call fcn.004371d0
mov edi, eax
lea eax, [edi + 4]
push eax
push 0
push edi
push 0x437f80
push 0
push 0
mov dword [esi], edi
call fcn.00474def
mov dword [edi], eax
mov ecx, dword [esi]
add esp, 0x24
mov dword [ecx + 0x10], 1
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43af10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
push esi
not eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [edi + 4], 0
je 0x43af62
test esi, esi
je 0x43af62
call fcn.00438c70
mov eax, dword [0x4e4994]
not eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43af55
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x43af51
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x43af62
mov ecx, dword [edi + 4]
push ecx
push esi
call fcn.00439710
add esp, 8
pop edi
pop esi
ret

Function at 0x43af89
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x488ba1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x150]
mov dword [esp + 0x1c], 2
call fcn.00439a60
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edi, [esi + 0x138]
push edi
call ebx
mov dword [edi], 0
lea edi, [esi + 0xc]
push edi
call ebx
mov dword [edi], 0
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push esi
push ecx
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.0042e330
mov ecx, dword [esi + 4]
push ecx
call fcn.00450664
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x43b910
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
not eax
cmp eax, 0xffffffff
jne 0x43b934
push 0x41f4a0
push edi
call fcn.00438d30
add esp, 8
test al, al
jne 0x43b941
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43b971
push 1
call fcn.00450639
add esp, 4
test eax, eax
je 0x43b963
push eax
push edi
mov byte [eax], 0
mov esi, eax
call fcn.0043af10
add esp, 8
pop edi
mov eax, esi
pop esi
ret
xor eax, eax
push eax
push edi
mov esi, eax
call fcn.0043af10
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x43b980
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
not eax
cmp eax, 0xffffffff
jne 0x43b9a4
push 0x42a560
push edi
call fcn.00438d30
add esp, 8
test al, al
jne 0x43b9b1
pop edi
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43b9f2
push 0xc
call fcn.00450639
add esp, 4
test eax, eax
je 0x43b9e4
push eax
push edi
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov esi, eax
call fcn.0043af10
add esp, 8
pop edi
mov eax, esi
pop esi
ret
xor eax, eax
push eax
push edi
mov esi, eax
call fcn.0043af10
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x43bfd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
push edi
mov edi, dword [esp + 0x40c]
mov ecx, dword [edi]
cmp ecx, 0xffffffff
jne 0x43bfff
mov ecx, 0x4e4978
call fcn.0043b980
mov dword [eax], 8
xor al, al
pop edi
add esp, 0x404
ret
push esi
mov esi, dword [esp + 0x41c]
mov eax, dword [esi]
test eax, eax
je 0x43c06f
mov edx, dword [esp + 0x418]
push edx
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x420]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [esi], ecx
jne 0x43c06f
mov ecx, 0x4e4978
call fcn.0043b980
mov dword [eax], 5
mov edx, dword [edi + 0x4c]
push edx
lea eax, [esp + 0x10]
push str.Win32_Read____s
push eax
call fcn.00413d40
push 1
push eax
push 5
call fcn.0043bf70
add esp, 0x18
pop esi
xor al, al
pop edi
add esp, 0x404
ret
pop esi
mov al, 1
pop edi
add esp, 0x404
ret

Function at 0x43c080
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
push edi
mov edi, dword [esp + 0x40c]
mov ecx, dword [edi]
cmp ecx, 0xffffffff
jne 0x43c0af
mov ecx, 0x4e4978
call fcn.0043b980
mov dword [eax], 8
xor al, al
pop edi
add esp, 0x404
ret
push esi
mov esi, dword [esp + 0x41c]
cmp dword [esi], 0
je 0x43c124
mov edx, dword [esp + 0x418]
push edx
lea edx, [esp + 0xc]
push edx
mov byte [edi + 8], 0
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x420]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [esi], ecx
jne 0x43c124
mov ecx, 0x4e4978
call fcn.0043b980
mov dword [eax], 6
mov edx, dword [edi + 0x4c]
push edx
lea eax, [esp + 0x10]
push str.Win32_Write____s
push eax
call fcn.00413d40
push 1
push eax
push 6
call fcn.0043bf70
add esp, 0x18
pop esi
xor al, al
pop edi
add esp, 0x404
ret
pop esi
mov al, 1
pop edi
add esp, 0x404
ret