joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405565
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0578
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00405bc8
push esi
call fcn.00405518
test eax, eax
jne 0x40558a
xor eax, eax
jmp 0x4055d9
test byte [0x7a2b70], 0x80
je 0x40559e
mov cl, byte [eax]
test cl, cl
je 0x405586
cmp cl, 0x5c
je 0x405586
mov edi, eax
sub edi, esi
jmp 0x4055b8
call fcn.00405c68
test eax, eax
je 0x4055b2
test byte [eax], 0x10
je 0x405586
push esi
call fcn.004054cc
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055a4
call fcn.00405485
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40564a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405679
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056bd
test edi, edi
jne 0x405684
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056b7
Function at 0x4056c1
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056f9
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4056f9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40583d
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a1300], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a1300
je 0x40573d
push 1
push 0
push esi
call fcn.0040564a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405843
cmp eax, edi
jg 0x405843
mov esi, 0x7a0f00
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405843
cmp eax, edi
jg 0x405843
push esi
push ebp
push str._s_s_r_n
push 0x7a0b00
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40583d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405825
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405819
push str._Rename__r_n
push edi
call fcn.004055de
test eax, eax
jne 0x40584a
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x7a0b00
push eax
call fcn.0040562a
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.004055de
test eax, eax
je 0x405800
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405873
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405866
sub eax, edi
jmp 0x405802
Function at 0x405877
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4058db
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4058ca
cmp dword [ebp + 0x14], 1
je 0x4058cc
cmp dword [ebp + 0x14], 2
je 0x4058cc
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405ca6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1704], 0
push esi
jne 0x405cdd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405cb7
mov dword [ecx*4 + 0x7a1700], eax
inc ecx
cmp ecx, 0x100
jl 0x405cb2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d0e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1700]
xor eax, esi
inc ecx
dec edx
jne 0x405cf0
pop edi
not eax
pop esi
ret 0xc
Function at 0x78f4cd
Capabilities:
Encode data using xor

Disassembly:
lds esp, [ebx + 0x2bdc98ca]
mov al, dh
inc eax
or ah, byte [ebx]

Function at 0x93cba0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6a800d
lea edi, [esi - 0x2a700d]
push edi
or ebp, 0xffffffff
jmp 0x93cbc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x93cbc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x93cbb8
mov eax, 1
add ebx, ebx
jne 0x93cbdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x93cbd0
jne 0x93cbec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x93cbd0
xor ecx, ecx
sub eax, 3
jb 0x93cc00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x93cc72
mov ebp, eax
add ebx, ebx
jne 0x93cc0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x93cc18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x93cc3c
inc ecx
add ebx, ebx
jne 0x93cc28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x93cc1d
jne 0x93cc39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x93cc1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x93cc5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x93cc4d
jmp 0x93cbbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x93cc5c
add edi, ecx
jmp 0x93cbbe
pop esi
mov edi, esi
mov ecx, 0x16c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x93cc7a
cmp byte [edi], 0x11
jne 0x93cc7a
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 al, bl
loop 0x93cc7f
lea edi, [esi + 0x538000]
mov eax, dword [edi]
or eax, eax
je 0x93ccee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5440e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x544138]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x93ccac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x544140]
or eax, eax
je 0x93cce8
mov dword [ebx], eax
add ebx, 4
jmp 0x93ccc9
call dword [esi + 0x54413c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x93cd1f
cmp al, 0xef
ja 0x93cd12
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x93ccf4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x93cd01
mov ebp, dword [esi + 0x544144]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x93cd53
sub esp, 0xffffff80
jmp 0x40d77e
Function at 0x4017b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00407790
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00407790
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401810
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40b04c]
test esi, esi
jle 0x401930
mov eax, dword [0x40b050]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401844
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4018c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401830
mov dword [esp], ebx
call fcn.004021a0
mov edi, eax
test eax, eax
je 0x401957
mov eax, dword [0x40b050]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004022b0
mov edx, dword [0x40b050]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401937
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4018c0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4018d0
add dword [0x40b04c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40b050]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4018c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004017b0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40184e
mov eax, dword [0x40b050]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004017b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004017b0
lea esi, [esi]
nop
Function at 0x401e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b068
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b060]
sub esp, 4
test ebx, ebx
je 0x401e65
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e5e
test esi, esi
je 0x401e5e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e40
mov dword [esp], 0x40b068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x8000
call fcn.00401330
push str.system.ini
push 0x40508c
push str.vidc.mp42
push str.drivers32
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x401034
mov eax, str.WritePrivateProfileString_failed
add esp, 0x8000
ret
push str.system.ini
lea eax, [esp + 4]
push 0x7fff
push eax
push str.drivers32
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
neg eax
sbb eax, eax
not eax
and eax, str.GetPrivateProfileSection_failed
add esp, 0x8000
ret

Function at 0x401060
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [0x405680]
sub esp, 0x120
push ebx
push esi
push edi
push str.FILE
push str.MPG4C32
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401094
pop edi
pop esi
mov eax, str.FindResource_failed
pop ebx
add esp, 0x120
ret
mov ecx, dword [0x405680]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4010b7
pop edi
pop esi
mov eax, str.LoadResource_failed
pop ebx
add esp, 0x120
ret
mov edx, dword [0x405680]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4010e3
pop edi
pop esi
mov eax, str.LockResource_failed
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x28]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401106
pop edi
pop esi
mov eax, str.GetSystemDirectory_failed
pop ebx
add esp, 0x120
ret
lea ecx, [esp + 0x28]
push str.mpg4c32.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x3c]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401149
pop edi
pop esi
mov eax, str.CreateFile_failed
pop ebx
add esp, 0x120
ret
lea eax, [esp + 0x24]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
push edx
mov edi, eax
mov word [esp + 0x14], 0x7d0
mov word [esp + 0x16], 1
mov word [esp + 0x18], 2
mov word [esp + 0x1a], 0xb
mov word [esp + 0x1c], 0x12
mov word [esp + 0x1e], 0x13
mov word [esp + 0x20], 0x28
mov word [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4011e0
cmp dword [esp + 0x24], ebx
jne 0x4011e0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret
pop edi
pop esi
mov eax, str.WriteFile_failed
pop ebx
add esp, 0x120
ret
Function at 0x401230
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push esi
push eax
push ecx
push 0
push 2
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersiondrivers32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401266
mov eax, str.RegCreateKeyEx_failed
pop esi
add esp, 8
ret
push 0x40508c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
inc eax
push eax
push 0x40508c
push 1
push 0
push str.vidc.mp42
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4012a7
mov eax, str.RegCloseKey_failed
pop esi
add esp, 8
ret
mov eax, esi
pop esi
neg eax
sbb eax, eax
and eax, str.RegSetValueEx_failed
add esp, 8
ret

Function at 0x401fa5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4052d0
cmp edx, dword [eax]
je 0x401fc7
add eax, 8
inc ecx
cmp eax, 0x405360
jl 0x401fb8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4052d0]
jne 0x4020f5
mov eax, dword [0x40568c]
cmp eax, 1
je 0x4020cf
test eax, eax
jne 0x401ff8
cmp dword [0x405224], 1
je 0x4020cf
cmp edx, 0xfc
je 0x4020f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40202f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402550
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004026c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402072
lea eax, [ebp - 0x1a4]
push eax
call fcn.004026c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043c8
push edi
call fcn.00403350
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402550
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402560
lea eax, [ebp - 0xa0]
push 0x4043a8
push eax
call fcn.00402560
push dword [esi + 0x4052d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402560
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004032be
add esp, 0x2c
pop edi
jmp 0x4020f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4052d4]
push 0
push eax
push dword [esi]
call fcn.004026c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x416980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x508550
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x416a0c
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 5
mov eax, esi
sar ecx, 0x1f
sub edx, ecx
imul edi, edx, 0x64
sub eax, edi
jne 0x416a0c
cmp esi, 0x15f90
jl 0x416a03
cmp esi, 0x1d4c0
jge 0x4169e0
mov eax, 0x32
jmp 0x416a05
cmp esi, 0x2bf20
jge 0x4169ef
mov eax, 0x64
jmp 0x416a05
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x416a05
mov eax, 0xfa
jmp 0x416a05
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x416a20
inc esi
cmp esi, 0x57e40
jl 0x416998
mov eax, dword [ebp - 4]
test eax, eax
je 0x416a3a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.004227f0
add esp, 4
mov eax, dword [0x508554]
test eax, eax
jne 0x416a68
cmp dword [0x5044a0], 1
je 0x416aa8
xor edi, edi
xor esi, esi
call fcn.00416b40
mov dword [0x508554], 1
cmp dword [0x5044a0], 1
je 0x416a93
mov dword [0x508550], 0
push dword [0x50854c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416ac3
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00472040
push edi
push 0x16
call fcn.00472040
add esp, 0x10
jmp 0x416a68
push 1
push 2
call fcn.00472040
mov esi, eax
push 1
push 0x16
call fcn.00472040
add esp, 0x10
mov edi, eax
jmp 0x416a50
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00425a60
add esp, 0xc
test eax, eax
je 0x416aed
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x5043fc]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x5043f8]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x5043f4]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x5043f0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x416af5
push dword [ebp - 0x10]
push dword [0x50854c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x416a82

Function at 0x416b40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x508540], 0
je 0x416b50
mov esp, ebp
pop ebp
ret
mov dword [0x508540], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x50854c], eax
cmp eax, 0xffffffff
jne 0x416b76
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret
push 0x416960
call fcn.00472610
push 0x416920
call fcn.00472610
add esp, 8
jmp 0x416b4c
Function at 0x416b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x508550
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x416c1c
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 5
mov eax, esi
sar ecx, 0x1f
sub edx, ecx
imul edi, edx, 0x64
sub eax, edi
jne 0x416c1c
cmp esi, 0x15f90
jl 0x416c13
cmp esi, 0x1d4c0
jge 0x416bf0
mov eax, 0x32
jmp 0x416c15
cmp esi, 0x2bf20
jge 0x416bff
mov eax, 0x64
jmp 0x416c15
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x416c15
mov eax, 0xfa
jmp 0x416c15
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x416c30
inc esi
cmp esi, 0x57e40
jl 0x416ba8
mov eax, dword [ebp - 4]
test eax, eax
je 0x416c4a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.004227f0
add esp, 4
mov eax, dword [0x508554]
test eax, eax
jne 0x416c78
cmp dword [0x5044a0], 1
je 0x416cc6
xor edi, edi
xor esi, esi
call fcn.00416b40
mov dword [0x508554], 1
cmp dword [0x5044a0], 1
je 0x416cb1
mov dword [0x508550], 0
push dword [0x50854c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x416d01
mov eax, dword [ebp + 8]
mov dword [eax], esi
cmp dword [0x5044a0], 1
je 0x416ce4
xor eax, eax
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00472040
push edi
push 0x16
call fcn.00472040
add esp, 0x10
jmp 0x416c78
push 1
push 2
call fcn.00472040
mov esi, eax
push 1
push 0x16
call fcn.00472040
add esp, 0x10
mov edi, eax
jmp 0x416c60
push 1
push 2
call fcn.00472040
push 1
push 0x16
mov dword [esi + 0x64], eax
call fcn.00472040
add esp, 0x10
mov dword [esi + 0x68], eax
jmp 0x416ca5
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00425a60
add esp, 0xc
test eax, eax
je 0x416d28
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x5043fc]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x5043f8]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x5043f4]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x5043f0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x416d30
push dword [ebp - 0x10]
push dword [0x50854c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebp - 0x10]
jmp 0x416c97
Function at 0x4227f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00434fe0
mov ebx, dword [ebp + 8]
cmp dword [0x512ea0], 0
jne 0x422817
test ebx, ebx
je 0x42280c
mov eax, dword [ebx]
jmp 0x42280e
xor eax, eax
push eax
call fcn.00474d80
add esp, 4
test ebx, ebx
je 0x42281f
mov eax, dword [ebx]
jmp 0x422821
xor eax, eax
push eax
call fcn.004ca310
add esp, 4
jmp 0x422804

Function at 0x422e50
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]