joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e3c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x46e4a5
cmp word [ebx], 0
je 0x46e4a5
test edi, edi
je 0x46e4a5
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.005336c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x46e439
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46e483
lea ebx, [ebx]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.005347c1
add esp, 8
test eax, eax
jne 0x46e472
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.004a7c00
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46e450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x46e5e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d128
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.0046e3c0
mov edi, dword [ebp - 0x1c]
add esp, 8
cmp edi, dword [ebp - 0x18]
je 0x46e6a8
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x46e651
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp eax, ecx
je 0x46e651
mov edx, dword [edi]
cmp dword [eax], edx
je 0x46e64d
add eax, 4
cmp eax, ecx
jne 0x46e642
cmp eax, ecx
jne 0x46e69d
cmp byte [ebp + 0xc], 0
je 0x46e666
mov eax, dword [edi]
push eax
call fcn.0046c240
add esp, 4
test eax, eax
jne 0x46e69d
mov esi, dword [edi]
push esi
call fcn.0046c240
add esp, 4
test eax, eax
jne 0x46e69d
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46e69d
cmp esi, 0xffffffff
je 0x46e69d
push 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp - 0x18]
jne 0x46e633
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x46e6b5
push edi
call int.0042bfd0
add esp, 4
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 0x46eca0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d20b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5fb61c]
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
xor edi, edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
push 0x2001f
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], edi
call fcn.00438000
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x46ede5
mov esi, dword [ebp - 0x228]
mov dword [ebp - 0x224], edi
cmp esi, edi
je 0x46ed85
cmp dword [esi], edi
je 0x46ed70
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
jne 0x46ed37
mov eax, 1
jmp 0x46edac
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x46ed30
mov ecx, dword [esi]
push edi
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x224]
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call eax
jmp 0x46edac
cmp dword [esi + 4], edi
je 0x46ed30
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x224]
push eax
jmp 0x46ed93
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x224]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x46edda
mov ecx, dword [ebp - 0x230]
xor eax, eax
cmp ecx, edi
je 0x46edbf
push ecx
call ebx
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], edi
cmp eax, edi
je 0x46edeb
jmp 0x46ee8a
mov esi, dword [ebp - 0x230]
jmp 0x46ee8a
mov esi, dword [ebp - 0x230]
push 0x208
lea ecx, [ebp - 0x21a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x21c], ax
call fcn.005336c0
lea edx, [ebp - 0x234]
push edi
push edx
call fcn.0046ebb0
mov ecx, dword [ebp - 0x234]
add esp, 0x14
push 0x104
lea eax, [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 4
lea edx, [ebp - 0x220]
push edx
push 4
push edi
lea eax, [ebp - 0x21c]
push eax
push esi
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, edi
je 0x46ee62
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x230], esi
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov dword [ebp - 0x22c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ee8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
je 0x46ee91
push esi
call ebx
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x46f360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 1
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], 0
test byte [0x5ff528], al
jne 0x46f3b8
or dword [0x5ff528], eax
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
push 0x58f2e0
mov dword [0x5ff524], eax
call fcn.00535252
add esp, 4
mov eax, dword [0x5ff524]
cmp dword [eax - 0xc], 0
jne 0x46f452
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46f44d
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f3e6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, 0x5ff524
call fcn.00422120
mov edx, dword [0x5ff524]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x46f43c
lea ecx, [eax - 1]
test ecx, ecx
js 0x46f474
cmp ecx, eax
jg 0x46f474
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x46f43c
cmp eax, 0x2f
je 0x46f43c
push 0x592324
mov ecx, 0x5ff524
call fcn.004223e0
push 8
push str.drivers_
mov ecx, 0x5ff524
call fcn.00422060
mov eax, dword [0x5ff524]
add eax, 0xfffffff0
push eax
call fcn.00421e00
mov ecx, dword [ebp - 4]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005332ca
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00421960
int3
Function at 0x46f480
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d28b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5fb61c]
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 edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46f5c0
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x23c]
push eax
push ebx
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_Process32FirstW
jmp 0x46f500
cmp byte [ebp + 0xc], 0
je 0x46f519
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0046c240
add esp, 4
test eax, eax
jne 0x46f581
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f522
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x240]
call fcn.00422120
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x46f5e1
mov esi, dword [ebp - 0x240]
push edi
push esi
call fcn.005347c1
add esp, 8
test eax, eax
jne 0x46f581
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x23c]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46f500
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f5c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.005332ca
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00421960
int3
Function at 0x46f8d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d312
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x220], 0
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], edi
call edx
add eax, 0x10
mov dword [edi], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
mov word [ebp - 0x218], ax
call fcn.005336c0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46f9ab
lea edx, [ebp - 0x228]
push edx
push 4
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x46f9a4
mov edx, dword [ebp - 0x21c]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f9b4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00422120
mov eax, 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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x470010
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5779c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x10]
call fcn.00422540
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x470106
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x470106
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x470106
lea ecx, [ebp - 0x10]
push ecx
call fcn.0046e260
mov eax, dword [ebp - 0x10]
add esp, 4
cmp dword [eax - 0xc], 0
jne 0x4700cb
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4700b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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 eax
call fcn.00470010
add esp, 4
test eax, eax
jne 0x4700f4
lea ecx, [ebp - 0x10]
call fcn.00478740
xor eax, eax
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 0
push esi
call edi
test eax, eax
jne 0x470106
call ebx
cmp eax, 0xb7
jne 0x4700d8
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470128
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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 0x470930
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580348
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
xor edi, edi
call fcn.00422540
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4709a1
lea ecx, [eax - 1]
cmp ecx, edi
jl 0x470a26
cmp ecx, eax
jg 0x470a26
movzx eax, word [edx + ecx*2]
cmp eax, 0x5c
je 0x4709a1
cmp eax, 0x2f
je 0x4709a1
push 0x592324
lea ecx, [ebp - 0x10]
call fcn.004223e0
mov edx, dword [ebp - 0x10]
cmp dword [ebp + 0x10], edi
je 0x4709f5
mov ecx, dword [ebp + 0xc]
push ecx
push edx
call fcn.004706e0
add esp, 8
cmp eax, edi
je 0x4709bc
mov edi, 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4709e2
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
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jne 0x4709b7
cmp dword [ebp + 0xc], edi
je 0x4709bc
cmp eax, 2
je 0x4709bc
cmp eax, 3
je 0x4709bc
mov edx, dword [ebp - 0x10]
push 4
push edi
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4709bc
push 0x80070057
call fcn.00421960
int3
Function at 0x471310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
lea ecx, [ebp - 4]
call fcn.00422540
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47137a
mov edx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push ecx
push edx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x473560
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471f30
Function at 0x477040
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
xor ebx, ebx
mov word [ebp - 0x20c], ax
call fcn.005336c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4770e2
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test esi, esi
jne 0x477126
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0x10
jmp 0x477165
mov ecx, dword [edi + 8]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x477160
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0x10
jmp 0x477165
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret

Function at 0x477300
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 0x477333
push str.the_packet_is_too_large
push 0x5ff5f8
call fcn.00477930
add esp, 8
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret 4
call fcn.00421930
mov dword [esi + 0x18], eax
test eax, eax
je 0x477373
push 0
push 0
push esi
push 0x4772f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.LoadProductPacket_CreateThread_return:_d
push 0x5ff5f8
mov dword [esi + 0x10], eax
call fcn.00477930
add esp, 0xc
mov eax, 1
cmp dword [esi + 0x10], edi
jne 0x477375
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x477380
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c5a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5fcb00
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
push ebx
push str.GetPacketData__d
push 0x5ff5f8
mov dword [ebp - 4], edi
call fcn.00477930
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
mov ecx, esi
call fcn.00476f40
mov esi, eax
push esi
push str.GetPacketData_return:_d
push 0x5ff5f8
call fcn.00477930
add esp, 0xc
test esi, esi
je 0x47749f
call fcn.00421930
mov edi, eax
test edi, edi
je 0x47749f
push str.Extract...
push 0x5ff5f8
call fcn.00477930
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov ecx, dword [ecx]
add esp, 8
push 0
push edx
push eax
push esi
push edi
call ecx
xor edx, edx
mov esi, eax
test esi, esi
sete dl
push edx
push str.Extract_return:_d
push 0x5ff5f8
call fcn.00477930
add esp, 0xc
test esi, esi
je 0x477498
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov ebx, 1
jmp 0x4774a2
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x4774b2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x4774be
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
push edi
call edx
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4774e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 8
Function at 0x4776d0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dde8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5fb61c]
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
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x18]
xor ebx, ebx
push ebx
push ecx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4777b5
mov ecx, dword [ebp - 0x18]
xor eax, eax
xor edi, edi
add eax, dword [ebp - 0x14]
adc ecx, edi
mov dword [ebp - 0x38], ecx
cmp eax, 0x80000
jb 0x4777b5
mov eax, dword [esi + 0x18]
sub eax, 0x10
push eax
call fcn.00421e00
add eax, 0x10
add esp, 4
mov dword [ebp - 0x38], eax
push 0x59309c
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00477620
mov edi, dword [esi + 0x18]
mov esi, dword [ebp - 0x38]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4777b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.005332ca
mov esp, ebp
pop ebp
ret