joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x400
mov esi, eax
mov dword [esp + 0x14], 1
xor bl, bl
call fcn.004a9d71
push 0x400
mov edi, eax
push 0
push edi
call fcn.004aef60
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebp]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x433e66
mov dword [ebp + 4], eax
mov eax, esi
call fcn.00414690
push edi
call fcn.004ab1bd
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, edi
mov bl, 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433e70
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004018b0
push edi
call fcn.004ab1bd
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 8

Function at 0x434f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca998
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
cmp dword [eax + 0x18], 8
jb 0x434fba
mov eax, dword [eax + 4]
jmp 0x434fbd
add eax, 4
push ecx
push 0x80
push 3
push ecx
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x435024
lea edi, [esp + 0x1c]
lea eax, [esp + 0x18]
call fcn.00440400
mov edi, dword [esp + 0x1c]
call fcn.00401c90
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ecx
je 0x43501d
push ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x435039
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
cmp eax, ecx
jbe 0x435042
mov eax, ecx
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bcd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0730
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x60], ebx
cmp dword [eax + 0x2c], 8
jb 0x43bd14
mov eax, dword [eax + 0x18]
jmp 0x43bd17
add eax, 0x18
push ebx
push 0x80
push 3
push ebx
push 3
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x43bd51
lea edi, [esp + 0x2c]
lea eax, [esp + 0x10]
call fcn.00440400
test al, al
jne 0x43bd6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x2c]
mov edi, ebx
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0x4d809c
call fcn.00401c90
push ebx
mov byte [esp + 0x64], 1
mov esi, dword [esp + 0x28]
push 0
push esi
call fcn.004aef60
add esp, 0xc
test esi, esi
je 0x43bddc
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43bdd3
cmp dword [esp + 0x18], 0
seta al
test al, al
jne 0x43be01
push esi
call fcn.004a970e
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x34]
call fcn.004401e0
mov esi, dword [esp + 0x14]
lea edi, [ebx + 1]
add esi, 0x6c
call fcn.00401c90
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x74]
push edi
push 0
push eax
call fcn.004aef60
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push 0
push eax
push ecx
lea edx, [esp + 0x40]
push edx
mov eax, ebx
call fcn.00440260
test al, al
je 0x43beae
cmp ebx, 0x2b
mov ecx, dword [esi + 0x74]
jb 0x43be59
push ebx
call fcn.0043bee0
test al, al
jne 0x43be85
lea ecx, [esp + 0x1c]
call fcn.00401c60
lea esi, [esp + 0x10]
call fcn.00440350
mov eax, 3
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
call fcn.00401c60
lea esi, [esp + 0x10]
call fcn.00440350
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
call fcn.00401c60
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43c160
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x6c]
push esi
push edi
mov esi, ecx
test esi, esi
mov edi, edx
mov dword [edi], 0
je 0x43c1f0
cmp ebx, 1
jl 0x43c1f0
push 0x58
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004aef60
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
jle 0x43c1e7
push 0
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
lea eax, [ebx*8]
mov ecx, esi
call fcn.004564c0
add esp, 0x10
lea esi, [esp + 0x10]
call fcn.00456570
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a9ce9
add esp, 0x64
ret
Function at 0x43c240
Capabilities:
Access peb ldr_data
Get ntdll base address
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4cae60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x38]
push 0x68
call fcn.004a9a85
mov esi, eax
mov dword [esp + 0x1c], esi
xor eax, eax
lea ebp, [esi + 0x58]
xor edi, edi
mov dword [esp + 0x34], edi
mov dword [ebp], eax
push 0x58
mov dword [ebp + 4], eax
push edi
mov dword [ebp + 8], eax
push esi
mov dword [ebp + 0xc], eax
call fcn.004aef60
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov byte [esp + 0x30], 1
cmp dword [ebx + 0x18], 8
jb 0x43c2cc
mov ebx, dword [ebx + 4]
jmp 0x43c2cf
add ebx, 4
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_4
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x43c317
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea edi, [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.00440400
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x43c336
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004a93cc
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x10000
mov dword [esp + 0x3c], 0
call fcn.004a8a10
mov edi, eax
add esp, 4
test edi, edi
je 0x43c310
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0x10000
push edi
push ebx
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43c3a3
mov ecx, dword [esp + 0x38]
test ecx, ecx
seta al
test al, al
je 0x43c3a3
test ecx, ecx
je 0x43c3a3
jle 0x43c351
mov edx, dword [esi]
shr edx, 3
and edx, 0x3f
push edx
push ecx
push ecx
lea eax, [ecx*8]
push esi
mov ecx, edi
call fcn.004564c0
add esp, 0x10
jmp 0x43c351
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43c3b1
or ebx, 0xffffffff
push edi
call fcn.004a970e
add esp, 4
mov edi, ebp
call fcn.00456570
cmp ebx, 0xffffffff
mov ecx, dword [ebp]
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
je 0x43c3e8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004a93cc
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x43c500
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.004aef60
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x43c592
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c560
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.004018b0
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.004a9ce9
add esp, 0x210
ret

Function at 0x43c5b0
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x43c5bf
mov eax, dword [eax + 4]
jmp 0x43c5c2
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x43c5d8
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4cee68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fa36c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44]
mov esi, ecx
mov ebp, 8
cmp dword [esi + 0x18], ebp
lea edi, [esi + 4]
jb 0x43c639
mov ecx, dword [edi]
jmp 0x43c63b
mov ecx, edi
cmp dword [ebx + 0x18], ebp
jb 0x43c645
mov eax, dword [ebx + 4]
jmp 0x43c648
lea eax, [ebx + 4]
push 0xb
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43c6d4
cmp dword [esi + 0x18], ebp
jb 0x43c65d
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c6f2
xor edi, edi
push 0xffffffffffffffff
push edi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.004017c0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x40], edi
call fcn.0043cd10
add esp, 4
test al, al
je 0x43c6df
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.0043c5b0
test al, al
je 0x43c6df
mov eax, esi
mov ecx, ebx
call fcn.0043c5b0
test al, al
lea ecx, [esp + 0x14]
je 0x43c6d8
push ecx
call fcn.0043c720
add esp, 4
lea esi, [esp + 0x14]
call fcn.0046b6e0
mov al, 1
jmp 0x43c6f4
mov eax, esi
call fcn.0043c5b0
cmp dword [esp + 0x2c], ebp
jb 0x43c6f2
mov edx, dword [esp + 0x18]
push edx
call fcn.004a93cc
add esp, 4
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x2c
ret
Function at 0x43c720
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
cmp dword [ebp + 0x18], 8
push esi
push edi
lea edi, [ebp + 4]
jb 0x43c737
mov edx, dword [edi]
jmp 0x43c739
mov edx, edi
push ebx
xor ebx, ebx
mov eax, edx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43c752
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x18]
call fcn.004018b0
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x43c77f
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
sete bl
cmp dword [esp + 0x28], esi
jb 0x43c79f
mov eax, dword [esp + 0x14]
push eax
call fcn.004a93cc
add esp, 4
test bl, bl
pop ebx
je 0x43c7ad
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x43c7c7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
test eax, eax
pop esi
setne al
pop ebp
add esp, 0x1c
ret

Function at 0x43c7e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x4fbe28], edi
mov esi, ecx
je 0x43c82a
push 0xffffffffffffffff
push edi
push 0x4fbe14
mov eax, esi
call fcn.004017c0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.004aef60
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x43c913
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.004aef60
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x43c8d7
cmp eax, edi
je 0x43c8d7
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.00401780
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43c8e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.004018b0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.004a9ce9
add esp, 0x624
ret
Function at 0x43c930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x18], 0
call fcn.004aef60
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x43c97c
mov edi, dword [edi + 4]
jmp 0x43c97f
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x43c989
mov ebx, dword [ebx + 4]
jmp 0x43c98c
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x43c9e4
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43c9b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.004018b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004a9ce9
add esp, 0x210
ret

Function at 0x43cc60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, esi
call fcn.00414690
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004aef60
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x43ccbf
xor al, al
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004a9ce9
add esp, 0x420
ret
cmp eax, 0x208
jae 0x43cca7
lea ecx, [esp + 4]
push ecx
push 0x209
call edi
test eax, eax
je 0x43cca7
cmp eax, 0x208
jae 0x43cca7
push esi
lea edx, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00401780
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
mov al, 1
call fcn.004a9ce9
add esp, 0x420
ret

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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x54]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0042c1d0
add esp, 8
push 0xffffffffffffffff
push 0
push edi
mov eax, esi
call fcn.004017c0
push 1
push 0x4db95c
mov ecx, esi
call fcn.00416f90
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43cf90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00416f90
push 1
push 0x4db960
mov ecx, esi
call fcn.00416f90
push 0xffffffffffffffff
push 0
push ebx
call fcn.00416e80
cmp dword [esi + 0x18], 8
jb 0x43cfcf
mov esi, dword [esi + 4]
jmp 0x43cfd2
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
mov ecx, dword [esp + 0x4c]
pop esi
pop ebx
xor ecx, esp
call fcn.004a9ce9
add esp, 0x4c
ret
Function at 0x43d560
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x12]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x14], edi
mov word [esp + 0x18], di
call fcn.004aef60
mov ecx, dword [esp + 0x228]
add esp, 0xc
push edi
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
jne 0x43d5c5
push edi
push 0x4d8004
jmp 0x43d5e5
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x43d5d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004018b0
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004a9ce9
add esp, 0x210
ret

Function at 0x43d610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004aef60
add esp, 0xc
mov dword [esp + 4], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x40], esi
mov dword [esp + 0xc], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x43d681
mov eax, 0x20
cmp eax, dword [esp + 0x20]
sbb eax, eax
neg eax
add esp, 0x3c
ret
xor al, al
add esp, 0x3c
ret

Function at 0x43da80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x4fa36c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
lea edi, [esp + 0xc]
mov esi, ecx
call fcn.0043d690
cmp dword [esp + 0x20], 0
mov edi, 8
jne 0x43dac4
cmp dword [esi + 0x18], edi
jb 0x43dab8
mov esi, dword [esi + 4]
push 1
push 0
push 0
push esi
jmp 0x43dae5
push 1
push 0
add esi, 4
push 0
push esi
jmp 0x43dae5
cmp dword [esi + 0x18], edi
jb 0x43dace
mov esi, dword [esi + 4]
jmp 0x43dad1
add esi, 4
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x43dadf
lea eax, [esp + 0x10]
push 1
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x24], edi
jb 0x43db05
mov eax, dword [esp + 0x10]
push eax
call fcn.004a93cc
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
call fcn.004a9ce9
add esp, 0x24
ret
Function at 0x43dba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4eea18
push 0x4ae900
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4fa36c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x88], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
test eax, eax
mov esi, 0x10000
je 0x43dbf3
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x1c
lea edx, [ebp - 0x84]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jbe 0x43dc37
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
add eax, ecx
cmp eax, esi
jae 0x43dc57
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004a9ce9
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x74], 0x1000
jne 0x43dd38
mov eax, dword [ebp - 0x70]
cmp al, 1
je 0x43dd38
test eax, 0x100
jne 0x43dd38
mov dword [ebp - 4], 0
push 0
push 0x40
lea edx, [ebp - 0x64]
push edx
push esi
push edi
call ebx
test eax, eax
jne 0x43dca9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
lea esi, [eax + ecx]
jmp 0x43dc13
cmp word [ebp - 0x64], 0x5a4d
jne 0x43dc91
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x78]
ja 0x43dc91
cmp eax, 0x40
jb 0x43dc91
push 0
push pe_nt_image_headers32
mov ecx, dword [ebp - 0x68]
push ecx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x43dceb
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
lea esi, [eax + ecx]
jmp 0x43dc13
mov edx, dword [ebp - 0x68]
cmp dword [edx], 0x4550
je 0x43dd0e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
lea esi, [eax + ecx]
jmp 0x43dc13
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43dc39
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x84]
lea esi, [eax + ecx]
jmp 0x43dc13
Function at 0x43e670
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
sub esp, 0x18
test eax, eax
jne 0x43e67c
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0x404
push 0
push 0
push 0
push ecx
push 0
call eax
test eax, eax
je 0x43e6d2
xor eax, eax
test esi, esi
je 0x43e6b2
mov dword [esp], esi
mov eax, 1
mov ecx, dword [esp + 8]
push eax
lea edx, [esp + 4]
push edx
call fcn.0043e340
test eax, eax
jne 0x43e6da
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add esp, 0x18
ret 0xc
test edi, edi
mov eax, dword [esp + 0xc]
je 0x43e6f9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ecx
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add esp, 0x18
ret 0xc