joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417f70
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x417fac
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4180f6
lea eax, [esp + 0x14]
push eax
call fcn.0041a120
push 2
push 0
push 0x61fd38
mov ecx, eax
call fcn.00419090
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00405040
cmp esi, 0xffffffff
je 0x418030
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.0041a120
mov esi, eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00419fe0
mov edx, esi
mov ecx, eax
call fcn.00417d10
add esp, 4
lea ecx, [esp + 0x14]
mov bl, al
call fcn.00405040
lea ecx, [esp + 0x2c]
call fcn.00405040
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x41803a
mov eax, dword [edi]
jmp 0x41803c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417f98
test bl, 1
je 0x418074
cmp dword [edi + 0x14], 8
jb 0x41805d
mov ecx, dword [edi]
jmp 0x41805f
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4180f6
test bl, 0x10
jne 0x4180a0
cmp dword [edi + 0x14], 8
jb 0x418081
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 0x61fd40
lea ecx, [esp + 0x18]
call fcn.004050d0
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00417d10
add esp, 4
lea ecx, [esp + 0x14]
test al, al
setne bl
call fcn.00405040
test bl, bl
je 0x4180f6
cmp dword [edi + 0x14], 8
jb 0x4180d7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x44]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x418520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41852e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x418540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x418548
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41855b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x418560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x418642
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x4185b2
xor ecx, ecx
jmp 0x4185cf
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4185c0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00419a20
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4185ea
mov ecx, dword [eax]
jmp 0x4185ec
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00419a20
lea ecx, [esp + 8]
call fcn.0041a500
lea eax, [esp + 8]
cmp esi, eax
je 0x41861a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405b70
lea ecx, [esp + 8]
call fcn.00405040
lea ecx, [esp + 0x20]
call fcn.00405040
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x418770
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x54], ecx
mov ebx, edx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x58], eax
call fcn.00405130
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor esi, esi
nop
lea ecx, [ebp - 0x20]
call fcn.00405130
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00405b70
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.004204c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004066d0
lea ecx, [ebp - 0x50]
call fcn.00405040
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp eax, edx
jne 0x418820
lea ecx, [eax + 1]
cmp ecx, 0x7ffffffe
ja 0x418923
cmp edx, ecx
jae 0x418806
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00406bb0
jmp 0x41881a
test ecx, ecx
jne 0x418820
cmp edx, 8
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
mov word [eax], cx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, 8
lea ecx, [ebp - 0x20]
mov edx, 0x5f
cmovae ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], dx
mov eax, dword [ebp - 0x10]
inc eax
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x64]
call fcn.0042f1d0
cmp dword [ebp - 0x60], 0xffffffff
ja 0x418840
mov edx, dword [ebp - 0x64]
jb 0x41885b
cmp edx, 0xffff7fff
ja 0x418840
and edx, 0x7fff
lea ecx, [ebp - 0x50]
call fcn.004204c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004066d0
lea ecx, [ebp - 0x50]
call fcn.00405040
sub esp, 8
lea eax, [ebp - 0x20]
cmp dword [ebp - 0xc], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
push eax
call fcn.0041a1d0
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x4188b6
push 0xffffffffffffffff
push 0
push eax
call fcn.00405b70
lea ecx, [ebp - 0x50]
call fcn.00405040
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x4188e8
lea ecx, [ebp - 0x20]
call fcn.00405040
inc esi
cmp esi, 0x32
jl 0x4187a0
xor bl, bl
jmp 0x418908
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x38]
cmp eax, ecx
je 0x4188fe
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00405b70
lea ecx, [ebp - 0x20]
call fcn.00405040
mov bl, 1
lea ecx, [ebp - 0x38]
call fcn.00405040
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004c0664
int3
Function at 0x418990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x4189bd
mov ebx, dword [edi]
jmp 0x4189bf
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418a01
test al, 0x10
je 0x4189e3
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4189ed
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00419fe0
cmp dword [edi + 0x14], 8
jb 0x418a17
mov ecx, dword [edi]
jmp 0x418a19
mov ecx, edi
push dword [edi + 0x10]
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
push ecx
cmovae eax, dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.0040a720
add esp, 0x10
test eax, eax
jne 0x418a4a
test esi, esi
je 0x418a8e
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x418a94
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00418990
test al, al
je 0x418a8e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x418a81
mov ecx, edi
call fcn.00418540
test al, al
jne 0x418a92
test esi, esi
je 0x418a8e
mov ecx, ebx
call fcn.004251b0
mov dword [esi], eax
xor bl, bl
jmp 0x418a94
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00405040
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x418b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x418b80
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00419020
mov eax, dword [esp + 8]
test eax, eax
je 0x418bd1
cmp eax, 0xffffffff
je 0x418bd1
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418bd1
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x418bd4
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.00418fb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x418cec
cmp eax, 0x104
ja 0x418cec
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004050d0
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00419a20
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x418c84
mov ecx, dword [eax]
jmp 0x418c86
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00419a20
lea ecx, [ebp - 0x240]
call fcn.0041a500
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x418cba
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00405b70
lea ecx, [ebp - 0x240]
call fcn.00405040
lea ecx, [ebp - 0x258]
call fcn.00405040
lea ecx, [ebp - 0x228]
call fcn.00405040
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x418d00
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x418d92
cmp dword [edi + 0x10], 0x104
jae 0x418d92
cmp dword [edi + 0x14], 8
jb 0x418d26
mov eax, dword [edi]
jmp 0x418d28
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x418d30
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x418d46
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x418d5c
mov eax, dword [esi]
jmp 0x418d5e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418d80
shr eax, 4
and al, 1
je 0x418d80
mov edx, edi
mov ecx, esi
call fcn.00418da0
mov bl, al
test bl, bl
jne 0x418d89
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41bfd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xa3c1b4], 0
je 0x41bff9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.004c21d4
mov ecx, eax
call fcn.0041be70
mov dword [0xa3c1b4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004050d0
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c7b0
lea ecx, [ebp - 0x1c]
call fcn.00405040
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x41f660
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0xa3c1b4]
mov ecx, ebx
push 0x62195c
call fcn.0041c330
test al, al
jne 0x41f6ab
push str.vmodule
mov ecx, ebx
call fcn.0041c330
test al, al
je 0x41f73b
cmp dword [0xa3c1b8], 0
je 0x41f6c2
cmp byte [0xa3c2e8], 0
jne 0x41f7f9
int3
mov eax, dword [0xa3c1d4]
push 0x10
mov dword [0xa3c1b8], eax
call fcn.004c21d4
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x62195c
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041c3e0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041c3e0
push eax
mov ecx, esi
call fcn.00428450
lea ecx, [esp + 0x1c]
mov dword [0xa3c1d4], eax
call fcn.004051e0
lea ecx, [esp + 0x34]
call fcn.004051e0
mov eax, dword [edi]
mov dword [0xa271ac], eax
test al, 1
jne 0x41f75a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov eax, dword [0xa3c1cc]
test eax, eax
je 0x41f774
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xa3c1cc], 0
mov edx, dword [0xa3c1d0]
test edx, edx
jne 0x41f797
push 0x18
call fcn.004c21d4
add esp, 4
mov ecx, eax
call fcn.00405130
mov edx, eax
mov dword [0xa3c1d0], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41f7a4
xor ecx, ecx
jmp 0x41f7bf
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f7b0
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00405a70
cmp dword [edi + 0xc], 0
jne 0x41f7e2
mov eax, dword [0xa3c1d0]
cmp dword [eax + 0x14], 8
jb 0x41f7db
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041f520
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
int3
Function at 0x41f860
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00420010
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0041b6f0
mov eax, dword [0xa3c1c8]
test eax, eax
je 0x41f8c9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x41f9de
test byte [0xa271ac], 2
je 0x41f8e9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41f8ee
cmp dword [ebx], 2
jl 0x41f92d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.00513a23
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00513d4b
push 2
call fcn.00513a23
add esp, 0x14
push eax
call fcn.005136b8
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0xa271ac], 1
je 0x41f965
call fcn.0041f520
test al, al
je 0x41f965
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0xa3c1cc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x41f9de
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41f999
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0050ac20
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004280c0
add esp, 4
cmp dword [0xa3c1d8], 0
je 0x41f9d4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041b6f0
lea eax, [esp + 0x28]
push eax
call dword [0xa3c1d8]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.004051e0
jmp 0x41f9de
cmp byte [0xa3c2e8], 0
jne 0x41fa21
int3
lea ecx, [esp + 0x10]
call fcn.004051e0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0041a9d0
push esi
mov dword [esi], 0x5fe190
call fcn.004c0f10
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050e303
int3

Function at 0x420bb0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x420bc1
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x420be4
or eax, 0xffffffff
or edx, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 4]
mov eax, dword [esp]
test edx, edx
jg 0x420bfd
jl 0x420bf5
test eax, eax
jae 0x420bfd
or eax, 0xffffffff
mov edx, bind
mov esp, ebp
pop ebp
ret
Function at 0x423d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004c2f10
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x5e7ce0]
mov esi, eax
test esi, esi
jne 0x423ea7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x423e34
cmp word [esp + 0x10], ax
jne 0x423df8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00405a70
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423e00
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405a70
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x423ea2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x423e87
cmp eax, 0x400
ja 0x423e87
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00405a20
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret 8
Function at 0x4267b0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0xa3c280]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x4268ef
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0xa3c570]
test cl, 1
jne 0x426817
rdtsc
or ecx, 1
mov dword [0xa3c568], eax
mov dword [0xa3c570], ecx
mov dword [0xa3c56c], edx
test cl, 2
jne 0x426847
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0xa3c570], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0xa3c578], eax
mov eax, dword [ebp - 0xc]
mov dword [0xa3c57c], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0xa3c578]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0xa3c57c]
call fcn.0053c560
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.0053c5a0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x629bf8]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x4268cd
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0xa3c568]
mov ecx, edi
sbb ebx, dword [0xa3c56c]
mov edx, ebx
call fcn.0053c560
divsd xmm0, qword [ebp - 0x10]
movsd qword [0xa3c280], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x427740
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push 2
mov esi, eax
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.00419020
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4277cb
cmp eax, 0xffffffff
je 0x4277cb
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4277cb
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x4277ea
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x4277b0
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.00418fb0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x4277cd
Function at 0x428220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x42828b
cmp dword [0xa3c588], 0
jne 0x428278
push 0x4c
call fcn.004c21d4
add esp, 4
mov ecx, eax
call fcn.0042bbd0
mov esi, eax
mov edx, 0xa3c588
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x428278
test esi, esi
je 0x428278
lea ecx, [esi + 0x34]
call fcn.004051e0
push esi
call fcn.004c2207
add esp, 4
mov eax, dword [0xa3c588]
cmp dword [eax], 1
jl 0x42828b
mov dword [ebp - 4], 0x10000
jmp 0x42828d
xor ebx, ebx
push 0xc
call fcn.004c21d4
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x428160
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4282d6
push esi
call fcn.004c2207
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4282e5
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret