joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4fad60]
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
push str.53B20FDC_4FC2_454F_A5DA_5FD63352A698
push 0
push 1
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
call esi
push str.3D4D5952_0860_4730_B8FD_665FF38D6DF1
push 0
push 1
mov edi, eax
push 0
mov dword [ebp - 0x68], edi
call esi
push str.26142993_7E66_49BC_B3B6_1407026BD513
push 0xa00000
push 0
push 4
push 0
push 0xffffffffffffffff
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x6c], esi
test edi, edi
je 0x406f23
test ebx, ebx
je 0x406f23
test esi, esi
je 0x406f23
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp dword [ebp + 0x1c], 8
mov esi, dword [ebp + 8]
jae 0x406e20
lea esi, [ebp + 8]
mov edi, eax
mov ecx, 0x38
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov esi, dword [ebp - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x6c]
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [ebp - 0x48]
call fcn.00403fb0
mov eax, 0x4ddd98
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403fb0
mov eax, 0x4ddd9c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00403fb0
push ebx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 0x64]
mov esi, 8
cmp dword [ebp - 0x50], esi
jae 0x406ead
lea eax, [ebp - 0x64]
mov edi, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.00408eb0
test eax, eax
jne 0x406ee7
lea ecx, [ebp - 0x2c]
call fcn.00404690
lea ecx, [ebp - 0x64]
call fcn.00404690
lea ecx, [ebp - 0x48]
call fcn.00404690
lea ecx, [ebp + 8]
call fcn.00404690
mov eax, 1
jmp 0x406f49
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x406ef2
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.00408eb0
lea ecx, [ebp - 0x2c]
call fcn.00404690
lea ecx, [ebp - 0x64]
call fcn.00404690
lea ecx, [ebp - 0x48]
call fcn.00404690
lea ecx, [ebp + 8]
call fcn.00404690
jmp 0x406f47
push 0x4ddd78
mov ecx, 0x503bc8
call fcn.004124a0
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x406f47
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
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.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x409820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push edi
lea ecx, [eax + 0xc]
mov edi, 8
cmp dword [ecx + 0x14], edi
jb 0x409839
mov ecx, dword [ecx]
lea edx, [ebp - 4]
push edx
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 4]
or edx, 1
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409870
cmp dword [ebp + 0x20], edi
jb 0x409866
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00490a16
add esp, 4
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], 1
cmp dword [ebp + 0x20], edi
jae 0x409882
lea eax, [ebp + 0xc]
push esi
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4098c4
cmp dword [ebp + 0x20], edi
jb 0x4098b9
mov edx, dword [ebp + 0xc]
push edx
call fcn.00490a16
add esp, 4
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 0x20
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x20], edi
jb 0x4098d8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00490a16
add esp, 4
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4098f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x409909
mov eax, dword [eax]
mov edx, dword [esi + 0x28]
lea ecx, [ebp - 4]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi], eax
test eax, eax
je 0x409942
cmp dword [ebp + 0x1c], edi
jb 0x4099a9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], 1
cmp dword [ebp + 0x1c], edi
jae 0x409954
lea eax, [ebp + 8]
push 0
push 0
lea edx, [ebp - 8]
push edx
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
jne 0x409998
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x1c], edi
jb 0x40998e
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], edi
jb 0x4099a9
mov eax, dword [ebp + 8]
push eax
call fcn.00490a16
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40a510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c13b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0xc]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x40a551
mov eax, dword [eax]
mov edx, dword [ebx + 0x28]
lea ecx, [ebp - 0x10]
push ecx
or edx, 0x20006
push edx
push 0
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a5bb
cmp dword [ebp + 0x1c], esi
jb 0x40a581
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x40a5a6
mov eax, dword [ebp + 0x24]
push eax
call fcn.00490a16
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x38
mov eax, dword [ebp + 0x34]
mov edi, eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d7af
mov esi, eax
lea eax, [edi + edi + 2]
push eax
push 0
push esi
call fcn.00497ad0
mov eax, dword [ebp + 0x24]
mov edi, 8
add esp, 0x10
cmp dword [ebp + 0x38], edi
jae 0x40a5f9
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
lea edx, [ecx + ecx]
push edx
push eax
push esi
call fcn.00498770
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a610
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x1c], edi
jae 0x40a62a
lea ecx, [ebp + 8]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a647
xor edi, edi
jmp 0x40a64a
mov edi, dword [ebp - 0x14]
cmp dword [ebx + 8], 0
jne 0x40a65a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00491285
mov esi, 8
add esp, 4
cmp dword [ebp + 0x1c], esi
jb 0x40a683
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x40a6a8
mov eax, dword [ebp + 0x24]
push eax
call fcn.00490a16
add esp, 4
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 0x38
Function at 0x40a9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 0xc]
mov ebx, 8
push edi
mov edi, 1
cmp dword [eax + 0x14], ebx
jb 0x40a9ea
mov eax, dword [eax]
mov edx, dword [esi + 0x28]
lea ecx, [ebp - 4]
push ecx
or edx, 0x20006
push edx
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40aa24
cmp dword [ebp + 0x1c], ebx
jb 0x40aa1a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490a16
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x40aa2f
lea eax, [ebp + 8]
push 4
lea edx, [ebp + 0x24]
push edx
push 4
push 0
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40aa4a
xor edi, edi
cmp dword [esi + 8], 0
jne 0x40aa5a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], ebx
jb 0x40aa75
mov eax, dword [ebp + 8]
push eax
call fcn.00490a16
add esp, 4
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40c630
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x250], esi
cmp esi, 0xffffffff
jne 0x40c672
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24c]
push eax
push esi
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40c6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 8
lea ecx, [ebp - 0x228]
push ecx
call fcn.00491c7a
add esp, 4
xor edx, edx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], dx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c6e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x20]
call fcn.00403e70
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x40c702
mov eax, esi
push eax
push str.iProcManager.exe
call fcn.004925c1
add esp, 8
test eax, eax
jne 0x40c72e
mov eax, dword [ebp - 0x244]
push eax
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40c774
cmp dword [ebp - 0xc], ebx
jb 0x40c73f
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00490a16
add esp, 4
mov esi, dword [ebp - 0x250]
lea edx, [ebp - 0x24c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c6b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
jb 0x40c792
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00490a16
add esp, 4
mov ecx, dword [ebp - 4]
pop ebx
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x40dda0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c88e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x30], esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0xc
mov eax, str.Piencsys.pmc
call fcn.00403e70
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040d810
add esp, 0x20
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 0
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
call fcn.0042eb40
push str.FA1C89DB_5F0C_AF86_1F22_49D15629209B
push 0
push 6
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40de44
push 0
push 0
push 0
push 6
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x30]
push str.FA1C89DB_5F0C_AF86_1F22_49D15629209B
add eax, 4
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
jne 0x40de78
cmp dword [ebp - 0x18], 8
jb 0x40de74
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x40ded0
push 0
push 0
push 0
push 2
push eax
call esi
test eax, eax
jne 0x40de9d
cmp dword [ebp - 0x18], 8
jb 0x40de74
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x40ded0
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
push edx
add eax, 4
push ebx
push eax
call fcn.00498770
push ebx
call fcn.00491285
add esp, 0x10
cmp dword [ebp - 0x18], 8
jb 0x40decb
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490a16
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x411790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3b68
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
mov ecx, 0x505be8
mov dword [ebp - 4], 0
call fcn.00404570
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x503bc8
push 0x411760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x1c], 8
jb 0x4117f9
mov edx, dword [ebp + 8]
push edx
call fcn.00490a16
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x411aa0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6278
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4fad60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4fad60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0xc], ax
push eax
mov eax, 0x4ddda0
lea esi, [esp + 0x10]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
call fcn.00403e70
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], 0
call fcn.00411d80
call fcn.00411e80
push ebx
call fcn.00412010
push 3
mov eax, 0x4e3db8
mov ecx, esi
call fcn.00407570
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411b30
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x10]
call fcn.00407570
push 2
mov eax, 0x4e3dc0
lea ecx, [esp + 0x10]
call fcn.00407570
mov eax, dword [esp + 0xc]
mov esi, 8
cmp dword [esp + 0x20], esi
jae 0x411b6e
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.00410550
cmp dword [esp + 0x20], esi
jb 0x411b89
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00490a16
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4
Function at 0x41a400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x505c60]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
mov dword [ebp - 4], 0
call fcn.004579b0
mov dword [ebp + 8], eax
test eax, eax
je 0x41a4e8
cmp dword [ebp - 4], 0
je 0x41a4e8
push ebx
push esi
push edi
push str.BFCEF64D_F464_5928_A736_19E647D6DEC6
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
test esi, esi
je 0x41a474
push 0
push 0
push 0
push 6
push esi
call edi
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push str.BFCEF64D_F464_5928_A736_19E647D6DEC6
add eax, 4
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x41a4a3
push 0
push 0
push 0
push 2
push eax
call edi
mov esi, eax
test esi, esi
jne 0x41a4ae
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dword [esi], ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [esi + 4]
push edi
push eax
call fcn.00498770
push edi
call fcn.00491285
add esp, 0x10
push esi
call ebx
mov ecx, dword [0x505c60]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x41a630
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9f38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4fad60]
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
mov edi, ecx
mov eax, dword [edi + 0x58]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x38], edi
mov esi, edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov byte [ebp - 0x31], 0
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], cx
mov ebx, 8
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], ebx
jb 0x41a69c
mov eax, dword [esi]
jmp 0x41a69e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a71f
shr eax, 4
not eax
and eax, 1
je 0x41a71f
push 0
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404570
push 5
mov eax, str.._bak
lea ecx, [ebp - 0x30]
call fcn.00407570
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], ebx
jae 0x41a6dc
lea ecx, [ebp - 0x30]
cmp dword [esi + 0x14], ebx
jb 0x41a6e5
mov eax, dword [esi]
jmp 0x41a6e7
mov eax, esi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov byte [ebp - 0x31], bl
test bl, bl
je 0x41a728
push esi
push edi
call fcn.00457cb0
mov bl, al
test bl, bl
je 0x41a728
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41a716
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41a728
push esi
push edi
call fcn.00457cb0
mov bl, al
cmp dword [ebp - 0x1c], 8
jb 0x41a748
mov edx, dword [ebp - 0x30]
push edx
call fcn.00490a16
add esp, 4
jmp 0x41a748
mov eax, dword [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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 - 0x14]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret
Function at 0x423710
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c39f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fad60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x5000
mov dword [ebp - 0x14], ebx
call fcn.0048d7af
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x42377a
push edi
lea eax, [ebp - 0x14]
push eax
push 0x505f98
mov ecx, 0x505da4
call fcn.0043b930
jmp 0x42377a
mov ecx, dword [0x505fa0]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.569FBFF4_8578_009F_5D22_45035F533992
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x4237b7
push ebx
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
push str.569FBFF4_8578_009F_5D22_45035F533992
push esi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
jne 0x4237ed
push edi
call fcn.00491285
add esp, 4
xor al, al
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 ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x4237d0
push esi
push edi
push eax
call fcn.00498770
mov edx, dword [0x505fa0]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.00491285
add esp, 4
mov byte [0x505c88], bl
mov al, 1
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 0x423840
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [0x505fa0]
push ebx
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.569FBFF4_8578_009F_5D22_45035F533992
push 0
push 4
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
je 0x42388c
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov edx, 0x505da4
mov ecx, esi
call fcn.00439c30
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [0x505fa0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
test bl, bl
je 0x4238a6
mov byte [0x505c88], 0
pop esi
pop ebx
pop ecx
ret
Function at 0x425c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x425c48
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x425c7a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x425c76
cmp esi, eax
jae 0x425c7a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x425c68
cmp esi, eax
jb 0x425c80
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x426a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0x5067c8
push 0x426e60
push 0
push 0
mov dword [0x5067d8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret