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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463d96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x486350]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004461f6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00412f56
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a830
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40a83b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x40a8f7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
sub edi, 1
jne 0x40a850
pop edi
test esi, esi
je 0x40a91a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
sub esi, 1
jne 0x40a900
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x40b090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x40b0d3
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b0c5
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x40b0e4
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.00449110
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x40b14b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b146
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x40b178
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x40b15c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.00449110
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x40b18c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40b183
cmp byte [esi + 8], 0
je 0x40b183
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x40b285
cmp byte [edi + 1], 0
je 0x40b27d
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b28b
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x40b2ae
cmp byte [edi + 1], 0
je 0x40b2a7
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x40b2b1
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x40b2c0
mov eax, dword [edi + 0x1c]
mov ebx, 0xffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jae 0x40b2c5
mov ebx, eax
mov dword [ebp - 0x10], eax
push esi
push 0x404
call fcn.0044e2d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b2e3
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp ebx, eax
jbe 0x40b3e5
nop word [eax + eax]
mov edx, dword [ebp - 8]
add eax, 0x400
cmp eax, ebx
mov ecx, eax
mov eax, 0x404
cmova ecx, ebx
sub edx, ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x404
mov dword [ebp - 0x18], edx
mov ebx, ecx
cmova ebx, eax
cmp byte [edi], 0
je 0x40b34b
cmp byte [edi + 1], 0
je 0x40b3e5
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b34e
mov dword [edi + 0x1c], edx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x40b376
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b371
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x40b39f
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x40b389
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.00449110
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x40b3e5
lea eax, [ebx - 3]
test eax, eax
js 0x40b3d0
nop
dec eax
cmp byte [eax + esi], 0x50
jne 0x40b3cc
cmp byte [eax + esi + 1], 0x4b
jne 0x40b3cc
cmp byte [eax + esi + 2], 5
jne 0x40b3cc
cmp byte [eax + esi + 3], 6
je 0x40b3f8
test eax, eax
jns 0x40b3b0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b3e5
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
jb 0x40b300
push esi
call fcn.0044e2c0
mov eax, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0x40b3d3
Function at 0x40bda0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x40bdbb
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
je 0x40bdb0
cmp dword [edi + 0x7c], 0
je 0x40bdcc
call fcn.0040c200
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.0040bb10
add esp, 8
test eax, eax
je 0x40bdf0
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.0044e2d0
mov esi, eax
add esp, 4
test esi, esi
je 0x40be33
push 0x4000
call fcn.0044e2d0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x40be3f
push esi
call fcn.0044e2c0
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov ecx, dword [edi + 0x34]
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x40be9a
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0040ab90
test eax, eax
jne 0x40be9a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40bebd
mov al, byte [edi + 0x39]
jmp 0x40bec0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov ecx, 0xc
xor eax, eax
cmp byte [esi + 0x6c], al
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x40bf3e
nop
mov al, byte [ebx]
test al, al
je 0x40bf3e
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, dword [esi + 0x70]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x47bb08]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47bb08]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x40bef0
mov eax, dword [ebp - 0xc]
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40c326
cmp dword [esi + 4], 0xffffffff
jne 0x40c326
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2b2
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x40c2e9
cmp eax, 0x2f
je 0x40c2e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40c2d6
mov eax, dword [0x47b108]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040aff0
add esp, 8
pop edi
test eax, eax
jne 0x40c308
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.0040b400
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d260
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [0x486350]
xor eax, esp
mov dword [esp + 0xbc], eax
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.0040d170
test eax, eax
je 0x40d3a8
push esi
call fcn.00416d86
add esp, 4
lea eax, [esp + 0x38]
push eax
call fcn.00414b83
add esp, 4
mov ecx, eax
call fcn.0041f4ce
push eax
call fcn.00416e62
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0041f00d
push 0x308
call fcn.004461f6
add esp, 4
mov ecx, eax
call fcn.0040d3c0
mov esi, eax
test esi, esi
je 0x40d3a8
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x96c80000
push 0x47d3ac
push 0
mov ecx, esi
call fcn.0041fcd1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00402df0
cmp dword [esp + 0x1c], 8
lea edx, [esp + 8]
push 0x47b13c
cmovae edx, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push str.showui:
call fcn.004025e0
add esp, 8
mov ecx, eax
push str.false
call fcn.00403a50
mov ecx, dword [esp + 0x34]
mov edi, eax
cmp ecx, 8
jb 0x40d361
inc ecx
push ecx
push dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.004033e0
mov ecx, esi
test edi, edi
jne 0x40d371
push 1
push edi
call fcn.00420214
jmp 0x40d386
call fcn.0041fb7d
push 0x6b
mov ecx, esi
call fcn.004200a6
mov ecx, esi
call fcn.00420139
call fcn.0041620b
call fcn.00417166
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40d3a8
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.004033e0
mov ecx, dword [esp + 0xc4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004461e5
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40dd50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
call fcn.0040d8c0
lea eax, [ebp - 8]
push eax
push 0
push dword [esi + 0x28c]
push 0x405f80
push 0
push 0
call fcn.0044ea3b
add esp, 0x18
mov dword [esi + 0x294], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
push eax
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0
je 0x40dde0
push 0
push 0x47db3c
push 0x47db44
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x40dde0
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 1
mov ecx, esi
call fcn.0041fcab
call fcn.00405490
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
push 0
push 0x401
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ec40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov eax, dword [0x486350]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0
mov ecx, dword [edi + 0x2b0]
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x2b8]
push 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ecx, dword [edi + 0x2dc]
push 0x47d91c
mov eax, dword [ecx]
call dword [eax + 0x2c]
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00449690
mov eax, dword [edi + 0x288]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
lea eax, [ebp - 0x104]
sar ecx, 2
push ecx
push 0x47d928
push eax
call fcn.0040fa50
mov ecx, dword [edi + 0x2e0]
lea edx, [ebp - 0x104]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov eax, dword [edi + 4]
push 0x10
mov dword [0x489418], eax
call fcn.004461f6
mov ecx, dword [edi + 0x288]
mov dword [edi + 0x2a8], eax
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x2a8]
mov eax, dword [edi + 0x304]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x2a8]
mov dword [eax + 8], 0x404a80
mov ecx, dword [edi + 0x2a8]
mov eax, dword [edi + 4]
mov dword [ecx], eax
lea eax, [ebp - 0x50c]
push eax
push 4
push dword [edi + 0x2a8]
push 0x404e00
push 0
push 0
call fcn.0044ea3b
push 0x414
mov dword [edi + 0x2f0], eax
call fcn.004461f6
mov ecx, dword [edi + 0x288]
mov dword [edi + 0x2ac], eax
push 0x402
mov dword [eax + 0x40c], ecx
mov ecx, dword [edi + 0x2ac]
mov eax, dword [edi + 0x304]
push 0
mov dword [ecx + 0x410], eax
mov ecx, dword [edi + 0x2ac]
mov eax, dword [edi + 0x2f0]
mov dword [ecx + 0x408], eax
mov ecx, dword [edi + 0x2ac]
mov eax, dword [edi + 4]
mov dword [ecx], eax
lea eax, [ebp - 0x508]
push eax
call fcn.00449690
add esp, 0x2c
lea eax, [ebp - 0x508]
push 0x201
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x508]
push 0x5c
push eax
call fcn.004489b7
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x508]
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40edd0
sub eax, edx
lea ecx, [ebp - 0x508]
sar eax, 1
inc eax
push ecx
push eax
mov eax, dword [edi + 0x2ac]
add eax, 4
push eax
call fcn.0044e17f
lea eax, [ebp - 0x510]
push eax
push 4
push dword [edi + 0x2ac]
push 0x405640
push 0
push 0
call fcn.0044ea3b
add esp, 0x24
mov dword [edi + 0x2f4], eax
mov ecx, edi
call fcn.0040eb20
push dword [edi + 0x2f4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 0x2f0]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4
Function at 0x40ee50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x486350]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x44
mov dword [esp + 0x10], eax
mov esi, ecx
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00449690
push 0x402
lea eax, [esp + 0x90]
mov dword [esp + 0x30], 0x44
push 0
push eax
call fcn.00449690
add esp, 0x18
lea eax, [esp + 0x80]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
push 0x5c
push eax
call fcn.004489b7
xor ecx, ecx
lea edi, [esp + 0x88]
add esp, 8
add edi, 0xfffffffe
mov word [eax], cx
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40eee0
mov ebx, dword [esi + 0x288]
mov eax, dword [0x47b108]
lea edx, [ebx + 0x2c]
mov dword [edi], eax
cmp dword [edx + 0x14], 8
jb 0x40ef04
mov edx, dword [edx]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40ef06
lea edi, [esp + 0x80]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ef20
mov ecx, edx
shr ecx, 2
push dword [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + 0x80]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6c]
call fcn.0040fa80
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40ef58
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x7c]
mov esi, eax
cmp ecx, 8
jb 0x40ef97
inc ecx
push ecx
push dword [esp + 0x6c]
lea ecx, [esp + 0x70]
call fcn.004033e0
test esi, esi
je 0x40efad
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004461e5
mov esp, ebp
pop ebp
ret 4
Function at 0x40f290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4644d8
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x486350]
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 edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40f2e0
xor ecx, ecx
jmp 0x40f2f4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402fb0
push 4
push str..exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00407760
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f32c
or esi, eax
jmp 0x40f3c6
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40f3b0
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x28]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40f387
test dx, dx
je 0x40f383
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40f387
add ecx, 4
add eax, 4
test dx, dx
jne 0x40f361
xor eax, eax
jmp 0x40f38c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f3a2
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0x2f8]
call fcn.00406460
lea eax, [ebp - 0x254]
push eax
push esi
call ebx
test eax, eax
jne 0x40f350
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x2fc]
sub esi, dword [edi + 0x2f8]
sar esi, 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x40f3db
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004033e0
mov eax, esi
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.004461e5
mov esp, ebp
pop ebp
ret 4

Function at 0x40f400
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x2fc]
sub eax, dword [esi + 0x2f8]
sar eax, 2
test eax, eax
je 0x40f45a
push edi
nop word [eax + eax]
mov eax, dword [esi + 0x2f8]
push dword [eax + ebx*4]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2fc]
inc ebx
sub eax, dword [esi + 0x2f8]
sar eax, 2
cmp ebx, eax
jb 0x40f420
pop edi
mov eax, dword [esi + 0x2f8]
mov dword [esi + 0x2fc], eax
pop esi
pop ebx
ret
Function at 0x410b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4646f0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x486350]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
push eax
sub esp, 8
mov dword [ebp - 4], 0
call fcn.004102c0
add esp, 0xc
test al, al
je 0x410b77
push str.Download_Complete__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, 1
jmp 0x410b79
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 - 0x14]
xor ecx, ebp
call fcn.004461e5
mov esp, ebp
pop ebp
ret