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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44c4e8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401083
mov eax, esi
push 0x10
push eax
call fcn.0040cbad
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d8b1
lea esi, [esp + 0x1c]
call fcn.0040d78c
lea eax, [esp + 0x3c]
push 0x44146c
push eax
lea eax, [esp + 0x28]
call fcn.00404efd
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d7bc
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.0040115f
cmp byte [esp + 0x1b], bl
je 0x40d129
lea esi, [esp + 0x58]
call fcn.0040d9a9
test al, al
jne 0x40d113
mov eax, esi
call fcn.0040d996
test al, al
mov eax, esi
je 0x40d076
call fcn.0040d992
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00408a96
push eax
call fcn.0040cfab
add esp, 0xc
jmp 0x40d099
call fcn.0040d992
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00408a96
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040cf69
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d107
lea esi, [esp + 0x58]
call fcn.0040d9a9
test al, al
jne 0x40d113
mov eax, esi
call fcn.0040d996
test al, al
mov eax, esi
je 0x40d0dc
call fcn.0040d992
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00408a96
push eax
call fcn.0040cfab
add esp, 0xc
jmp 0x40d0ff
call fcn.0040d992
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00408a96
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040cf69
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.0040115f
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d829
test al, al
jne 0x40d0a3
lea eax, [esp + 0x1c]
call fcn.0040d87a
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040cbad
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d14f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d16b
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040be12
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d17a
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d18e
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d7a4
lea eax, [esp + 0x58]
call fcn.0040d8df
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.0040115f
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f5f3
mov esp, ebp
pop ebp
ret
Function at 0x40df2d
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 0x40df42
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 0x40e010
cmp eax, ebx
je 0x40e010
jmp 0x40df7d
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x40e010
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.0040f2ff
test al, al
jne 0x40dfab
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x20]
mov ebx, dword [eax]
push 0
push dword [ebp - 0xc]
mov eax, edi
push dword [ebp - 0x14]
add ebx, 0x18
push dword [ebp - 0x18]
call fcn.0040ddb8
sub esp, 0x1c
mov esi, esp
call fcn.00401083
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x40e010
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
add dword [ebp - 4], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
test eax, eax
jne 0x40df7b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x40ec58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push 0x20a
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.0042f6b0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x40ecba
and word [ebp - 6], 0
lea eax, [ebp - 0x210]
call fcn.004015ae
mov al, 1
jmp 0x40ecbc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042f5f3
leave
ret

Function at 0x40ed1d
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x40ed27
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x40ed3a
mov eax, dword [eax + 4]
jmp 0x40ed3d
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x40ed9a
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
push edi
lea edi, [esi + 4]
jb 0x40edb2
mov eax, dword [edi]
jmp 0x40edb4
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40edc6
mov al, 1
jmp 0x40ee62
cmp dword [esi + 0x18], 8
jb 0x40edd0
mov eax, dword [edi]
jmp 0x40edd2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40ee60
cmp dword [esi + 0x18], 8
jb 0x40edeb
mov eax, dword [edi]
jmp 0x40eded
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401592
push 0
lea eax, [ebp - 0x20]
call fcn.0040ed1d
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.0040115f
test bl, bl
pop ebx
jne 0x40ee60
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x40ee27
mov eax, dword [edi]
jmp 0x40ee29
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40edbf
cmp dword [esi + 0x18], 8
jb 0x40ee3e
mov eax, dword [edi]
jmp 0x40ee40
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00401592
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0040ed1d
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040115f
xor al, al
pop edi
pop esi
leave
ret

Function at 0x40ee80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x44d904], ebx
push esi
mov esi, ecx
je 0x40eeb5
push 0xffffffffffffffff
push esi
mov eax, 0x44d8f0
call fcn.004010d7
mov al, 1
jmp 0x40ef51
push 0x20a
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0042f6b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x40ef4f
push edi
push 0x410
lea eax, [ebp - 0x622]
push ebx
push eax
mov word [ebp - 6], bx
mov word [ebp - 0x624], bx
call fcn.0042f6b0
add esp, 0xc
mov edi, 0x208
push edi
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, edi
pop edi
ja 0x40ef3f
cmp eax, ebx
je 0x40ef3f
mov word [ebp + eax*2 - 0x624], bx
lea eax, [ebp - 0x624]
jmp 0x40ef45
lea eax, [ebp - 0x210]
call fcn.004015ae
jmp 0x40eeae
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret
Function at 0x40ef5f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
push edi
xor esi, esi
push 0x20a
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7a]
push esi
push eax
mov ebx, ecx
mov edi, edx
mov word [ebp - 0x7c], si
call fcn.0042f6b0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x40efad
mov edi, dword [edi + 4]
jmp 0x40efb0
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x40efbb
mov ebx, dword [ebx + 4]
jmp 0x40efbe
add ebx, 4
lea eax, [ebp - 0x7c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40efe5
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.004015ae
mov al, 1
jmp 0x40efe7
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40f0e0
mov eax, dword [eax + 4]
jmp 0x40f0e3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40f2ff
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 0x40f32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f32c
xor al, al
jmp 0x40f347
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043a0b0
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 0x40f48a
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 0x40f492
mov dword [ecx*4 + 0x454140], eax
inc ecx
cmp ecx, 0x100
jb 0x40f48d
mov edx, 0x800
jmp 0x40f4df
mov eax, dword [ecx*4 + 0x453d40]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x454140]
inc ecx
mov dword [ecx*4 + 0x45413c], eax
cmp ecx, edx
jb 0x40f4be
mov dword [0x450934], 0x43dba0
call fcn.0040f693
test eax, eax
pop esi
jne 0x40f501
mov dword [0x450934], 0x43dac0
ret
Function at 0x41c359
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41c370
add eax, eax
xor eax, 0x4c11db7
jmp 0x41c372
add eax, eax
dec edx
test edx, edx
jg 0x41c363
mov dword [ecx*4 + 0x450938], eax
inc ecx
cmp ecx, 0x100
jb 0x41c35b
ret
Function at 0x4290c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4290cf
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42910b
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x4290e9
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 0x42910b
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040d53f
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42aa23
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 0x42ab6f
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 0x42aa5f
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42aa64
inc esi
cmp esi, dword [ebp - 8]
jb 0x42aa56
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42ab50
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42aae3
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42aa90
cmp cl, 0xff
jne 0x42ab12
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 0x42ab23
movzx edi, byte [edx + 0x442ca8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42aad3
cmp bl, 0xff
jne 0x42ab20
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42aaab
dec ecx
shl edx, cl
and edx, 7
je 0x42aa7d
movzx ecx, byte [edx + 0x442ca8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x442ca0], 0
mov cl, byte [ebx + 4]
je 0x42ab0f
test cl, cl
je 0x42ab0f
cmp cl, 0xff
jne 0x42aa7d
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42aa51
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 0x42aa51
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 0x42ca13
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 0x42ccfa
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 + 0x452d38], al
inc eax
cmp eax, 0x100
jb 0x42cd02
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 + 0x450d38], 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 + 0x451138], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x451538], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x451938], ecx
movzx ecx, byte [edi + 0x452d38]
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 + 0x451d38], 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 + 0x452138], 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 + 0x452538], edx
mov dword [eax + 0x452938], ecx
mov dword [ebp - 0x10], edi
jb 0x42cd24
mov dword [0x454128], 0x42d86f
mov dword [0x454130], 0x42d8c8
mov dword [0x45412c], 0x42d94b
call fcn.0040f750
test eax, eax
pop edi
pop esi
pop ebx
je 0x42ced4
mov dword [0x454128], 0x42e52f
mov dword [0x454130], 0x42e534
mov dword [0x45412c], 0x42e539
leave
ret
Function at 0x42ced6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x42cf0d
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x42cf00
cmp esi, edi
jae 0x42cfdd
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x42cf7d
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 + 0x44d420]
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 0x42cfc5
cmp dword [ebp + 8], 6
jbe 0x42cfc5
cmp edx, 4
jne 0x42cfc5
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], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42cf1f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e1a5
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.00410888
test al, al
je 0x42e1bc
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0042f589
test eax, eax
pop ecx
je 0x42e1d7
push esi
push 0x42e158
mov esi, eax
call fcn.0040e729
jmp 0x42e1d9
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040b6de
mov eax, edi
call fcn.00415075
pop ebx
pop edi
pop esi
jmp fcn.0040e7d4

Function at 0x42f5f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c4e8]
jne 0x42f5fd
repz ret
jmp fcn.004325c7

Function at 0x432ec6
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 + 0x44c500]
je 0x432ee1
inc edi
cmp edi, 0x17
jb 0x432ed2
cmp edi, 0x17
jae 0x433061
push ebp
push 3
call fcn.00438b71
cmp eax, 1
pop ecx
je 0x43302d
push 3
call fcn.00438b71
test eax, eax
pop ecx
jne 0x432f15
cmp dword [0x44c0e0], 1
je 0x43302d
cmp ebx, 0xfc
je 0x433060
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x450118
push ebp
call fcn.00435bfa
add esp, 0xc
test eax, eax
je 0x432f4b
push esi
push esi
push esi
push esi
push esi
call fcn.0042f3c0
add esp, 0x14
push 0x104
mov esi, 0x450131
push esi
push 0
mov byte [0x450235], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432f8f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00435bfa
add esp, 0xc
test eax, eax
je 0x432f8f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f3c0
add esp, 0x14
push esi
call fcn.0042f740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x432fd4
push esi
call fcn.0042f740
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45042c
push 0x43fa64
sub ecx, eax
push ecx
push eax
call fcn.004330a9
add esp, 0x14
test eax, eax
je 0x432fd4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f3c0
add esp, 0x14
jmp 0x432fd6
xor esi, esi
push 0x43fa60
push ebx
push ebp
call fcn.00438b00
add esp, 0xc
test eax, eax
je 0x432ff6
push esi
push esi
push esi
push esi
push esi
call fcn.0042f3c0
add esp, 0x14
push dword [edi*8 + 0x44c504]
push ebx
push ebp
call fcn.00438b00
add esp, 0xc
test eax, eax
je 0x433018
push esi
push esi
push esi
push esi
push esi
call fcn.0042f3c0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00438943
add esp, 0xc
jmp 0x433060
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x433060
cmp ebp, 0xffffffff
je 0x433060
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44c504]
push dword [esi]
call fcn.0042f740
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 0x438943
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431e7c
xor ebx, ebx
cmp dword [0x450854], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x438a19
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x438af9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x438af9
push eax
call fcn.00431e0e
mov dword [esp], 0x4402e0
push edi
mov dword [0x450854], eax
call esi
push eax
call fcn.00431e0e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450858], eax
call esi
push eax
call fcn.00431e0e
mov dword [0x45085c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00432a54
test eax, eax
pop ecx
pop ecx
je 0x4389e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f3c0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x438a19
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431e0e
cmp eax, ebx
pop ecx
mov dword [0x450864], eax
je 0x438a19
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431e0e
pop ecx
mov dword [0x450860], eax
mov eax, dword [0x450860]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x438a9e
cmp dword [0x450864], ecx
je 0x438a9e
push eax
call fcn.00431e85
push dword [0x450864]
mov esi, eax
call fcn.00431e85
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x438a9e
cmp edi, ebx
je 0x438a9e
call esi
cmp eax, ebx
je 0x438a6b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x438a6b
test byte [ebp - 0x18], 1
jne 0x438a9e
lea eax, [ebp - 0x10]
push eax
call fcn.00432a8b
test eax, eax
pop ecx
je 0x438a86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f3c0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x438a95
or dword [ebp + 0x10], 0x200000
jmp 0x438ad9
or dword [ebp + 0x10], 0x40000
jmp 0x438ad9
mov eax, dword [0x450858]
cmp eax, dword [ebp - 8]
je 0x438ad9
push eax
call fcn.00431e85
cmp eax, ebx
pop ecx
je 0x438ad9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x438ad9
mov eax, dword [0x45085c]
cmp eax, dword [ebp - 8]
je 0x438ad9
push eax
call fcn.00431e85
cmp eax, ebx
pop ecx
je 0x438ad9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450854]
call fcn.00431e85
cmp eax, ebx
pop ecx
je 0x438af9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x438afb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret