joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019bd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
add esp, 0xc
push 8
push 0
push str.ezkcrypt.dll
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x10019c90
push 0x104
lea ecx, [esp + 0xc]
push ecx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 8]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10019c35
mov edx, dword [str.ezkcrypt.dll]
mov ecx, dword [0x10037e48]
mov dword [eax], edx
mov edx, dword [0x10037e4c]
mov dword [eax + 4], ecx
mov cl, byte [0x10037e50]
push 8
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x10]
push edx
mov byte [eax + 0xc], cl
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x10019c90
pop edi
mov eax, 0x7531
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.decrypt
push eax
call edi
mov ecx, dword [esi + 8]
push str.freeStr
push ecx
mov dword [esi], eax
call edi
mov ecx, dword [esp + 0x10c]
mov dword [esi + 4], eax
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1002d777
add esp, 0x108
ret
xor eax, eax
cmp dword [ecx + 8], eax
jne 0x10019cdc
jmp 0x10019bd0
ret

Function at 0x10019cd0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
add esp, 0xc
push 8
push 0
push str.ezkcrypt.dll
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x10019c90
push 0x104
lea ecx, [esp + 0xc]
push ecx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 8]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10019c35
mov edx, dword [str.ezkcrypt.dll]
mov ecx, dword [0x10037e48]
mov dword [eax], edx
mov edx, dword [0x10037e4c]
mov dword [eax + 4], ecx
mov cl, byte [0x10037e50]
push 8
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x10]
push edx
mov byte [eax + 0xc], cl
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x10019c90
pop edi
mov eax, 0x7531
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.decrypt
push eax
call edi
mov ecx, dword [esi + 8]
push str.freeStr
push ecx
mov dword [esi], eax
call edi
mov ecx, dword [esp + 0x10c]
mov dword [esi + 4], eax
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1002d777
add esp, 0x108
ret
xor eax, eax
cmp dword [ecx + 8], eax
jne 0x10019cdc
jmp 0x10019bd0
ret
Function at 0x10019ce0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov byte [esp + 0x18], bl
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
add esp, 0xc
push 8
push ebx
push str.ezkcrypt.dll
call edi
mov esi, eax
test esi, esi
jne 0x10019d9d
push 0x104
lea ecx, [esp + 0x10]
push ecx
push str.UserProfile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0xc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10019d42
mov edx, dword [str.ezkcrypt.dll]
mov ecx, dword [0x10037e48]
mov dword [eax], edx
mov edx, dword [0x10037e4c]
mov dword [eax + 4], ecx
mov cl, byte [0x10037e50]
push 8
mov dword [eax + 8], edx
push 0
lea edx, [esp + 0x14]
push edx
mov byte [eax + 0xc], cl
call edi
mov esi, eax
test esi, esi
jne 0x10019d9d
pop edi
pop esi
mov eax, 0x7531
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.decrypt
push esi
call edi
test eax, eax
je 0x10019dbb
push str.freeStr
push esi
call edi
test eax, eax
jne 0x10019dc0
mov ebx, 0x7532
test esi, esi
je 0x10019dcb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret
Function at 0x10019fb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x18], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.MSVCR80.dll_getenv]
push str.USERPROFILE
call esi
add esp, 0x10
test eax, eax
je 0x1001a013
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10019ff5
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1001a007
jmp 0x1001a07d
push str.HOMEPATH
call esi
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001a03d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret
push str.HOMEDRIVE
call esi
add esp, 4
test eax, eax
je 0x1001a023
lea edx, [esp + 0xc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x1001a051
mov eax, edi
mov edx, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001a061
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1001a073
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [ebx + 0x58]
call dword [sym.imp.XecureMacuxCSM.dll_public:_char____thiscall_XWClientSM::encodePathString_char_const__]
mov esi, eax
push esi
call dword [sym.imp.MSVCR80.dll__strdup]
push esi
mov edi, eax
call dword [sym.imp.MSVCR80.dll_free]
mov ecx, dword [esp + 0x118]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002d777
add esp, 0x108
ret

Function at 0x1001a0d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
push 0
push 0xf
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x30]
mov eax, str.AnyFCMSViewer.exe
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001a146
test dx, dx
je 0x1001a142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001a146
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001a120
xor eax, eax
jmp 0x1001a14b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1001a169
mov ecx, dword [esp + 0x14]
push ecx
push eax
push 0x21f0fff
call esi
test eax, eax
je 0x1001a17f
push 0
push eax
call edi
test eax, eax
je 0x1001a17f
lea edx, [esp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001a111
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1002d777
add esp, 0x230
ret
Function at 0x1001a280
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1001a2a0
sub eax, edi
push eax
push esi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
test eax, eax
je 0x1001a2d0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret 8
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x1001a2e9
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x1001a300
Capabilities:
Move file

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
xor ebx, ebx
push esi
mov eax, edx
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001a323
sub eax, edi
mov edi, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
test eax, eax
je 0x1001a356
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x28]
mov eax, edx
push ebp
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001a360
sub eax, ebp
push eax
push edx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push edi
mov ecx, esi
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
test eax, eax
je 0x1001a3a2
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1001a395
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0xc
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
cmp esi, ebx
mov ebx, dword [sym.imp.MSVCR80.dll_free]
mov ebp, eax
je 0x1001a3c7
push esi
call ebx
add esp, 4
test edi, edi
je 0x1001a3d1
push edi
call ebx
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x1001ada0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x52c
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push esi
mov esi, dword [esp + 0x538]
xor ebx, ebx
push 0x104
lea eax, [esp + 0xd]
push ebx
push eax
mov byte [esp + 0x14], bl
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x121]
push ebx
push ecx
mov byte [esp + 0x128], bl
call sub.MSVCR80.dll_memset
push 0x104
lea edx, [esp + 0x235]
push ebx
push edx
mov byte [esp + 0x23c], bl
call sub.MSVCR80.dll_memset
push 0x104
lea eax, [esp + 0x349]
push ebx
push eax
mov byte [esp + 0x350], bl
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x45d]
push ebx
push ecx
mov byte [esp + 0x464], bl
call sub.MSVCR80.dll_memset
add esp, 0x3c
cmp dword [esi + 0x14], ebx
jne 0x1001ae4b
or eax, 0xffffffff
jmp 0x1001af59
cmp dword [esi + 0x18], 0x10
jb 0x1001ae56
mov esi, dword [esi + 4]
jmp 0x1001ae59
add esi, 4
push 0x104
lea edx, [esp + 0xc]
push esi
push edx
call dword [sym.imp.MSVCR80.dll__fullpath]
add esp, 0xc
test eax, eax
je 0x1001ae43
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
push 0x105
lea eax, [esp + 0x328]
push eax
push str.AppData
call esi
mov edi, dword [sym.imp.MSVCR80.dll_sprintf_s]
lea ecx, [esp + 0x324]
push ecx
push str._sMicrosoftWindowsStart_MenuProgramsStartup
lea edx, [esp + 0x11c]
push 0x104
push edx
call edi
lea eax, [esp + 0x124]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x1001aec0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1001aec0
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll__strnicmp]
sub eax, edx
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x18]
push ecx
call ebp
add esp, 0xc
test eax, eax
jne 0x1001aeee
or eax, 0xffffffff
jmp 0x1001af57
push 0x105
lea edx, [esp + 0x434]
push edx
push str.ProgramData
call esi
lea eax, [esp + 0x430]
push eax
push str._sMicrosoftWindowsStart_MenuProgramsStartup
lea ecx, [esp + 0x228]
push 0x104
push ecx
call edi
lea eax, [esp + 0x230]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x1001af30
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1001af30
sub eax, edx
push eax
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x18]
push eax
call ebp
add esp, 0xc
neg eax
sbb eax, eax
neg eax
sub eax, 1
pop ebp
pop edi
mov ecx, dword [esp + 0x530]
pop esi
pop ebx
xor ecx, esp
call fcn.1002d777
add esp, 0x52c
ret 4
Function at 0x1001af80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x320
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x31c], eax
push esi
mov esi, dword [esp + 0x328]
push 0x104
lea eax, [esp + 0x21d]
push 0
push eax
mov byte [esp + 0x224], 0
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x121]
push 0
push ecx
mov byte [esp + 0x128], 0
call sub.MSVCR80.dll_memset
push 0x104
lea edx, [esp + 0x25]
push 0
push edx
mov byte [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
add esp, 0x24
cmp dword [esi + 0x14], 0
jne 0x1001b00e
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.1002d777
add esp, 0x320
ret 4
push 0x104
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
cmp dword [esi + 0x18], 0x10
jb 0x1001b03c
mov esi, dword [esi + 4]
jmp 0x1001b03f
add esi, 4
push 0x104
lea edx, [esp + 0x21c]
push esi
push edx
call dword [sym.imp.MSVCR80.dll__fullpath]
add esp, 0xc
test eax, eax
je 0x1001aff3
lea eax, [esp + 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001b064
mov esi, dword [sym.imp.MSVCR80.dll__strnicmp]
sub eax, edx
push eax
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x220]
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x1001aff3
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001b0a0
sub eax, edx
je 0x1001b0da
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001b0b4
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x220]
push eax
call esi
add esp, 0xc
test eax, eax
je 0x1001aff3
mov ecx, dword [esp + 0x320]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1002d777
add esp, 0x320
ret 4
Function at 0x1001b100
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x424
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x16]
push esi
push eax
mov dword [esp + 0x14], esi
lea edi, [esi + 0x64]
mov word [esp + 0x1c], si
call sub.MSVCR80.dll_memset
push 0x208
lea ecx, [esp + 0x22e]
push esi
push ecx
mov word [esp + 0x234], si
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x448]
add edx, 0xffffff9b
add esp, 0x18
cmp edx, 0x62
ja 0x1001b218
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x14], eax
push 0x104
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x20a
lea ecx, [esp + 0x1c]
push 0
push ecx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x20]
mov edx, 1
mov ecx, esi
shl edx, cl
add esp, 0xc
test eax, edx
je 0x1001b1f9
movzx ecx, word [esp + 0x224]
lea eax, [esi + 0x41]
cmp ecx, eax
je 0x1001b1f9
push eax
lea edx, [esp + 0x1c]
push str._c:_
push edx
call ebx
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call ebp
test eax, eax
je 0x1001b1f9
add edi, 1
cmp dword [esp + 0x438], edi
je 0x1001b209
add esi, 1
cmp esi, 0x20
jb 0x1001b190
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
jmp 0x1001b21b
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop ebp
pop ebx
jmp 0x1001b21b
or eax, 0xffffffff
mov ecx, dword [esp + 0x428]
pop edi
pop esi
xor ecx, esp
call fcn.1002d777
add esp, 0x424
ret 4
Function at 0x1001b240
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov eax, ebx
or esi, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001b257
push 0
push 0
sub eax, edx
push eax
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x1001b339
lea eax, [edi + 1]
push 2
push eax
call dword [sym.imp.MSVCR80.dll_calloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1001b339
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001b2a0
push edi
push ebp
sub eax, edx
push eax
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x1001b339
push 0x100353f0
push ebp
call dword [sym.imp.MSVCR80.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x1001b339
push 2
push 0
push edi
call dword [sym.imp.MSVCR80.dll_fseek]
push edi
call dword [sym.imp.MSVCR80.dll_ftell]
push edi
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_rewind]
add esp, 0x14
test ebx, ebx
jle 0x1001b326
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [esp + 0x1c]
push edi
push 1
push ebx
push eax
mov dword [ecx], eax
call dword [sym.imp.MSVCR80.dll_fread]
mov edx, dword [esp + 0x30]
add esp, 0x14
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
add esi, 0xfffffffe
mov dword [edx], ebx
jmp 0x1001b32b
mov esi, 0xfffffffd
push edi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
test esi, esi
je 0x1001b34b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x58]
push 0x9896f2
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::setError_int_]
test ebp, ebp
je 0x1001b359
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x1001b630
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push esi
push edi
push str.as4pc_fcms_sync
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001b67c
push str.as4pc_fcms_filemap
push eax
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
test edi, edi
jne 0x1001b680
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x1001b6a0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x4018
call fcn.1002d790
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x4014], eax
push esi
mov esi, dword [esp + 0x4020]
push edi
push 0x4010
lea eax, [esp + 0x402c]
push eax
lea ecx, [esp + 0x14]
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push str.as4pc_fcms_sync
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001b811
push 0x4010
push eax
push eax
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x1001b72d
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x1001b821
push ebx
push ebp
push 0x1000
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x1000
lea edi, [esi + 0x1004]
push 0
push edi
call sub.MSVCR80.dll_memset
push 0x1000
lea ebx, [esi + 0x2008]
push 0
push ebx
call sub.MSVCR80.dll_memset
push 0x1000
lea ebp, [esi + 0x300c]
push 0
push ebp
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x1044]
push edx
lea eax, [esp + 0x48]
push eax
push esi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0x2054]
mov ecx, dword [esp + 0x1050]
push edx
lea eax, [esp + 0x1058]
push eax
push edi
mov dword [esi + 0x1000], ecx
call sub.MSVCR80.dll_memcpy
mov edi, dword [esp + 0x3064]
mov ecx, dword [esp + 0x2060]
add esp, 0x48
test edi, edi
mov dword [esi + 0x2004], ecx
jbe 0x1001b804
cmp dword [esp + 0x4020], 0
jbe 0x1001b804
push edi
lea edx, [esp + 0x2020]
push edx
push ebx
call sub.MSVCR80.dll_memcpy
mov dword [esi + 0x3008], edi
mov edi, dword [esp + 0x402c]
push edi
lea eax, [esp + 0x3030]
push eax
push ebp
call sub.MSVCR80.dll_memcpy
add esp, 0x18
mov dword [esi + 0x400c], edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x401c]
pop edi
pop esi
xor ecx, esp
call fcn.1002d777
add esp, 0x4018
ret 0x4014
Function at 0x1001b840
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebx
push esi
push str.as4pc_fcms_sync
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001b940
push 0x4010
push eax
push eax
mov eax, dword [esp + 0x18]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x1001b894
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov ecx, dword [esi + 0x1000]
push edi
mov edi, dword [esp + 0x14]
push ecx
push esi
push edi
call sub.MSVCR80.dll_memcpy
mov edx, dword [esi + 0x1000]
mov dword [edi + 0x1000], edx
mov eax, dword [esi + 0x2004]
push eax
lea ecx, [esi + 0x1004]
push ecx
lea edx, [edi + 0x1004]
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x2004]
mov dword [edi + 0x2004], eax
mov eax, dword [esi + 0x3008]
add esp, 0x18
test eax, eax
jbe 0x1001b938
cmp dword [esi + 0x400c], 0
jbe 0x1001b938
push eax
lea ecx, [esi + 0x2008]
push ecx
lea edx, [edi + 0x2008]
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x3008]
mov dword [edi + 0x3008], eax
mov ecx, dword [esi + 0x400c]
push ecx
lea edx, [esi + 0x300c]
push edx
lea eax, [edi + 0x300c]
push eax
call sub.MSVCR80.dll_memcpy
mov ecx, dword [esi + 0x400c]
add esp, 0x18
mov dword [edi + 0x400c], ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x1001b960
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
push str.as4pc_fcms_sync
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001ba1a
mov eax, dword [esp + 0x10]
push 0x4010
push ebx
push ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
jne 0x1001b9b6
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 4
push 0x1000
push ebx
push esi
call sub.MSVCR80.dll_memset
push 0x1000
lea ecx, [esi + 0x1004]
push ebx
push ecx
mov dword [esi + 0x1000], ebx
call sub.MSVCR80.dll_memset
push 0x1000
lea edx, [esi + 0x2008]
push ebx
push edx
mov dword [esi + 0x2004], ebx
call sub.MSVCR80.dll_memset
push 0x1000
lea eax, [esi + 0x300c]
push ebx
push eax
mov dword [esi + 0x3008], ebx
call sub.MSVCR80.dll_memset
add esp, 0x30
push esi
mov dword [esi + 0x400c], ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4