joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d2d8
Capabilities:
Encode data using xor
Get disk information
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a814
mov eax, dword fs:[0]
push eax
mov eax, 0x28d0
call fcn.0043d890
mov eax, dword [0x46b1f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28d0], eax
mov dword [ebp - 0x28d8], ebx
xor eax, eax
lea edi, [ebp - 0x28bc]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x28c8]
push eax
push ebx
push ebx
push 0x45aa00
mov dword [ebp - 0x28c8], ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov eax, dword [ebp - 0x28c8]
push str.IPHLPAPI.dll
mov dword [ebp - 0x28bc], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x28c0], eax
cmp eax, ebx
je 0x42d433
mov eax, 0x2880
push eax
mov dword [ebp - 0x28d4], eax
lea eax, [ebp - 0x28ac]
push ebx
push eax
call fcn.00439030
add esp, 0xc
push str.GetAdaptersInfo
push dword [ebp - 0x28c0]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x42d427
lea ecx, [ebp - 0x28d4]
push ecx
lea ecx, [ebp - 0x28ac]
push ecx
call eax
cmp eax, ebx
jne 0x42d427
mov eax, dword [ebp - 0x271c]
xor edi, edi
mov dword [ebp - 0x28cc], eax
cmp eax, ebx
jle 0x42d427
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28c4], eax
mov dword [ebp - 4], 1
lea esi, [ebp + edi - 0x2718]
movzx eax, byte [esi]
push eax
lea eax, [ebp - 0x28c4]
push str._02X
push eax
call fcn.00401772
mov al, byte [esi]
mov byte [ebp + edi - 0x28b2], al
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28c4]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040114e
inc edi
cmp edi, dword [ebp - 0x28cc]
jl 0x42d3c8
push dword [ebp - 0x28c0]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea esi, [ebp - 0x28bc]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or eax, 0xffffffff
xor esi, esi
movzx ecx, byte [ebp + esi - 0x28]
mov edx, eax
and edx, 0xff
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x46d640]
inc esi
cmp esi, 0x10
jb 0x42d445
mov esi, dword [ebp - 0x28d0]
not eax
mov ecx, section..data
mov dword [ebp - 0x18], eax
call fcn.004074a8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28d8], 1
xor edi, edi
mov bl, byte [ebp + edi - 0x28]
mov al, bl
shr al, 4
cmp al, 9
jbe 0x42d499
add al, 0x37
jmp 0x42d49b
add al, 0x30
movzx eax, al
push eax
mov eax, esi
call fcn.0040794b
movzx eax, bl
and eax, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x42d4b5
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 9
jbe 0x42d4bd
add al, 0x37
jmp 0x42d4bf
add al, 0x30
movzx eax, al
push eax
mov eax, esi
call fcn.0040794b
inc edi
cmp edi, 0x14
jl 0x42d488
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00435124
leave
ret
Function at 0x42d53a
Capabilities:
Check os version

Disassembly:
push 0x13c
mov eax, 0x44b03a
call fcn.00448315
and dword [ebp - 4], 0
and dword [ebp - 0x144], 0
mov esi, ecx
mov ebx, edx
mov edi, section..data
mov ecx, edi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], ebx
call fcn.004074a8
xor eax, eax
xor esi, esi
push eax
mov dword [ebp - 4], eax
inc esi
push eax
mov dword [ebp - 0x144], esi
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
sete byte [ebp - 0x131]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x42d604
cmp eax, esi
je 0x42d604
push 0x45aab4
lea eax, [ebp - 0x138]
push eax
call fcn.00401421
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 4], 4
call fcn.0042d4ec
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x130]
call fcn.00406c0b
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
call fcn.0040114e
jmp 0x42d788
call fcn.0042dc20
test al, al
je 0x42d62d
mov eax, dword [ebp - 0x130]
push str.Windows_Defender_Service
push 0x18
pop ebx
call fcn.0040159d
mov eax, dword [ebp - 0x12c]
inc dword [eax]
xor esi, esi
mov ebx, eax
inc esi
mov eax, dword [ebx]
and dword [ebp - 0x12c], 0
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], esi
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x140], eax
mov edi, 0x114
push edi
lea eax, [ebp - 0x128]
push 0
push eax
mov byte [ebp - 4], 3
call fcn.00439030
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], edi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x118], 2
jne 0x42d6d7
cmp dword [ebp - 0x124], 6
jb 0x42d6d7
push str.rootSecurityCenter2
lea esi, [ebp - 0x12c]
call fcn.00423f16
push ebx
push dword [ebp - 0x130]
mov eax, esi
push eax
lea ecx, [ebp - 0x13c]
call fcn.0042d7a3
add esp, 0xc
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x148]
cmp dword [ebx], eax
jne 0x42d70f
push str.rootSecurityCenter
lea esi, [ebp - 0x12c]
call fcn.00423f16
push ebx
push dword [ebp - 0x130]
mov eax, esi
push eax
lea ecx, [ebp - 0x13c]
call fcn.0042d7a3
add esp, 0xc
mov dword [ebp - 0x138], eax
xor eax, eax
cmp dword [ebp - 0x138], eax
jge 0x42d73d
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx - 0xc], eax
lea eax, [ebp - 0x13c]
je 0x42d730
lea eax, [ebp - 0x140]
mov edi, dword [ebp - 0x130]
call fcn.00406c0b
jmp 0x42d754
cmp dword [ebx], eax
jne 0x42d754
mov eax, dword [ebp - 0x130]
push str.none
push 4
pop ebx
call fcn.0040159d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], 0
push dword [ebp - 0x12c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x131], 0
je 0x42d797
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x130]
call fcn.00448398
ret
Function at 0x42e0fb
Capabilities:
Create process on windows

Disassembly:
push 0x70
mov eax, 0x44d027
call fcn.004482ac
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
mov byte [ebp - 0x11], bl
cmp dword [eax - 0xc], ebx
jne 0x42e125
push 0x80070057
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x42e285
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0042b58d
pop ecx
pop ecx
push str.EnableLUA
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], ebx
call fcn.00401421
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00401421
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0042ee54
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
setne byte [ebp - 0x12]
add eax, 0xfffffff0
call fcn.0040114e
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040114e
cmp byte [ebp - 0x12], bl
je 0x42e211
push dword [esi]
lea eax, [ebp - 0x20]
push eax
call fcn.00401421
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp word [eax], bx
je 0x42e207
sub eax, edi
sar eax, 1
js 0x42e207
mov ecx, eax
mov eax, esi
call fcn.00407073
movzx esi, ax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040114e
cmp esi, 0x49
je 0x42e1dc
cmp esi, 0x69
jne 0x42e211
mov eax, dword [ebp - 0x18]
push ecx
mov esi, esp
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], esi
call fcn.00401686
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], bl
call fcn.0042ce2a
pop ecx
mov byte [ebp - 0x11], al
jmp 0x42e276
push 0x80070057
call fcn.00401000
push 0x44
pop esi
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00439030
add esp, 0xc
push 5
pop eax
mov word [ebp - 0x4c], ax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x7c], esi
push ebx
mov dword [ebp - 0x50], 1
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x42e276
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 0x11], 1
cmp dword [ebp - 0x30], ebx
je 0x42e26c
push dword [ebp - 0x30]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x42e276
push dword [ebp - 0x2c]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040114e
mov al, byte [ebp - 0x11]
call fcn.00448384
ret
Function at 0x42ec83
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x44be1a
call fcn.004482ac
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0x18]
mov byte [eax], bl
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401686
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 2
call fcn.0042ea4f
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x42ee23
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
call fcn.0042ea17
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040114e
cmp dword [ebp - 0x14], ebx
je 0x42ee23
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x10]
push ecx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call edi
cmp dword [ebp - 0x1c], 4
jne 0x42ed8a
cmp dword [ebp - 0x10], 4
jne 0x42ee01
cmp dword [ebp + 0x10], 4
je 0x42ed45
cmp dword [ebp + 0x10], ebx
jne 0x42ee01
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call edi
test eax, eax
je 0x42ed6e
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x18]
call fcn.00406c0b
jmp 0x42ee01
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push 0x454b20
push eax
call fcn.00401772
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov byte [eax], 1
jmp 0x42ee01
cmp dword [ebp - 0x1c], 1
jne 0x42ee01
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
cmp dword [ebp - 0x10], ebx
jne 0x42eda5
lea esi, [ebp - 0x18]
call fcn.004014de
jmp 0x42ee01
add dword [ebp - 0x10], 2
push dword [ebp - 0x10]
call fcn.00435ba6
mov esi, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x18], ecx
lea ecx, [ebp + 0x18]
push ecx
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
call edi
test eax, eax
jne 0x42edf8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
sub ecx, eax
cmp ecx, 2
jb 0x42edf8
mov esi, dword [ebp + 0x14]
xor ecx, ecx
mov word [eax + esi], cx
mov eax, esi
call fcn.00401613
mov ebx, eax
push esi
lea eax, [ebp - 0x18]
call fcn.0040159d
xor ebx, ebx
push dword [ebp + 0x14]
call fcn.004356ce
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x18]
lea eax, [esi - 0x10]
call fcn.00401686
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
jmp 0x42ee3a
mov esi, dword [ebp - 0x18]
lea eax, [esi - 0x10]
call fcn.00401686
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
lea eax, [esi - 0x10]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], bl
call fcn.0040114e
mov eax, edi
call fcn.00448384
ret
Function at 0x42ee54
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x44bdbe
call fcn.004482ac
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.0042ea4f
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x42eef2
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x10]
mov dword [ebp + 0x10], esi
call fcn.0042ea17
lea ecx, [ebp + 0x10]
push ecx
push 0x20019
mov dword [ebp - 4], esi
mov eax, dword [eax]
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040114e
cmp dword [ebp + 0x10], esi
je 0x42eef2
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebx]
mov dword [ebp - 0x10], esi
push dword [ebp + 0x10]
call edi
cmp dword [ebp - 0x18], 4
jne 0x42eee9
cmp dword [ebp - 0x10], 4
jne 0x42eee9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebx]
push dword [ebp + 0x10]
call edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
call fcn.00448384
ret
Function at 0x43500a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46ea6c], 0
push esi
push edi
jne 0x434f80
call fcn.00434eec
test eax, eax
je 0x434fc5
mov eax, dword [0x46ea6c]
cmp eax, 1
jne 0x434fa1
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x434fc5
jmp 0x435007
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x435007
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x434fc9
xor eax, eax
jmp 0x435007
mov eax, dword [esi]
push dword [0x46ea6c]
call edi
mov edi, eax
test edi, edi
je 0x434feb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x435007
lea edi, [esi + 0xff0]
push esi
push dword [0x46ea6c]
call dword [sym.imp.KERNEL32.DLL_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x434ff1
mov eax, esi
pop edi
pop esi
ret
jmp 0x434f6c

Function at 0x435124
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46b1f0]
jne 0x43512e
repz ret
jmp fcn.004390aa
Function at 0x44205c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46b1f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043c465
and dword [ebp - 0x14], 0
cmp dword [0x46f8d0], 0
mov dword [ebp - 0x18], eax
jne 0x44210f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4421b7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4528a8
push ebx
call edi
test eax, eax
je 0x4421b7
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46f8d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46f8d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46f8d8], eax
call edi
push eax
call esi
mov dword [0x46f8e0], eax
test eax, eax
je 0x44210f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46f8dc], eax
mov eax, dword [0x46f8dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x442168
cmp dword [0x46f8e0], ecx
je 0x442168
push eax
call esi
push dword [0x46f8e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x442168
test ebx, ebx
je 0x442168
call edi
test eax, eax
je 0x44215f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44215f
test byte [ebp - 8], 1
jne 0x442168
or dword [ebp + 0x10], 0x200000
jmp 0x44219b
mov eax, dword [0x46f8d4]
cmp eax, dword [ebp - 0x18]
je 0x44219b
push eax
call esi
test eax, eax
je 0x44219b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44219b
mov eax, dword [0x46f8d8]
cmp eax, dword [ebp - 0x18]
je 0x44219b
push eax
call esi
test eax, eax
je 0x44219b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46f8d0]
call esi
test eax, eax
je 0x4421b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4421b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435124
leave
ret
Function at 0x4015f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov eax, dword [0x5c3210]
mov dword [ebp - 0x814], eax
cmp eax, 0xffffffff
je 0x40169c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4016ea
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004d5a00
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00401720
add esp, 8
push edi
call fcn.004d021a
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.004d4f00
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00401720
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d25a3
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00401740
add esp, 4
test al, al
je 0x4016ed
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x4016f0
xor eax, eax
dec eax
lock cmpxchg dword [0x5c3210], ecx
mov eax, dword [ebp - 0x814]
je 0x401620
push eax
call fcn.0051efb0
add esp, 4
mov eax, dword [0x5c3210]
mov dword [ebp - 0x814], eax
jmp 0x401620
int3
int3
push esi
call fcn.00401740
add esp, 4
test al, al
je 0x401718
cmp dword [ebp - 0x814], 0xffffffff
je 0x401718
push 0xffffffffffffffff
call fcn.0051efb0
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x4016ba
int3

Function at 0x402e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x5c3210]
cmp eax, 0xffffffff
je 0x402f2f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x402f2f
mov eax, dword [0x5c7164]
mov ecx, dword [0x5c7534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x402f39
mov edi, dword [0x5c7160]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x402fa9
mov ecx, dword [0x5c655c]
inc ecx
mov edx, 0x100
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5c6560], 0
jne 0x402f7e
lea ecx, [eax*4 + 0x5c6560]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5c6564], ecx
mov dword [0x5c655c], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5c6568]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x402fa6
cmp eax, 0x100
jge 0x402fb5
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004015f0
jmp 0x402e85
push 0x5c7164
call fcn.004d02b9
add esp, 4
cmp dword [0x5c7164], 0xffffffff
jne 0x402ea6
push 4
call fcn.004cf0a6
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004c1420
mov dword [0x5c7160], edi
push 0x5c7164
call fcn.004d03d3
add esp, 4
jmp 0x402ea6
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5c6560], 0
je 0x402edb
add ecx, 2
add edx, 0xfffffffe
jne 0x402ec7
jmp 0x402f0b
int3
mov ecx, edi
call fcn.004c2c70
jmp 0x402ebb
int3
Function at 0x4057c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov ebx, ecx
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4057f3
mov eax, dword [0x5c321c]
cmp eax, 0xffffffff
je 0x405854
mov ebx, 0x100000
test eax, eax
jne 0x4057f3
mov ebx, 0x80000
push 0xc
call fcn.004cf0a6
add esp, 4
mov edi, eax
mov dword [eax], esi
mov esi, dword [ebp + 8]
test esi, esi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
push ecx
push 0x10000
push edi
push 0x421730
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x405878
test esi, esi
je 0x4058ab
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x5c321c
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x405910
mov eax, dword [0x5c321c]
jmp 0x4057e5
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x405894
mov esi, eax
cmp eax, 0x5af
je 0x405894
cmp esi, 0xe
jne 0x4058b8
push ebx
call fcn.0051c010
add esp, 4
push edi
call fcn.004cf0d6
add esp, 4
mov eax, dword [ebp - 0x24]
jmp 0x40583b
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40583b
mov eax, dword [0x5c7184]
mov ecx, dword [0x5c7534]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x18]
jg 0x40591f
lea ebx, [ebp - 0x20]
push esi
push ebx
call fcn.004feef0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x4058f0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push dword [0x5c7180]
call fcn.004c01a0
add esp, 0xc
cmp byte [ebp - 0x15], 0
jns 0x40589d
push dword [ebp - 0x20]
call fcn.004cf0d6
jmp 0x40589a
mov dword [0x5c321c], 0
jmp 0x4057ee
push 0x5c7184
call fcn.004d02b9
add esp, 4
cmp dword [0x5c7184], 0xffffffff
jne 0x4058d5
push 0x20
push str.create_thread_last_error
call fcn.0042c650
add esp, 8
mov dword [0x5c7180], eax
push 0x5c7184
call fcn.004d03d3
add esp, 4
jmp 0x4058d5
Function at 0x407390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00407460
mov dword [esi], 0
test eax, eax
je 0x4073d8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40740a
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4073cf
mov dword [esi], ebx
call fcn.004bafe0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00407430
lea ecx, [esi + 0x10]
call fcn.00407440
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004bafe0
push dword [esi]
call fcn.004c1b90
add esp, 4
mov dword [esi], 0
jmp 0x4073c0

Function at 0x407700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x407735
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x40773c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x40772e
mov dword [esi], ebx
call fcn.004bafe0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004bafe0
push dword [esi]
call fcn.004c1b90
add esp, 4
mov dword [esi], 0
jmp 0x40771f