joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a95a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x43fd4a
call fcn.004358dc
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x2c]
call fcn.0040378e
and dword [ebp - 4], 0
mov eax, esi
push 0x444e28
push eax
call fcn.0040b020
push 0x44550c
mov eax, esi
call fcn.0040afb1
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40a99d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a9c3
test al, 0x10
je 0x40a9c3
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00401169
mov al, bl
call fcn.0043595f
ret
xor bl, bl
jmp 0x40a9af

Function at 0x40ba64
Capabilities:
Move file

Disassembly:
jmp 0x40d0d7
cmp dword [eax + 0x18], 8
jb 0x40d0e2
mov eax, dword [eax + 4]
jmp 0x40d0e5
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40d0f0
mov ecx, dword [ecx + 4]
jmp 0x40d0f3
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x40ba69
Capabilities:
Delete directory

Disassembly:
jmp 0x40d101
cmp dword [eax + 0x18], 8
jb 0x40d10c
mov eax, dword [eax + 4]
jmp 0x40d10f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
ret

Function at 0x40ba6e
Capabilities:
Create directory

Disassembly:
jmp 0x40d11c
cmp dword [eax + 0x18], 8
jb 0x40d127
mov eax, dword [eax + 4]
jmp 0x40d12a
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret

Function at 0x40c8ef
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40c8fc
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x40c8f8
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x40c839
push ebx
push ebx
call fcn.00434c2b
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x40c933
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0040c87c
xor al, al
jmp 0x40c955
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40c953
mov esi, dword [edi]
call fcn.0040c87c
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x40d0b8
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40d0c3
mov eax, dword [eax + 4]
jmp 0x40d0c6
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x40d13e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
jb 0x40d155
add edi, 4
mov eax, dword [edi]
jmp 0x40d15a
add edi, 4
mov eax, edi
push ebx
push esi
push eax
lea eax, [ebp - 0x1c]
call fcn.00403762
push 0
lea eax, [ebp - 0x1c]
call fcn.0040d0b8
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x1c]
inc bl
call fcn.00401169
pop esi
test bl, bl
pop ebx
je 0x40d18e
xor al, al
jmp 0x40d1a5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40d199
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop edi
leave
ret

Function at 0x40d1a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x455210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
push esi
mov esi, edx
jb 0x40d1cc
mov eax, dword [eax + 4]
jmp 0x40d1cf
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x40d1da
mov ecx, dword [ecx + 4]
jmp 0x40d1dd
add ecx, 4
lea edx, [ebp - 0x210]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40d213
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
push eax
call fcn.004337cf
pop ecx
lea ecx, [ebp - 0x210]
call fcn.004011b0
mov al, 1
jmp 0x40d215
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00433865
leave
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40d2f1
mov dword [ecx*4 + 0x45d320], eax
inc ecx
cmp ecx, 0x100
jb 0x40d2ec
pop esi
ret

