joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100099dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x10009a23
mov dword [ebp - 0x1c], 0x4c
push 0x1001cce8
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10010077
jmp 0x10009a42
mov dword [ebp - 4], 0xffffffff
push 0x10020668
call fcn.10008a80
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10009a61
jmp 0x10009ac0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000885b
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10009a88
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1000863f
add esp, 4
jmp 0x10009ac0
sub esp, 0x848
mov ecx, 0x212
mov esi, str.156.251.17.116
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x10009ab8
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000863f
add esp, 4
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009a42
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x10009a23
mov dword [ebp - 0x1c], 0x4c
push 0x1001cce8
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10010077
jmp 0x10009a42
mov dword [ebp - 4], 0xffffffff
push 0x10020668
call fcn.10008a80
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10009a61
jmp 0x10009ac0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000885b
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10009a88
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1000863f
add esp, 4
jmp 0x10009ac0
sub esp, 0x848
mov ecx, 0x212
mov esi, str.156.251.17.116
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
je 0x10009ab8
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000863f
add esp, 4
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b1be
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a75a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov dword [ebp - 0x68], ecx
push 0
push 0x80
push 3
push 0
push 1
push connect
mov ecx, dword [ebp - 0x68]
call fcn.10002710
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x1000b20d
xor eax, eax
jmp 0x1000b2f3
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002650
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10002650
mov byte [ebp - 4], 1
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
add ecx, 1
push ecx
call fcn.1000fc55
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x38]
mov byte [ecx], 0
lea edx, [ebp - 0x59]
push edx
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002680
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.10007b25
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.100026b0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.1000edd0
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100026b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100026b0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000d970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x28
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000f3b0
add esp, 0xc
mov dword [ebp - 0x24], 0x1000d151
mov ecx, dword [0x1014cb50]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x1014ff20]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
and eax, 0xffff
test eax, eax
jne 0x1000d9d5
push 0
push 0x1014cbdc
push 0x1014cbe4
mov ecx, dword [0x1014cb4c]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x1000db68
push 0
mov edx, dword [0x1014cb50]
push edx
push 0
mov eax, dword [0x1014cb4c]
push eax
mov ecx, dword [0x1014fd3c]
push ecx
mov edx, dword [0x1014fd30]
push edx
mov eax, dword [0x1014fd4c]
push eax
mov ecx, dword [0x1014fd48]
push ecx
push 0x40000
push 0x1014ff84
mov edx, dword [0x1014ff20]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x1014ff04], eax
cmp dword [0x1014ff04], 0
jne 0x1000da4a
push 0
push str.blah
push 0x1014cbfc
mov eax, dword [0x1014cb4c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x1000db68
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [0x1014ff04]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 6
mov eax, dword [0x1014fd3c]
shl eax, 1
sub eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [0x1014fd30]
shl ecx, 1
sub ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
push 0
mov edx, dword [0x1014ff04]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [0x1014fef8], eax
mov eax, dword [0x1014fd3c]
push eax
mov ecx, dword [0x1014fd30]
push ecx
mov edx, dword [0x1014fef8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x1014fefc], eax
mov eax, dword [0x1014fefc]
push eax
mov ecx, dword [0x1014fef8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [0x1014ff00], eax
push 1
mov edx, dword [0x1014ff04]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1000d840
push 0xfffffffffffffffc
mov eax, dword [0x1014cb4c]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [0x1014ff7c], eax
push 0xffffffffffffffec
mov ecx, dword [0x1014ff04]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor eax, 0x80000
push eax
push 0xffffffffffffffec
mov edx, dword [0x1014ff04]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp dword [0x1014fd34], 0
je 0x1000db36
mov eax, dword [0x1014fd38]
push eax
mov ecx, dword [0x1014ff04]
push ecx
call fcn.1000d915
add esp, 8
jmp 0x1000db4a
push 0xff
mov edx, dword [0x1014ff04]
push edx
call fcn.1000d915
add esp, 8
push 0
call fcn.1000d05b
push 0x1000d8d0
push 0x32
push 1
mov eax, dword [0x1014ff04]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42156f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x42b70c]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov edx, dword [esp + 0x20]
lea eax, [esp + 4]
push edx
push 0x42b134
push eax
push 8
push 2
push 1
push ecx
mov dword [esp + 0x30], 1
call fcn.004211bf
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0041b195
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0041b420
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x403890
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x421ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
mov eax, dword [eax]
push ecx
lea ecx, [esp + 8]
push edx
push ecx
push eax
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x403a47
push ebx
push ebp
push esi
push edi
push 0
push 0x89
lea ecx, [esp + 0x40]
call fcn.00401000
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0xa0], 0
mov bl, 1
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0xac]
add eax, 0x186a0
cdq
mov esi, edx
mov edi, eax
cmp ebp, esi
jg 0x4039ff
jl 0x40392d
cmp dword [esp + 0x1c], edi
ja 0x4039ff
mov ecx, dword [esp + 0xa8]
push ecx
lea ecx, [esp + 0x98]
call fcn.0041b50d
lea ecx, [esp + 0x38]
call fcn.00417c56
cmp eax, 1
jne 0x4039fd
mov bl, al
lea edx, [esp + 0x28]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4039ac
lea eax, [esp + 0x94]
push eax
call fcn.004076d0
add esp, 4
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
mov byte [esp + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4039ba
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
jmp 0x4039bc
mov bl, 1
cmp ebp, esi
jl 0x403908
jg 0x4039d0
cmp dword [esp + 0x1c], edi
jbe 0x403908
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x94]
push eax
call fcn.0041b50d
mov al, byte [esp + 0x13]
test al, al
je 0x403908
mov ecx, dword [esp + 0x24]
mov byte [ecx + 0x5c], 1
jmp 0x403908
xor bl, bl
lea ecx, [esp + 0x94]
mov dword [esp + 0xa0], 1
call fcn.0041b420
lea ecx, [esp + 0x38]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00417897
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
add esp, 0x94
ret 8
push 0xa
call fcn.00401b20
mov ecx, dword [esp + 0x8c]
add esp, 4
xor al, al
mov dword fs:[0], ecx
add esp, 0x94
ret 8

Function at 0x403b9b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x42ee90
jmp 0x403b80
push 0xffffffffffffffff
push 0x421acb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x42b70c]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x28]
mov dword [ecx], eax
xor edi, edi
push 0x42ee60
mov dword [esp + 0x18], edi
mov dword [esi], 0x423780
call fcn.0041b55d
mov ecx, dword [esp + 0xc]
mov eax, 5
mov dword [esi + 0x20], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404c50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x421d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x42b70c]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
mov bl, 2
push 0xfde8
push 0xfde8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0041b7ef
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041b83e
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00416459
cmp esi, edi
je 0x404e1b
lea eax, [esp + 0x14]
push 0x5c
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00415f62
push str.msi.dll
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x38], 3
call fcn.0041b669
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x34], 4
call fcn.00407330
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.0041b50d
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
call fcn.0041b420
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.0041b420
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0041b420
mov ecx, dword [esp + 0xc]
push 0x42ee60
push ecx
call fcn.00408d42
add esp, 8
test eax, eax
je 0x404e1b
push 0x2e
lea ecx, [esp + 0x10]
call fcn.0041b886
mov esi, eax
cmp esi, 0xffffffff
je 0x404d96
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.004162e7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 6
call fcn.0041b50d
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0041b420
inc esi
lea ecx, [esp + 0xc]
push esi
push edi
call fcn.00416026
push 0x2e
lea ecx, [esp + 0x10]
call fcn.0041b886
mov esi, eax
cmp esi, 0xffffffff
je 0x404e02
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.004162e7
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x38], 7
call fcn.0041b603
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 8
call fcn.0041b50d
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 7
call fcn.0041b420
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0041b420
inc esi
lea ecx, [esp + 0xc]
push esi
push edi
call fcn.00416026
mov eax, dword [esp + 0x10]
push eax
call fcn.004091fb
mov edi, eax
add esp, 4
cmp edi, 0x64
jge 0x404e1b
lea edi, [edi + edi*4]
shl edi, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.0041b420
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0041b420
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041b420
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x406190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x422028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.0041c515
mov eax, dword [0x42f10c]
mov dword [esp + 0x2c], 0
test eax, eax
mov bl, 1
jne 0x4062d8
mov eax, dword [0x42f0f8]
inc eax
mov dword [0x42f0f8], eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407640
add esp, 8
mov esi, eax
push str.Disk.
lea ecx, [esp + 0x10]
push 0x42f050
push ecx
mov byte [esp + 0x38], bl
call fcn.0041b669
push esi
lea edx, [esp + 0xc]
push eax
push edx
mov byte [esp + 0x38], 2
call fcn.0041b603
push eax
mov ecx, 0x42f044
mov byte [esp + 0x30], 3
call fcn.0041b50d
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 2
call fcn.0041b420
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
call fcn.0041b420
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0041b420
mov eax, dword [0x42f044]
push 0
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0041c627
test eax, eax
jne 0x406299
test bl, bl
je 0x4062d8
mov eax, dword [0x42f104]
xor bl, bl
test eax, eax
je 0x40627d
mov ecx, dword [0x42f0f8]
push 1
push ecx
call eax
add esp, 8
mov bl, al
mov edx, dword [0x42f044]
push 0
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.0041c627
test eax, eax
je 0x40625e
test bl, bl
je 0x4062d8
mov eax, dword [0x42f104]
test eax, eax
je 0x4062b2
mov ecx, dword [0x42f0f8]
push 0
push ecx
call eax
add esp, 8
mov bl, al
lea ecx, [esp + 0x14]
call fcn.0041c921
lea ecx, [esp + 0x14]
mov dword [0x42f10c], eax
mov dword [0x42f110], eax
mov dword [0x42f114], 0
call fcn.0041c842
mov edx, dword [0x42f0f8]
lea eax, [esp + 8]
push edx
push eax
call fcn.00407640
add esp, 8
mov esi, eax
push str.Disk.
lea ecx, [esp + 0x10]
push 0x42f050
push ecx
mov byte [esp + 0x38], 4
call fcn.0041b669
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x38], 5
call fcn.0041b603
push eax
mov ecx, 0x42f044
mov byte [esp + 0x30], 6
call fcn.0041b50d
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.0041b420
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.0041b420
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call fcn.0041b420
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041c56a
mov ecx, dword [esp + 0x24]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x406970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x422120
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x42b70c]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov bl, 3
mov ecx, 0x42f020
mov byte [esp + 0x30], bl
call fcn.00402580
mov edi, 1
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00407640
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call fcn.0041b50d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0041b420
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, 0x42f020
mov dword [0x42f0fc], 0
call fcn.00402470
test al, al
je 0x406afa
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0041b886
inc eax
lea ecx, [esp + 0xc]
push eax
push 0
call fcn.00416026
push 0x2c
lea ecx, [esp + 0x10]
call fcn.0041b886
mov esi, eax
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.004162e7
push eax
lea ecx, [esp + 0x20]
push 0x42f048
push ecx
mov byte [esp + 0x3c], 5
call fcn.0041b603
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 6
call fcn.0041b50d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0041b420
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.0041b420
inc esi
lea ecx, [esp + 0xc]
push esi
push 0
call fcn.00416026
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.0041b50d
mov eax, dword [esp + 0x14]
push eax
call fcn.004091fb
mov edx, dword [0x42f0fc]
lea ecx, [esp + 0x28]
add edx, eax
inc edi
push edi
push ecx
mov dword [0x42f0fc], edx
call fcn.00407640
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0041b50d
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call fcn.0041b420
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, 0x42f020
call fcn.00402470
test al, al
jne 0x406a0d
mov esi, dword [0x42f0fc]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0041b420
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0041b420
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0041b420
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041b420
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x406c90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp]
push ebx
push eax
mov eax, dword [0x42f048]
push ecx
push edx
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x406ccc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
cdq
cmp ecx, edx
jg 0x406cd3
jl 0x406ccc
mov edx, dword [esp + 4]
cmp edx, eax
ja 0x406cd3
xor al, al
pop ebx
add esp, 0x18
ret
mov al, bl
pop ebx
add esp, 0x18
ret
Function at 0x406ed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x422181
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x42b70c]
push ebx
push esi
push edi
mov bl, 1
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x16c]
push 0x42ee60
mov dword [esp + 0x164], 0
mov eax, dword [edi]
push eax
call fcn.00408d42
mov esi, dword [esp + 0x170]
add esp, 8
test eax, eax
jne 0x406f5c
mov eax, dword [esi]
push 0x42ee60
push eax
call fcn.00408d42
add esp, 8
test eax, eax
jne 0x406f5c
mov eax, dword [0x42f160]
test eax, eax
je 0x40701f
cmp eax, 0xffffffff
je 0x40701f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40701f
mov eax, dword [edi]
push 0x42ee60
push eax
call fcn.00408d42
add esp, 8
test eax, eax
mov eax, dword [0x42f160]
je 0x407005
test eax, eax
je 0x406f89
cmp eax, 0xffffffff
je 0x406f89
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x5c
mov ecx, esi
call fcn.00416459
push 0x5c
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00415f62
push edi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x16c], 1
call fcn.0041b603
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call fcn.0041b50d
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 1
call fcn.0041b420
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0
call fcn.0041b420
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x42f160], eax
jne 0x40701f
xor bl, bl
jmp 0x40701f
cmp eax, 0xffffffff
jne 0x40700e
xor bl, bl
jmp 0x40701f
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne bl
push 0x42ee60
mov ecx, edi
call fcn.0041b55d
test bl, bl
je 0x407050
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0041b55d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x170]
shr cl, 4
and cl, 1
mov byte [edx], cl
jmp 0x40706f
mov eax, dword [0x42f160]
test eax, eax
je 0x407065
cmp eax, 0xffffffff
je 0x407065
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [0x42f160], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.0041b420
mov ecx, dword [esp + 0x158]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x407160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4221d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x10]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
or edx, 1
cmp eax, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0x44
mov dword [esp + 0x3c], edx
je 0x4071ba
mov ecx, edx
mov dword [esp + 0x4c], eax
or ch, 1
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [0x42f120], eax
push 0x42ee60
mov dword [0x42f124], eax
push ecx
mov dword [0x42f128], eax
mov dword [0x42f12c], eax
call fcn.00408d42
add esp, 8
test eax, eax
je 0x407238
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x10]
push 0x42f120
mov edi, dword [edx]
push eax
push ecx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push 0xfde8
mov ecx, esi
call fcn.0041b7ef
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407286
lea edx, [esp + 0x6c]
push 0x426fe0
push edx
mov dword [esp + 0x74], 0x42ee60
call fcn.00409136
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x10]
push 0x42f120
mov edi, dword [eax]
push ecx
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push 0xfde8
mov ecx, esi
call fcn.0041b7ef
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407286
lea edx, [esp + 0x6c]
push 0x426fe0
push edx
mov dword [esp + 0x74], 0x42ee60
call fcn.00409136
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041b83e
cmp byte [esp + 0x6c], bl
je 0x407301
mov eax, dword [0x42f120]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push eax
call esi
mov edx, dword [0x42f120]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0xc]
push ecx
push edx
call edi
mov eax, dword [esp + 0xc]
mov ebx, 0x103
cmp eax, ebx
jne 0x4072ea
mov eax, dword [0x42f120]
push 0x1f4
push eax
call esi
mov edx, dword [0x42f120]
lea ecx, [esp + 0xc]
push ecx
push edx
call edi
cmp dword [esp + 0xc], ebx
je 0x4072c9
mov eax, dword [0x42f120]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x42f124]
push ecx
call esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x70]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041b420
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret