joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a600
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb449
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46a651
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x200
or eax, ecx
jge 0x46a690
push 0x200
mov ecx, esi
call fcn.004214fc
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46a6b4
push ecx
push eax
call fcn.004ad5bb
add esp, 8
test eax, eax
jl 0x46a6d8
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46a6d8
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3

Function at 0x46a6f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccc41
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0049eef3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46a73c
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4de948
mov dword [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46a778
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x46a792
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x46a792
push 0x4de948
call fcn.004ad5da
add esp, 4
push eax
push 0x4de948
mov ecx, esi
call fcn.0042424f
mov dword [ebp - 4], 0
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 0x14], 0x104
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x10], 1
jge 0x46a7cc
push 0x104
mov ecx, esi
call fcn.004214fc
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46a7f0
push ecx
push eax
call fcn.004ad5bb
add esp, 8
test eax, eax
jl 0x46a815
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x46a815
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3
Function at 0x46a870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0180
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
or ebx, 0xffffffff
test byte [0x519414], 1
jne 0x46a940
or dword [0x519414], 1
mov dword [ebp - 4], 0
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46a8d4
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [0x519410], eax
mov ecx, 0x4de948
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x46a913
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a6e27
test eax, eax
je 0x46a930
push esi
push eax
mov ecx, 0x519410
call fcn.00423ccc
jmp 0x46a930
push 0x4de948
call fcn.004ad5da
add esp, 4
push eax
push 0x4de948
mov ecx, 0x519410
call fcn.0042424f
push 0x4d6400
call fcn.004b01f8
add esp, 4
mov dword [ebp - 4], ebx
mov ecx, dword [0x519410]
cmp dword [ecx - 0xc], 0
jne 0x46aa4b
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
sub edx, 0x514
or eax, edx
jge 0x46a97a
push 0x514
mov ecx, 0x519410
call fcn.004214fc
mov ecx, dword [0x519410]
push 0x514
push ecx
push str._USERPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov eax, dword [0x519410]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ad5bb
add esp, 8
test eax, eax
jl 0x46aa72
mov ecx, dword [0x519410]
cmp eax, dword [ecx - 8]
jg 0x46aa72
mov dword [ecx - 0xc], eax
mov edx, dword [0x519410]
xor ecx, ecx
mov word [edx + eax*2], cx
test esi, esi
jbe 0x46a9fb
mov eax, dword [0x519410]
cmp dword [eax - 0xc], ecx
jle 0x46a9fb
push 0x7e
push eax
call fcn.004ae088
add esp, 8
test eax, eax
je 0x46a9fb
sub eax, dword [0x519410]
sar eax, 1
cmp eax, ebx
je 0x46a9fb
push 0x519410
call fcn.00467250
add esp, 4
mov eax, dword [0x519410]
push eax
lea ecx, [ebp - 0x10]
push str.ReplaceUserProfile:_CurProfile_s
push ecx
call fcn.00464a80
mov dword [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.DynamicPaths_Initialize
call fcn.00462e80
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x46aa45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x519410]
lea eax, [ecx - 0x10]
push eax
call fcn.004242c0
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3
Function at 0x46aa80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb410
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x46abf3
push 0x25
push ecx
call fcn.004ae088
add esp, 8
cmp eax, ebx
je 0x46abf3
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x46abf3
call fcn.0049eef3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x46aaf7
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 1
mov byte [ebp - 4], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x514
or eax, ecx
jge 0x46ab2d
push 0x514
lea ecx, [ebp - 0x10]
call fcn.004214fc
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
push 0x514
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ad5bb
add esp, 8
cmp eax, ebx
jl 0x46ac44
cmp eax, dword [esi - 8]
jg 0x46ac44
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jbe 0x46abd4
add esi, 0xfffffff0
push esi
call fcn.004242c0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ab9a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46abc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46abf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004242c0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ac30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3
Function at 0x46ae40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccc00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46ae89
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
je 0x46aefa
lea eax, [edx - 0x10]
lea esi, [ecx - 0x10]
cmp eax, esi
je 0x46af53
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x46aeeb
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x46aeeb
push eax
call fcn.004242c0
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x46aee3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x18], ebx
jmp 0x46af53
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [ebp - 0x18]
call fcn.0042424f
jmp 0x46af53
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x46af1a
push esi
lea ecx, [ebp + 8]
call fcn.004214fc
mov edx, dword [ebp + 8]
lea eax, [esi + 1]
push eax
push edx
call fcn.004b04d5
add esp, 8
test esi, esi
jl 0x46afcf
mov eax, dword [ebp + 8]
cmp esi, dword [eax - 8]
jg 0x46afcf
mov dword [eax - 0xc], esi
mov edx, dword [ebp + 8]
xor ecx, ecx
lea eax, [ebp + 8]
mov word [edx + esi*2], cx
push eax
lea ecx, [ebp - 0x18]
call fcn.00423d5a
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
push edx
push 0x46ac50
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46af95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46afbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3
Function at 0x46dda0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x504390
push 0x4b3ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x7530
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call ebx
test eax, eax
jne 0x46df80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x46de5a
mov edx, dword [ebp - 0x1c]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46de5a
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x46de6e
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x512f18
call fcn.004bd424
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x20]
jae 0x46df74
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x46decc
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x512f18
call fcn.004bd424
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x58]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46de47
cmp dword [ebp - 0x54], edi
je 0x46df48
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x1c]
push edx
push 0x24
lea eax, [ebp - 0x58]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x46dea5
cmp dword [ebp - 0x54], edi
je 0x46df48
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jbe 0x46dee8
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x512f18
call fcn.004bd424
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
call fcn.0046df6c
add ebx, edi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x28]
jmp 0x46de73
mov dword [ebp - 4], 0xfffffffe
call fcn.0046df9a
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e100
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0138
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push edx
push str.MatrixFileIpc.SaveToDisk__:_saving_tree_and_emptying_DataIntegrity_value_____s
push ecx
call fcn.00464a80
add esp, 0xc
call fcn.0046dfb0
add esp, 4
call fcn.0048f680
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1c]
mov edi, dword [ecx]
push ecx
mov ebx, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], ebx
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46e186
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x46e1c6
test edi, 0xffff0000
jne 0x46e1bd
movzx edi, di
push edi
call fcn.004a6e27
test eax, eax
je 0x46e1cf
push edi
push eax
mov ecx, ebx
call fcn.00423ccc
jmp 0x46e1cf
push edi
call fcn.004ad5da
add esp, 4
push eax
push edi
mov ecx, ebx
call fcn.0042424f
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x1c]
call fcn.0046fdd0
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x10]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0x14]
push str.DataIntegrity
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
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 0x478100
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x512f18]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
push esi
push edi
push 0x48
push eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
call fcn.004adf10
add esp, 0xc
mov ecx, 8
mov esi, 0x4fb248
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 0x40
xor edi, edi
lea ecx, [ebp - 0x4c]
push edi
push ecx
call fcn.004adf10
mov ecx, dword [ebp + 8]
mov esi, dword [ecx - 0xc]
add esp, 0xc
cmp dword [ecx - 4], 1
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
jle 0x478178
mov edx, esi
push edx
lea ecx, [ebp + 8]
call fcn.0042522f
mov ecx, dword [ebp + 8]
mov eax, esi
lea esi, [ebp - 0x74]
call fcn.00477dc0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004b17b7
add esp, 8
cmp eax, edi
jl 0x4781e0
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x4781e0
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
push ebx
mov byte [eax + ecx], 0
call fcn.00477ea0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4781d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004acc76
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421000
int3

Function at 0x4781f0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, 0x400000
cmp edi, ebx
ja 0x478216
jb 0x47820e
cmp dword [ebp + 0xc], eax
jae 0x478216
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], edi
jmp 0x478219
mov dword [ebp - 4], ebx
push eax
mov eax, dword [ebp + 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
jne 0x478237
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x478278
mov esi, dword [ecx + 0x3c]
mov eax, esi
cdq
cmp edx, edi
ja 0x478278
jb 0x478252
cmp eax, dword [ebp + 0xc]
jae 0x478278
cmp dword [esi + ecx], 0x4550
jne 0x478278
mov edx, dword [esi + ecx + 0x54]
add edx, dword [esi + ecx + 0x24]
mov eax, dword [ebp + 0x14]
add edx, dword [esi + ecx + 0x20]
add edx, dword [esi + ecx + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], edx
mov ebx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd8c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.PeContainer
call fcn.00462e80
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push str.PeContainer:
push edx
call fcn.004238ab
push 0x4dd494
mov byte [ebp - 4], 1
call fcn.004ad5da
add esp, 0x18
push eax
push 0x4dd494
lea ecx, [ebp - 0x10]
call fcn.004249ab
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478326
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47834c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4788b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
xor edi, edi
push ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edx
mov edx, dword [esi]
push ecx
push edx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x478903
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x478927
or ecx, eax
or eax, eax
jmp 0x47892e
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, edx
push edi
mov edx, ecx
push edx
push eax
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0x10], edi
mov dword [esi + 8], ecx
mov ecx, dword [esi]
setne al
lea eax, [eax + eax + 2]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8