Function at 0x40d514
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d541
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d541
xor al, al
jmp 0x40d55c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043dd00
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40d711
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x40d726
mov dword [ebp + 0xc], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x20], ebx
je 0x40d7ea
jmp 0x40d7e2
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40d7ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040d514
test al, al
jne 0x40d788
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040d5c2
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xc], esp
call fcn.0040378e
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp eax, ebx
jne 0x40d7ea
mov ecx, dword [ebp + 8]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
add dword [ebp - 4], ecx
cmp eax, ebx
jne 0x40d75a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc
Function at 0x41ec58
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41ec6f
add eax, eax
xor eax, 0x4c11db7
jmp 0x41ec71
add eax, eax
dec edx
test edx, edx
jg 0x41ec62
mov dword [ecx*4 + 0x459ae8], eax
inc ecx
cmp ecx, 0x100
jb 0x41ec5a
ret
Function at 0x42e164
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x455210]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00433710
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42e1b7
xor al, al
jmp 0x42e1fa
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42e1d8
cmp dword [ebp - 0x80], edi
je 0x42e1b3
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42e1b3
lea eax, [ebp - 0x7c]
push eax
call fcn.004337cf
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.004011b0
cmp dword [ebp - 0x80], edi
je 0x42e1f8
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.00433865
add ebp, 0x398
leave
ret
Function at 0x42e8b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42e8c6
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42e902
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42e8e0
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42e902
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040c7e2
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42ecfd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42ee49
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42ed39
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42ed3e
inc esi
cmp esi, dword [ebp - 8]
jb 0x42ed30
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42ee2a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42edbd
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42ed6a
cmp cl, 0xff
jne 0x42edec
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42edfd
movzx edi, byte [edx + 0x445200]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42edad
cmp bl, 0xff
jne 0x42edfa
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42ed85
dec ecx
shl edx, cl
and edx, 7
je 0x42ed57
movzx ecx, byte [edx + 0x445200]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4451f8], 0
mov cl, byte [ebx + 4]
je 0x42ede9
test cl, cl
je 0x42ede9
cmp cl, 0xff
jne 0x42ed57
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42ed2b
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42ed2b
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x43117e
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x431465
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x45bee8], al
inc eax
cmp eax, 0x100
jb 0x43146d
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x459ee8], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x45a2e8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x45a6e8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x45aae8], ecx
movzx ecx, byte [edi + 0x45bee8]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x45aee8], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x45b2e8], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x45b6e8], edx
mov dword [eax + 0x45bae8], ecx
mov dword [ebp - 0x10], edi
jb 0x43148f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4315fc
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
shr dword [ebp + 8], 2
mov eax, dword [ebp + 8]
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
xor esi, esi
cmp dword [ebp + 8], esi
lea eax, [eax*8 + 4]
push edi
mov dword [ebp - 0xc], eax
jbe 0x431632
mov edi, dword [edx]
mov dword [ecx + esi*4 + 4], edi
inc esi
add edx, 4
cmp esi, dword [ebp + 8]
jb 0x431623
cmp esi, eax
jae 0x431706
mov eax, esi
sub eax, dword [ebp + 8]
push ebx
lea eax, [ecx + eax*4 + 4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x4316a4
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x456288]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x4316ec
cmp dword [ebp + 8], 6
jbe 0x4316ec
cmp edx, 4
jne 0x4316ec
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4 + 4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x431647
pop ebx
pop edi
pop esi
leave
ret

