joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419e06
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x419e15
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.0041aba8
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x419f39
push 0x459328
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.004195ae
pop ecx
test eax, eax
jne 0x419e5a
xor esi, esi
jmp 0x419f23
cmp byte [0x4595af], 0
je 0x419e6d
push 0x72766c72
call fcn.0041c827
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x4595af], 1
call fcn.0041aba8
pop ecx
cmp eax, ebx
jne 0x419e8e
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x419eba
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
lea eax, [ebp - 4]
push eax
call fcn.0041aba8
mov ebx, eax
push ebx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x419eba
push 0x72766c73
call fcn.0041c827
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x419ec8
cmp ebx, 0xea60
ja 0x419e53
test esi, esi
je 0x419ede
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.0041ad61
add esp, 0x10
mov esi, eax
mov byte [0x4595af], 0
test esi, esi
je 0x419f19
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419f08
cmp dword [ebp - 8], ebx
jne 0x419f08
xor esi, esi
inc esi
jmp 0x419f0a
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.0041b031
add esp, 0xc
jmp 0x419f23
push 0x74697970
call fcn.0041c827
push 0x459328
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x419f39
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x41b031
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x41b079
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.0041fe88
mov esi, eax
cmp esi, 0xffffffff
je 0x41b078
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x41b07b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x45934c], 0x2000
je 0x41b0a7
call fcn.0041c622
jmp 0x41b13c
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041cbb3
pop ecx
pop ecx
test eax, eax
je 0x41b13b
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x40201c
call fcn.00416221
call fcn.00419b0c
test al, al
je 0x41b139
push edi
call fcn.00419d41
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00419b51
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x41b138
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.00419e06
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x41b129
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41b138
push ebx
push 0x45939c
push eax
call fcn.00418d09
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d31a
leave
ret
Function at 0x41bb52
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.0041c579
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x41bd6c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041bb27
pop ecx
pop ecx
test eax, eax
je 0x41bd6c
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fe88
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x41bc0a
cmp eax, 0x20
jne 0x41bc00
push 0x1c8016
call fcn.0041c827
mov eax, ebx
mov byte [edi], al
jmp 0x41bd6c
cmp eax, 5
je 0x41bbf7
xor eax, eax
inc eax
jmp 0x41bbf9
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x41bd56
push edi
call fcn.0041c9df
mov esi, eax
test esi, esi
je 0x41bd56
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bd56
cmp edi, dword [ebp - 0x218]
jne 0x41bd56
push ebx
push edi
push esi
call fcn.00419a30
add esp, 0xc
test eax, eax
je 0x41bd56
cmp dword [esi + 0x78], ebx
jne 0x41bd56
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x41bd56
lea edi, [esi + 0x80]
test eax, eax
jle 0x41bd2a
cmp dword [edi], 0x2102
ja 0x41bcd0
je 0x41bcf0
cmp dword [edi], 0x10
je 0x41bcf0
cmp dword [edi], 0x195b
je 0x41bcf0
cmp dword [edi], 0x19df
jbe 0x41bd00
cmp dword [edi], 0x19e2
jbe 0x41bcf0
jmp 0x41bd00
cmp dword [edi], 0x24c8
jb 0x41bd00
cmp dword [edi], 0x24cb
jbe 0x41bcf0
cmp dword [edi], 0x24cd
je 0x41bcf0
cmp dword [edi], 0x2696
jne 0x41bd00
push dword [edi + 4]
push dword [edi]
call fcn.00418e70
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x41bd18
cmp dword [edi], 0x19e1
je 0x41bd18
cmp dword [edi], 0x24cd
jne 0x41bd19
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x41bca7
cmp ebx, 3
je 0x41bd38
call fcn.00414e28
test eax, eax
je 0x41bd43
cmp ebx, 2
jl 0x41bd43
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x41bd56
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x41bd56
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41bd6c
push esi
call fcn.0041c9f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d31a
leave
ret
Function at 0x41bf08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0041b92a
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.00418e70
push dword [ebp - 0x24]
push 0x12
call fcn.00418e70
mov edi, 0x80000000
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x41bf8f
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x41bf8b
push 9
jmp 0x41bf94
push 0
jmp 0x41bf94
push 0xffff
push 0x2699
call fcn.00418e70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d31a
leave
ret

Function at 0x41c392
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x118
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x40216c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c43a
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x402198
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41c42c
push dword [ebp - 0x130]
push 0x22df
call fcn.00418e70
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41c444
push 0x1c800b
call fcn.0041c827
lea eax, [ebp - 0x120]
push eax
call fcn.0041e9ae
pop ecx
pop esi
test al, al
je 0x41c4c5
push dword [ebp - 0x114]
push 0x1a
call fcn.00418e70
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.00418e70
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.00418e70
push dword [ebp - 0x11c]
push 0x22e1
call fcn.00418e70
push dword [ebp - 0x118]
push 0x22e2
call fcn.00418e70
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.00418e70
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.00418e70
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x41c4fe
push dword [ebp - 0x124]
push 0x1af7
call fcn.00418e70
jmp 0x41c514
push 0xffffffffffffffff
push 0x1af7
call fcn.00418e70
push 0x1c800c
call fcn.0041c827
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d31a
leave
ret
Function at 0x41c52e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add ecx, 0x80000
adc eax, 0
shrd ecx, eax, 0x14
push ecx
push 0xc
shr eax, 0x14
call fcn.00418e70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d31a
leave
ret

Function at 0x41cbb3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.0042016d
test eax, eax
je 0x41cbd6
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00420012
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.0041cf3c
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41cc66
push edi
call fcn.00418ce1
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x41cc18
push 0xffffffffffffffff
push 0x4015e0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x41cc66
push 0xffffffffffffffff
push 0x408f10
push dword [ebp + 0xc]
push edi
call dword [sym.imp.MSVCR100.dll_wcsncat_s]
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x41cc66
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41cc66
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x41cc66
push 0x1cb247
call fcn.0041c827
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x41cdb9
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x41cdd9
push 0x1cb21e
call fcn.0041c827
jmp 0x41cf39
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x41cdf0
push 0x1cb21f
call fcn.0041c827
jmp 0x41cf38
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x41ce0f
cmp ebx, 8
je 0x41ce0f
cmp ebx, 3
je 0x41ce0f
push 0x1cb220
jmp 0x41cf0b
cmp dword [eax], esi
je 0x41ce1d
push 0x1cb221
call fcn.0041c827
cmp dword [edi], esi
je 0x41ce2b
push 0x1cb222
call fcn.0041c827
push edi
push esi
push ebx
mov dword [edi], esi
call sub.Secur32.dll_GetUserNameExW
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41cf12
cmp eax, 0xea
jne 0x41cf12
mov eax, dword [edi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov esi, dword [ebp + 0xc]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x41ce7a
push 0x1cb240
jmp 0x41cef3
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x41ce95
push 0x1cb241
jmp 0x41cef3
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x41cea7
push 0x1cb242
call fcn.0041c827
push 2
pop eax
cmp ebx, eax
jne 0x41cec3
push dword [edi]
mov eax, dword [esi]
call fcn.0041cd55
pop ecx
test eax, eax
jne 0x41cf37
push 0x1cb243
jmp 0x41cef3
cmp ebx, 8
jne 0x41cf01
cmp dword [esi], 0
jne 0x41ced4
push 0x1cb21c
jmp 0x41cee9
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x41cefa
push 0x1cb21d
call fcn.0041c827
push 0x1cb244
call fcn.0041c827
jmp 0x41cf1f
xor ecx, ecx
mov word [eax], cx
jmp 0x41cf37
cmp ebx, 3
je 0x41cf37
push 0x1cb245
call fcn.0041c827
jmp 0x41cf37
push 0x1cb223
call fcn.0041c827
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x41cf2f
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x41cf37
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x41cf3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x1c
push edi
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41cfb7
push dword [ebp + 8]
push edi
push 0x408ed4
call fcn.00416221
inc esi
cmp dword [ebp + 0xc], 0
je 0x41cfb7
push edi
call fcn.0042008d
test eax, eax
jne 0x41cfb7
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00418d09
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x408efc
call fcn.0041ffa3
lea eax, [ebp - 0x20c]
push eax
call fcn.004200ac
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d31a
leave
ret
Function at 0x41d063
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40c], eax
test esi, esi
jne 0x41d0ac
xor eax, eax
jmp 0x41d226
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.004207ef
mov ecx, dword [ebp - 0x40c]
and dword [ebp - 0x408], 0
and dword [ebp - 0x41c], 0
mov ebx, eax
mov eax, ecx
shr eax, 0x1a
not eax
and eax, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x41d113
mov eax, ecx
shr eax, 0x17
push ebx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x40c]
mov dword [esi], eax
mov eax, dword [ebp - 0x410]
cmp dword [esi], 0
jne 0x41d1c0
test eax, eax
je 0x41d1c0
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.00420676
test eax, eax
je 0x41d1a2
mov eax, dword [ebp - 0x40c]
shr eax, 0x19
push ebx
and eax, edi
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x40c]
call fcn.004207aa
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x41d1a8
cmp dword [ebp - 0x41c], 0
jne 0x41d1a8
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x41d0ed
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x41d1c0
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x41d1c6
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x41d1d0
cmp dword [esi], 0xffffffff
jne 0x41d1f0
cmp dword [ebp - 0x410], 0
je 0x41d1e3
push 0x6b633230
call fcn.0041c827
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x41d216
test ebx, ebx
jne 0x41d203
mov ebx, 0x408d8d
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.0041d00c
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x41d222
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d31a
leave
ret 0x1c
Function at 0x41d25c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x408f9c], eax
je 0x41d27e
cmp dword [0x408f9c], ebx
jne 0x41d317
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x408f9c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x408f9c], esi
test esi, esi
jne 0x41d2ed
mov dword [0x408f9c], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x408f9c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x408f9c]
not eax
mov dword [0x458794], eax
pop esi
pop ebx
leave
ret

Function at 0x41d31a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408f9c]
jne fcn.0041dfde
ret

Function at 0x41d5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x401ef4
push 0x80000000
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41d68e
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x41d684
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x408fb4
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41d684
cmp dword [ebp + 8], esi
jne 0x41d684
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x41d684
cmp dword [ebp - 4], ebx
je 0x41d676
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41d680
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x41d69a
cmp dword [ebp - 4], ebx
je 0x41d68e
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41d698
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41da1b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x459884], 0
je 0x41da30
mov eax, dword [0x459888]
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x409098
push 0x80000001
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41daa7
lea eax, [ebp - 8]
push eax
push 0x459888
push esi
push esi
push dword [0x458798]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41daa7
cmp dword [ebp - 8], 4
jne 0x41daa7
mov esi, dword [0x459888]
mov byte [0x459884], 1
cmp dword [ebp - 4], eax
je 0x41daa0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41db32
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41daba
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4090e4
push 0x80000001
call ebx
test eax, eax
jne 0x41db17
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x459888
push 0
push 0
push dword [0x458798]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41db17
cmp dword [ebp - 8], ebx
jne 0x41db17
mov edi, dword [0x459888]
mov byte [0x459884], 1
cmp dword [ebp - 4], eax
je 0x41db13
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x41db32
and dword [0x459888], 0
cmp dword [ebp - 4], 0
mov byte [0x459884], 1
je 0x41db30
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dddf
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x425fd0
call fcn.0041e44f
xor ebx, ebx
cmp dword [0x45af28], ebx
jne 0x41dbbd
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x45af1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x41dbf7
cmp eax, esi
jne 0x41dbea
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x41dbfa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dbd1
xor esi, esi
inc esi
mov eax, dword [0x45af18]
cmp eax, esi
jne 0x41dc0d
push 0x1f
call fcn.005f3000
pop ecx
jmp 0x41dc48
mov eax, dword [0x45af18]
test eax, eax
jne 0x41dc42
mov dword [0x45af18], esi
push 0x401348
push 0x401334
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41dc48
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41dd1f
mov dword [0x4598a8], esi
mov eax, dword [0x45af18]
cmp eax, esi
jne 0x41dc6c
push 0x401330
push 0x401308
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x45af18], 2
cmp dword [ebp - 0x1c], ebx
jne 0x41dc79
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x45af2c], ebx
je 0x41dc9a
push 0x45af2c
call fcn.0041e387
pop ecx
test eax, eax
je 0x41dc9a
push ebx
push 2
push ebx
call dword [0x45af2c]
mov eax, dword [0x459890]
mov ecx, dword [sym.imp.MSVCR100.dll___initenv]
mov dword [ecx], eax
push dword [0x459890]
push dword [0x459894]
push dword [0x45988c]
call fcn.00414814
add esp, 0xc
mov dword [0x4598a4], eax
cmp dword [0x459898], ebx
jne 0x41dd05
push eax
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.MSVCR100.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x4598a8], ebx
jne 0x41dd13
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4598a4]
call fcn.0041e494
ret
call fcn.0041d25c
jmp 0x41db9c