joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477510
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x490aa0]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x4b0d18], eax
mov dword [edx*8 + 0x4b0d1c], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x477520
pop edi
pop esi
pop ebp
mov byte [0x4b0d11], 1
pop ebx
add esp, 0x10
ret

Function at 0x477670
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + str.cw]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x4b0500], ecx
mov dword [eax*8 + 0x4b0504], edx
inc eax
cmp eax, 0x100
jl 0x477674
xorps xmm0, xmm0
pop edi
movlpd qword [0x4b0d08], xmm0
movlpd qword [0x4b0d00], xmm0
mov byte [0x4b0d10], 1
pop esi
ret
Function at 0x479ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x23
push str.Inflator:_error_in_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x479f97
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadBlockErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048079e
add esp, 0x2c
ret

Function at 0x47a050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x1f
push str.Inflator:_error_in_bit_distance
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x47a107
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::BadDistanceErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048079e
add esp, 0x2c
ret
Function at 0x47a590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab81
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x2c
push str.Inflator:_unexpected_end_of_compressed_block
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00402190
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_void_]
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CryptoPP::Exception.0
mov dword [esi + 0xc], 4
lea eax, [esp + 0x10]
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x3c], 1
mov byte [ecx], 0
call fcn.00401e90
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.CryptoPP::Inflator::Err.0
jb 0x47a647
push dword [esp + 0xc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Inflator::UnexpectedEndErr.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048079e
add esp, 0x2c
ret

Function at 0x47c8e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
mov edx, dword [esp + 0x14]
mov eax, 0
push ebx
xor bl, bl
test byte [esp + 0x10], 3
push ebp
sete al
push esi
test eax, eax
je 0x47c995
test cl, 3
mov eax, 0
sete al
test eax, eax
je 0x47c995
test edx, edx
je 0x47c9b5
mov ebx, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x10], eax
shr edi, 2
xor esi, esi
test edi, edi
je 0x47c95c
sub ebx, ecx
mov dword [esp + 0x14], edi
mov esi, ecx
xor ebp, ebp
mov eax, dword [ebx + esi]
lea esi, [esi + 4]
xor eax, dword [esi - 4]
or ebp, eax
dec edi
jne 0x47c940
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], ebp
shl esi, 2
pop edi
sub edx, esi
jne 0x47c976
mov ebp, dword [esp + 0xc]
xor eax, eax
pop esi
test ebp, ebp
pop ebp
sete al
pop ebx
add esp, 8
ret
add ebx, esi
add ecx, esi
mov dword [esp + 0x18], ebx
mov ebx, eax
shr eax, 0x10
shr ebx, 0x18
or bl, al
mov eax, dword [esp + 0xc]
shr eax, 8
or bl, al
or bl, byte [esp + 0xc]
test edx, edx
je 0x47c9b5
mov eax, dword [esp + 0x18]
sub eax, ecx
mov dword [esp + 0x18], eax
mov al, byte [ecx + eax]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or bl, al
mov eax, dword [esp + 0x18]
dec edx
jne 0x47c9a3
xor eax, eax
test bl, bl
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x480390
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
lea ecx, [ecx*4 - 4]
movdqa xmm0, xmmword [edx + eax*8]
movdqa xmm1, xmmword [edx]
movdqa xmmword [edx], xmm0
movdqa xmmword [edx + eax*8], xmm1
mov eax, 4
cmp ecx, eax
jbe 0x4803e0
mov edi, edi
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
add eax, 4
movdqa xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x4803c0
aesimc xmm0, xmmword [edx + eax*4]
movdqa xmmword [edx + eax*4], xmm0
ret

Function at 0x4803f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movdqu xmm0, xmmword [eax + edi - 0x10]
movdqa xmmword [esp + 0x2c], xmm0
call sub.MSVCR120.dll_memcpy
movdqa xmm1, xmmword [esp + 0x2c]
mov edx, edi
shr edx, 2
add esp, 0xc
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
lea edi, [esi + edx*4]
lea eax, [edx + 7]
mov dword [esp + 8], 0x490964
shl eax, 4
xor ecx, 1
add eax, esi
mov dword [edi], ecx
mov dword [esp + 0xc], eax
lea eax, [edx*4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
lea eax, [edx*4 + 8]
mov dword [eax + esi], ecx
mov dword [esp + 0x14], eax
lea eax, [edx*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea eax, [edx*4 + 0x10]
mov dword [esp + 0x1c], eax
add eax, esi
cmp eax, dword [esp + 0xc]
je 0x48055e
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
cmp eax, 0x18
jne 0x4804c6
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x48050b
cmp eax, 0x20
jne 0x480504
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x48050b
pinsrd xmm1, dword [esi + 0x1c], 3
mov ecx, dword [esp + 8]
mov esi, edi
aeskeygenassist xmm0, xmm1, 0
pextrd eax, xmm0, 3
lea edi, [edx + esi]
xor eax, dword [ecx]
add ecx, 4
xor eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [edi]
mov dword [edx + esi + 4], eax
mov dword [esp + 8], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [eax + esi], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + esi], eax
mov eax, dword [esp + 0x1c]
add eax, esi
cmp eax, dword [esp + 0xc]
jne 0x4804a5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x483760
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00483770

Function at 0x4839f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4839fc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00483a10
Function at 0x10004000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push esi
push ebx
mov dword [ebp - 4], 0
call edi
lea eax, [ebp - 4]
push eax
push 0x40
push esi
mov esi, dword [ebp + 8]
push esi
call edi
push dword [ebp + 0x10]
push ebx
push esi
call fcn.100480e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
push 0x104
sete cl
mov dword [ebp - 0x23c], ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.D2ESRutils.dll_GetIniFileName
add esp, 0xc
test eax, eax
je 0x100046b5
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10074ac1
add esp, 8
test eax, eax
je 0x100046c7
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push str.Unable_to_find_ini_file:
push eax
call fcn.10002170
lea eax, [ebp - 0x208]
push eax
call sym.D2ESRutils.dll_GamePrintError
add esp, 0x10
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
push esi
test edi, edi
jne 0x100046e5
mov ebx, dword [ebp - 0x224]
push ebx
call fcn.10045ea1
mov edi, eax
add esp, 4
test edi, edi
je 0x10004781
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp dword [ebp - 0x23c], 0
mov esi, eax
jne 0x10004760
test esi, esi
je 0x1000474a
cmp byte [edi + esi - 1], 0
lea ecx, [edi + esi]
je 0x10004718
cmp esi, 1
jbe 0x10004724
cmp byte [ecx - 2], 0
jne 0x10004724
mov dword [ebp - 0x23c], 1
jmp 0x100046cc
cmp esi, ebx
jae 0x1000476d
lea eax, [esi + 1]
mov byte [ecx], 0
cmp eax, ebx
jae 0x1000476d
inc esi
mov byte [ecx + 1], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
mov eax, esi
mov byte [edi], 0
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
push edi
call fcn.10045eaa
add esp, 4
test esi, esi
je 0x1000476e
inc esi
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
push 0x100b2f08
call sym.D2ESRutils.dll_GamePrintError
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
pop edi
pop ebx
call fcn.100461c3
mov esp, ebp
pop ebp
ret
Function at 0x100047b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebp + 0x10]
sete bl
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x108]
push 0x104
push ecx
push eax
mov dword [ebp - 0x10c], esi
call sym.D2ESRutils.dll_GetIniFileName
add esp, 0xc
test eax, eax
je 0x100048d9
nop dword [eax + eax]
test edi, edi
jne 0x10004832
mov esi, 0x1000
push esi
mov dword [ebp - 0x10c], esi
call fcn.10045ea1
mov edi, eax
add esp, 4
test edi, edi
je 0x100048cc
lea eax, [ebp - 0x108]
push eax
push esi
push edi
push 0x100b2360
push dword [ebp - 0x110]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test ebx, ebx
jne 0x100048ab
test esi, esi
je 0x10004895
cmp byte [edi + esi - 1], bl
lea eax, [edi + esi]
je 0x1000486f
cmp esi, 1
jbe 0x10004876
cmp byte [eax - 2], bl
jne 0x10004876
mov ebx, 1
jmp 0x10004814
cmp esi, dword [ebp - 0x10c]
jae 0x100048b8
inc esi
mov byte [eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
push edi
call fcn.10045eaa
add esp, 4
test esi, esi
je 0x100048b9
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100461c3
mov esp, ebp
pop ebp
ret
push 0x100b2f08
call sym.D2ESRutils.dll_GamePrintError
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100461c3
mov esp, ebp
pop ebp
ret

Function at 0x100060e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x48]
test esi, esi
jne 0x10006113
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push 0x41
push eax
call fcn.10075082
add esp, 0xc
jmp 0x10006127
push esi
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push str._s_08X
push eax
call fcn.10005700
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp - 0x4c], 0
mov ecx, eax
mov dword [ebp - 0x50], ecx
jne 0x1000615b
push 0x1f4
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x50]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x4c], eax
je 0x10006169
cmp dword [esi + 0xc], 0
jle 0x10006169
mov eax, dword [esi + 4]
mov esi, dword [eax + 0xc]
jmp 0x1000616b
xor esi, esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100461c3
mov esp, ebp
pop ebp
ret
Function at 0x100061a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4c], 0
test edi, edi
jne 0x100061d8
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push 0x41
push eax
call fcn.10075082
add esp, 0xc
jmp 0x100061ec
push edi
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push str._s_08X
push eax
call fcn.10005700
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], eax
jne 0x1000621a
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
mov esi, dword [ebx]
xor edx, edx
push eax
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi + 8]
cmove ecx, edx
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100461c3
mov esp, ebp
pop ebp
ret 4

Function at 0x100065c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100cf3f0]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], 0
test ebx, ebx
jne 0x10006613
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push 0x41
push eax
call fcn.10075082
add esp, 0xc
jmp 0x10006627
push ebx
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push str._s_08X
push eax
call fcn.10005700
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
jne 0x10006661
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x58], eax
jne 0x10006661
xor edi, edi
jmp 0x10006692
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x10006692
push esi
mov ecx, ebx
call fcn.10007370
mov ecx, dword [ebx + 8]
mov esi, eax
push ecx
push esi
push dword [ecx + 8]
mov ecx, ebx
call fcn.10007390
inc dword [ebx + 0xc]
test edi, edi
cmove edi, esi
sub dword [ebp + 0xc], 1
mov esi, dword [ebp - 0x60]
jne 0x10006668
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x5c]
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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.100461c3
mov esp, ebp
pop ebp
ret 8
Function at 0x10006d70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100cf3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x48]
push edi
test esi, esi
jne 0x10006da4
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push 0x41
push eax
call fcn.10075082
add esp, 0xc
jmp 0x10006db8
push esi
push str.3FBB26D9_D352_409A_9352_7BDD78A1EBA1
push str._s_08X
push eax
call fcn.10005700
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], eax
jne 0x10006deb
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x4c], eax
jne 0x10006deb
xor edi, edi
jmp 0x10006e1a
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, dword [esi + 0xc]
cmovge ebx, dword [esi + 0xc]
xor edi, edi
test ebx, ebx
jle 0x10006e19
nop dword [eax]
mov eax, dword [esi + 4]
mov ecx, esi
push dword [eax + 0xc]
call fcn.100073b0
test eax, eax
je 0x10006e19
dec dword [esi + 0xc]
inc edi
cmp edi, ebx
jl 0x10006e00
pop ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100461c3
mov esp, ebp
pop ebp
ret 4

Function at 0x10007b80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10007bb1
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10007bb1
push edi
push 0
push esi
call fcn.10047d10
add esp, 0xc
push edi
push esi
call sym.D2ESRutils.dll_FindMyD2WndHandle
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10007e30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100188c0