Function at 0x43170a
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.004315fc
mov eax, dword [ecx]
lea eax, [eax*8 - 4]
add esp, 4
xor esi, esi
test eax, eax
mov dword [ebp - 4], eax
jbe 0x43178c
push ebx
mov edx, 0xff
push edi
mov eax, dword [ecx + esi*4 + 0x14]
mov edi, eax
shr edi, 0x10
and edi, edx
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*4 + 0x45b6e8]
movzx ebx, ah
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x45b2e8]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x45bae8]
and eax, edx
movzx eax, byte [eax + str.cw]
xor edi, dword [eax*4 + 0x45aee8]
inc esi
cmp esi, dword [ebp - 4]
mov dword [ecx + esi*4 + 0x10], edi
jb 0x431733
pop edi
pop ebx
pop esi
leave
ret
Function at 0x431b92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, eax
test ebx, ebx
push edi
mov edi, ecx
je 0x431c29
push 0x10
pop eax
cmp ebx, eax
jb 0x431c29
sub ebx, eax
add ebx, eax
shr ebx, 4
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [edi]
push dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x14]
call fcn.0043178f
mov eax, dword [esi]
xor eax, dword [ebp - 0x24]
pop ecx
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x20]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x1c]
pop ecx
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 0x18]
dec ebx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
jne 0x431bbc
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x433865
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455210]
jne 0x43386f
repz ret
jmp fcn.00435bd8

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43460e
call fcn.004346ec
mov dword [eax], esi
call fcn.004346d9
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00433c21
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4345ea
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43463d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004346ff
pop ecx
call fcn.004346d9
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x434664
test al, 1
je 0x434664
test byte [esp + 0xc], 2
je 0x434664
call fcn.004346ec
mov dword [eax], 5
call fcn.004346d9
mov dword [eax], 0xd
jmp 0x434634
xor eax, eax
pop esi
ret
Function at 0x436aff
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 + 0x455228]
je 0x436b1a
inc edi
cmp edi, 0x17
jb 0x436b0b
cmp edi, 0x17
jae 0x436c9a
push ebp
push 3
call fcn.0043c385
cmp eax, 1
pop ecx
je 0x436c66
push 3
call fcn.0043c385
test eax, eax
pop ecx
jne 0x436b4e
cmp dword [0x455090], 1
je 0x436c66
cmp ebx, 0xfc
je 0x436c99
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4592b0
push ebp
call fcn.0043597d
add esp, 0xc
test eax, eax
je 0x436b84
push esi
push esi
push esi
push esi
push esi
call fcn.00433b25
add esp, 0x14
push 0x104
mov esi, 0x4592c9
push esi
push 0
mov byte [0x4593cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x436bc8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043597d
add esp, 0xc
test eax, eax
je 0x436bc8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00433b25
add esp, 0x14
push esi
call fcn.00433a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436c0d
push esi
call fcn.00433a90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4595c4
push 0x443a2c
sub ecx, eax
push ecx
push eax
call fcn.0043c2d2
add esp, 0x14
test eax, eax
je 0x436c0d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00433b25
add esp, 0x14
jmp 0x436c0f
xor esi, esi
push 0x443a28
push ebx
push ebp
call fcn.0043c261
add esp, 0xc
test eax, eax
je 0x436c2f
push esi
push esi
push esi
push esi
push esi
call fcn.00433b25
add esp, 0x14
push dword [edi*8 + 0x45522c]
push ebx
push ebp
call fcn.0043c261
add esp, 0xc
test eax, eax
je 0x436c51
push esi
push esi
push esi
push esi
push esi
call fcn.00433b25
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043c0a4
add esp, 0xc
jmp 0x436c99
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x436c99
cmp ebp, 0xffffffff
je 0x436c99
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45522c]
push dword [esi]
call fcn.00433a90
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 0x43c0a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00435de2
xor ebx, ebx
cmp dword [0x4599e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43c17a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43c25a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43c25a
push eax
call fcn.00435d74
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4599e8], eax
call esi
push eax
call fcn.00435d74
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4599ec], eax
call esi
push eax
call fcn.00435d74
mov dword [0x4599f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00436580
test eax, eax
pop ecx
pop ecx
je 0x43c148
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433b25
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43c17a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00435d74
cmp eax, ebx
pop ecx
mov dword [0x4599f8], eax
je 0x43c17a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00435d74
pop ecx
mov dword [0x4599f4], eax
mov eax, dword [0x4599f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43c1ff
cmp dword [0x4599f8], ecx
je 0x43c1ff
push eax
call fcn.00435deb
push dword [0x4599f8]
mov esi, eax
call fcn.00435deb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43c1ff
cmp edi, ebx
je 0x43c1ff
call esi
cmp eax, ebx
je 0x43c1cc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43c1cc
test byte [ebp - 0x18], 1
jne 0x43c1ff
lea eax, [ebp - 0x10]
push eax
call fcn.004365b7
test eax, eax
pop ecx
je 0x43c1e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00433b25
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43c1f6
or dword [ebp + 0x10], 0x200000
jmp 0x43c23a
or dword [ebp + 0x10], 0x40000
jmp 0x43c23a
mov eax, dword [0x4599ec]
cmp eax, dword [ebp - 8]
je 0x43c23a
push eax
call fcn.00435deb
cmp eax, ebx
pop ecx
je 0x43c23a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43c23a
mov eax, dword [0x4599f0]
cmp eax, dword [ebp - 8]
je 0x43c23a
push eax
call fcn.00435deb
cmp eax, ebx
pop ecx
je 0x43c23a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4599e8]
call fcn.00435deb
cmp eax, ebx
pop ecx
je 0x43c25a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43c25c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret