joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fb80
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cf35
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47fce9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x47fc01
test edx, 0xffff0000
jne 0x47fbe6
movzx eax, dx
lea ecx, [ebp - 0x10]
push eax
call fcn.00429d90
jmp 0x47fc0d
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x47fbf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fbf0
sub ecx, esi
sar ecx, 1
jmp 0x47fc03
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0042a060
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov eax, dword [esi - 0xc]
test eax, eax
je 0x47fcbb
js 0x47fc3c
push 0x5b9804
push esi
call fcn.00561570
add esp, 8
test eax, eax
je 0x47fc3c
sub eax, esi
sar eax, 1
je 0x47fcbb
cmp dword [esi - 0xc], 0
jl 0x47fc5a
push 0x5bc9a4
push esi
call fcn.00561570
add esp, 8
test eax, eax
je 0x47fc5a
sub eax, esi
sar eax, 1
je 0x47fcbb
lea eax, [ebp - 0x10]
push eax
call fcn.0047fa90
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x47fc86
push dword [ebp + 0xc]
push esi
call fcn.00485430
add esp, 8
mov edi, eax
xor ebx, ebx
test edi, edi
setne bl
jmp 0x47fcbd
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x47fcb2
cmp dword [ebp + 0xc], edi
je 0x47fcb2
cmp eax, 2
je 0x47fcb2
cmp eax, 3
je 0x47fcb2
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
test edi, edi
setne bl
jmp 0x47fcbd
xor ebx, ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47fcd5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x80004005
call fcn.00429b60
int3

Function at 0x480440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48045c
pop edi
pop ebx
pop ebp
ret
call fcn.0047e320
test eax, eax
je 0x4804a9
call fcn.00486b40
test eax, eax
je 0x4804a9
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
mov eax, dword [ebp + 0xc]
js 0x48049a
push esi
push eax
push edi
call fcn.004804d0
add esp, 8
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
pop esi
jns 0x4804c3
mov eax, dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
jmp 0x4804b8
push 0
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0047fdb0
mov ebx, eax
add esp, 0x1c
xor eax, eax
test ebx, ebx
pop edi
setne al
pop ebx
pop ebp
ret
Function at 0x480a90
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x480b31
push edi
push 0x24
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x480b2d
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x480aed
cmp eax, 7
jne 0x480b2a
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x480b2a
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
je 0x480b21
push 0x64
call ebx
inc esi
cmp esi, 0x14
jl 0x480b06
mov ebx, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x481010
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x639354]
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, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x48114b
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x48116c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 1
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x48112c
nop
cmp byte [ebp + 0xc], 0
je 0x4810b8
push dword [ebp - 0x234]
call fcn.0047e510
add esp, 4
test eax, eax
jne 0x481117
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4810c1
sub eax, edx
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042a060
test ebx, ebx
je 0x48116c
mov esi, dword [ebp - 0x240]
push ebx
push esi
call fcn.0056b422
add esp, 8
test eax, eax
jne 0x481117
push dword [ebp - 0x234]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4810a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48114b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
int3
Function at 0x4813c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3c50
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48143d
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
test eax, eax
je 0x4814ad
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4814a1
test esi, esi
je 0x48148b
push esi
call edi
mov esi, dword [ebp - 0x220]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x481535
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00560a80
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0047c010
add esp, 0x14
lea eax, [ebp - 0x21c]
push 0x104
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 1
push eax
push 4
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x481517
push esi
call edi
xor esi, esi
mov edx, dword [ebp - 0x224]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x481535
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x48153c
push esi
call 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.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x4862a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4862d1
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4862c0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x486570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a40b0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x639354]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call fcn.00560a80
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4865d0
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x486778
cmp ecx, 0x104
ja 0x48663c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486620
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x486797
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x4866f5
cmp eax, 0x7fffffff
ja 0x4867bc
push eax
lea ecx, [ebp - 0x230]
call fcn.0042e2d0
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x4866d6
push edx
push 0
push edi
call fcn.00560a80
add esp, 0xc
jmp 0x4866e7
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x48670a
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486731
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0042e330
test edi, edi
je 0x48679e
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x48676c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4867c1
push ebx
push edi
call fcn.0055c524
add esp, 8
jmp 0x48679e
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x5b8734
mov ecx, esi
call fcn.0042e330
mov eax, esi
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0042a2c0
call fcn.0056af64
int3
Function at 0x486b40
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x486b9c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x487920
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
jne 0x487aeb
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x487a21
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [edi + 4]
mov dword [edi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi + 0x34]
mov esi, eax
test ecx, ecx
je 0x48797c
cmp ecx, esi
je 0x48797c
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [edi + 0x34], esi
lea esi, [edi + 0x24]
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 0x60], eax
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x28]
mov eax, dword [esi + 8]
sub eax, dword [esi]
push ecx
push eax
push dword [edi + 0x34]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x60]
mov dword [edi + 0x5c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x487a04
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push dword [edi + 0x60]
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esi], eax
mov eax, 1
mov dword [edi + 0x58], esi
pop edi
pop esi
mov dword [ebx], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x18
xor esi, esi
mov dword [edi + 0x58], esi
pop edi
mov dword [ebx], esi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0xf
jne 0x487aeb
cmp dword [ebp + 0x10], 0
jne 0x487acd
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_BeginPaint]
cmp dword [edi + 0x64], 0
mov dword [ebp - 0x4c], eax
je 0x487ac0
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0x50], 0
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0x50]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x487a78
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [edi + 0x68]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x54], 0
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0x54]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x487aa1
mov dword [esi + 8], eax
push 0xcc0020
push 0
push 0
push dword [edi + 0x60]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 0
push 0
push dword [edi + 0x34]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x487b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a420d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x639354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x487ccd
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
push str.125_tKPacket4::ExtractPacket_tGetPacketData__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
mov dword [ebp - 4], 1
call fcn.0046b730
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
add esp, 0x14
push eax
push edi
call fcn.00487ce0
mov edi, eax
push edi
push str.127_tKPacket4::ExtractPacket_tGetPacketData_return:_d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
test edi, edi
je 0x487c86
call fcn.0042e4d0
mov ebx, eax
test ebx, ebx
je 0x487c86
push str.133_tKPacket4::ExtractPacket_tExtract...
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
mov eax, dword [ebx]
add esp, 0x10
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push edi
push ebx
call dword [eax]
xor ecx, ecx
mov edi, eax
test edi, edi
sete cl
push ecx
push str.135_tKPacket4::ExtractPacket_tExtract_return:_d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
test edi, edi
je 0x487c7f
xor edi, edi
jmp 0x487c9f
mov edi, 1
jmp 0x487c88
xor edi, edi
cmp dword [esi - 0xc], 0
je 0x487c95
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x487c9f
mov eax, dword [ebx]
push ebx
call dword [eax + 0x14]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487cb7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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 8
push 0x80004005
call fcn.00429b60
int3
Function at 0x487d80
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00560a80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x487e23
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.210_tKPacket4::LoadImageToMem_tLoadImageToMem_CreateFile_error:_d__path:_ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test edi, edi
jne 0x487e88
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.219_tKPacket4::LoadImageToMem_tCreateFileByMem_CreateFileMapping_error:_d__path:_ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
push dword [esi + 8]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x487eb4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.226_tKPacket4::LoadImageToMem_tCreateFileByMem_MapViewOfFile_error:_d__path:_ws
jmp 0x487e58
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 8]
mov dword [esi + 0xc], ecx
cmp ecx, dword [esi + 8]
ja 0x487e76
mov eax, dword [ecx + edx]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
cmp dword [eax], 0x2e647a7a
jne 0x487e76
lea eax, [ecx + 4]
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], eax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret
Function at 0x487ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], 0x1e00000
mov dword [esi + 0x14], eax
jbe 0x48802d
push 0x5c2cc8
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x10
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 4
call fcn.0042e4d0
mov dword [esi + 0x18], eax
test eax, eax
je 0x488078
push 0
push 0
push esi
push 0x487f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.71_tKPacket4::StartLoadPacket_tLoadProductPacket_CreateThread_return:_d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKPacket4.cpp
push str._INFO_
push 0x641cc8
mov dword [esi + 0x10], eax
call fcn.0046b730
add esp, 0x14
mov eax, 1
cmp dword [esi + 0x10], edi
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4