joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ee0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x234], esi
test esi, esi
je 0x407f95
push ebx
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x407f90
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407f90
nop dword [eax]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00533aae
add esp, 8
test eax, eax
jne 0x407f7e
push dword [ebp - 0x228]
push eax
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407f78
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407f40
push edi
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005120a1
mov esp, ebp
pop ebp
ret

Function at 0x4082c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x40834e
push 0x587f94
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
call fcn.0052e77a
add esp, 0xc
cmp dword [ebp - 0x48], 0
je 0x40834e
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0052d340
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push 1
push eax
call fcn.0052ea9a
add esp, 0x1c
test eax, eax
je 0x408343
nop dword [eax]
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00408360
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push 1
push eax
call fcn.0052ea9a
add esp, 0x10
test eax, eax
jne 0x408320
push dword [ebp - 0x48]
call fcn.0052e84e
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005120a1
mov esp, ebp
pop ebp
ret 4
Function at 0x408d60
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55195d
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0xa4], 0
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push 0x587fa4
mov dword [ebp - 0xa8], edi
mov word [edi], ax
call fcn.00404d30
mov dword [ebp - 4], 0
mov dword [ebp - 0xa4], 1
test esi, esi
je 0x408ec8
push 0x587fa8
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push esi
push eax
call fcn.0052e77a
add esp, 0xc
cmp dword [ebp - 0x98], 0
je 0x408ec8
mov ecx, esi
call fcn.00406a60
mov esi, eax
mov dword [ebp - 0x9c], edx
push esi
call fcn.00512116
push dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
push esi
push 1
push eax
call fcn.0052ea9a
mov esi, dword [ebp - 0x9c]
add esp, 0x14
mov byte [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x7c], 0x67452301
mov dword [ebp - 0x78], 0xefcdab89
mov dword [ebp - 0x74], 0x98badcfe
mov dword [ebp - 0x70], 0x10325476
movups xmmword [ebp - 0x24], xmm0
test eax, eax
je 0x408eb4
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00408360
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00408cf0
mov dword [ebp - 4], 1
mov ecx, edi
push eax
call fcn.00407b60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00404780
push esi
call fcn.0051211f
push dword [ebp - 0x98]
call fcn.0052e84e
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret
Function at 0x409e60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov byte [ebp - 0x24], 0
cmp dword [eax + 0x18], 0x10
lea ecx, [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
movups xmmword [ebp - 0x23], xmm0
mov word [ebp - 7], 0
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
jb 0x409e9e
mov ecx, dword [ecx]
add eax, 0x1c
cmp dword [eax + 0x14], 0x10
jb 0x409ea9
mov eax, dword [eax]
push ecx
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push 0x5881f0
push eax
push str.filter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x24]
push eax
call fcn.005351f4
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret

Function at 0x40a310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push dword [edi + 0x20]
push dword [ebp + 0xc]
push 1
push 0x618d50
call fcn.0052edd8
push dword [edi + 0x20]
mov esi, eax
call fcn.00535704
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret 8
Function at 0x40b510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551c7a
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x61308c]
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
push 0x22c
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0052d340
add esp, 0xc
xor edi, edi
test ebx, ebx
jne 0x40b581
push 0x58829c
push ebx
push 0x5882ac
push 0x5882c8
push 0xd
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x18
jmp 0x40b727
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b68f
mov esi, dword [0x618d24]
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test esi, esi
jne 0x40b5fb
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push ecx
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push str.error_CreateToolhelp32Snapshot
push 0
push 0x588334
push 0x588350
push 0x15
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x18
test esi, esi
jne 0x40b676
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], 1
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x58839c
push 0x5883b8
push 0x15
push ecx
mov ecx, esi
call fcn.00409b70
jmp 0x40b727
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40b6e6
push str.error_Process32First
push eax
push 0x58841c
push 0x588438
push 0x1d
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x18
push str.BaseGetProcessIDFromName
push 0x5884a0
push 0x1d
push ecx
call fcn.004095d0
mov ecx, eax
call fcn.00409b70
jmp 0x40b720
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00533aae
add esp, 8
test eax, eax
jne 0x40b70a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x238]
cmp ecx, eax
jne 0x40b71e
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40b6e6
jmp 0x40b720
mov edi, ecx
push esi
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.005120a1
mov esp, ebp
pop ebp
ret
Function at 0x40b750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551cd4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0040b510
test eax, eax
jne 0x40b7af
push str.error_proc_has_not_exist.
push eax
push 0x588508
push 0x588520
push 0x3c
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40b8c9
mov esi, dword [0x618d24]
test esi, esi
jne 0x40b827
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push ecx
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x58856c
push 0
push 0x588580
push 0x588598
push 0x44
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x18
test esi, esi
jne 0x40b8a3
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x5885e4
push 0x588650
push 0x44
push ecx
mov ecx, esi
call fcn.00409b70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40b90f
push 0x5885fc
push eax
push 0x58869c
push 0x588700
push 0x4a
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x18
push str.BaseTerminateProcess
push 0x588798
push 0x4a
push ecx
call fcn.004095d0
mov ecx, eax
call fcn.00409b70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551d1a
mov eax, dword fs:[0]
push eax
sub esp, 0xa6c
mov eax, dword [0x61308c]
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 edi, edx
mov esi, ecx
push 0x44
lea eax, [ebp - 0xa78]
xorps xmm0, xmm0
push 0
push eax
xor bl, bl
movups xmmword [ebp - 0xa2c], xmm0
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x800
push 0
push eax
call fcn.0052d340
add esp, 0xc
test edi, edi
je 0x40b9c6
push edi
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.0053531f
add esp, 0xc
test esi, esi
je 0x40b9ec
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053531f
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b9f5
lea eax, [ebp - 0xa2c]
sub ecx, edx
push eax
lea eax, [ebp - 0xa78]
sar ecx, 1
push eax
xor eax, eax
cmp eax, ecx
lea ecx, [ebp - 0x218]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bb3d
mov esi, dword [0x618d24]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test esi, esi
jne 0x40baa6
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x588dbc
push 0
push 0x588e1c
push 0x588e30
push 0x13a
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x18
test esi, esi
jne 0x40bb24
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp - 0xa1c], esi
mov dword [ebp - 4], 1
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push str.BaseCreateProcess
push 0x588e90
push 0x13a
push ecx
mov ecx, esi
call fcn.00409b70
jmp 0x40bb3f
mov bl, 1
mov eax, dword [ebp - 0xa2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x40bb53
push eax
call esi
mov ecx, dword [ebp - 0xa28]
cmp ecx, 0xffffffff
je 0x40bb61
push ecx
call esi
mov al, bl
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.005120a1
mov esp, ebp
pop ebp
ret
Function at 0x40bbc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551d74
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40bd1c
mov esi, dword [0x618d24]
test esi, esi
jne 0x40bc87
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push str.error_RegCreateKeyEx
push 0
push 0x589c70
push 0x589c98
push 0x54
push esi
call fcn.00409720
mov esi, dword [0x618d24]
add esp, 0x18
test esi, esi
jne 0x40bd03
push 0x124
call fcn.005120b2
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 1
lea eax, [esi + 4]
push 0x104
push 0
mov dword [esi], 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.0052d340
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov dword [0x618d24], esi
push 0x589c84
push 0x589cf8
push 0x54
push ecx
mov ecx, esi
call fcn.00409b70
jmp 0x40bd9c
mov esi, dword [ebp + 8]
test esi, esi
je 0x40bd9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40bd78
push str.error_RegSetValueEx
push 0
push 0x589d44
push 0x589d58
push 0x62
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x18
push 0x589da4
push 0x589db8
push 0x62
push ecx
call fcn.004095d0
mov ecx, eax
call fcn.00409b70
jmp 0x40bd9c
push esi
push str.SetValue__S__SUCESS.
push 0
push str.CBaseReg::SetValue
push 0x589e30
push 0x65
call fcn.004095d0
push eax
call fcn.00409720
add esp, 0x1c
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40bdb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40be10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
or eax, 1
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40be6a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40be68
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40be6a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x40be78
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55227e
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x224], esi
mov ecx, dword [eax]
mov eax, dword [0x61e880]
cmp eax, dword [ecx + 4]
jle 0x40e3f0
push 0x61e880
call fcn.00512275
add esp, 4
cmp dword [0x61e880], 0xffffffff
jne 0x40e3f0
mov dword [ebp - 4], 1
mov ecx, 0x61e884
push 0x58aa70
call fcn.00404e30
push 0x576d70
call fcn.005125cc
mov byte [ebp - 4], 0
push 0x61e880
call fcn.00512236
add esp, 8
cmp dword [0x61e894], 0
jne 0x40e461
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0052d340
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40e461
cmp word [ebp - 0x218], 0
jne 0x40e434
xor ecx, ecx
jmp 0x40e44f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e440
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, 0x61e884
push eax
call fcn.00404d30
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x61e884
mov word [esi], ax
call fcn.004048d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret
Function at 0x40e4b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0x800
mov dword [ebp - 0x10], 0
call fcn.00512116
add esp, 4
mov ebx, eax
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, 0x400
jbe 0x40e545
test ebx, ebx
je 0x40e51d
push ebx
call fcn.0051211f
add esp, 4
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512116
add esp, 4
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
test esi, esi
je 0x40e5a9
cmp word [ebx], ax
jne 0x40e56f
xor ecx, ecx
jmp 0x40e583
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e574
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00404d30
push ebx
call fcn.0051211f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x58aa74
mov ecx, edi
call fcn.00404d30
mov eax, edi
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 0x40e5d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0x800
mov dword [ebp - 0x10], 0
call fcn.00512116
add esp, 4
mov ebx, eax
push 0x400
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
cmp esi, 0x400
jbe 0x40e665
test ebx, ebx
je 0x40e63d
push ebx
call fcn.0051211f
add esp, 4
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512116
add esp, 4
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
test esi, esi
je 0x40e6c9
cmp word [ebx], ax
jne 0x40e68f
xor ecx, ecx
jmp 0x40e6a3
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e694
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00404d30
push ebx
call fcn.0051211f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x58aa78
mov ecx, edi
call fcn.00404d30
mov eax, edi
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 0x40eaa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5516c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x61308c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0x800
mov dword [ebp - 0x10], 0
call fcn.00512116
add esp, 4
mov ebx, eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
cmp esi, 0x400
jbe 0x40eb35
test ebx, ebx
je 0x40eb0d
push ebx
call fcn.0051211f
add esp, 4
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512116
add esp, 4
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
test esi, esi
je 0x40eb99
cmp word [ebx], ax
jne 0x40eb5f
xor ecx, ecx
jmp 0x40eb73
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eb64
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00404d30
push ebx
call fcn.0051211f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x58aafc
mov ecx, edi
call fcn.00404d30
mov eax, edi
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 0x40ed70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], 0
jne 0x40edaf
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40ee11
mov eax, dword [esi + 4]
test eax, eax
je 0x40edda
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40edda
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x40edfb
push 0
push 0
push esi
push 0x40ef20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x40ee11
push dword [ebp - 4]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
test eax, eax
je 0x40ee22
push eax
call edi
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40ee33
push ecx
call edi
mov dword [esi + 4], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8