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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x482658
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4451e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4452fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4451fd
mov eax, 0xffffffc7
jmp 0x4452fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44520e
cmp dword [esi + 8], eax
jne 0x4451fd
cmp dword [esi + 8], eax
jne 0x445227
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x445227
mov eax, 0xffffffc7
jmp 0x4452fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44523b
push eax
mov ecx, ebx
call fcn.004449e0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401080
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44526c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004010a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00444150
test eax, eax
mov dword [esp + 0x38], eax
je 0x44529f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ebe3c
call fcn.00401280
mov eax, dword [esp + 0x38]
jmp 0x4452fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00445010
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4452e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00445030
mov esi, eax
test esi, esi
jne 0x445313
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00445010
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4452b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ebe3c
call fcn.00401280
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ebe3c
call fcn.00401280
mov eax, esi
jmp 0x4452fe
Function at 0x448040
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448073
push esi
call fcn.00456180
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44806c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4480f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4480e2
mov eax, dword [esi + 8]
test eax, eax
je 0x448097
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4480de
cmp eax, 2
je 0x4480e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44808a
cmp eax, 3
je 0x4480bd
cmp eax, 1
jne 0x44808a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44808a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44808a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448120
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448108
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448120
add esp, 4
pop esi
ret

Function at 0x448990
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4489b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4489b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4489b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x474d5e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x474d96
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00477946
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047791e
jmp 0x474da2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476453
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476495
call fcn.0047d9fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476495
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47648c
xor eax, eax
jmp 0x47649d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004764a3
pop edi
pop esi
pop ebx
ret 4
Function at 0x47e0b9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e0e7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e105
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e01f
jmp 0x47e105
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e105
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e01f
test edi, edi
mov eax, edi
jne 0x47e0ef
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403540
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
mov esi, ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x10]
sub eax, dword [esp + 0xc]
add ecx, dword [esp + 0x18]
pop edi
mov dword [esi + 0x1214], eax
mov dword [esi + 0x1218], ecx
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4035c0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
push 0
mov ebp, ecx
push 0x1a
lea ebx, [ebp + 0x1008]
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4035f2
mov eax, dword [0x46baac]
mov dword [edi], eax
lea eax, [ebp + 0x71c]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403610
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403622
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403643
mov ecx, dword [0x46baac]
lea eax, [ebp + 0x780]
mov dword [edi], ecx
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403660
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403672
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403693
mov edx, dword [0x46baac]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov dword [edi], edx
call esi
test eax, eax
jne 0x4036c7
mov ecx, dword [0x4865c8]
push ebx
call fcn.00415090
mov ecx, eax
call fcn.00412f70
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.0044d9b0
lea edx, [esp + 0x1c]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4036f0
lea eax, [esp + 0x10]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403706
mov ecx, dword [str.Config_]
mov edx, dword [0x46baa0]
mov dword [eax], ecx
mov ecx, dword [0x46baa4]
mov dword [eax + 4], edx
mov edx, dword [0x46baa8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x40375a
lea ecx, [esp]
push ecx
mov ecx, dword [0x4865c8]
call fcn.00415090
mov ecx, eax
call fcn.00412f70
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044d5bb
add esp, 0x20c
ret
Function at 0x403780
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.0044d9b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x4037f2
mov eax, dword [esp + 8]
test eax, eax
je 0x4037ce
cmp eax, 1
jne 0x4037f2
cmp byte [esp + 0x11a], 1
jne 0x4037f2
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0044d5bb
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.0044d5bb
add esp, 0x120
ret

Function at 0x403990
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
push 0x206
lea eax, [esp + 0x21a]
push 0
push eax
mov edi, ecx
mov word [esp + 0x220], 0
call fcn.0044d9b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x214]
push 0x5c
push edx
call fcn.0044da2a
lea ebx, [edi + 0xe00]
lea esi, [eax + 2]
mov edx, ebx
add esp, 8
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403a00
push ebx
call fcn.0044dc42
lea eax, [esp + 0x218]
lea edx, [edi + 0xbf8]
mov ecx, eax
add esp, 4
mov word [esi], 0
sub edx, ecx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403a30
push 0x206
lea edx, [esp + 0x12]
push 0
push edx
mov word [esp + 0x18], cx
call fcn.0044d9b0
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x214]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x403a60
lea eax, [esp + 0xc]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403a80
mov ecx, dword [str.SoftApp.ini]
mov edx, dword [0x46bb2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [eax], ecx
mov ecx, dword [0x46bb30]
mov dword [eax + 4], edx
mov edx, dword [0x46bb34]
mov dword [eax + 8], ecx
mov ecx, dword [0x46bb38]
mov dword [eax + 0xc], edx
mov edx, dword [0x46bb3c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0xc]
push eax
push 0x104
lea ecx, [edi + 0x104]
push ecx
push 0x46bb24
push str.ByName
push 0x46bb00
call esi
lea edx, [esp + 0xc]
push edx
push 0x104
lea eax, [edi + 0x514]
push eax
push 0x46bb24
push str.SoftName
push str.AppInfo
call esi
lea ecx, [esp + 0xc]
push ecx
push 0x104
lea edx, [edi + 0x71c]
push edx
push 0x46bb24
push str.CompanyPath
push str.AppInfo
call esi
lea eax, [esp + 0xc]
push eax
push 0x104
add edi, 0x780
push edi
push 0x46bb24
push 0x46bab0
push str.AppInfo
call esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044d5bb
add esp, 0x414
ret
Function at 0x406310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406329
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406364
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406360
lea ebx, [ebx]
cmp esi, eax
jae 0x406364
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406350
cmp esi, eax
jb 0x40636a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40b531
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
push edi
xor edi, edi
cmp eax, edi
je 0x40b560
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x40b576
cmp eax, 0xffffffff
je 0x40b576
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x100]
cmp eax, edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0xb0], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x18], edi
je 0x40b5af
cmp eax, 0xffffffff
je 0x40b5af
mov edx, dword [esi + 0xfc]
mov eax, dword [edx + 0x4c]
lea ecx, [esi + 0xfc]
call eax
mov eax, dword [esi + 0x110]
cmp eax, edi
je 0x40b5d4
cmp eax, 0xffffffff
je 0x40b5d4
mov edx, dword [esi + 0x10c]
mov eax, dword [edx + 0x4c]
lea ecx, [esi + 0x10c]
pop edi
pop esi
add esp, 4
jmp eax
pop edi
pop esi
pop ecx
ret
Function at 0x40b990
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
push esi
mov esi, ecx
jne 0x40b9a6
pop esi
mov eax, 1
pop ebx
ret 0xc
mov eax, dword [esp + 0xc]
push edi
lea edi, [esi + 0x6c]
mov ecx, edi
mov dword [esi + 0x64], eax
call fcn.0040b200
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
mov dword [esi + 0x68], ebx
call eax
cmp dword [esi + 0x60], 0
jle 0x40b9f9
push ebp
mov ecx, edi
call fcn.0040b200
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ebp, dword [esi + 0x68]
mov ecx, edi
call eax
mov ebx, dword [esi + 0x60]
cmp ebp, ebx
pop ebp
jle 0x40b9f9
mov ecx, edi
call fcn.0040b200
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
mov dword [esi + 0x68], ebx
call eax
lea edi, [esi + 0xb4]
mov ecx, edi
call fcn.0040b200
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov dword [esi + 0xb0], ecx
mov ecx, edi
call eax
cmp dword [esi + 0x4c], 0
pop edi
je 0x40ba2c
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
push ecx
call edx
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40b520
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x40], eax
je 0x40ba5b
cmp eax, 0xffffffff
jne 0x40b99c
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x40cbd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466910
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4851d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.00435e67
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0043348a
push 0
push 0x9001
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00436297
mov edi, eax
test edi, edi
je 0x40cc72
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x40cc72
mov eax, esi
cdq
push edx
push eax
lea ecx, [ebp - 0x34]
call fcn.00435d28
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x34]
call fcn.00435c00
add esi, 0xfffffffc
cmp eax, esi
mov dword [ebp - 0x20], edx
jne 0x40cc72
push 4
add ebx, 0x48
push ebx
lea ecx, [ebp - 0x34]
call fcn.00435bb5
mov dword [ebp - 4], 1
jmp 0x40cc96
mov byte [ebp - 4], 0
call fcn.004334a0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40ccb3
cmp eax, 0xffffffff
je 0x40ccb3
lea ecx, [ebp - 0x34]
call fcn.00435e05
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.00435f63
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 8
Function at 0x40cde0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x466948
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4851d0]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.00435e67
cmp dword [ebp + 0x238], ebx
mov dword [ebp - 4], ebx
je 0x40ce77
mov ecx, dword [0x4865c8]
call fcn.00413670
mov ecx, eax
call fcn.004150c0
mov ecx, eax
call fcn.0041a3f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00435f63
xor eax, eax
jmp 0x40cfd4
mov ecx, dword [esi + 0x3c]
call fcn.0040af10
mov ecx, dword [esi + 0x3c]
mov edi, eax
call fcn.0040afa0
cmp edi, ebx
mov dword [ebp - 0x18], eax
je 0x40cf06
cmp eax, ebx
jle 0x40cf06
lea ecx, [ebp - 0x34]
call fcn.0043348a
mov eax, dword [esi + 0x1c]
push ebx
push 0xb042
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00436297
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00435d28
mov edi, 1
mov dword [ebp - 4], edi
jmp 0x40cee2
mov byte [ebp - 4], bl
call fcn.004334a0
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x40cefe
cmp eax, 0xffffffff
je 0x40cefe
lea ecx, [ebp - 0x2c]
call fcn.00435e05
cmp edi, ebx
je 0x40ce61
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.0043348a
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.00435b2f
mov edi, 1
mov dword [ebp - 4], 4
jmp 0x40cf57
mov byte [ebp - 4], bl
call fcn.004334a0
cmp edi, ebx
je 0x40ce61
mov eax, dword [esi + 0x18]
lea ecx, [ebp]
push ecx
push eax
call fcn.00436607
test eax, eax
je 0x40ce61
mov ecx, dword [esi + 0x3c]
call fcn.0040b510
mov esi, dword [esi + 0x18]
mov dword [ebp + 0xc], edx
lea edx, [ebp]
push edx
push esi
mov dword [ebp + 8], eax
mov byte [ebp + 0x20], bl
call fcn.004367fc
mov ecx, dword [0x4865c8]
call fcn.00413670
mov ecx, eax
call fcn.004150c0
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00418980
mov ecx, esi
call fcn.0041af90
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00435f63
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 + 0x22c]
xor ecx, ebp
call fcn.0044d5bb
add ebp, 0x230
mov esp, ebp
pop ebp
ret 4
Function at 0x40d390
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4669f5
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4851d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004336e6
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d3d7
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], edi
lea ebp, [esi + 4]
call fcn.004336e6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d406
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x20], 1
lea ebx, [esi + 8]
call fcn.004336e6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d437
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x20], 2
call fcn.004336e6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d464
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x20], 3
call fcn.004336e6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d492
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x20], 4
call fcn.004336e6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40d4c0
push 0x80004005
call fcn.004062f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x50]
mov byte [esp + 0x20], 5
call fcn.0040b170
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 6
call fcn.0040b170
push edi
push 0x46bb24
mov ecx, esi
mov byte [esp + 0x28], 7
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x2c], edi
call fcn.004069c0
push edi
push 0x46bb24
mov ecx, ebp
call fcn.004069c0
push edi
push 0x46bb24
mov ecx, ebx
call fcn.004069c0
push edi
push edi
push 1
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x10], 0xa
mov dword [esi + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
mov eax, esi
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 0x40d704
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x3c]
test ecx, ecx
push edi
je 0x40d714
call fcn.0040b530
cmp dword [esi + 0x40], 0
je 0x40d73b
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x40d73b
xor ebx, ebx
mov ecx, dword [esi + 0x40]
add ecx, ebx
call fcn.0040b530
add edi, 1
add ebx, 0x11c
cmp edi, dword [esi + 0x10]
jl 0x40d723
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40d76c
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x28], 0
mov esi, dword [esi + 0x38]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x40d77c
call fcn.0044d026
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40d789
call fcn.0044d026
push edi
push esi
push ebx
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040d2f0
pop edi
pop esi
pop ebx
add esp, 8
ret