joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSet_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x407110
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40716c
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [esi*4 + 0x419000]
cmp eax, ebx
je 0x407044
cmp edi, 1
push 1
jne 0x407034
mov edx, dword [esi*4 + 0x41900c]
push edx
push ecx
call fcn.004050c0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
inc esi
jmp 0x40700b
push eax
push ecx
call fcn.004050c0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
inc esi
jmp 0x40700b
push 1
push ebx
push ebx
push ebx
push str.VID_0421PID_01
push str.EnumNMWCD
push ecx
call fcn.004055e0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
push 1
push 1
push str.USBVID_0421PID_01
push str.MatchingDeviceId
push ebx
push str.ControlClass4f919108_4adf_11d5_882d_00b0d02fe381
push eax
call fcn.004055e0
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
push 1
push 1
push str.NMWCDVID_0421PID_01
push str.MatchingDeviceId
push ebx
push str.ControlClass4f919108_4adf_11d5_882d_00b0d02fe381
push ecx
call fcn.004055e0
mov edx, dword [ebp - 0x14]
add esp, 0x1c
push 1
push ebx
push str.4F919108_4ADF_11D5_882D_00B0D02FE381
push str.ClassGuid
push str.VID_0421PID_01
push str.EnumUSB
push edx
call fcn.004055e0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
push 1
push ebx
push ebx
push ebx
push str._NMWCDVID_0421PID_01
push str.ControlDeviceClasses4f919102_4adf_11d5_882d_00b0d02fe381
push eax
call fcn.004055e0
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
push 1
push ebx
push ebx
push ebx
push str._USBVID_0421PID_01
push str.ControlDeviceClassesa5dcbf10_6530_11d2_901f_00c04fb951ed
push ecx
call fcn.004055e0
mov edx, dword [ebp - 0x14]
add esp, 0x1c
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x40716c
cmp dword [0x41e04c], ebx
je 0x40715b
push str.SYSTEMCurrentControlSet_
push str.USB_Key___ls_not_found_r_n
push 0x41de54
call fcn.0040762a
mov edi, 0x41de54
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [0x41e04c]
push ebx
not ecx
dec ecx
push 0x41e048
push ecx
push 0x41de54
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x41e04c], ebx
je 0x40715b
push str.SYSTEMCurrentControlSet_
push str.USB_Key___ls_open_failed_r_n
push 0x41de54
call fcn.0040762a
mov edi, 0x41de54
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 0x41e048
push ecx
mov ecx, dword [0x41e04c]
push 0x41de54
push ecx
jmp 0x407155
Function at 0x407abf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409668
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x407b00
test byte [esp + 8], 2
je 0x407b00
mov dword [0x41e074], 0xd
mov dword [0x41e078], 5
jmp 0x407adb
xor eax, eax
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x406c7b
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 0x406c83
mov dword [ecx*4 + 0x463e80], eax
inc ecx
cmp ecx, 0x100
jb 0x406c7e
mov edx, 0x800
jmp 0x406cd0
mov eax, dword [ecx*4 + 0x463a80]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x463e80]
inc ecx
mov dword [ecx*4 + 0x463e7c], eax
cmp ecx, edx
jb 0x406caf
mov dword [0x460680], 0x44c390
call fcn.00406ddf
test eax, eax
pop esi
jne 0x406cf2
mov dword [0x460680], 0x44c2b0
ret

Function at 0x408515
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, 0x45fad8
cmp byte [ebp + 8], 0
je 0x408592
push 0x272e
jmp 0x408597
push 0x272f
call fcn.00403b67
lea ecx, [esp + 0x14]
call fcn.00406ff9
lea ecx, [esp + 0x10]
mov esi, 0x462b94
call fcn.004018b3
push 0
push 1
lea esi, [esp + 0x18]
call fcn.00402c39
call fcn.00407b29
mov eax, dword [0x45fad8]
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.00408b6e
push 0xffff
movzx ebx, ax
call fcn.00408be7
xor eax, eax
cmp bx, word [esp + eax*2 + 0x2c]
je 0x40860c
inc eax
cmp eax, 0x18
jb 0x4085fa
jmp 0x408585
mov ecx, dword [esp + 0x44]
pop edi
cdq
pop esi
sub eax, edx
pop ebx
xor ecx, esp
sar eax, 1
call fcn.00436edd
mov esp, ebp
pop ebp
ret
Function at 0x4111dc
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 0x411200
mov eax, dword [eax + 4]
jmp 0x411203
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 0x411228
xor al, al
jmp 0x411295
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 0x41128a
cmp word [ebp - 0x4c], 0x5a4d
jne 0x41128a
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41128a
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 0x41128a
cmp dword [ebp - 0x14c], 0x4550
jne 0x41128a
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.00436edd
leave
ret
Function at 0x41d5c8
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d5df
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d5e1
add eax, eax
dec edx
test edx, edx
jg 0x41d5d2
mov dword [ecx*4 + 0x460688], eax
inc ecx
cmp ecx, 0x100
jb 0x41d5ca
ret
Function at 0x42b6f9
Capabilities:
Move file

Disassembly:
jmp 0x42c807
cmp dword [eax + 0x18], 8
jb 0x42c812
mov eax, dword [eax + 4]
jmp 0x42c815
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x42c820
mov ecx, dword [ecx + 4]
jmp 0x42c823
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x42b6fe
Capabilities:
Create directory

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

Function at 0x42b9eb
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.0040286e
mov eax, esi
push 0x24
push eax
call fcn.004057e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42ba20
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ba4a
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c39
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436edd
leave
ret
xor bl, bl
jmp 0x42ba2e

Function at 0x42ba4e
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.0040286e
mov eax, esi
push 0x24
push eax
call fcn.004057e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42ba83
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bab1
test al, 0x10
jne 0x42bab1
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c39
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436edd
leave
ret
xor bl, bl
jmp 0x42ba95

Function at 0x42bab5
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.0040286e
mov eax, esi
push 0x24
push eax
call fcn.004057e0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42baea
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bb18
test al, 0x10
je 0x42bb18
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c39
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00436edd
leave
ret
xor bl, bl
jmp 0x42bafc

Function at 0x42c7d6
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x42c7e0
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x42c7f3
mov eax, dword [eax + 4]
jmp 0x42c7f6
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x42c853
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 0x42c86b
mov eax, dword [edi]
jmp 0x42c86d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42c87f
mov al, 1
jmp 0x42c91b
cmp dword [esi + 0x18], 8
jb 0x42c889
mov eax, dword [edi]
jmp 0x42c88b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42c919
cmp dword [esi + 0x18], 8
jb 0x42c8a4
mov eax, dword [edi]
jmp 0x42c8a6
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00402852
push 0
lea eax, [ebp - 0x20]
call fcn.0042c7d6
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00402c39
test bl, bl
pop ebx
jne 0x42c919
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x42c8e0
mov eax, dword [edi]
jmp 0x42c8e2
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42c878
cmp dword [esi + 0x18], 8
jb 0x42c8f7
mov eax, dword [edi]
jmp 0x42c8f9
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00402852
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0042c7d6
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c39
xor al, al
pop edi
pop esi
leave
ret

Function at 0x42c91f
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.004371b0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x42c96d
mov edi, dword [edi + 4]
jmp 0x42c970
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x42c97b
mov ebx, dword [ebx + 4]
jmp 0x42c97e
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 0x42c9a5
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00402bcc
mov al, 1
jmp 0x42c9a7
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436edd
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x42caa0
mov eax, dword [eax + 4]
jmp 0x42caa3
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 0x42ccbf
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 0x42ccec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42ccec
xor al, al
jmp 0x42cd07
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00448b50
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 0x42cefc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x100000
cmp dword [ebp + 0xc], eax
push ebx
push esi
jbe 0x42cf11
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 0x42cfdf
cmp eax, ebx
je 0x42cfdf
jmp 0x42cf4c
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x42cfdf
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.0042ccbf
test al, al
jne 0x42cf7a
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.0042cd6d
sub esp, 0x1c
mov esi, esp
call fcn.0040286e
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x42cfdf
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 0x42cf4a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x42db44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42db52
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42db8e
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42db6c
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 0x42db8e
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0042b867
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x4311c4
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 0x431310
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 0x431200
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x431205
inc esi
cmp esi, dword [ebp - 8]
jb 0x4311f7
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x4312f1
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x431284
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x431231
cmp cl, 0xff
jne 0x4312b3
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 0x4312c4
movzx edi, byte [edx + 0x44f918]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x431274
cmp bl, 0xff
jne 0x4312c1
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x43124c
dec ecx
shl edx, cl
and edx, 7
je 0x43121e
movzx ecx, byte [edx + 0x44f918]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44f910], 0
mov cl, byte [ebx + 4]
je 0x4312b0
test cl, cl
je 0x4312b0
cmp cl, 0xff
jne 0x43121e
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4311f2
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 0x4311f2
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 0x4314c7
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 + 0x462a88], al
inc eax
cmp eax, 0x100
jb 0x4314cf
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 + 0x460a88], 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 + 0x460e88], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x461288], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x461688], ecx
movzx ecx, byte [edi + 0x462a88]
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 + 0x461a88], 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 + 0x461e88], 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 + 0x462288], edx
mov dword [eax + 0x462688], ecx
mov dword [ebp - 0x10], edi
jb 0x4314f1
mov dword [0x463e68], 0x43203c
mov dword [0x463e70], 0x432095
mov dword [0x463e6c], 0x432118
call fcn.00406e9c
test eax, eax
pop edi
pop esi
pop ebx
je 0x4316a1
mov dword [0x463e68], 0x43304a
mov dword [0x463e70], 0x43304f
mov dword [0x463e6c], 0x433054
leave
ret
Function at 0x4316a3
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 0x4316da
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4316cd
cmp esi, edi
jae 0x4317aa
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 0x43174a
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 0x431792
cmp dword [ebp + 8], 6
jbe 0x431792
cmp edx, 4
jne 0x431792
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 0x4316ec
pop edi
pop esi
pop ebx
leave
ret 4