joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45501b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
xor esi, esi
or ebx, 0xffffffff
cmp dword [edi + 0x28], esi
jle 0x41fa49
test esi, esi
js 0x41fa9b
cmp esi, dword [edi + 0x28]
jge 0x41fa9b
mov eax, dword [edi + 0x24]
lea ebx, [esi*4]
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, dword [edi + 0x28]
jge 0x41fa9b
mov eax, dword [edi + 0x24]
push 0x5c
push dword [ebx + eax]
lea ecx, [eax + ebx]
add ebx, eax
mov dword [ebp - 0x10], ecx
call fcn.00439dde
add esp, 8
test eax, eax
jne 0x41fa00
or eax, 0xffffffff
jmp 0x41fa04
sub eax, dword [ebx]
sar eax, 1
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00411df0
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, eax
call fcn.004111f0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41fa3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [edi + 0x28]
jl 0x41f9b2
mov byte [ebp - 4], 1
lea ecx, [edi + 0x24]
call fcn.0040b7f0
mov byte [ebp - 4], 0
lea ecx, [edi + 4]
call fcn.004202f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi]
sub edx, 0x10
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41fa89
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
push 1
push 0xc000008c
call fcn.0040ce70
int3
Function at 0x420af0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455475
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
test al, al
jne 0x420b36
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [edi], al
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00403950
test eax, eax
je 0x420c58
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [esi + 0x24]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push str.Logger::SetLogFile___s___while_OLD_path_is:_s
push eax
call fcn.004121e0
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00404120
mov byte [ebp - 4], 3
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420bb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x34], 0
je 0x420bff
mov eax, dword [esi + 0x24]
test eax, eax
je 0x420c58
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x420bf6
test dx, dx
je 0x420bf2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x420bf6
add ecx, 4
add eax, 4
test dx, dx
jne 0x420bd0
xor eax, eax
jmp 0x420bfb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x420c0a
push dword [ebp + 8]
lea ecx, [esi + 0x24]
call fcn.00407c70
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x420c26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x18]
test al, al
jne 0x420c44
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x18]
xchg byte [ecx], al
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
push 0x80004005
call fcn.00404020
int3
Function at 0x421cf0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45580b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x478024]
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, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x421ea5
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x421d68
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x421d60
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x421d74
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421dba
xor al, al
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.00438889
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x421e3e
lea ecx, [ebp - 0x21c]
call fcn.00421eb0
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x421df9
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x421df0
movzx eax, word [ecx]
test ax, ax
je 0x421e12
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x421e03
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x421e74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x421e74
cmp word [esi], 0
je 0x421e4d
add esi, 2
cmp word [esi], 0
jne 0x421e44
movzx eax, word [ecx]
test ax, ax
je 0x421e6f
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x421e60
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421e80
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00404040
mov al, 1
jmp 0x421d9c
call fcn.00438a26
int3
Function at 0x4278f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4569a6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x427989
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00427810
mov dword [ebp - 0x18], 0x469e08
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp byte [ebp + 0x14], 0
je 0x42794e
test eax, eax
setne bl
jmp 0x427953
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x469e08
test eax, eax
je 0x427973
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
push 0x5c
push dword [edi]
call fcn.00439dde
mov esi, eax
add esp, 8
mov ebx, 3
test esi, esi
je 0x427a8b
sub esi, dword [edi]
sar esi, 1
js 0x427a8b
push esi
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0040b990
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x10]
mov dl, byte [ebp + 0xc]
call fcn.00427810
mov edi, eax
mov dword [ebp - 0x18], 0x469e08
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x427a4c
lea edx, [esi + 1]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040b990
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov ebx, eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427a4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x427a4f
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x469e08
test edi, edi
je 0x427a6c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x427a8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x427aaa
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4283a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x478024]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4284ea
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x4283e4
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4283d5
xor eax, eax
mov edx, esi
mov word [esi], ax
xor cl, cl
sub esi, 2
xor al, al
xor bl, bl
cmp word [esp + 0x20], 0x5c
jne 0x42840f
cmp word [esp + 0x22], 0x5c
jne 0x42840f
cmp word [esi], 0x5c
mov bl, 1
setne cl
jmp 0x42841e
cmp word [esi], 0x5c
mov edi, 1
movzx eax, al
cmove eax, edi
cmp word [esp + 0x24], 0x5c
lea edi, [esp + 0x24]
je 0x428439
nop word [eax + eax]
add edi, 2
cmp word [edi], 0x5c
jne 0x428430
test cl, cl
jne 0x428443
test al, al
je 0x428458
jmp 0x428450
mov esi, edx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4284bf
cmp word [esi], 0x5c
jne 0x42848d
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
jbe 0x4284a6
cmp word [esi], 0x5c
je 0x4284a6
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x428495
cmp esi, edi
jb 0x4284ea
test bl, bl
jne 0x4284b2
cmp esi, edi
jne 0x4284b5
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x428461
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x14]
ja 0x4284ea
jb 0x4284d3
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x10]
jae 0x4284ea
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00438889
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00438889
mov esp, ebp
pop ebp
ret
Function at 0x428510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456aad
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [edx]
mov edx, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
movlpd qword [ebp - 0x68], xmm0
push eax
push 0
push 0
push dword [ebp + 0x10]
xor eax, eax
movlpd qword [ebp - 0x60], xmm0
push 0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x6c], 0x44
movups xmmword [ebp - 0x28], xmm0
cmp dword [ecx - 0xc], eax
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4285c8
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4285c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4285f5
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4285ec
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4285e9
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x42861f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x14]
xor edx, edx
test eax, eax
mov al, byte [ebp - 0xd]
cmovne ecx, edx
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428dd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x46552c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x428e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x428efa
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x428e8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x428ede
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00417780
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x428ede
cmp dword [ebp - 0x1c], 0
je 0x428ede
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x428ee4
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x428ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x46552c
test eax, eax
je 0x428f1d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438889
mov esp, ebp
pop ebp
ret
Function at 0x429690
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x456de5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], 0x46552c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
nop
push 0
lea eax, [ebp - 0x14]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4297bf
cmp eax, 0x400
jae 0x429850
mov byte [ebp + eax], 0
mov eax, dword [edi]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x429745
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x42975b
call fcn.00403950
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x429846
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x429782
movzx eax, ax
push eax
call fcn.00403ca0
jmp 0x429788
push eax
call fcn.004122b0
mov byte [ebp - 4], 2
mov ecx, edi
mov esi, dword [ebp - 0x10]
push dword [esi - 0xc]
push esi
call fcn.00403530
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x429700
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x429700
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x429803
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411df0
mov byte [ebp - 4], 4
mov ecx, edi
push eax
call fcn.00407c70
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x429803
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x46552c
test ebx, ebx
je 0x429823
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x404]
pop ebp
ret
push 0x80004005
call fcn.00404020
call fcn.00438a26
int3
Function at 0x42acf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45725d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
cmp dword [eax], 0
je 0x42ad53
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x42ad46
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
call dword [edx + 4]
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x42b070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x34], 0x46552c
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x42ae47
mov ebx, dword [esi + 8]
xor ecx, ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp dword [ebx + 4], ecx
jle 0x42adcf
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
nop word [eax + eax]
mov eax, dword [ebx]
mov eax, dword [eax + ecx*4]
add edi, dword [eax + 0x250]
adc edx, dword [eax + 0x254]
inc ecx
cmp ecx, dword [ebx + 4]
jl 0x42adb0
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edx
jmp 0x42addb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov ebx, dword [esi]
xor ecx, ecx
movlpd qword [ebp - 0x2c], xmm0
mov edi, dword [ebp - 0x28]
mov edx, dword [eax + 4]
test edx, edx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x2c]
jle 0x42ae2b
nop word [eax + eax]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x42ae98
cmp eax, dword [ebx + 0x7c]
jge 0x42ae98
shl eax, 5
add eax, dword [ebx + 0x78]
add edx, dword [eax + 0xc]
mov eax, dword [esi + 4]
adc edi, 0
inc ecx
cmp ecx, dword [ebp - 0x18]
jl 0x42ae00
add edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
adc edi, dword [ebp - 0x10]
push edi
push edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x34], 0x46552c
test ebx, ebx
je 0x42ae82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
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
push 1
push 0xc000008c
call fcn.0040ce70
int3
Function at 0x42b6c0
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4573d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0042b230
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x42b77e
push eax
lea ecx, [ebp - 0x14]
call fcn.00417780
mov esi, dword [ebp - 0x14]
test al, al
jne 0x42b731
mov edi, 8
jmp 0x42b786
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42b77e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x465a14
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42b786
cmp dword [ebp - 0x24], 0
je 0x42b786
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x42b770
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42b786
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x42b786
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x42b797
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00438f5b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x14], 0
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