joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005cfb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x1005d0c0
cmp dword [esi + 4], 0
jl 0x1005d0c0
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
sar eax, 1
lea ebx, [esi + 0x2c]
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, ecx
push eax
lea ecx, [esi + 0x30]
push ecx
lea eax, [ebp - 8]
push 0
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
call fcn.1005ba20
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x1005d09b
mov ecx, dword [ebx]
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x1005d04d
lea eax, [ebp - 0xc]
push eax
push ecx
lea ecx, [esi + 0x20]
mov dword [ebp - 0xc], 0
call fcn.1005d0f0
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
sar eax, 1
cmp dword [ebp - 8], ecx
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, 0x4000
cmove ecx, eax
mov eax, dword [esi + 0x20]
xor edx, edx
cmp eax, dword [esi + 0x24]
push ebx
cmove eax, edx
push eax
lea eax, [esi + 0x30]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, ecx
push eax
lea ecx, [esi + 8]
call fcn.1005ba20
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1005d0c0
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
pop edi
xor edx, edx
pop esi
mov word [eax + ecx*2], dx
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x1005d0cb
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
pop edi
mov word [eax], cx
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1005dd10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
mov dword [ebp - 0x18], edx
mov byte [ebp - 9], 0
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x1005de2e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1005de0c
cmp esi, 0xffffffff
je 0x1005de0c
push esi
call dword [sym.imp.MSVCR110.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1005de0c
push ebx
lea eax, [ebp - 8]
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005ddf6
cmp esi, dword [ebp - 8]
jne 0x1005ddf6
cmp dword [edi], 0x54534347
jne 0x1005ddf6
push dword [edi + 0x14]
call dword [sym.imp.MSVCR110.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1005ddf6
add esi, 0xffffffe4
lea eax, [edi + 0x1c]
push esi
push eax
push esi
push eax
call fcn.100678e0
add esp, 0x10
test eax, eax
jne 0x1005ddf6
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov edx, esi
lea ecx, [edi + 0x1c]
call fcn.1005dc40
add esp, 8
test eax, eax
je 0x1005ddf6
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.100071a0
mov byte [ebp - 9], 1
mov esi, dword [sym.imp.MSVCR110.dll_free]
push edi
call esi
add esp, 4
test ebx, ebx
je 0x1005de0c
push ebx
call esi
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1005de1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1005e1e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov edi, edx
mov ebx, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x207
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1005e32a
push esi
lea esi, [ebp - 0x414]
mov edx, 0x3a
mov ecx, dword [edi]
mov ax, word [esi]
imul ecx, ecx, 0x418
mov word [ecx + ebx], ax
mov eax, dword [edi]
imul eax, eax, 0x418
xor ecx, ecx
mov word [eax + ebx + 2], dx
mov eax, dword [edi]
imul eax, eax, 0x418
push 0x208
mov word [eax + ebx + 4], cx
mov ecx, dword [edi]
imul ecx, ecx, 0x418
add ecx, ebx
lea eax, [ecx + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1005e310
mov eax, dword [edi]
imul eax, eax, 0x418
mov ecx, 0x5c
mov word [eax + ebx + 4], cx
mov eax, dword [edi]
imul eax, eax, 0x418
xor ecx, ecx
mov word [eax + ebx + 6], cx
mov edx, dword [edi]
mov eax, edx
imul eax, eax, 0x418
add eax, 8
add eax, ebx
mov ecx, eax
mov dword [ebp - 0x418], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x41c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005e2d1
sub ecx, dword [ebp - 0x41c]
imul edx, edx, 0x20c
sar ecx, 1
add edx, ecx
cmp word [ebx + edx*2 + 6], 0x5c
je 0x1005e30d
push 0x1007d9c8
push 0x208
push dword [ebp - 0x418]
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
inc dword [edi]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005e310
mov edx, 0x3a
cmp word [esi], ax
jne 0x1005e243
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1005e660
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x82a4
call fcn.10071bb0
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
mov esi, ecx
push eax
mov dword [ebp - 0x82a4], esi
mov bl, 1
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x8298]
push eax
push 0x1000
lea eax, [ebp - 0x8294]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1005e6d0
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8298]
shr eax, 2
push edi
mov dword [ebp - 0x82a0], eax
xor eax, eax
push 0x6a68
push eax
mov word [ebp - 0x7294], ax
mov dword [ebp - 0x7292], eax
mov word [ebp - 0x728e], ax
lea eax, [ebp - 0x728c]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x829c]
lea ecx, [ebp - 0x7294]
mov dword [ebp - 0x829c], 0
call fcn.1005e1e0
xor edi, edi
cmp dword [ebp - 0x82a0], edi
jbe 0x1005e830
jmp 0x1005e740
push dword [ebp - 0x829c]
mov ecx, dword [ebp + edi*4 - 0x8294]
lea eax, [ebp - 0x7294]
push eax
lea edx, [ebp - 0x414]
call fcn.1005e5c0
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call sub.MSVCR110.dll_memset
add esp, 0x14
lea eax, [ebp - 0x824]
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push 0x208
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
push dword [esi + 0x10]
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.10001ca0
push eax
call dword [sym.imp.MSVCR110.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1005e823
push dword [ebp + edi*4 - 0x8294]
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1005e815
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1005e80c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005e81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov esi, dword [ebp - 0x82a4]
inc edi
cmp edi, dword [ebp - 0x82a0]
jb 0x1005e740
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x1005e850
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a0c6
mov eax, dword fs:[0]
push eax
mov eax, 0x7eb4
call fcn.10071bb0
mov eax, dword [0x1009e034]
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 dword [ebp - 0x7eb8], ecx
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7e94]
push eax
push 0x1000
lea eax, [ebp - 0x7e90]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x1005ea65
mov ebx, dword [ebp - 0x7e94]
xor eax, eax
push 0x6a68
push eax
mov word [ebp - 0x6e90], ax
mov dword [ebp - 0x6e8e], eax
mov word [ebp - 0x6e8a], ax
lea eax, [ebp - 0x6e88]
shr ebx, 2
push eax
mov dword [ebp - 0x7eb4], ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x7eb0]
lea ecx, [ebp - 0x6e90]
mov dword [ebp - 0x7eb0], 0
call fcn.1005e1e0
xor edi, edi
test ebx, ebx
je 0x1005ea2f
jmp 0x1005e930
push dword [ebp - 0x7eb0]
mov ecx, dword [ebp + edi*4 - 0x7e90]
lea eax, [ebp - 0x6e90]
push eax
lea edx, [ebp - 0x420]
call fcn.1005e5c0
add esp, 8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x7e98], 7
mov dword [ebp - 0x7e9c], 0
mov word [ebp - 0x7eac], ax
cmp word [edx], ax
jne 0x1005e987
xor ecx, ecx
jmp 0x1005e99f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005e990
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x7eac]
call fcn.10003de0
push 1
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP110.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
mov esi, eax
mov dword [ebp - 0x7ebc], esi
mov eax, esp
mov byte [ebp - 4], 1
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [ebp - 0x7eb8]
lea ecx, [ebp - 0x7eac]
call fcn.1005ea70
mov byte [ebp - 4], 0
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov bl, al
call dword [edx + 8]
test eax, eax
je 0x1005e9ff
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
test bl, bl
jne 0x1005ea4d
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x7e98], 8
jb 0x1005ea22
push dword [ebp - 0x7eac]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
inc edi
cmp edi, dword [ebp - 0x7eb4]
jb 0x1005e930
xor al, al
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.1006e4e6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x7e98], 8
jb 0x1005ea65
push dword [ebp - 0x7eac]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1005ea31
Function at 0x1005ec80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x1005ed26
test edx, edx
je 0x1005ed26
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x1005ecab
lea eax, [ebx + 0x78]
test eax, eax
jne 0x1005ecb3
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x1005ed0a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x1005ed13
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1005ece0
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10060c70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 0
lea eax, [edi + 0x8c]
je 0x10060d38
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, edi
call fcn.10061000
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x10060d2f
call fcn.1006fd30
mov esi, dword [edi + 0x48]
lea eax, [esp + 0x10]
push 0x10060400
push eax
call fcn.10061490
mov eax, esp
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [eax], 0x1e8480
mov dword [eax + 4], 0
call fcn.100613d0
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
add esp, 8
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.10070780
test al, al
jne 0x10060d17
mov ecx, dword [edi + 0x48]
call fcn.10070130
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, dword [edi + 0x48]
test esi, esi
je 0x10060d2f
mov ecx, esi
call fcn.1006f540
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10061000
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x7c], 0
je 0x10061083
mov edi, edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 0x6c]
call fcn.1004ea10
mov ebx, dword [eax]
test ebx, ebx
je 0x10061035
mov ebx, dword [ebx]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 8]
mov ecx, edx
dec eax
shr ecx, 2
and ecx, eax
mov eax, dword [ebx + 4]
and edx, 3
mov eax, dword [eax + ecx*4]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x10061064
mov ecx, ebx
call fcn.10060f80
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x1006107d
dec eax
mov dword [esi + 0x7c], eax
jne 0x1006107a
mov dword [esi + 0x78], 0
jmp 0x1006107d
inc dword [esi + 0x78]
cmp dword [esi + 0x7c], 0
jne 0x10061020
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
cmp dword [esi + 0x4c], edi
jbe 0x100610b4
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
lea ebx, [ebx]
mov eax, dword [esi + 0x80]
mov eax, dword [eax + edi*4]
push dword [eax + 4]
call ebx
inc edi
cmp edi, dword [esi + 0x4c]
jb 0x100610a0
xor eax, eax
mov dword [esp + 0xc], eax
cmp dword [esi + 0x4c], eax
jbe 0x100611d0
jmp 0x100610d0
lea edi, [eax*4]
mov eax, dword [esi + 0x80]
mov eax, dword [edi + eax]
mov ebx, dword [eax]
test ebx, ebx
je 0x10061180
lea eax, [esp + 0x18]
push 0x10060400
push eax
call fcn.10061490
mov eax, esp
lea edx, [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [eax], 0xf4240
mov dword [eax + 4], 0
call fcn.100613d0
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 4]
add esp, 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.10070780
test al, al
jne 0x10061151
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + edi]
mov ecx, dword [ecx]
call fcn.10070130
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x80]
mov eax, dword [edi + eax]
mov ebx, dword [eax]
test ebx, ebx
je 0x10061171
mov ecx, ebx
call fcn.1006f540
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi + 0x80]
mov eax, dword [edi + eax]
mov dword [eax], 0
mov eax, dword [esi + 0x80]
mov ebx, dword [edi + eax]
test ebx, ebx
je 0x100611b1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0xc]
push eax
mov dword [ebx + 8], vtable.elex::thread::Mutex.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi + 0x80]
mov dword [edi + eax], 0
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esi + 0x4c]
jb 0x100610d0
mov eax, dword [esi + 0x80]
pop edi
mov dword [esi + 0x84], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10064950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x1006496e
mov eax, dword [esi]
jmp 0x10064970
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x10064991
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call dword [sym.imp.MSVCR110.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10064a62
cmp dword [esi + 0x14], 8
jb 0x100649b0
mov esi, dword [esi]
push edi
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10064a58
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x14], 0
call ebx
test eax, eax
je 0x10064a58
cmp dword [ebp - 0x14], 0
je 0x10064a58
push 0x10
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x10064a43
lea edx, [esi + 0xc]
mov dword [esi], 0
mov dword [edx], 0
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 4], eax
lea eax, [ebp - 0x10]
push eax
push edx
push 0x1007d9c8
push edi
mov dword [esi], edi
mov dword [esi + 8], ecx
mov dword [edx], 0
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret
Function at 0x10064a80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1009e034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 4]
mov word [ebp - 0x224], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x222], ax
call esi
mov word [ebp - 0x220], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x21e], ax
movzx eax, word [edi + 4]
mov word [ebp - 0x21c], ax
mov eax, 0x4e4
mov word [ebp - 0x21a], ax
call esi
mov word [ebp - 0x218], ax
mov eax, 0x4e4
mov word [ebp - 0x216], ax
xor esi, esi
jmp 0x10064b10
movzx eax, word [ebp + esi*2 - 0x222]
movzx ecx, word [ebp + esi*2 - 0x224]
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x20c]
push 0x104
push eax
add esi, 2
call dword [sym.imp.MSVCR110.dll__snwprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [edi]
mov dword [ebp - 0x214], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10064b7a
mov edx, dword [ebp - 0x214]
test edx, edx
jne 0x10064b94
cmp esi, 8
jl 0x10064b10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x10064bbe
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.10003de0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10064bc3
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.10003de0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret 8
Function at 0x10065140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x100651cb
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100a1248]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100a1248]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100a1248]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x100a1248]
xor edx, edi
dec ecx
jne 0x10065166
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x10065208
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100a1248]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x100651e0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100678e0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
cmp dword [ebp + 0x10], 0
jne 0x100678f8
mov eax, 0xfffffffd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jg 0x10067908
mov eax, 0xfffffffc
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10067918
lea eax, [ebx - 5]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jg 0x10067929
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, eax
jge 0x10067937
mov eax, 0xfffffff9
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push esi
push edi
xor ecx, ecx
lea esi, [edx + 0x26]
mov al, byte [edx + str.E54635FC_4016_4A34_A7B0_0D4E3E1FC257]
mov byte [ebp + ecx - 0x200], al
lea eax, [edx + 1]
cdq
mov byte [ebp + ecx - 0x100], cl
inc ecx
idiv esi
cmp ecx, 0x100
jl 0x10067940
xor edi, edi
xor esi, esi
jmp 0x10067970
mov dl, byte [ebp + esi - 0x100]
movzx eax, byte [ebp + esi - 0x200]
movzx ecx, dl
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x10067996
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x100]
mov byte [ebp + edi - 0x100], dl
mov byte [ebp + esi - 0x100], al
inc esi
cmp esi, 0x100
jl 0x10067970
mov esi, dword [ebp + 0x14]
xor edi, edi
xor edx, edx
test esi, esi
jle 0x10067a3d
sub dword [ebp + 0x10], ebx
inc edx
and edx, 0x800000ff
jns 0x100679d3
dec edx
or edx, 0xffffff00
inc edx
movzx eax, byte [ebp + edx - 0x100]
add edi, eax
and edi, 0x800000ff
jns 0x100679ed
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edx - 0x100]
mov cl, byte [ebp + edi - 0x100]
mov byte [ebp + edi - 0x100], al
mov byte [ebp + edx - 0x100], cl
movzx eax, byte [ebp + edi - 0x100]
movzx ecx, cl
add ecx, eax
and ecx, 0x800000ff
jns 0x10067a27
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ebp + ecx - 0x100]
mov ecx, dword [ebp + 0x10]
inc ebx
xor al, byte [ecx + ebx - 1]
mov byte [ebx - 1], al
dec esi
jne 0x100679c2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret