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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
cmp esi, ebx
jne 0x40466f
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x404674
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push ebx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4046a7
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
jmp 0x40479b
push 0
lea ecx, [ebp - 0x24]
push ecx
push 8
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4046dc
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
jmp 0x40479b
mov ecx, 8
cmp dword [ebp - 0x24], ecx
je 0x404705
push 0x4ad8f8
push 0xfe
lea edx, [ecx - 7]
push str.QHImageHlp.c
call fcn.00409d60
add esp, 0xc
jmp 0x40479b
cmp dword [ebp + 0x10], ebx
je 0x404750
mov ebx, ecx
cmp dword [ebp - 0x1c], ecx
jae 0x40472f
push 0x4ada18
push 0x321
mov edx, 5
push str.QHImageHlp.c
call fcn.00409d60
add esp, 0xc
jmp 0x40479b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
movzx edx, word [ebp - 0xc]
mov word [eax + 4], dx
movzx edx, word [ebp - 0xa]
mov word [eax + 6], dx
mov dword [ebp - 0x14], 1
jmp 0x40479b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jbe 0x404766
push 0x4ada18
mov ebx, eax
push 0x32d
jmp 0x40471b
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4047b4
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x4047a4
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov edx, edi
call fcn.00403720
test eax, eax
je 0x404798
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
jmp 0x40479b
Function at 0x404b00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [eax + 0xccc]
mov eax, dword [eax]
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x404b48
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ebx, ebx
add edx, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
lea esp, [esp]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x404b6f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
jmp 0x404b75
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
sub eax, ebx
sbb ecx, dword [ebp - 0x1c]
mov edi, eax
shrd edi, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [ebp - 4], edi
mov edi, eax
jne 0x404b96
mov edi, 0x8000
jmp 0x404b99
inc dword [ebp - 4]
cmp dword [ebp - 4], 0
jbe 0x404c09
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push 0
push 0
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x404c84
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404ca6
cmp edi, dword [ebp - 0x18]
jne 0x404cc8
mov edx, 0x401e00
test edx, edx
je 0x404bf6
push edi
push esi
mov esi, dword [ebp + 0x10]
call fcn.00407840
mov esi, dword [ebp - 0x14]
add esp, 8
add ebx, edi
adc dword [ebp - 0x1c], 0
dec dword [ebp - 4]
mov edi, 0x8000
jne 0x404b9f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x404c66
mov eax, dword [edx]
test eax, eax
je 0x404d12
mov ecx, 0x401e00
test ecx, ecx
je 0x404c59
cmp dword [edx + 4], 0
je 0x404c59
cmp eax, 0x8000
ja 0x404ced
push eax
push 0
push esi
call fcn.00461390
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add esp, 0xc
push eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.00407840
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add esp, 8
mov ebx, dword [edx]
xor eax, eax
add ebx, dword [edx - 8]
adc eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
inc eax
add edx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
cmp eax, dword [ebp + 0xc]
ja 0x404d12
mov edi, dword [ebp + 0x14]
jmp 0x404b60
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4ad8f8
push 0xfe
mov edx, 1
push str.QHImageHlp.c
call fcn.00409d60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4ada34
push 0x3d8
mov edx, 8
push str.QHImageHlp.c
call fcn.00409d60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov ebx, dword [esi]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x404ec8
push 0
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404e75
push str.WriteFile__
push 0x111
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 8
je 0x404e9f
push 0x4ad924
push 0x113
push str.QHImageHlp.c
mov edx, 1
call fcn.00409d60
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 4]
push ecx
lea edi, [ebp - 8]
call fcn.00405e10
add esp, 4
pop edi
test eax, eax
je 0x404efc
mov esi, dword [esi + 4]
xor eax, eax
push eax
push eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x404ee9
push str.SetFilePointerEx__
push 0x10e
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 4
lea ecx, [ebp - 8]
mov edx, ebx
call fcn.00403790
test eax, eax
jne 0x404f04
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405700
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [ebp - 0x14]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x405749
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
call fcn.00409960
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [ebp - 0x10]
sbb edi, edx
sub ebx, 0x298
sbb edi, edx
xor eax, eax
cmp edi, eax
jl 0x4057dd
jg 0x40576d
cmp ebx, ecx
jb 0x4057dd
mov esi, dword [esi]
push 0
push 0
push edi
push ebx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4057a5
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00409960
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, 0x298
call fcn.00403720
test eax, eax
je 0x40579c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4057c5
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4057e9
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4057e9
xor edx, edx
mov word [eax], dx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x406409
cmp dword [ebp + 0xc], ebx
je 0x406409
push esi
push 0x2800
call fcn.00461139
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40633f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
push edi
push ebx
push str..PhysicalDrive_d
push 0x2800
push esi
call fcn.00403450
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4063e2
xor eax, eax
push 0x2800
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.00461390
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2800
push esi
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4063d5
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4063d5
mov edx, dword [ebp + 0xc]
add eax, esi
push eax
mov eax, dword [ebp - 0x1c]
push edx
push eax
push str.DISKID:
call fcn.00406050
add esp, 0x10
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x4063ec
inc ebx
cmp ebx, 0x10
jl 0x406340
push esi
call fcn.004611cd
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
Function at 0x4064c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 8], edi
je 0x4064f8
cmp dword [ebp + 0xc], edi
je 0x4064f8
push 0x200
call fcn.00461139
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x406502
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x20119
push edi
push 0x4adb78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40664a
mov edx, dword [ebp - 8]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4065e8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406553
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4065c0
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x4adbec
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4065b6
mov eax, esi
mov dword [esi], 0x5c2e5c5c
call fcn.00406420
cmp edx, ebx
jb 0x4065b6
ja 0x4065b1
cmp eax, dword [ebp - 0x20]
jbe 0x4065b6
mov dword [ebp - 0x20], eax
mov ebx, edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
inc edi
push edi
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x406547
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4065fb
cmp dword [ebp - 0x20], ebx
jbe 0x40664a
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
push str._012I64X
push 0x200
push esi
call fcn.00403450
add esp, 0x14
test eax, eax
jne 0x406631
push esi
mov dword [ebp - 0xc], 0xffffffff
call fcn.004611cd
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
push str.MAC:
call fcn.00406050
add esp, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.004611cd
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a010
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x20c]
movzx edx, word [ebp - 0x20e]
movzx eax, word [ebp - 0x210]
push ecx
push edx
push eax
push esi
lea ecx, [ebp - 0x208]
push str.__08X___02hu:_02hu:_02hu:
push ecx
call fcn.00467866
lea eax, [ebp - 0x208]
add esp, 0x18
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a070
mov ecx, dword [ebp + 8]
sub eax, edx
lea edx, [ebp + 0xc]
push edx
push ecx
sar eax, 1
lea edx, [ebp + eax*2 - 0x208]
push 0x100
push edx
call fcn.0046676a
add esp, 0x10
cmp eax, 0xffffffff
jne 0x40a0c3
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
push 0x4adec4
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x208]
xor ecx, ecx
push edx
mov word [ebp - 8], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
Function at 0x40c740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4993ce
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [0x4cbf10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp - 0x98]
push 0x40
push eax
call fcn.0046b5e3
add esp, 0x14
lea edx, [ebp - 0x98]
push edx
push 1
xor ecx, ecx
push ebx
mov word [ebp - 0x18], cx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
cmp edi, ebx
je 0x40c8d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c7d9
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.0040c5b0
cmp eax, ebx
je 0x40c7ef
mov dword [0x4cbf10], eax
jmp 0x40c8b6
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x40c80a
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x40c821
push edi
push esi
call fcn.0040cb60
jmp 0x40c823
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x4cbf10], eax
cmp eax, ebx
jne 0x40c84a
push 0x4b9dfc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 1
call fcn.00461207
push eax
mov esi, 1
call fcn.0040c650
add esp, 4
test eax, eax
jne 0x40c8b1
push 0x4b9dfc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 3
call fcn.00461207
call fcn.0040c6a0
mov esi, dword [ebp - 0x9c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4cbf10]
xor ebx, ebx
cmp eax, ebx
je 0x40c8a2
push eax
call fcn.0040cd50
mov dword [0x4cbf10], ebx
jmp 0x40c8a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x40c8af
ret
mov eax, dword [0x4cbf10]
inc dword [eax + 0x5bc]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x40c8d5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4cbf10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461ffa
mov esp, ebp
pop ebp
ret
Function at 0x40c930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499340
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c6260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4cbf10]
xor edi, edi
cmp ecx, edi
jne 0x40c97b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x40c988
mov dword [ebp - 0x14], edi
jmp 0x40c9a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x40ca36
mov ecx, dword [0x4cbf10]
mov eax, dword [ecx]
cmp eax, edi
je 0x40c967
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40c967
mov ebx, 0x4cbf10
mov dword [ebp - 4], edi
call fcn.0040ca50
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x40c9de
push 0x4b9dfc
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.00461207
mov ecx, dword [0x4cbf10]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x40c9f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x40ca22
push 0x4b9dfc
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.00461207
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40ca19
call fcn.0040cf00
mov eax, 0x40ca1f
ret
mov eax, dword [0x4cbf10]
mov eax, dword [eax]
test eax, eax
je 0x40ca34
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x40ca7f
xor ecx, ecx
jmp 0x40ca8b
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x40cb3b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
lea ecx, [ecx]
mov eax, dword [esi]
cmp dword [ebp - 8], eax
jne 0x40caac
mov dword [ebp - 4], esi
jmp 0x40cb10
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x40cb09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cafc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40cb10
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40cb10
push 0x4adf38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40cb10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x40cb33
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x40caa0
mov eax, dword [ebp - 4]
pop edi
test eax, eax
jne 0x40cb4e
mov ecx, dword [ebx]
add ecx, 8
call fcn.0040ce30
test eax, eax
je 0x40cb4e
mov edx, dword [ebp - 8]
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40cb60
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49939b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c6260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00461390
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [ebp - 4], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40cbf6
push 0x4b9dfc
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 2
call fcn.00461207
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40dd8d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [0x4c7d00], 0
push dword [eax]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4c7d00], eax
test eax, eax
je 0x40ddf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ddf5
push edi
push 0
push str.Q360FeedBackClass_360se6
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40ddef
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40dddf
push 9
jmp 0x40dde1
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
inc eax
pop edi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40e406
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4c6260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x40e429
xor eax, eax
jmp 0x40e463
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00461390
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
push edi
call fcn.0040d7ae
add esp, 0x1c
test eax, eax
je 0x40e425
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00461ffa
leave
ret

Function at 0x40e78c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e7c6
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e7d4
lea ecx, [ebp + 8]
call fcn.0040e14c
pop edi
mov eax, esi
pop esi
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x40e7c6

Function at 0x40e7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0
mov eax, 0x493491
call fcn.00462660
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
xor edi, edi
push eax
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x40e816
lea ecx, [ebp + 0x10]
call fcn.0040e14c
xor eax, eax
call fcn.00462738
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x40e806
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
je 0x40e806
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x40e849
lea ecx, [ebp + 0x10]
call fcn.0040e14c
mov eax, edi
jmp 0x40e810
push ebx
push eax
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push dword [ebp + 8]
push eax
call fcn.00421f6b
pop ecx
pop ecx
call fcn.0040e78c
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40e83d