joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493680
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da110
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4936c0
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
or edi, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x493706
push str.UninstallDriver_Open_SCM_Failed
push 0x515408
call fcn.0048c0f0
add esp, 8
xor esi, esi
jmp 0x4937ec
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4937e0
push dword [esi + 0x14]
push ecx
call fcn.00493820
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0041cd40
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0041c4b0
mov ebx, dword [ebp - 0x10]
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi + 0x34]
push dword [esi + 0x14]
push str.UninstallDriver_name_s_del_d.
push 0x515408
call fcn.0048c0f0
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x4937cd
call fcn.0041bef0
test eax, eax
je 0x4936b6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.00493160
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x4937b1
mov edx, 1
mov ecx, edi
call fcn.00488ab0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4937cd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
cmp esi, dword [eax]
jne 0x493715
or edi, 0xffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x493808
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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 4
Function at 0x493820
Capabilities:
Continue service
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push str.DeleteServices:_s
push 0x515408
call fcn.0048c0f0
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4938f0
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push str.Stop_Services_result:_d
push 0x515408
call fcn.0048c0f0
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
push edi
call esi
push 0x1f4
mov dword [ebp - 0x1c], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
push dword [ebp - 0x1c]
push str.services_status_after_stop:_d
push 0x515408
call fcn.0048c0f0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x515408
call fcn.0048c0f0
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x515408
call fcn.0048c0f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x4945d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da36b
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x511070]
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, edx
mov dword [ebp - 0x638], ebx
mov edi, ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x640], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x494633
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x634], esi
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x428], ax
test ebx, ebx
je 0x4947c3
lea eax, [ebp - 0x428]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4947c3
mov eax, dword [0x4fbe20]
lea edi, [ebp - 0x428]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ax, word [0x4fbe24]
mov word [ebp - 0x14], ax
nop dword [eax]
mov ax, word [edi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x494772
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004bbb52
lea esi, [ebp - 0x220]
add esp, 0x10
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4946e0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x494772
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x638]
call fcn.004aa351
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
je 0x494772
mov eax, dword [ebp - 0x638]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4efbfc
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x630]
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494750
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.0041cd40
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x494772
test ebx, ebx
jne 0x49478a
cmp word [edi], bx
jne 0x494690
mov esi, dword [ebp - 0x634]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c6e0
mov edi, dword [ebp - 0x63c]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4947ee
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4947ee
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c6e0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4947ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x494810
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da3b6
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x511070]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x458], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x494883
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x494890
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x494a0d
cmp esi, dword [ebp - 0x444]
jne 0x4948b1
push dword [ebp - 0x434]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x4948c8
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x494890
jmp 0x494a01
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4948dd
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x450], esi
mov dword [ebp - 4], 0
call fcn.00488a60
test eax, eax
je 0x494978
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x4949e2
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x454]
call fcn.004945d0
mov byte [ebp - 4], 1
push dword [ebp - 0x454]
push 0x4ef224
push 0x515408
call fcn.0048c0f0
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x454]
add esp, 0xc
push eax
call fcn.0041c740
lea ecx, [ebp - 0x454]
call fcn.0041ce40
jmp 0x4949e2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4949a2
push 0x105
lea ecx, [ebp - 0x450]
call fcn.0041cbd0
mov esi, dword [ebp - 0x450]
push 0x104
push esi
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00422190
push esi
push 0x4ef224
push 0x515408
call fcn.0048c0f0
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
add esp, 0xc
push eax
call fcn.0041c740
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x494a01
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 4
Function at 0x495960
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
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, ecx
cmp dword [edi + 4], 0
je 0x495ab3
lea ecx, [ebp - 0x28]
call fcn.0048a9d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jb 0x4959e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop
cmp cx, word [eax + 0x4eb68c]
je 0x4959e0
add eax, 2
cmp eax, 4
jb 0x4959c0
push 1
push str.0s
lea ecx, [ebp - 0x28]
call fcn.0043f580
lea eax, [ebp - 0x40]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0048c8f0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0048d690
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x495a14
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433850
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x495a29
mov ecx, dword [esi]
jmp 0x495a2b
mov ecx, esi
push eax
push ecx
push str.Copy_File___s______s_
push 0x515408
call fcn.0048c0f0
add esp, 0x10
cmp dword [0x515408], 0
jne 0x495a7a
mov eax, dword [0x515414]
mov dword [0x515408], 1
test eax, eax
je 0x495a7a
mov ecx, dword [0x515410]
test ecx, ecx
je 0x495a71
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x515414]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x495a8d
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], 0
cmp eax, 8
jb 0x495ab3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
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.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4968f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da588
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov ecx, ebx
xor edi, edi
call fcn.0043e280
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
cmp esi, 0xffffffff
je 0x4969e3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0x200000
ja 0x4969dc
lea edx, [eax + 1]
mov dword [ebp - 0x10], edi
mov edi, eax
test edx, edx
jns 0x496978
push 0x80070057
call fcn.0041ce60
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x496993
push edx
mov ecx, ebx
call fcn.0043e3b0
mov eax, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x18], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4969da
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4969da
add ebx, eax
sub edi, eax
jne 0x4969a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push ecx
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00496eb0
mov edi, 1
jmp 0x4969dc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
Function at 0x4970d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xd38], eax
xor bl, bl
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xd3c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x49736a
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x4fa0d0
push 0xff
push eax
call fcn.00498a60
add esp, 0x10
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x497360
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd0c]
movq qword [ebp - 0xd30], xmm0
push 0
push eax
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd2c], 0
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x497353
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0xcfc]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00497380
lea eax, [ebp - 0x30c]
push eax
push 0
push dword [ebp - 0xcf8]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00497380
lea eax, [ebp - 0x10c]
push eax
push 1
push dword [ebp - 0xcf4]
lea eax, [ebp - 0xd0c]
push eax
call fcn.00497380
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.004ba51a
add esp, 4
test eax, eax
jne 0x49729b
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.004ba51a
add esp, 4
test eax, eax
je 0x497359
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.00438a50
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.0046e030
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x4972d7
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.004339b0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.00438a50
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.0046e030
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x497313
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.004339b0
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.00438a50
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.0046e030
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x49734f
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.004339b0
mov bl, 1
jmp 0x497359
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 1
jl 0x497105
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x497510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da678
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x497552
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x497579
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00498a30
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00498a30
mov dword [ebx], eax
mov byte [ebp - 4], 3
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4975d9
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 4
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4975fd
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 5
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x497621
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x497645
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
call fcn.004ae35d
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
mov dword [esi], eax
call fcn.00497ab0
mov ecx, esi
call fcn.00497c80
push dword [esi + 0x24]
lea eax, [esi + 4]
mov ecx, esi
push eax
push edi
call fcn.00497e90
push dword [esi + 0x28]
lea eax, [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.00497e90
push edi
call fcn.00497a40
push ebx
mov dword [esi + 0xc], eax
call fcn.00497a40
mov dword [esi + 0x10], 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
Function at 0x4976f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d65b0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebx + 0x30]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x497735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x2c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49774f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x28]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x497769
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x24]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x497783
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00498990
push dword [ebx + 0x1c]
call fcn.004a4746
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00498990
push dword [ebx + 0x14]
call fcn.004a4746
mov edx, dword [ebx + 8]
add esp, 4
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4977d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 4]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4977ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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 0x4995e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x854], ecx
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x640]
push 0x20a
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x850]
push 0x20a
push 0
push eax
call fcn.004a73c0
add esp, 0xc
lea eax, [ebp - 0x850]
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0048a1c0
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x85c], edi
add esp, 8
mov dword [ebp - 0xc], ebx
mov esi, 1
mov dword [ebp - 0x858], esi
cmp ax, word [ebp - 0x220]
je 0x4996e0
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x85c]
lea ecx, [ebp - 0x858]
call fcn.00496c90
add esp, 0xc
test al, al
je 0x4996e0
mov esi, dword [ebp - 0x858]
mov edi, dword [ebp - 0x85c]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x854]
test edx, edx
jne 0x4996ee
xor ecx, ecx
jmp 0x499713
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x854], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499700
sub ecx, dword [ebp - 0x854]
sar ecx, 1
push ecx
push edx
mov ecx, 0x515458
call fcn.0041cd40
sub esp, 0x14
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x430]
push eax
lea edx, [ebp - 0x640]
call fcn.00498fd0
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.00499540
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x854]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x854], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call ebx
mov eax, dword [0x515348]
test eax, eax
je 0x499792
mov dword [eax + 0x1c], 0x2710
push fcn.00499540
call esi
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret