joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f920
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49d8db
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x40fa99
push 6
push ebx
mov dword [esp + 0x1c], vtable.QMTShortCut.0
mov dword [esp + 0x20], vtable.CQMTInitializeCOMThread.0
mov dword [esp + 0x24], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jne 0x40f993
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov ebp, 8
mov dword [esp + 0x244], ebx
cmp dword [esi + 0x18], ebp
jb 0x40f9b9
mov edi, dword [esi + 4]
jmp 0x40f9bc
lea edi, [esi + 4]
lea eax, [esp + 0x14]
call fcn.004712b0
test eax, eax
jl 0x40fa90
push edi
lea eax, [esp + 0x30]
push 0x104
push eax
mov dword [esp + 0x34], 2
call fcn.00480146
add esp, 0xc
cmp dword [esi + 0x30], ebx
jbe 0x40fa0b
cmp dword [esi + 0x34], ebp
jb 0x40f9f7
mov ecx, dword [esi + 0x20]
jmp 0x40f9fa
lea ecx, [esi + 0x20]
lea ebx, [esp + 0x14]
call fcn.00471600
test eax, eax
jl 0x40fa90
cmp dword [esi + 0x4c], 0
jbe 0x40fa2b
cmp dword [esi + 0x50], ebp
jb 0x40fa1b
mov ecx, dword [esi + 0x3c]
jmp 0x40fa1e
lea ecx, [esi + 0x3c]
lea ebx, [esp + 0x14]
call fcn.00471320
test eax, eax
jl 0x40fa90
cmp dword [esi + 0x84], 0
jbe 0x40fa51
cmp dword [esi + 0x88], ebp
jb 0x40fa41
mov ecx, dword [esi + 0x74]
jmp 0x40fa44
lea ecx, [esi + 0x74]
lea ebx, [esp + 0x14]
call fcn.004716f0
test eax, eax
jl 0x40fa90
cmp dword [esi + 0x68], 0
jbe 0x40fa9d
cmp dword [esi + 0x6c], ebp
jb 0x40fa61
mov eax, dword [esi + 0x58]
jmp 0x40fa64
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa9d
cmp dword [esi + 0x6c], ebp
jb 0x40fa79
mov ecx, dword [esi + 0x58]
jmp 0x40fa7c
lea ecx, [esi + 0x58]
mov edx, dword [esi + 0x8c]
push edx
lea ebx, [esp + 0x18]
call fcn.00471500
test eax, eax
jge 0x40faa3
lea ecx, [esp + 0x14]
call fcn.00471240
xor eax, eax
jmp 0x40fae4
push 0
xor ecx, ecx
jmp 0x40fa83
cmp dword [esi + 0xa4], 0
je 0x40facb
cmp dword [esi + 0xa8], ebp
jb 0x40fabc
mov ecx, dword [esi + 0x94]
jmp 0x40fac2
lea ecx, [esi + 0x94]
lea ebx, [esp + 0x14]
call fcn.00471410
lea esi, [esp + 0x14]
call fcn.004717e0
mov ecx, esi
test eax, eax
jl 0x40fa94
call fcn.00471240
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0047cee5
add esp, 0x234
ret
Function at 0x40fb10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49eb9b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe4]
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
mov esi, edx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb7f
push 1
push esi
call fcn.00471a90
add esp, 8
lea edx, [esp + 0x18]
push edx
call fcn.0040f7d0
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xa4], eax
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fba0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x1c]
call fcn.0040fdc0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fbc0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x38]
call fcn.0040fdc0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fbe0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x54]
call fcn.0040fdc0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc00
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x8c]
call fcn.0040fdc0
mov esi, dword [esp + 0x14]
cmp esi, 0x4a9524
jne 0x40fc44
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc30
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
jmp 0x40fc62
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc50
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x70]
call fcn.0040fdc0
mov esi, dword [esp + 0x10]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc74
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0xac]
call fcn.0040fdc0
cmp dword [esp + 0x2c], 0
je 0x40fca6
lea ecx, [esp + 0x18]
call fcn.0040f920
mov edi, eax
jmp 0x40fca8
xor edi, edi
lea esi, [esp + 0x18]
call fcn.0040fce0
mov eax, edi
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0047cee5
add esp, 0xc8
ret 0xc
Function at 0x410670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a05e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov edi, dword [esi + 0x20]
sub eax, edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [esp + 0x30]
fmul st(1), st(0)
fxch st(1)
call fcn.00497300
mov ebx, dword [esi + 0x24]
mov ebp, eax
mov eax, dword [esi + 0x34]
sub eax, ebx
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
add ebp, edi
fmul st(1)
call fcn.00497300
mov ecx, dword [esi + 0x38]
add eax, ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x28]
sub ecx, eax
sub ecx, dword [esi + 0x30]
add ecx, edi
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul st(1)
call fcn.00497300
mov edx, dword [esi + 0x3c]
sub eax, edi
mov edi, dword [esi + 0x2c]
add eax, dword [esi + 0x28]
sub edx, edi
sub edx, dword [esi + 0x34]
mov dword [esp + 0x1c], eax
add edx, ebx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmulp st(1)
call fcn.00497300
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
sub eax, ebx
add eax, edi
add eax, ecx
push eax
mov eax, ecx
push eax
lea ecx, [esp + 0x38]
push ebp
lea ebx, [edx + ebp]
push ecx
call fcn.0041e630
add esp, 0x10
mov dword [esp + 0x28], 0
mov edi, dword [eax]
mov esi, dword [esi + 0x1c]
call fcn.00413620
push edi
push 0x4a9518
add eax, 0x50
push eax
mov ecx, esi
call fcn.00401de0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410786
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x410a80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49e4b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
push 0x4a9af8
lea edi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00401ee0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 8
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00401de0
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x410c40
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eb68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406d60
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x410cfa
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x410cfa
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x410cfa
lea ecx, [esp + 0x14]
call fcn.0046a870
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x410cdb
lea ecx, [esp + 0x14]
call fcn.00406e10
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00410c40
add esp, 4
test eax, eax
je 0x410cbc
push 0
push esi
call edi
test eax, eax
jne 0x410cfa
call ebx
cmp eax, 0xb7
jne 0x410cbc
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x410d1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x410d40
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49d8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x20], esi
call fcn.004820f0
mov edx, dword [0x4c45ac]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4c45ac
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 8]
push ebx
push ecx
push str.__s___s
lea edi, [esp + 0x24]
mov dword [esp + 0x8c], esi
call fcn.004128d0
mov esi, dword [esp + 0x24]
add esp, 0xc
mov edx, 0xa
push esi
mov word [esp + 0x60], dx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
jne 0x410e30
mov edx, dword [ebp + 8]
push ebx
push edx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0x18
jmp 0x410e38
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x410e4d
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x410e5c
push eax
call ebx
mov dword [esp + 0x20], edi
lea eax, [esi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b6878
push 0x4821d0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x410fbe
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x410fbe
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x410fbe
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00410fe1
mov eax, dword [ebp - 0x20]
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 0x411b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
mov dword [esp], 0
test byte [0x4c5acc], al
jne 0x411bc2
or dword [0x4c5acc], eax
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
call edx
add eax, 0x10
push 0x4a0f20
mov dword [0x4c5ac8], eax
call fcn.0047e2d8
add esp, 4
mov eax, dword [0x4c5ac8]
cmp dword [eax - 0xc], 0
jne 0x411c0a
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x411c05
push edi
lea edx, [esp + 8]
mov edi, 0x4c5ac8
call fcn.00407740
mov eax, edi
call fcn.00410c00
push 8
push str.drivers_
push edi
call fcn.00412690
pop edi
mov eax, dword [0x4c5ac8]
add eax, 0xfffffff0
call fcn.00404f50
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0047cee5
add esp, 0x210
ret

Function at 0x411c30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49f14b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], cx
lea edx, [eax + 2]
jmp 0x411ca0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411ca0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
lea esi, [esp + 0x14]
call fcn.0040fdc0
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x411cec
push ebx
mov ecx, 0x4a9434
call fcn.00406d60
cmp dword [esp + 0x28], 8
jb 0x411d95
mov edx, dword [esp + 0x14]
push edx
jmp 0x411d8d
lea esi, [eax - 1]
cmp eax, esi
ja 0x411cf8
call fcn.0047c733
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x411d0b
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x411d2b
cmp ax, 0x2f
je 0x411d2b
push 1
push 0x4a9438
lea eax, [esp + 0x18]
call fcn.00412400
push 7
push 0x4a943c
lea eax, [esp + 0x18]
call fcn.00412400
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x411d49
lea eax, [esp + 0x14]
push eax
call fcn.00410c40
add esp, 4
test eax, eax
jne 0x411d6e
push ebx
mov ecx, 0x4a944c
call fcn.00406d60
cmp dword [esp + 0x28], edi
jb 0x411d95
mov eax, dword [esp + 0x14]
push eax
jmp 0x411d8d
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], edi
jae 0x411d7c
lea ecx, [esp + 0x14]
push ebx
call fcn.00406d60
cmp dword [esp + 0x28], edi
jb 0x411d95
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047ceda
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0047cee5
add esp, 0x238
ret
Function at 0x411dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, eax
mov dword [esp + 0x18], ebx
call fcn.00402130
mov eax, dword [esp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
je 0x411eaa
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x200000
ja 0x411ea3
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [ebp + 1]
sub eax, ecx
or edx, eax
mov edi, ebp
jge 0x411e3a
mov eax, esi
call fcn.00402250
mov ebx, dword [esi]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411e9f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x411e9f
sub edi, eax
add ebx, eax
test edi, edi
jne 0x411e40
mov eax, dword [esp + 0x1c]
mov byte [eax + ebp], 0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x411e87
push ecx
push eax
call fcn.0047e2ef
add esp, 8
test eax, eax
jl 0x411eb6
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x411eb6
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.00402890
int3
Function at 0x411ed0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x49ea6b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x234], eax
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x4c45ac
mov dword [esp + 0x14], ebp
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push ebp
push 2
mov dword [esp + 0x258], ebp
mov dword [esp + 0x1c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x411f7c
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404f50
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41208b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x41208b
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebp
jne 0x411fc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404f50
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jmp 0x411f67
mov ecx, dword [esp + 0x258]
cmp dword [esp + 0x20], ecx
je 0x411fe1
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411fc3
jmp 0x411fe9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x412037
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00404f50
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x250], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41208b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x41208b
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412072
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x20], ecx
je 0x412061
lea edx, [esp + 0x18]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412046
jmp 0x412072
lea edx, [esp + 0x3c]
lea edi, [esp + 0x10]
call fcn.00407740
mov edi, dword [esp + 0x10]
push esi
call ebp
lea eax, [edi - 0x10]
call fcn.00404f50
add eax, 0x10
lea ecx, [esp + 0x10]
mov dword [ebx], eax
call fcn.00406e10
mov eax, ebx
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0047cee5
add esp, 0x244
ret
Function at 0x412950
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x49ea2b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004820f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.00406d60
push edi
push 0x80
push 3
push edi
push 1
mov dword [esp + 0x234], edi
mov ecx, dword [esp + 0x1c]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x412a0d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov ecx, 0x4c5908
call fcn.00472890
add esp, 0xc
jmp 0x412a53
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp eax, 0x100000
jae 0x412a33
push str.the_packet_is_too_small
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
jmp 0x412a53
cmp eax, 0x6400000
jbe 0x412a4e
push str.the_packet_is_too_large
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
jmp 0x412a53
mov edi, 1
mov dword [esp + 0x220], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0047cee5
add esp, 0x21c
ret

Function at 0x412bc0
Capabilities:
Create thread

Disassembly:
push edi
push 0x40
xor edi, edi
call fcn.0047d26c
add esp, 4
test eax, eax
je 0x412bd9
push eax
call fcn.00469030
jmp 0x412bdb
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
je 0x412c29
cmp dword [0x4c57cc], edi
je 0x412bf5
push esi
call fcn.00413100
mov dword [esi + 0x28], eax
pop edi
ret
push 0
push 0
push esi
push 0x4130e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.LoadProductPacket_CreateThread_return:_d
mov ecx, 0x4c5908
mov dword [esi + 0x14], eax
call fcn.00472890
add esp, 8
mov eax, 1
cmp dword [esi + 0x14], edi
jne 0x412c2b
mov eax, edi
pop edi
ret