joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40550f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b3fa
mov eax, dword fs:[0]
push eax
mov eax, 0x2034
call fcn.00423470
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2024], edi
call fcn.0040544f
test al, al
je 0x40571b
push 0x3e8
push dword [esi + 0x20c]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40571b
test eax, eax
jne 0x40557f
inc ebx
lea eax, [esi + 0x108]
cmp byte [eax], 0
je 0x405661
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40570b
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x405655
lea eax, [ebp - 0x2020]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [ebp - 0x2024]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esi + 4]
push eax
movzx eax, word [ebp - 0x2012]
push eax
movzx eax, word [ebp - 0x2014]
push eax
movzx eax, word [ebp - 0x2016]
push eax
movzx eax, word [ebp - 0x2018]
push eax
movzx eax, word [ebp - 0x201a]
push eax
movzx eax, word [ebp - 0x201e]
push eax
lea eax, [ebp - 0x2010]
push str._02d__02d__02d:_02d:_02d._03d__s__x_:__.4096s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x2010]
add esp, 0x2c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405634
push 0
lea eax, [ebp - 0x2040]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x2010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40570b
or dword [ebp - 0x2038], 0xffffffff
lea ecx, [ebp - 0x203c]
xor eax, eax
push str..pipeDebugOutputServer
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2034], eax
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x202c], eax
mov dword [ebp - 0x2028], eax
call fcn.0040546f
test eax, eax
je 0x4056fc
lea eax, [ebp - 0x2020]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [esi + 4]
push eax
movzx eax, word [ebp - 0x2012]
push eax
movzx eax, word [ebp - 0x2014]
push eax
movzx eax, word [ebp - 0x2016]
push eax
movzx eax, word [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2010]
push str._02d:_02d:_02d._03d__s__x_:__.4096s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0x2010]
lea ecx, [ebp - 0x203c]
push eax
call fcn.00405737
and dword [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.00405023
test ebx, ebx
je 0x40571b
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042345f
leave
ret 8
Function at 0x405737
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x405749
push 0x57
jmp 0x405791
cmp byte [esi], 0
jne 0x405753
xor eax, eax
inc eax
jmp 0x405799
cmp dword [edi + 4], 0
je 0x40578f
cmp dword [edi + 4], 0xffffffff
je 0x40578f
push ebx
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, ebx
je 0x40578a
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, ebx
pop ebx
jmp 0x405799
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x406237
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40638f
push edi
push 0x29
pop edi
push ebx
mov edx, 0x10000000
cmp eax, 0x7c
je 0x40638d
cmp eax, edi
jne 0x406278
cmp dword [esi + 0x10], 0
mov eax, edi
jne 0x40638d
cmp eax, edi
jne 0x406278
test dword [esi + 0x50], edx
je 0x40639b
cmp eax, 0x2e
jne 0x406293
push 5
lea ecx, [esi + 0x24]
call fcn.00407f1e
mov ecx, esi
call fcn.00407f54
jmp 0x406378
cmp eax, 0x5c
jne 0x4062e5
mov ecx, esi
call fcn.00407f54
test byte [esi + 0x50], 0x80
je 0x4062d9
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4062c2
push 4
lea ecx, [esi + 0x24]
call fcn.00407f1e
mov ecx, esi
call fcn.00407f54
jmp 0x40637f
cmp al, 0x42
jne 0x4062d9
push 4
lea ecx, [esi + 0x24]
call fcn.00407f1e
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4062b6
mov ecx, esi
call fcn.004063a5
jmp 0x406378
cmp eax, 0x5b
jne 0x406305
mov ecx, esi
call fcn.00407f54
mov ecx, esi
call fcn.004069b0
cmp dword [esi + 0x4c], 0x5d
je 0x406287
push 4
jmp 0x40639d
cmp eax, 0x28
jne 0x406321
mov ecx, esi
call fcn.00407f54
mov ecx, esi
call fcn.00408571
mov bl, al
cmp dword [esi + 0x4c], edi
jne 0x40639b
jmp 0x40636d
cmp eax, 0x5e
jne 0x40632a
push 2
jmp 0x4062ae
cmp eax, 0x24
jne 0x406336
push 3
jmp 0x4062ae
cmp eax, 0x2a
je 0x406397
cmp eax, 0x2b
je 0x406397
cmp eax, 0x3f
je 0x406397
cmp eax, 0x7b
je 0x406397
cmp eax, 0x7d
jne 0x406354
test dword [esi + 0x50], edx
je 0x406393
cmp eax, 0x5d
jne 0x40635e
test dword [esi + 0x50], edx
je 0x4062fe
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00405c2a
mov bl, 1
mov ecx, esi
call fcn.00407f54
test bl, bl
je 0x40637f
mov ecx, esi
call fcn.00407f82
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40624d
pop ebx
pop edi
mov al, cl
pop esi
ret
push 6
jmp 0x40639d
push 0xa
jmp 0x40639d
push 5
mov ecx, esi
call fcn.004076a9
int3

Function at 0x40804d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push esi
test edx, edx
je 0x4080d6
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408068
sub ecx, esi
je 0x4080d6
lea eax, [ebp - 4]
push eax
push 1
push ebx
push edx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4080d9
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x4080ae
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4080d9
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4080aa
xor eax, eax
jmp 0x4080d9
push 0x57
pop eax
pop esi
pop ebx
leave
ret
Function at 0x408611
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00427a90
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40866a
cmp dword [ebp - 0x88], 2
jne 0x40866a
cmp dword [ebp - 0x94], 5
jb 0x40866a
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042345f
leave
ret
Function at 0x40b514
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push edi
xor edi, edi
test eax, eax
jne 0x40b52c
or eax, 0xffffffff
jmp 0x40b62b
push ebx
mov dword [eax], edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
call fcn.00402afa
push eax
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x40b567
push str.ERROR:_Failed_to_create_list_mutex_in_getLangXlateStr___n
call fcn.0040bc72
pop ecx
jmp 0x40b628
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push ebx
call esi
cmp eax, 0x80
jne 0x40b585
push 0x1388
push ebx
call esi
test eax, eax
je 0x40b599
push str.ERROR:_Failed_to_obtain_list_mutex_in_getLangXlateStr___n
call fcn.0040bc72
pop ecx
jmp 0x40b620
mov esi, dword [0x467fc4]
test esi, esi
je 0x40b616
mov eax, dword [ebp + 8]
cmp dword [esi + 4], eax
je 0x40b5b1
mov esi, dword [esi]
test esi, esi
jne 0x40b5a6
test esi, esi
je 0x40b616
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40b616
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b5bf
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 1
mov dword [ebp - 4], eax
call fcn.0042dfca
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x40b60f
mov eax, dword [ebp + 0xc]
cmp eax, 1
jl 0x40b600
cmp eax, dword [ebp - 4]
jg 0x40b600
dec eax
push eax
push dword [esi + 8]
push ecx
call fcn.0042d450
add esp, 0xc
jmp 0x40b619
mov edx, dword [esi + 8]
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
test al, al
jne 0x40b603
jmp 0x40b619
mov edi, 0x4099
jmp 0x40b619
or edi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x40bd22
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x1c]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x1c]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [edi], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdb8
push dword [edi]
push esi
push dword [ebp + 0x18]
call fcn.00427a90
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x40bda0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bd91
push 0xfffffffffffffffe
pop eax
jmp 0x40bdbb
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
jmp 0x40bdb4
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x1020001
mov dword [edi], esi
xor eax, eax
jmp 0x40bdbb
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x40bdbf
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call fcn.00402afa
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x40bdfd
push str.ERROR:_Failed_to_create_list_mutex_in_unloadLangXml___n
call fcn.0040bc72
pop ecx
jmp 0x40be56
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push edi
call esi
cmp eax, 0x80
jne 0x40be1b
push 0x1388
push edi
call esi
test eax, eax
je 0x40be2c
push str.ERROR:_Failed_to_obtain_list_mutex_in_unloadLangXml___n
call fcn.0040bc72
pop ecx
jmp 0x40be4e
mov esi, dword [0x467fc4]
jmp 0x40be3d
push esi
mov esi, dword [esi]
call fcn.0042a45a
pop ecx
test esi, esi
jne 0x40be34
and dword [0x467fc4], esi
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
leave
ret
Function at 0x40c0ad
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x220], 0xc
xor esi, esi
inc edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], edi
call fcn.00402a13
push eax
push esi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov dword [ebp - 0x210], ebx
test ebx, ebx
jne 0x40c12e
push str.ERROR:_Failed_to_create_mutex_in_buildStatLogByStatPeriod__._n
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00408d55
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], edi
push eax
call fcn.0040c3b6
add esp, 0x10
jmp 0x40c2cf
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40c16b
push str.ERROR:_Failed_to_obtain_mutex_in_buildStatLogByStatPeriod__._n
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00408d55
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], edi
push eax
call fcn.0040c3b6
add esp, 0x10
jmp 0x40c2c8
mov ecx, dword [0x467fd4]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], esi
test ecx, ecx
je 0x40c21f
lea edx, [edi + 0x14]
lea eax, [ecx + 0xc]
mov bl, byte [eax]
cmp bl, byte [edx]
mov byte [ebp - 0x209], bl
mov ebx, dword [ebp - 0x210]
jne 0x40c1ca
cmp byte [ebp - 0x209], 0
je 0x40c1c6
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
mov byte [ebp - 0x209], bl
mov ebx, dword [ebp - 0x210]
jne 0x40c1ca
add eax, 2
add edx, 2
cmp byte [ebp - 0x209], 0
jne 0x40c188
xor eax, eax
jmp 0x40c1cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x40c1df
mov dword [ebp - 0x214], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40c182
test ecx, ecx
je 0x40c21f
mov eax, dword [edi + 4]
cmp dword [edi + 8], esi
jne 0x40c205
add dword [ecx + 4], eax
js 0x40c1f9
cmp dword [edi + 4], esi
jge 0x40c2c1
mov dword [ecx + 4], 0x7fffffff
jmp 0x40c2c1
add dword [ecx + 8], eax
js 0x40c213
cmp dword [edi + 4], esi
jge 0x40c2c1
mov dword [ecx + 8], 0x7fffffff
jmp 0x40c2c1
push 0x114
call fcn.0042a45f
mov esi, eax
pop ecx
push 0x114
test esi, esi
jne 0x40c266
push str.Failed_to_allocate__d_bytes_for_the_firewall_log_table._n
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00408d55
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 1
push eax
call fcn.0040c3b6
add esp, 0x14
jmp 0x40c2cf
push 0
push esi
call fcn.00427a90
mov eax, dword [ebp - 0x214]
add esp, 0xc
test eax, eax
jne 0x40c283
mov dword [0x467fd4], esi
jmp 0x40c285
mov dword [eax], esi
lea ecx, [edi + 0x14]
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx + 0xc], al
inc ecx
test al, al
jne 0x40c28c
cmp dword [edi + 8], 0
mov eax, dword [edi + 4]
jne 0x40c2b0
mov dword [esi + 4], eax
test eax, eax
jns 0x40c2be
mov dword [esi + 4], 0x7fffffff
jmp 0x40c2be
mov dword [esi + 8], eax
test eax, eax
jns 0x40c2be
mov dword [esi + 8], 0x7fffffff
and dword [esi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
Function at 0x40ce1a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, 1
push esi
sete bl
imul esi, ebx, 0x104
add esi, 0x468478
cmp byte [esi], 0
jne 0x40ceb7
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40ce82
cmp dword [ebp - 0x9c], 5
jb 0x40ce82
push str.Global_
push 0x104
push esi
call fcn.0042d2ce
add esp, 0xc
push edi
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40ce88
push ebx
sub edi, ecx
call fcn.0040270e
push eax
push str.KAgntUsrTAMsgQue
mov eax, 0x104
lea ecx, [edi + esi]
push str._s_s__d
sub eax, edi
push eax
push ecx
call fcn.00408d55
add esp, 0x18
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret

Function at 0x40d288
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ecx, dword [ebp + 8]
push esi
push edi
lea edi, [ebp - 0x1b4]
and dword [ebp - 0x1a8], 0
stosd dword es:[edi], eax
xor ebx, ebx
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x1a4], 0x9c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1c8]
cmp ecx, 1
stosd dword es:[edi], eax
sete bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 0x104
test eax, eax
je 0x40d30d
cmp dword [ebp - 0x1a0], 5
jb 0x40d30d
push str.Global_
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0042d2ce
add esp, 0xc
lea esi, [ebp - 0x108]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40d316
push ebx
sub esi, ecx
call fcn.0040270e
push eax
push str.KAgntUsrTAMap
push str._s_s__d
sub edi, esi
lea eax, [ebp - 0x108]
add eax, esi
push edi
push eax
call fcn.00408d55
add esp, 0x18
lea eax, [ebp - 0x108]
xor edi, edi
push eax
push edi
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebx*4 + 0x468468], eax
test eax, eax
jne 0x40d3a3
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00407889
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
push 0x40010
push edi
push 4
lea eax, [ebp - 0x1b4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor esi, esi
mov dword [ebx*4 + 0x468468], eax
inc esi
jmp 0x40d3a9
mov esi, dword [ebp - 0x1a8]
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx*4 + 0x468470], eax
test eax, eax
jne 0x40d3c5
or eax, 0xffffffff
jmp 0x40d3e1
push 0x40010
push edi
push eax
call fcn.00427a90
add esp, 0xc
test esi, esi
je 0x40d3df
push ebx
call fcn.0040d3f0
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
Function at 0x40d3f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [ebp + 8], 1
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
sete bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407889
push ebx
call fcn.0040ce1a
add esp, 0xc
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40d445
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d49e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d497
mov ecx, dword [ebx*4 + 0x468470]
test ecx, ecx
je 0x40d490
lea eax, [ecx + 4]
mov edi, 0x20000
push eax
push ecx
lea eax, [ecx + 0x10]
push edi
push eax
call fcn.0040d5f1
mov ecx, dword [ebx*4 + 0x468470]
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
lea eax, [ecx + 0x20010]
push edi
push eax
call fcn.0040d5f1
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d4a3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [ebp + 8], 1
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
sete bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407889
push ebx
call fcn.0040ce1a
add esp, 0xc
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x40d4f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d54e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d50e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d54e
mov eax, dword [ebx*4 + 0x468470]
test eax, eax
je 0x40d528
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and dword [ebx*4 + 0x468470], 0
mov eax, dword [ebx*4 + 0x468468]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d544
push eax
call edi
and dword [ebx*4 + 0x468468], 0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d82a
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x24]
mov esi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00407889
pop ecx
pop ecx
push esi
push 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x40d893
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x40d947
or esi, 0xffffffff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d93e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov edx, dword [eax]
mov ecx, edx
mov eax, dword [ebp + 0x14]
sub ecx, dword [eax]
jns 0x40d8bd
add ecx, esi
mov eax, esi
sub eax, ecx
lea ecx, [ebx + 8]
dec eax
cmp ecx, eax
jle 0x40d8d5
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0xfffffffffffffffe
pop esi
jmp 0x40d93d
mov eax, ebx
mov dword [ebp - 0xc], 0x21437698
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, ebx
shr eax, 0x10
push edx
mov byte [ebp - 7], al
mov eax, ebx
push esi
push dword [ebp - 0x14]
shr eax, 8
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push 8
push eax
mov byte [ebp - 5], bl
call fcn.0040d62b
mov eax, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [eax]
add eax, 8
div esi
push edx
push esi
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x18]
call fcn.0040d62b
mov ecx, dword [ebp - 0x10]
xor edx, edx
add esp, 0x28
mov eax, dword [ecx]
add eax, 8
add eax, ebx
div esi
push edi
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor esi, esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042345f
leave
ret