joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528a80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], ecx
push edi
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], esp
push eax
push esi
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x48cb19
mov edi, dword [ebp - 0x20]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x48cb19
lea ecx, [edi + 1]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x48cb12
lea edx, [ebp + 8]
push 0
push edx
push edi
push ebx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48cb09
cmp dword [ebp + 8], edi
jne 0x48cb09
xor eax, eax
cmp eax, edi
jae 0x48ca89
mov dl, byte [eax + ebx]
xor dl, 0x8e
mov byte [eax + ebx], dl
inc eax
jmp 0x48ca79
cmp dword [ebx], 0x41544143
jne 0x48cb09
fld dword [ebx + 0xc]
fcomp qword [0x539860]
fnstsw ax
test ah, 1
jne 0x48cb09
mov eax, dword [ebx + 0x10]
test eax, eax
jbe 0x48cb09
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
imul ecx, eax
add ecx, edx
cmp edi, ecx
jne 0x48cb09
mov edi, dword [ebp - 0x14]
lea edx, [eax + eax*2]
shl edx, 5
push edx
mov dword [edi + 4], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x48cb09
xor eax, eax
cmp eax, dword [ebx + 0x10]
jae 0x48cb02
mov esi, eax
mov edx, dword [ebx + 4]
imul esi, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
add esi, ebx
lea edi, [eax + eax*2]
add esi, edx
mov edx, dword [ecx + 8]
mov ecx, 0x18
shl edi, 5
add edi, edx
inc eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
jmp 0x48cad5
mov dword [ebp - 0x18], 1
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48e100
Capabilities:
Print debug messages

Disassembly:
push ecx
push esi
push edi
mov edi, dword [ecx + 0xe4]
xor edx, edx
cmp edi, edx
mov dword [esp + 8], edx
jl 0x48e159
mov eax, dword [ecx + 0x44]
cmp eax, edx
je 0x48e132
mov esi, dword [ecx + 0x48]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, edi
jbe 0x48e159
mov eax, dword [ecx + 0x44]
mov esi, dword [esp + 0x10]
lea edx, [edi*8]
sub edx, edi
lea ecx, [eax + edx*4]
push ecx
mov ecx, esi
call fcn.004c73e6
mov eax, esi
pop edi
pop esi
pop ecx
ret 4
push 0x566db8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [esp + 0x10]
push 0x56f01c
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
pop ecx
ret 4
Function at 0x4943a0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4943f7
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4943f7
mov dword [esi + 0x14], 1
mov ecx, dword [eax + 0x10c]
test ecx, ecx
jne 0x4943f7
add eax, 0x114
mov dword [esi + 0x1c], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4943f0
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0xe84]
test ecx, ecx
je 0x4943f0
mov dword [esi + 0x44], 1
pop esi
ret 4
mov dword [esi + 0x44], 0
pop esi
ret 4
Function at 0x4965e0
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x571e11]
push esi
test al, al
mov esi, ecx
jne 0x4965f3
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x18]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x49661c
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov edx, dword [esi + 8]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
pop edi
mov byte [0x571e11], 0
mov eax, 1
pop esi
ret

Function at 0x496660
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x148
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
mov byte [esp + 0x50], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x51]
mov word [esp + 0x3c], ax
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x54]
mov dword [esp + 0x10], 0x44
push eax
push 0
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4966d2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x148
ret
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x50]
push 0x56732c
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
add ebp, 0x18
lea eax, [esp + 0xc]
push ebp
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
push esi
jne 0x496726
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x148
ret
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x148
ret
Function at 0x4a4200
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2000
call fcn.004c79b0
mov eax, dword [esp + 0x2004]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4a42f4
lea ecx, [esp + 4]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4a42f4
push esi
lea edx, [esp + 8]
push edi
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [esp + 0x2018]
add esp, 4
mov edi, eax
mov ecx, dword [esi + 4]
mov dword [esi + 8], ebx
cmp ecx, ebx
je 0x4a4284
mov al, byte [ecx - 1]
cmp al, bl
je 0x4a4284
cmp al, 0xff
je 0x4a4284
cmp edi, ebx
jne 0x4a42b5
dec al
pop edi
mov byte [ecx - 1], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret
cmp edi, ebx
jne 0x4a42a0
push 1
mov ecx, esi
call fcn.0040d630
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x4a42ac
cmp eax, edi
jae 0x4a42bd
push 1
mov ecx, esi
call fcn.0040d630
push edi
mov ecx, esi
call fcn.00411d00
mov eax, dword [esi + 4]
cmp edi, ebx
lea ecx, [esp + 0xc]
jbe 0x4a42db
push ebp
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x4a42cb
pop ebp
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
mov word [eax + edi*2], bx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2000
ret
xor eax, eax
pop ebx
add esp, 0x2000
ret
Function at 0x4a5ee0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52aebb
push eax
mov eax, 0x2014
mov dword fs:[0], esp
call fcn.004c79b0
mov al, byte [esp + 3]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x2034]
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x2034], ebp
call fcn.004a4f40
test eax, eax
jne 0x4a5f4e
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4a600c
mov edi, dword [esp + 0x2038]
lea eax, [esp + 0x14]
push edi
push eax
push ebx
mov ecx, esi
call fcn.004a51b0
test eax, eax
jne 0x4a5f7b
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4a600c
cmp dword [esp + 0x203c], ebp
je 0x4a5ffa
mov eax, dword [edi + 4]
cmp eax, ebp
jne 0x4a5f90
mov eax, 0x535104
lea edx, [esp + 0x24]
push 0x1000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4a5fb6
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x4a600c
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, edi
push 1
push esi
call fcn.0040ff60
test al, al
je 0x4a5ffa
mov eax, dword [edi + 4]
cmp esi, ebp
lea ecx, [esp + 0x24]
jbe 0x4a5ff0
mov edx, esi
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x4a5fe1
mov edx, dword [edi + 4]
mov dword [edi + 8], esi
mov word [edx + esi*2], bp
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2020
ret 0xc
Function at 0x4a6280
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x52af0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x18]
push ebx
mov byte [esp + 0x1c], al
call fcn.0040d630
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], dl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xa0], ebx
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x5c]
call fcn.004a6f00
lea eax, [esp + 0x54]
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xa4], 1
call fcn.004a74b0
lea edx, [esp + 0x58]
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa4], 3
call fcn.0040d6e0
mov edx, dword [esp + 0x88]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x9c], 2
call fcn.004a66e0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], bl
call fcn.0040d630
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0xa4], 5
call fcn.0040d6e0
mov edx, dword [esp + 0x3c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x9c], 4
call fcn.004a66e0
mov dword [esp + 0x9c], 0xffffffff
push 1
lea ecx, [esp + 0x1c]
call fcn.0040d630
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x94]
pop esi
add eax, 0x10
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4
Function at 0x4a8cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret

Function at 0x4a8f80
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov dword [esi], 0x53a80c
cmp eax, ebp
je 0x4a8f9d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 8]
add esp, 4
cmp edi, ebx
je 0x4a8fd8
mov ecx, edi
call sub.MFC42.DLL_CString::CString
add edi, 4
cmp edi, ebx
jne 0x4a8fca
mov ecx, dword [esi + 8]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4a9650
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x52b0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x418], 2
test eax, eax
jne 0x4a96a4
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x4a9490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov cl, byte [0x56f01c]
xor eax, eax
mov byte [esp + 0x10], cl
mov ecx, 0xff
lea edi, [esp + 0x11]
mov edx, dword [esp + 0x428]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x420]
push edx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x428]
lea edx, [esp + 0x14]
push eax
push ecx
push 0x567dac
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
lea ecx, [esp + 0x420]
mov esi, eax
mov byte [esp + 0x418], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x424]
mov byte [esp + 0x418], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x428]
mov dword [esp + 0x418], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x410]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x414
ret 0xc
Function at 0x4a9770
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x52b108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x828], 2
test eax, eax
jne 0x4a97c4
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x4a9490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x838]
lea edx, [esp + 0x410]
push 0x40f
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041f570
mov al, byte [0x56f01c]
mov ecx, 0xff
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
mov edx, dword [esp + 0x844]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
lea ecx, [esp + 0x410]
stosb byte es:[edi], al
mov eax, dword [esp + 0x830]
push ecx
push edx
push eax
push 0x567ddc
lea ecx, [esp + 0x20]
push 0x3ff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
lea ecx, [esp + 0x830]
mov esi, eax
mov byte [esp + 0x828], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x834]
mov byte [esp + 0x828], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x838]
mov dword [esp + 0x828], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x820]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x824
ret 0xc

Function at 0x4a98c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x52b128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x14], eax
jne 0x4a9903
lea ecx, [esp + 4]
mov dword [esp + 4], eax
push ecx
push eax
push eax
push 0x4a9490
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0xc], esp
push edx
call fcn.004c73e6
mov ecx, esi
call fcn.004a9000
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x4a9950
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52b150
push eax
mov eax, 0x1c18
mov dword fs:[0], esp
call fcn.004c79b0
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c2c], 1
jne 0x4a99a3
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push ebx
push ebx
push 0x4a9490
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c38]
lea edx, [esp + 0x14]
push 0x40f
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041f570
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0xc35]
mov byte [esp + 0xc34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1c50]
lea edx, [esp + 0xc34]
push 0xfff
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041f570
mov al, byte [0x56f01c]
mov ecx, 0x1ff
mov byte [esp + 0x444], al
xor eax, eax
lea edi, [esp + 0x445]
mov edx, dword [esp + 0x1c5c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x20
lea ecx, [esp + 0xc24]
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x1c38]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
push 0x567e18
lea edx, [esp + 0x438]
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea eax, [esp + 0x428]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
lea ecx, [esp + 0x1c38]
mov esi, eax
mov byte [esp + 0x1c2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c40]
mov dword [esp + 0x1c2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c24
ret 0x10

Function at 0x4a9ad6
Capabilities:
Create thread

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4a9b04
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x4a9490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov cl, byte [0x56f01c]
xor eax, eax
mov byte [esp + 0xc], cl
mov ecx, 0xff
lea edi, [esp + 0xd]
push 0x567e7c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push 0x3ff
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 8
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
pop edi
pop esi
add esp, 0x404
ret
Function at 0x4a9c20
Capabilities:
Create thread

Disassembly:
sub esp, 0x404
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x4a9c54
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x4a9490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov cl, byte [0x56f01c]
xor eax, eax
mov byte [esp + 0xc], cl
mov ecx, 0xff
lea edi, [esp + 0xd]
mov edx, dword [esp + 0x418]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x410]
push edx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x418]
lea edx, [esp + 0x10]
push eax
push ecx
push 0x567eac
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
pop edi
pop esi
add esp, 0x404
ret 0xc

Function at 0x4a9cc0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x52b1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x828], 0
test eax, eax
jne 0x4a9d14
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x4a9490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x834]
lea edx, [esp + 0x410]
push 0x40f
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0041f570
mov al, byte [0x56f01c]
mov ecx, 0xff
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
mov edx, dword [esp + 0x840]
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x410]
stosw word es:[edi], ax
push ecx
push edx
stosb byte es:[edi], al
push 0x567f14
lea eax, [esp + 0x1c]
push 0x3ff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004a9000
lea ecx, [esp + 0x834]
mov esi, eax
mov dword [esp + 0x828], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x820]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x824
ret 8
Function at 0x4aa070
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
and eax, 0xff
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x14]
lea edi, [eax + edx*4]
mov edx, dword [eax + edx*4 + 0x44]
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x4aa123
xor eax, eax
lea ecx, [edi + 4]
cmp ebx, dword [ecx]
je 0x4aa0c1
inc eax
add ecx, 4
cmp eax, 8
jl 0x4aa0a1
test edx, edx
jne 0x4aa0d4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
mov dword [ecx], edx
pop ebx
ret
mov edx, dword [edi + eax*4 + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
mov eax, 1
pop ebx
ret
mov esi, dword [edi]
test esi, esi
jne 0x4aa101
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4aa10a
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp esi, dword [edi]
je 0x4aa10a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [edi + 0x44]
test edi, edi
je 0x4aa11c
cmp ebx, dword [edi + 8]
je 0x4aa133
mov edi, dword [edi]
test edi, edi
jne 0x4aa111
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
mov dword [ecx], 0
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 4]
pop edi
pop esi
mov dword [eax], edx
mov eax, 1
pop ebx
ret