joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d4c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408400
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083f0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d9d
xor eax, eax
jmp 0x405dc4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405dc4
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405d99
call esi
pop esi
leave
ret 4

Function at 0x405dfe
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4313e0], 0x44
push eax
xor eax, eax
push 0x4313e0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405e3d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405e41
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405edf
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040633f
mov edi, eax
cmp edi, 0xffffffff
je 0x405f20
test byte [esp + 0x10], 1
push esi
je 0x405f02
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405f08
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405f11
xor eax, eax
inc eax
jmp 0x405f22
test byte [esp + 0x10], 4
jne 0x405f20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405f27
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
push edi
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.0040624b
test bl, 8
mov dword [ebp - 8], eax
je 0x405f66
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x437948], eax
jmp 0x40613c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405f80
test eax, eax
je 0x4060be
test bl, 2
je 0x4060be
mov edi, 0x4303e0
push esi
push edi
call fcn.0040686e
cmp dword [ebp + 8], 0
je 0x405f9f
push str..
push edi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405fa5
push esi
call fcn.0040618f
cmp word [esi], 0
jne 0x405fb5
cmp word [0x4303e0], 0x5c
jne 0x405fc0
push 0x40a524
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [esi + eax*2]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4060b3
cmp word [ebp - 0x22c], 0x2e
jne 0x406012
cmp word [ebp - 0x22a], 0
je 0x406096
cmp word [ebp - 0x22a], 0x2e
jne 0x406012
cmp word [ebp - 0x228], 0
je 0x406096
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040686e
test byte [ebp - 0x258], 0x10
je 0x40603d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406096
push dword [ebp + 0xc]
push esi
call fcn.00405f27
jmp 0x406096
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406dce
pop ecx
pop ecx
push dword [ebp - 4]
push esi
call fcn.00405edf
test eax, eax
push esi
jne 0x40608f
cmp dword [ebp - 4], eax
je 0x40607b
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406dce
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405848
push 0
push esi
call fcn.00406634
jmp 0x406096
push str.Delete:_DeleteFile_failed___s__
call fcn.00406dce
inc dword [0x437948]
pop ecx
pop ecx
jmp 0x406096
push 0xfffffffffffffff2
call fcn.00405848
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405fe2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4060be
and word [ebx - 2], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40613c
cmp dword [ebp - 8], edi
push esi
jne 0x4060df
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406dce
inc dword [0x437948]
pop ecx
pop ecx
jmp 0x40613c
call fcn.00406dff
test eax, eax
je 0x40613c
push esi
call fcn.00406143
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406dce
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or al, 1
push eax
push esi
call fcn.00405edf
test eax, eax
push esi
jne 0x406135
cmp dword [ebp - 4], edi
je 0x40612e
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406dce
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405848
push edi
push esi
call fcn.00406634
jmp 0x40613c
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x4060d0
push 0xffffffffffffffe5
call fcn.00405848
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40624b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x430be0
push esi
call fcn.0040686e
push esi
call fcn.004061ee
mov edi, eax
test edi, edi
jne 0x40626c
xor eax, eax
jmp 0x4062c4
push edi
call fcn.00406b02
test byte [0x4378bc], 0x80
je 0x406289
mov ax, word [edi]
test ax, ax
je 0x406268
cmp ax, 0x5c
je 0x406268
sub edi, esi
sar edi, 1
jmp 0x4062a3
call fcn.00406dff
test eax, eax
je 0x40629d
test byte [eax], 0x10
je 0x406268
push esi
call fcn.0040618f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40628f
call fcn.00406143
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40633f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40635e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406364
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406393
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40b4e8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40b4ec]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4063e3
test edi, edi
jne 0x4063a0
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4063dd
Function at 0x4064ba
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x431a78], 0x55004e
mov dword [0x431a7c], 0x4c
mov edi, 0x400
mov ebp, 0x431a78
je 0x406510
push 1
push 0
push esi
call fcn.00406364
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40662f
cmp eax, edi
jg 0x40662f
mov esi, 0x432278
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40662f
cmp eax, edi
jg 0x40662f
push esi
push ebp
push str._ls_ls_r_n
push 0x431678
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4378b4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406890
push 4
push 0xc0000000
push esi
call fcn.00406364
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40662f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406628
push edi
push esi
push ebp
call fcn.004063e7
test eax, eax
je 0x406628
push str._Rename__r_n
push esi
call fcn.004062c9
test eax, eax
jne 0x4065c6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4065fb
add eax, 0xa
push 0x40b4f0
push eax
call fcn.004062c9
mov ebp, eax
test ebp, ebp
je 0x4065f7
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4065e8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4065e2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4065fd
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x431678
push eax
call fcn.0040631f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406416
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406634
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406657
push dword [esp + 8]
push dword [esp + 8]
call fcn.004064ba
pop ecx
pop ecx
inc dword [0x437950]
ret 8
Function at 0x40673c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004066db
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4067ac
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4067ac
cmp dword [ebp + 0xc], 1
je 0x4067b0
cmp dword [ebp + 0xc], 2
je 0x4067b0
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406e26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406e4a
xor eax, eax
test eax, eax
je 0x406e5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406e5d
xor ecx, ecx
jmp 0x406e60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a524]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406f89
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x432a7c], 0
push esi
jne 0x406fc0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406f9a
mov dword [ecx*4 + 0x432a78], eax
inc ecx
cmp ecx, 0x100
jl 0x406f95
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ff1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x432a78]
xor eax, esi
inc ecx
dec edx
jne 0x406fd3
pop edi
not eax
pop esi
ret 0xc
Function at 0x401d30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x44c9f4], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401d88
push str.System32
lea ecx, [esp + 0x14]
push ecx
call esi
push str.DIFxAPI.dll
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401dbc
push str.DriverPackageUninstallA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401dc1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x401dd9
mov ecx, dword [esp + 0x124]
push ebp
push ebx
push ecx
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426009
add esp, 0x10c
ret

Function at 0x4028a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x120]
lea ecx, [esp + 8]
push ecx
push 0xf003f
xor esi, esi
push esi
push edi
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40291a
mov ecx, dword [esp + 8]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40290f
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00426009
add esp, 0x110
ret
Function at 0x40af8d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44b538]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40afcd
push 0x43c868
push 4
push eax
call fcn.00427661
push eax
call fcn.00401000
add esp, 0x10
jmp 0x40afdf
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40b04d
push edi
call fcn.00427ede
mov edi, dword [eax]
call fcn.00427ede
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004272d6
add esp, 0x18
mov ebx, eax
call fcn.00427ede
cmp dword [eax], 0
je 0x40b02d
call fcn.00427ede
push dword [eax]
call fcn.0040a64c
pop ecx
jmp 0x40b034
call fcn.00427ede
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40b04d
cmp ebx, esi
jae 0x40b04d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40b04f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00426009
leave
ret
Function at 0x429f93
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44b808]
je 0x429fae
inc edi
cmp edi, 0x17
jb 0x429f9f
cmp edi, 0x17
jae 0x42a12e
push ebp
push 3
call fcn.0043263f
cmp eax, 1
pop ecx
je 0x42a0fa
push 3
call fcn.0043263f
test eax, eax
pop ecx
jne 0x429fe2
cmp dword [0x44b544], 1
je 0x42a0fa
cmp ebx, 0xfc
je 0x42a12d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44ea00
push ebp
call fcn.00427661
add esp, 0xc
test eax, eax
je 0x42a018
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push 0x104
mov esi, 0x44ea19
push esi
push 0
mov byte [0x44eb1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a05c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00427661
add esp, 0xc
test eax, eax
je 0x42a05c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a1a2
add esp, 0x14
push esi
call fcn.00427dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a0a1
push esi
call fcn.00427dc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44ed14
push 0x43f6d4
sub ecx, eax
push ecx
push eax
call fcn.004280ef
add esp, 0x14
test eax, eax
je 0x42a0a1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
jmp 0x42a0a3
xor esi, esi
push 0x43f6d0
push ebx
push ebp
call fcn.00427fa9
add esp, 0xc
test eax, eax
je 0x42a0c3
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push dword [edi*8 + 0x44b80c]
push ebx
push ebp
call fcn.00427fa9
add esp, 0xc
test eax, eax
je 0x42a0e5
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00432482
add esp, 0xc
jmp 0x42a12d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a12d
cmp ebp, 0xffffffff
je 0x42a12d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44b80c]
push dword [esi]
call fcn.00427dc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x432482
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b72f
xor ebx, ebx
cmp dword [0x44f2d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x432558
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432638
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x440128
push edi
call esi
cmp eax, ebx
je 0x432638
push eax
call fcn.0042b6c1
mov dword [esp], 0x440118
push edi
mov dword [0x44f2d4], eax
call esi
push eax
call fcn.0042b6c1
mov dword [esp], 0x440104
push edi
mov dword [0x44f2d8], eax
call esi
push eax
call fcn.0042b6c1
mov dword [0x44f2dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042776f
test eax, eax
pop ecx
pop ecx
je 0x432526
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a1a2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x432558
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042b6c1
cmp eax, ebx
pop ecx
mov dword [0x44f2e4], eax
je 0x432558
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b6c1
pop ecx
mov dword [0x44f2e0], eax
mov eax, dword [0x44f2e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4325dd
cmp dword [0x44f2e4], ecx
je 0x4325dd
push eax
call fcn.0042b738
push dword [0x44f2e4]
mov esi, eax
call fcn.0042b738
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4325dd
cmp edi, ebx
je 0x4325dd
call esi
cmp eax, ebx
je 0x4325aa
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4325aa
test byte [ebp - 0x18], 1
jne 0x4325dd
lea eax, [ebp - 0x10]
push eax
call fcn.004277a6
test eax, eax
pop ecx
je 0x4325c5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a1a2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4325d4
or dword [ebp + 0x10], 0x200000
jmp 0x432618
or dword [ebp + 0x10], 0x40000
jmp 0x432618
mov eax, dword [0x44f2d8]
cmp eax, dword [ebp - 8]
je 0x432618
push eax
call fcn.0042b738
cmp eax, ebx
pop ecx
je 0x432618
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x432618
mov eax, dword [0x44f2dc]
cmp eax, dword [ebp - 8]
je 0x432618
push eax
call fcn.0042b738
cmp eax, ebx
pop ecx
je 0x432618
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f2d4]
call fcn.0042b738
cmp eax, ebx
pop ecx
je 0x432638
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43263a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437d38
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b538]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437ccd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00427160
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x437d87
cmp dword [ebp - 0x1c], 5
jb 0x437d9f
jmp 0x437d9b
cmp dword [ebp - 0x10], 1
jne 0x437d9f
cmp dword [ebp - 0x1c], 4
ja 0x437d9b
jne 0x437d9f
cmp dword [ebp - 0x18], 0
jbe 0x437d9f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441310
call fcn.00437ba1
test eax, eax
jge 0x437dc0
mov byte [0x44c920], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00426009
add ebp, 0x78
leave
ret

Function at 0x501e44
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x501e57
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x501e53
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x501e84
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x501ec3
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x501eb9
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x501ec5
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x501ea9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret