joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b92e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], 0x44d070
mov dword [0x44d070], 0x4437a8
mov dword [0x44d078], ebx
mov dword [0x44d07c], ebx
mov dword [0x44d080], ebx
mov dword [esp + 0x38], ebx
mov dword [0x44d084], 0x4437c8
mov dword [0x44d08c], ebx
mov dword [0x44d088], ebx
mov byte [esp + 0x38], 1
push ebx
push 0x443132
mov ecx, 0x44d094
mov word [0x44d090], bx
mov dword [0x44d0ac], 0xf
mov dword [0x44d0a8], ebx
mov byte [0x44d098], bl
call fcn.00407f10
mov byte [esp + 0x38], 2
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov esi, 7
mov ecx, 0x44bcf4
mov dword [0x44d0b0], 0x443a9c
mov dword [0x44d0d0], esi
mov dword [0x44d0cc], ebx
mov word [0x44d0bc], bx
mov dword [0x44d0ec], esi
mov dword [0x44d0e8], ebx
mov word [0x44d0d8], bx
call edx
add eax, 0x10
mov dword [0x44d2fc], eax
mov dword [0x44d2f8], ebx
mov byte [esp + 0x38], 3
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bcf4
call edx
add eax, 0x10
mov dword [0x44d300], eax
mov dword [0x44d328], esi
mov dword [0x44d324], ebx
mov word [0x44d314], bx
mov dword [0x44d344], esi
mov dword [0x44d340], ebx
mov word [0x44d330], bx
mov byte [esp + 0x38], 6
lea esi, [esp + 0x14]
mov dword [0x44d304], ebx
mov dword [0x44d308], ebx
mov dword [0x44d30c], ebx
call fcn.00414d70
push 0xffffffffffffffff
push ebx
mov ecx, 0x44d310
mov byte [esp + 0x40], 7
call fcn.004079e0
mov byte [esp + 0x38], 6
cmp dword [esp + 0x2c], 8
jb 0x40570c
mov eax, dword [esp + 0x18]
push eax
call fcn.0041c4fe
add esp, 4
mov esi, 0x44d310
call fcn.00413ce0
cmp dword [0x44d324], ebx
je 0x405725
mov edi, esi
call fcn.00413fb0
mov eax, 0x44d070
mov dword [0x44d348], ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x405d50
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x43b48b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
lea esi, [edi + 0x290]
jne 0x405d9d
xor ecx, ecx
jmp 0x405db1
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x405da2
sub ecx, ebx
sar ecx, 1
push eax
mov ebx, ecx
mov eax, esi
call fcn.00401ec0
mov eax, dword [esi]
sub eax, 0x10
call fcn.00401fb0
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x230], 0
cmp dword [ebx - 0xc], 0
jl 0x405dff
push 0x44312c
push ebx
call fcn.0041d5ad
add esp, 8
test eax, eax
je 0x405dff
sub eax, ebx
sar eax, 1
js 0x405dff
mov dword [edi + 0x294], 1
cmp dword [edi + 0x2b4], 0
jne 0x405e5a
push 0x208
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.00420090
add esp, 0xc
lea esi, [esp + 0x14]
call fcn.00416240
test eax, eax
je 0x405e5a
lea eax, [esp + 0x14]
lea esi, [edi + 0x2a0]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405e40
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00408070
cmp dword [edi + 0x2b8], 8
jb 0x405e6b
mov eax, dword [edi + 0x2a4]
jmp 0x405e71
lea eax, [edi + 0x2a4]
push eax
push 0x443270
mov ecx, 0x44cfe0
call fcn.00412bc0
mov edx, dword [edi + 0x294]
push edx
push str.IsSilence:__d
mov ecx, 0x44cfe0
call fcn.00412bc0
mov eax, dword [edi + 0x298]
push eax
push str.SetupOver:__d
mov ecx, 0x44cfe0
call fcn.00412bc0
xor ecx, ecx
add esp, 0x18
cmp dword [edi + 0x2b4], ecx
lea eax, [ebx - 0x10]
setne cl
mov dword [esp + 0x230], 0xffffffff
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ee4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041cb94
add esp, 0x228
ret
Function at 0x4064b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43be58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
add eax, 0x2a0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], 0
call fcn.004079e0
mov ecx, str.pluginsSRepair.dll
lea edx, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00414280
mov eax, dword [esp + 0x10]
mov esi, 8
cmp dword [esp + 0x24], esi
jae 0x40653b
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0041f72d
add esp, 8
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
je 0x4065cd
cmp dword [esp + 0x24], esi
jae 0x406559
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x406594
cmp dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
jae 0x406574
lea eax, [esp + 0x10]
push eax
push str.Load_dll__s__Library_Failed
push 0x44cfe0
call fcn.00412920
add esp, 0xc
cmp dword [esp + 0x24], esi
jb 0x4065fd
mov eax, dword [esp + 0x10]
push eax
jmp 0x4065f5
push str.EraseInstance
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4065bf
push str.EraseInstance
push 0x44cfe0
call fcn.00412920
add esp, 8
push 0x43fc90
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 8
jmp 0x4065ea
cmp dword [esp + 0x24], esi
jae 0x4065d7
lea eax, [esp + 0x10]
push eax
push str.Dll___s__not_find
push 0x44cfe0
call fcn.00412920
add esp, 0xc
cmp dword [esp + 0x24], esi
jb 0x4065fd
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041c4fe
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041cb94
mov esp, ebp
pop ebp
ret 4
Function at 0x408f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43af88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ebx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.004137f0
mov dword [esp + 0x30], 0
cmp dword [eax + 0x18], 8
jb 0x408f58
mov eax, dword [eax + 4]
jmp 0x408f5b
add eax, 4
push edi
mov ecx, eax
call fcn.00401b70
cmp dword [esp + 0x24], 8
jb 0x408f77
mov eax, dword [esp + 0x10]
push eax
call fcn.0041c4fe
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x43c350
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea edi, [esp + 0x18]
call fcn.00408f10
lea eax, [esp + 0x1c]
push eax
mov ecx, str._regsvr32.exe
mov dword [esp + 0x2c], 0
call fcn.00401b70
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, edi
mov byte [esp + 0x30], 1
call fcn.00407410
add esp, 8
mov bl, 3
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409011
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x44bcf4]
mov eax, dword [edx + 0xc]
mov ecx, 0x44bcf4
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x30]
push ecx
push str._u__s___s_
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.00402160
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push edx
call fcn.00409350
mov edi, eax
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4090e0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x43c648
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
call fcn.00405850
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
add eax, 0x14
add ecx, 1
cmp ecx, edx
mov dword [eax + 8], ecx
jle 0x409120
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
call fcn.00405850
mov eax, dword [eax + 0x2d8]
test eax, eax
je 0x409141
push esi
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bcf4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push ebx
push 0x443808
lea edi, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.00402160
add esp, 8
call fcn.00405850
call fcn.00405850
mov eax, dword [eax + 0x2d8]
test eax, eax
mov edi, dword [esp + 0xc]
je 0x4091a4
lea ecx, [esp + 0x10]
push ecx
push 0xc8
push 0
push edi
push 0
push 0x466
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push edi
push 0x44381c
mov ecx, 0x44cfe0
call fcn.00412bc0
mov edx, dword [esp + 0x2c]
add esp, 8
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
add esi, 1
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x409210
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x43c648
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
call fcn.00405850
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
add eax, 0x14
add ecx, 1
cmp ecx, edx
mov dword [eax + 8], ecx
jle 0x409250
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
call fcn.00405850
mov eax, dword [eax + 0x2d8]
test eax, eax
je 0x409271
push esi
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ecx, 0x44bcf4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push str.WIN10Helper
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x443824
lea edi, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00402160
add esp, 0xc
call fcn.00405850
call fcn.00405850
mov eax, dword [eax + 0x2d8]
test eax, eax
mov edi, dword [esp + 0xc]
je 0x4092dd
lea ecx, [esp + 0x10]
push ecx
push 0xc8
push 0
push edi
push 0
push 0x466
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push edi
push 0x44381c
mov ecx, 0x44cfe0
call fcn.00412bc0
add esp, 8
push str.WIN10Helper
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
add esi, 1
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x409350
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43b3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00420090
mov edx, dword [0x44bcf4]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x44bcf4
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
push edx
push str.__s___s
lea edi, [esp + 0x1c]
mov dword [esp + 0x7c], 0
call fcn.00402160
mov edi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
mov word [esp + 0x7c], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40944e
lea eax, [edi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x40946f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea eax, [edi - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x40a6a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x840
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x83c], eax
push esi
xor esi, esi
push 0x208
lea eax, [esp + 0x222]
push esi
push eax
mov word [esp + 0x228], si
call fcn.00420090
add esp, 0xc
push 0x104
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x16]
push esi
push edx
mov word [esp + 0x1c], si
call fcn.00420090
push 0x208
lea eax, [esp + 0x43a]
push esi
push eax
mov word [esp + 0x440], si
call fcn.00420090
push 0x208
lea ecx, [esp + 0x652]
push esi
push ecx
mov word [esp + 0x658], si
call fcn.00420090
lea edx, [esp + 0x44c]
push edx
lea eax, [esp + 0x244]
push eax
lea edx, [esp + 0x660]
lea ecx, [esp + 0x3c]
call fcn.0040a300
xor ecx, ecx
xor eax, eax
add esp, 0x2c
cmp word [esp + 0x10], si
mov edx, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
je 0x40a7a5
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
call fcn.0040a5f0
add esp, 0xc
test eax, eax
jne 0x40a799
lea edx, [esi + 1]
xor ecx, ecx
jmp 0x40a7a5
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x438]
call fcn.00409cd0
add esp, 0x10
call fcn.0040a1f0
mov eax, dword [0x44cd10]
cmp eax, esi
pop esi
je 0x40a7db
mov dword [eax + 0x1c], 0x2710
call fcn.0040a1f0
mov ecx, dword [esp + 0x83c]
xor ecx, esp
mov eax, 1
call fcn.0041cb94
add esp, 0x840
ret

Function at 0x40a840
Capabilities:
Write file on windows

Disassembly:
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a862
call fcn.00402310
ret 4
xor eax, eax
ret 4
Function at 0x40afd0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x43c2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5c]
cmp dword [ebp + 4], 0
je 0x40b10a
lea ecx, [esp + 0x2c]
call fcn.004161a0
lea edi, [esp + 0x2c]
mov dword [esp + 0x54], 0
call fcn.00413fb0
lea esi, [ebp + 8]
push esi
lea ecx, [esp + 0x14]
call fcn.00413670
mov ecx, edi
push ecx
mov ecx, eax
mov byte [esp + 0x58], 1
call fcn.004140b0
mov edi, 8
mov byte [esp + 0x54], 0
cmp dword [esp + 0x28], edi
jb 0x40b062
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c4fe
add esp, 4
cmp dword [esp + 0x44], edi
mov ecx, dword [esp + 0x30]
jae 0x40b070
lea ecx, [esp + 0x30]
cmp dword [esi + 0x18], edi
jb 0x40b07a
mov eax, dword [esi + 4]
jmp 0x40b07d
lea eax, [esi + 4]
push ecx
push eax
push str.Copy_File___s______s_
mov ecx, 0x44cfe0
call fcn.00412bc0
add esp, 0xc
cmp dword [0x44cfe0], 0
jne 0x40b0cb
cmp dword [0x44cfec], 0
mov dword [0x44cfe0], 1
je 0x40b0cb
mov eax, dword [0x44cfe8]
test eax, eax
je 0x40b0bd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x44cfec]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x40b0d9
lea eax, [esp + 0x30]
cmp dword [esi + 0x18], edi
jb 0x40b0e3
mov esi, dword [esi + 4]
jmp 0x40b0e6
add esi, 4
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esp + 0x44], edi
mov dword [ebp + 4], 0
jb 0x40b10a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041c4fe
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0041cb94
add esp, 0x48
ret 4
Function at 0x40b250
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x43b39b
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x644]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x654]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [0x44bcf4]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, 0x44bcf4
mov dword [esp + 0x1c], ebx
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
cmp ebp, edi
mov dword [esp + 0x64c], edi
mov word [esp + 0x230], di
je 0x40b43b
lea eax, [esp + 0x230]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40b43b
mov ecx, dword [0x443aac]
mov dx, word [0x443ab0]
lea ebx, [esp + 0x230]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
mov dword [esp + 0x18], ebx
jmp 0x40b310
mov ax, word [ebx]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
mov word [esp + 0x2c], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40b3e0
push 0xffffffffffffffff
push 0x43fc94
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.0041ded5
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b355
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, 0x104
jae 0x40b3e0
push esi
lea ecx, [esp + 0x2c]
push ecx
push ebp
call fcn.0041e1cb
add esp, 0xc
mov edi, eax
neg edi
sbb edi, edi
inc edi
je 0x40b3e0
lea edx, [ebp + esi*2]
push edx
lea eax, [esp + 0x24]
push eax
push 0x443aa0
lea ecx, [esp + 0x444]
push 0x104
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [esp + 0x44c]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b3b5
sub eax, edx
sar eax, 1
lea edx, [esp + 0x438]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401ec0
mov ebx, dword [esp + 0x18]
jmp 0x40b3e0
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40b3e0
test edi, edi
mov dword [esp + 0x18], ebx
jne 0x40b3fc
cmp word [ebx], di
jne 0x40b310
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401fb0
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x64c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b437
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
jmp 0x40b470
add esi, 0xfffffff0
mov eax, esi
call fcn.00401fb0
add eax, 0x10
mov dword [ebx], eax
mov dword [esp + 0x64c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b46e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, ebx
mov ecx, dword [esp + 0x644]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0041cb94
add esp, 0x63c
ret
Function at 0x40b4a0
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push 0xffffffffffffffff
push 0x43b856
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov eax, dword [esp + 0x474]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b51c
lea ecx, [esp + 0x24]
push ecx
push ebp
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40b520
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40b55b
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp edi, dword [esp + 0x2c]
jne 0x40b540
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0x410
call esi
mov ebx, eax
test ebx, ebx
jne 0x40b585
lea eax, [esp + 0x24]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b526
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0041cb94
add esp, 0x45c
ret 4
mov edx, dword [0x44bcf4]
mov eax, dword [edx + 0xc]
mov ecx, 0x44bcf4
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
xor edi, edi
mov dword [esp + 0x46c], edi
call fcn.00415030
test eax, eax
je 0x40b636
push 0x206
lea ecx, [esp + 0x25a]
push edi
push ecx
mov word [esp + 0x260], di
call fcn.00420090
add esp, 0xc
push 0x104
lea edx, [esp + 0x258]
push edx
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x40b6b3
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b250
mov byte [esp + 0x470], 1
mov ecx, dword [esp + 0x1c]
push ecx
push 0x44381c
mov ecx, 0x44cfe0
call fcn.00412bc0
mov edi, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x18]
call fcn.00401e00
lea ecx, [esp + 0x18]
call fcn.00401c20
jmp 0x40b6b3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x40b65c
mov ecx, 0x105
lea eax, [esp + 0x1c]
call fcn.00401f60
mov esi, dword [esp + 0x1c]
push 0x104
push esi
push edi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp esi, edi
jne 0x40b671
xor eax, eax
jmp 0x40b687
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b676
sub eax, edx
sar eax, 1
js 0x40b6e3
cmp eax, dword [esi - 8]
jg 0x40b6e3
push esi
mov dword [esi - 0xc], eax
push 0x44381c
mov ecx, 0x44cfe0
mov word [esi + eax*2], di
call fcn.00412bc0
mov edi, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x1c]
call fcn.00401e00
add esi, 0xfffffff0
mov dword [esp + 0x46c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b54f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x40b54f
push 0x80070057
call fcn.00401000
int3