joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c60
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 0x406c68
mov dword [ecx*4 + 0x463ea0], eax
inc ecx
cmp ecx, 0x100
jb 0x406c63
mov edx, 0x800
jmp 0x406cb5
mov eax, dword [ecx*4 + 0x463aa0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x463ea0]
inc ecx
mov dword [ecx*4 + 0x463e9c], eax
cmp ecx, edx
jb 0x406c94
mov dword [0x4606a0], 0x44c3e0
call fcn.00406dc4
test eax, eax
pop esi
jne 0x406cd7
mov dword [0x4606a0], 0x44c300
ret

Function at 0x4084e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45b87c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov word [esp + 0x2c], 0x59
mov word [esp + 0x2e], 0x79
mov word [esp + 0x30], 0x41
mov word [esp + 0x32], 0x61
mov word [esp + 0x34], 0x4e
mov word [esp + 0x36], 0x6e
mov word [esp + 0x38], 0x53
mov word [esp + 0x3a], 0x73
mov word [esp + 0x3c], 0x52
mov word [esp + 0x3e], 0x72
mov word [esp + 0x40], 0x51
mov word [esp + 0x42], 0x71
mov edi, 0x45faf8
cmp byte [ebp + 8], 0
je 0x40855d
push 0x272e
jmp 0x408562
push 0x272f
call fcn.00403b6c
lea ecx, [esp + 0x14]
call fcn.00406fde
lea ecx, [esp + 0x10]
mov esi, 0x462bb4
call fcn.004018b9
push 0
push 1
lea esi, [esp + 0x18]
call fcn.00402c3e
call fcn.00407b0e
mov eax, dword [0x45faf8]
mov ecx, dword [eax + 4]
add ecx, edi
mov eax, dword [ecx + 0x28]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push 0
push eax
call fcn.004017fd
mov esi, edi
call fcn.00408b39
push 0xffff
movzx ebx, ax
call fcn.00408bb2
xor eax, eax
cmp bx, word [esp + eax*2 + 0x2c]
je 0x4085d7
inc eax
cmp eax, 0x18
jb 0x4085c5
jmp 0x408550
mov ecx, dword [esp + 0x44]
pop edi
cdq
pop esi
sub eax, edx
pop ebx
xor ecx, esp
sar eax, 1
call fcn.00436f2c
mov esp, ebp
pop ebp
ret
Function at 0x411107
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x45b87c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
jb 0x41112b
mov eax, dword [eax + 4]
jmp 0x41112e
add eax, 4
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
jne 0x411153
xor al, al
jmp 0x4111c0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x50]
push ecx
push 0x40
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp - 0x50], ebx
call esi
cmp dword [ebp - 0x50], 0x40
jne 0x4111b5
cmp word [ebp - 0x4c], 0x5a4d
jne 0x4111b5
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4111b5
push ebx
lea eax, [ebp - 0x50]
push eax
mov edi, pe_nt_image_headers32
push edi
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x54]
call esi
cmp dword [ebp - 0x50], edi
jne 0x4111b5
cmp dword [ebp - 0x14c], 0x4550
jne 0x4111b5
mov bl, 1
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436f2c
leave
ret
Function at 0x41d5d7
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d5ee
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d5f0
add eax, eax
dec edx
test edx, edx
jg 0x41d5e1
mov dword [ecx*4 + 0x4606a8], eax
inc ecx
cmp ecx, 0x100
jb 0x41d5d9
ret
Function at 0x42b74a
Capabilities:
Move file

Disassembly:
jmp 0x42c85c
cmp dword [eax + 0x18], 8
jb 0x42c867
mov eax, dword [eax + 4]
jmp 0x42c86a
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x42c875
mov ecx, dword [ecx + 4]
jmp 0x42c878
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x42b74f
Capabilities:
Create directory

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b87c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00402874
mov eax, esi
push 0x24
push eax
call fcn.004057e5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42ba75
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ba9f
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c3e
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436f2c
leave
ret
xor bl, bl
jmp 0x42ba83

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b87c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00402874
mov eax, esi
push 0x24
push eax
call fcn.004057e5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42bad8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bb06
test al, 0x10
jne 0x42bb06
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c3e
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436f2c
leave
ret
xor bl, bl
jmp 0x42baea

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45b87c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00402874
mov eax, esi
push 0x24
push eax
call fcn.004057e5
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42bb3f
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bb6d
test al, 0x10
je 0x42bb6d
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c3e
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436f2c
leave
ret
xor bl, bl
jmp 0x42bb51

Function at 0x42c82b
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x42c835
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x42c848
mov eax, dword [eax + 4]
jmp 0x42c84b
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x42c8a8
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 0x42c8c0
mov eax, dword [edi]
jmp 0x42c8c2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42c8d4
mov al, 1
jmp 0x42c970
cmp dword [esi + 0x18], 8
jb 0x42c8de
mov eax, dword [edi]
jmp 0x42c8e0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42c96e
cmp dword [esi + 0x18], 8
jb 0x42c8f9
mov eax, dword [edi]
jmp 0x42c8fb
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00402858
push 0
lea eax, [ebp - 0x20]
call fcn.0042c82b
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00402c3e
test bl, bl
pop ebx
jne 0x42c96e
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x42c935
mov eax, dword [edi]
jmp 0x42c937
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42c8cd
cmp dword [esi + 0x18], 8
jb 0x42c94c
mov eax, dword [edi]
jmp 0x42c94e
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00402858
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0042c82b
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c3e
xor al, al
pop edi
pop esi
leave
ret

Function at 0x42c974
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x45b87c]
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.00437200
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x42c9c2
mov edi, dword [edi + 4]
jmp 0x42c9c5
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x42c9d0
mov ebx, dword [ebx + 4]
jmp 0x42c9d3
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 0x42c9fa
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00402bd1
mov al, 1
jmp 0x42c9fc
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436f2c
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x42caf5
mov eax, dword [eax + 4]
jmp 0x42caf8
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 0x42cd14
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 0x42cd41
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42cd41
xor al, al
jmp 0x42cd5c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00448ba0
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 0x42cf4d
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 0x42cf62
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 0x42d030
cmp eax, ebx
je 0x42d030
jmp 0x42cf9d
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x42d030
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.0042cd14
test al, al
jne 0x42cfcb
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.0042b943
sub esp, 0x1c
mov esi, esp
call fcn.00402874
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x42d030
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 0x42cf9b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x42db95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42dba3
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42dbdf
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42dbbd
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 0x42dbdf
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0042b8b8
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x43120e
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 0x43135a
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 0x43124a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x43124f
inc esi
cmp esi, dword [ebp - 8]
jb 0x431241
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x43133b
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4312ce
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x43127b
cmp cl, 0xff
jne 0x4312fd
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 0x43130e
movzx edi, byte [edx + 0x44f918]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x4312be
cmp bl, 0xff
jne 0x43130b
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x431296
dec ecx
shl edx, cl
and edx, 7
je 0x431268
movzx ecx, byte [edx + 0x44f918]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44f910], 0
mov cl, byte [ebx + 4]
je 0x4312fa
test cl, cl
je 0x4312fa
cmp cl, 0xff
jne 0x431268
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x43123c
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 0x43123c
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 0x431511
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 0x4317f8
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 + 0x462aa8], al
inc eax
cmp eax, 0x100
jb 0x431800
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 + 0x460aa8], 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 + 0x460ea8], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x4612a8], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x4616a8], ecx
movzx ecx, byte [edi + 0x462aa8]
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 + 0x461aa8], 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 + 0x461ea8], 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 + 0x4622a8], edx
mov dword [eax + 0x4626a8], ecx
mov dword [ebp - 0x10], edi
jb 0x431822
mov dword [0x463e88], 0x43236d
mov dword [0x463e90], 0x4323c6
mov dword [0x463e8c], 0x432449
call fcn.00406e81
test eax, eax
pop edi
pop esi
pop ebx
je 0x4319d2
mov dword [0x463e88], 0x43308a
mov dword [0x463e90], 0x43308f
mov dword [0x463e8c], 0x433094
leave
ret
Function at 0x4319d4
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 0x431a0b
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4319fe
cmp esi, edi
jae 0x431adb
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 0x431a7b
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 + 0x45c7b8]
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 0x431ac3
cmp dword [ebp + 8], 6
jbe 0x431ac3
cmp edx, 4
jne 0x431ac3
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 0x431a1d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x432cc8
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.004291aa
test al, al
je 0x432cdf
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.00437457
test eax, eax
pop ecx
je 0x432cf5
push esi
mov esi, eax
call fcn.00433f46
jmp 0x432cf7
xor eax, eax
push ebx
mov ebx, eax
call fcn.00432d91
mov eax, edi
call fcn.00433af1
pop ebx
pop edi
pop esi
jmp 0x433ff1
push esi
mov esi, eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x433fff
xor al, al
pop esi
ret
push edi
lea edi, [eax + 0x20]
test edi, edi
je 0x43400e
mov eax, edi
call fcn.0042b699
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x434075
mov eax, esi
call fcn.00433fe7
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x433db3
push 0
push 0
call fcn.00448fe2
mov ecx, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], 0
je 0x434068
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
call fcn.004341bb
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x434084
call fcn.00433fec
mov esi, dword [esi + 8]
call fcn.00433f17
test edi, edi
je 0x434080
mov eax, edi
call fcn.0042b6a7
xor al, al
jmp 0x434091
test edi, edi
je 0x43408f
mov eax, edi
call fcn.0042b6a7
mov al, 1
pop edi
pop esi
ret

Function at 0x4349d3
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x44c6ff
call fcn.0043b550
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x434ae5
cmp byte [esi + 0x42], bl
je 0x434ae5
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp ax, di
jne 0x434a0f
xor al, al
jmp 0x434ae7
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.004349ad
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004056c3
mov ecx, eax
call fcn.004342d7
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004056c3
mov ecx, eax
call fcn.004342d7
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x434a7f
dec eax
je 0x434a83
dec eax
dec eax
je 0x434ae1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004029b7
mov al, bl
jmp 0x434ae7
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004056c3
mov ecx, eax
call fcn.004342d7
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x434ac3
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004056c3
mov ecx, eax
call fcn.004342d7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0043c1a7
add esp, 0x10
cmp edi, eax
jne 0x434a6d
cmp byte [esi + 0x42], 0
je 0x434ae1
test edi, edi
jne 0x434a1d
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404d23
jmp 0x434a1d
mov bl, 1
jmp 0x434a6f
mov al, 1
call fcn.0043b5d3
ret

Function at 0x436f2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b87c]
jne 0x436f36
repz ret
jmp fcn.0043e580
Function at 0x43e9a0
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 + 0x45b898]
je 0x43e9bb
inc edi
cmp edi, 0x17
jb 0x43e9ac
cmp edi, 0x17
jae 0x43eb3b
push ebp
push 3
call fcn.00446c21
cmp eax, 1
pop ecx
je 0x43eb07
push 3
call fcn.00446c21
test eax, eax
pop ecx
jne 0x43e9ef
cmp dword [0x45b430], 1
je 0x43eb07
cmp ebx, 0xfc
je 0x43eb3a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45ff80
push ebp
call fcn.00443050
add esp, 0xc
test eax, eax
je 0x43ea25
push esi
push esi
push esi
push esi
push esi
call fcn.00437605
add esp, 0x14
push 0x104
mov esi, 0x45ff99
push esi
push 0
mov byte [0x46009d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43ea69
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00443050
add esp, 0xc
test eax, eax
je 0x43ea69
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00437605
add esp, 0x14
push esi
call fcn.00437570
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43eaae
push esi
call fcn.00437570
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x460294
push 0x44e47c
sub ecx, eax
push ecx
push eax
call fcn.00445939
add esp, 0x14
test eax, eax
je 0x43eaae
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00437605
add esp, 0x14
jmp 0x43eab0
xor esi, esi
push 0x44e478
push ebx
push ebp
call fcn.004458c8
add esp, 0xc
test eax, eax
je 0x43ead0
push esi
push esi
push esi
push esi
push esi
call fcn.00437605
add esp, 0x14
push dword [edi*8 + 0x45b89c]
push ebx
push ebp
call fcn.004458c8
add esp, 0xc
test eax, eax
je 0x43eaf2
push esi
push esi
push esi
push esi
push esi
call fcn.00437605
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00446a64
add esp, 0xc
jmp 0x43eb3a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43eb3a
cmp ebp, 0xffffffff
je 0x43eb3a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45b89c]
push dword [esi]
call fcn.00437570
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