joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a81f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x240], eax
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0041d3e3
pop ecx
pop ecx
test eax, eax
jne 0x41a85c
or eax, 0xffffffff
jmp 0x41aa02
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push edi
mov dword [ebp - 0x234], ebx
cmp word [ebp - 0x22c], ax
je 0x41a883
add ebx, 2
cmp word [ebx], ax
jne 0x41a875
mov dword [ebp - 0x234], ebx
push 1
call fcn.0041d389
pop ecx
push dword [0x47915c]
call fcn.0043af68
mov edi, eax
mov dword [ebp - 0x230], edi
cmp edi, 0x64
jbe 0x41a8a6
xor edi, edi
inc edi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push edi
push 0x408754
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0041b7ff
add esp, 0x10
test ebx, ebx
js 0x41a957
cmp ebx, esi
ja 0x41a957
lea ecx, [ebp - 0x23c]
mov eax, esi
sub eax, ebx
push ecx
push eax
call fcn.0041c5c7
pop ecx
pop ecx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.004391ab
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.00439262
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x41a9ba
cmp edi, 0x64
jb 0x41a932
xor edi, edi
inc edi
cmp edi, dword [ebp - 0x230]
jne 0x41a8b0
push edi
push 0x408754
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0041b7ff
add esp, 0x10
test ebx, ebx
jns 0x41a95d
call dword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, esi
ja 0x41a957
lea eax, [ebp - 0x230]
push eax
sub esi, ebx
push esi
call fcn.0041c5c7
pop ecx
pop ecx
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.004391ab
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.00439262
mov esi, eax
jmp 0x41a9c0
mov esi, dword [ebp - 0x238]
cmp edi, 0x64
jb 0x41a9c7
xor edi, edi
cmp byte [ebp + 0x10], 0
je 0x41a9dc
lea eax, [edi + 1]
push eax
push dword [0x47915c]
call fcn.0043af90
call fcn.0041a6b3
mov eax, dword [ebp - 0x240]
pop edi
pop ebx
test eax, eax
je 0x41aa00
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00419a33
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041dbf5
leave
ret
Function at 0x41aad4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x41aae3
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.0041b854
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 0x41ac07
push 0x4797a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.0041a27c
pop ecx
test eax, eax
jne 0x41ab28
xor esi, esi
jmp 0x41abf1
cmp byte [0x479a87], 0
je 0x41ab3b
push 0x72766c72
call fcn.00419830
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x479a87], 1
call fcn.0041b854
pop ecx
cmp eax, ebx
jne 0x41ab5c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x41ab88
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
lea eax, [ebp - 4]
push eax
call fcn.0041b854
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 0x41ab88
push 0x72766c73
call fcn.00419830
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x41ab96
cmp ebx, 0xea60
ja 0x41ab21
test esi, esi
je 0x41abac
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.0041ba0d
add esp, 0x10
mov esi, eax
mov byte [0x479a87], 0
test esi, esi
je 0x41abe7
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 0x41abd6
cmp dword [ebp - 8], ebx
jne 0x41abd6
xor esi, esi
inc esi
jmp 0x41abd8
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.0041bcdd
add esp, 0xc
jmp 0x41abf1
push 0x74697970
call fcn.00419830
push 0x4797a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x41ac07
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 0x41bcdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x41bd25
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.00439262
mov esi, eax
cmp esi, 0xffffffff
je 0x41bd24
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 0x41bd27
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x479824], 0x2000
je 0x41bd53
call fcn.0041d30e
jmp 0x41bde8
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041d3e3
pop ecx
pop ecx
test eax, eax
je 0x41bde7
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x408764
call fcn.00438f05
call fcn.0041a7da
test al, al
je 0x41bde5
push edi
call fcn.0041aa0f
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0041a81f
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x41bde4
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.0041aad4
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x41bdd5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41bde4
push ebx
push 0x479874
push eax
call fcn.00419a33
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041dbf5
leave
ret
Function at 0x41c830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408aa4]
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.0041d265
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x41ca4a
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041c805
pop ecx
pop ecx
test eax, eax
je 0x41ca4a
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.00439262
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x41c8e8
cmp eax, 0x20
jne 0x41c8de
push 0x1c8016
call fcn.00419830
mov eax, ebx
mov byte [edi], al
jmp 0x41ca4a
cmp eax, 5
je 0x41c8d5
xor eax, eax
inc eax
jmp 0x41c8d7
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x41ca34
push edi
call fcn.004197a8
mov esi, eax
test esi, esi
je 0x41ca34
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 0x41ca34
cmp edi, dword [ebp - 0x218]
jne 0x41ca34
push ebx
push edi
push esi
call fcn.0041a6fe
add esp, 0xc
test eax, eax
je 0x41ca34
cmp dword [esi + 0x78], ebx
jne 0x41ca34
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 0x41ca34
lea edi, [esi + 0x80]
test eax, eax
jle 0x41ca08
cmp dword [edi], 0x2102
ja 0x41c9ae
je 0x41c9ce
cmp dword [edi], 0x10
je 0x41c9ce
cmp dword [edi], 0x195b
je 0x41c9ce
cmp dword [edi], 0x19df
jbe 0x41c9de
cmp dword [edi], 0x19e2
jbe 0x41c9ce
jmp 0x41c9de
cmp dword [edi], 0x24c8
jb 0x41c9de
cmp dword [edi], 0x24cb
jbe 0x41c9ce
cmp dword [edi], 0x24cd
je 0x41c9ce
cmp dword [edi], 0x2696
jne 0x41c9de
push dword [edi + 4]
push dword [edi]
call fcn.00419b3a
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x41c9f6
cmp dword [edi], 0x19e1
je 0x41c9f6
cmp dword [edi], 0x24cd
jne 0x41c9f7
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x41c985
cmp ebx, 3
je 0x41ca16
call fcn.00436a6b
test eax, eax
je 0x41ca21
cmp ebx, 2
jl 0x41ca21
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x41ca34
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x41ca34
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41ca4a
push esi
call fcn.004197b9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dbf5
leave
ret
Function at 0x41cbe6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0041d817
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.00419b3a
push dword [ebp - 0x24]
push 0x12
call fcn.00419b3a
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 0x41cc6d
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 0x41cc69
push 9
jmp 0x41cc72
push 0
jmp 0x41cc72
push 0xffff
push 0x2699
call fcn.00419b3a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dbf5
leave
ret

Function at 0x41d074
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x408aa4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push pe_nt_image_headers32
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 0x40897c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41d11c
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x4089a8
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41d10e
push dword [ebp - 0x130]
push 0x22df
call fcn.00419b3a
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41d126
push 0x1c800b
call fcn.00419830
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
je 0x41d1b1
push dword [ebp - 0x114]
push 0x1a
call fcn.00419b3a
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.00419b3a
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.00419b3a
push dword [ebp - 0x11c]
push 0x22e1
call fcn.00419b3a
push dword [ebp - 0x118]
push 0x22e2
call fcn.00419b3a
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.00419b3a
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.00419b3a
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 0x41d1ea
push dword [ebp - 0x124]
push 0x1af7
call fcn.00419b3a
jmp 0x41d200
push 0xffffffffffffffff
push 0x1af7
call fcn.00419b3a
push 0x1c800c
call fcn.00419830
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041dbf5
leave
ret
Function at 0x41d21a
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x408aa4]
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.00419b3a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041dbf5
leave
ret

Function at 0x41d3e3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.004193cd
test eax, eax
je 0x41d406
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00439442
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.0041d76c
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41d496
push edi
call fcn.00419a0b
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x41d448
push 0xffffffffffffffff
push 0x401908
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 0x41d496
push 0xffffffffffffffff
push 0x4089f8
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 0x41d496
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41d496
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x41d496
push 0x1cb247
call fcn.00419830
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x41d5e9
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 0x41d609
push 0x1cb21e
call fcn.00419830
jmp 0x41d769
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x41d620
push 0x1cb21f
call fcn.00419830
jmp 0x41d768
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x41d63f
cmp ebx, 8
je 0x41d63f
cmp ebx, 3
je 0x41d63f
push 0x1cb220
jmp 0x41d73b
cmp dword [eax], esi
je 0x41d64d
push 0x1cb221
call fcn.00419830
cmp dword [edi], esi
je 0x41d65b
push 0x1cb222
call fcn.00419830
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 0x41d742
cmp eax, 0xea
jne 0x41d742
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 0x41d6aa
push 0x1cb240
jmp 0x41d723
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 0x41d6c5
push 0x1cb241
jmp 0x41d723
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x41d6d7
push 0x1cb242
call fcn.00419830
push 2
pop eax
cmp ebx, eax
jne 0x41d6f3
push dword [edi]
mov eax, dword [esi]
call fcn.0041d585
pop ecx
test eax, eax
jne 0x41d767
push 0x1cb243
jmp 0x41d723
cmp ebx, 8
jne 0x41d731
cmp dword [esi], 0
jne 0x41d704
push 0x1cb21c
jmp 0x41d719
push 0x40
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x41d72a
push 0x1cb21d
call fcn.00419830
push 0x1cb244
call fcn.00419830
jmp 0x41d74f
xor ecx, ecx
mov word [eax], cx
jmp 0x41d767
cmp ebx, 3
je 0x41d767
push 0x1cb245
call fcn.00419830
jmp 0x41d767
push 0x1cb223
call fcn.00419830
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x41d75f
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x41d767
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x41d76c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x408aa4]
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 0x41d7e7
push dword [ebp + 8]
push edi
push 0x4089bc
call fcn.00438f05
inc esi
cmp dword [ebp + 0xc], 0
je 0x41d7e7
push edi
call fcn.004394bd
test eax, eax
jne 0x41d7e7
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00419a33
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x4089e4
call fcn.004393d3
lea eax, [ebp - 0x20c]
push eax
call fcn.004394dc
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041dbf5
leave
ret
Function at 0x41d93f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x408aa4]
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 0x41d988
xor eax, eax
jmp 0x41db02
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.00439c13
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 0x41d9ef
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 0x41da9c
test eax, eax
je 0x41da9c
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.00439a9a
test eax, eax
je 0x41da7e
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.00439bce
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x41da84
cmp dword [ebp - 0x41c], 0
jne 0x41da84
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x41d9c9
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x41da9c
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x41daa2
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x41daac
cmp dword [esi], 0xffffffff
jne 0x41dacc
cmp dword [ebp - 0x410], 0
je 0x41dabf
push 0x6b633230
call fcn.00419830
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x41daf2
test ebx, ebx
jne 0x41dadf
mov ebx, 0x407985
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.0041d8e8
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x41dafe
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041dbf5
leave
ret 0x1c
Function at 0x41db37
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 [0x408aa4], eax
je 0x41db59
cmp dword [0x408aa4], ebx
jne 0x41dbf2
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 0x408aa4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x408aa4], esi
test esi, esi
jne 0x41dbc8
mov dword [0x408aa4], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x408aa4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x408aa4]
not eax
mov dword [0x478934], eax
pop esi
pop ebx
leave
ret

Function at 0x41dbf5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408aa4]
jne fcn.0041eaac
ret

Function at 0x41de63
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 0x401888
push 0x80000000
mov dword [ebp - 8], ebx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41df01
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 0x41def7
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x408abc
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41def7
cmp dword [ebp + 8], esi
jne 0x41def7
mov esi, dword [ebp - 0xc]
cmp esi, 3
ja 0x41def7
cmp dword [ebp - 4], ebx
je 0x41dee9
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41def3
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x41df0d
cmp dword [ebp - 4], ebx
je 0x41df01
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x41df0b
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41e28e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x479d24], 0
je 0x41e2a3
mov eax, dword [0x479d28]
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 0x408ba0
push 0x80000001
mov dword [ebp - 4], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e31a
lea eax, [ebp - 8]
push eax
push 0x479d28
push esi
push esi
push dword [0x478938]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41e31a
cmp dword [ebp - 8], 4
jne 0x41e31a
mov esi, dword [0x479d28]
mov byte [0x479d24], 1
cmp dword [ebp - 4], eax
je 0x41e313
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41e3a5
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41e32d
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x408bec
push 0x80000001
call ebx
test eax, eax
jne 0x41e38a
push 4
pop ebx
lea eax, [ebp - 8]
push eax
push 0x479d28
push 0
push 0
push dword [0x478938]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x41e38a
cmp dword [ebp - 8], ebx
jne 0x41e38a
mov edi, dword [0x479d28]
mov byte [0x479d24], 1
cmp dword [ebp - 4], eax
je 0x41e386
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x41e3a5
and dword [0x479d28], 0
cmp dword [ebp - 4], 0
mov byte [0x479d24], 1
je 0x41e3a3
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret