joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402950
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x234], ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a0d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402a06
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x20c]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4029e6
test dx, dx
je 0x4029e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4029e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4029c0
xor eax, eax
jmp 0x4029eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4029ff
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4029b0
jmp 0x402a05
mov ebx, dword [ebp - 0x228]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004082d8
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
mov esi, ecx
cmp di, bx
jne 0x405587
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4055c1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4055c1
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x405694
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x4055ee
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405621
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x405660
sub eax, 1
je 0x405660
sub eax, 2
jne 0x405694
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4055f9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x405684
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x405694
lea ecx, [ebp - 0x28]
movzx eax, bx
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082d8
mov esp, ebp
pop ebp
ret 4
Function at 0x406320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4063e4
cmp byte [esi + 0x3e], 0
je 0x4063e4
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4063d2
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x406399
sub eax, 1
je 0x40639d
sub eax, 2
jne 0x4063d2
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4063bb
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4063d2
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004082d8
mov esp, ebp
pop ebp
ret

Function at 0x408d14
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408d53
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408d53
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408d53
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408d53
cmp dword [ecx + 0x74], 0xe
jbe 0x408d53
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x24b51cf9
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x3a055536
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406cc7
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 0x406ccf
mov dword [ecx*4 + 0x464e80], eax
inc ecx
cmp ecx, 0x100
jb 0x406cca
mov edx, 0x800
jmp 0x406d1c
mov eax, dword [ecx*4 + 0x464a80]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x464e80]
inc ecx
mov dword [ecx*4 + 0x464e7c], eax
cmp ecx, edx
jb 0x406cfb
mov dword [0x461678], 0x44cab0
call fcn.00406e2b
test eax, eax
pop esi
jne 0x406d3e
mov dword [0x461678], 0x44c9d0
ret

Function at 0x40d875
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x45c5f0]
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, 0x460ad8
cmp byte [ebp + 8], 0
je 0x40d8f2
push 0x272e
jmp 0x40d8f7
push 0x272f
call fcn.00403ba2
lea ecx, [esp + 0x14]
call fcn.00407045
lea ecx, [esp + 0x10]
mov esi, 0x463b8c
call fcn.004018b9
push 0
push 1
lea esi, [esp + 0x18]
call fcn.00402c59
call fcn.0040cebb
mov eax, dword [0x460ad8]
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.0040dece
push 0xffff
movzx ebx, ax
call fcn.0040df47
xor eax, eax
cmp bx, word [esp + eax*2 + 0x2c]
je 0x40d96c
inc eax
cmp eax, 0x18
jb 0x40d95a
jmp 0x40d8e5
mov ecx, dword [esp + 0x44]
pop edi
cdq
pop esi
sub eax, edx
pop ebx
xor ecx, esp
sar eax, 1
call fcn.004375f4
mov esp, ebp
pop ebp
ret
Function at 0x415563
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x45c5f0]
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 0x415587
mov eax, dword [eax + 4]
jmp 0x41558a
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 0x4155af
xor al, al
jmp 0x41561c
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 0x415611
cmp word [ebp - 0x4c], 0x5a4d
jne 0x415611
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x415611
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 0x415611
cmp dword [ebp - 0x14c], 0x4550
jne 0x415611
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.004375f4
leave
ret

Function at 0x41d98b
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d9a2
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d9a4
add eax, eax
dec edx
test edx, edx
jg 0x41d995
mov dword [ecx*4 + 0x461680], eax
inc ecx
cmp ecx, 0x100
jb 0x41d98d
ret
Function at 0x42b849
Capabilities:
Move file

Disassembly:
jmp 0x42c9e8
cmp dword [eax + 0x18], 8
jb 0x42c9f3
mov eax, dword [eax + 4]
jmp 0x42c9f6
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x42ca01
mov ecx, dword [ecx + 4]
jmp 0x42ca04
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret

Function at 0x42b84e
Capabilities:
Create directory

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.0040288f
mov eax, esi
push 0x24
push eax
call fcn.00406830
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42bc09
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bc33
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c59
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004375f4
leave
ret
xor bl, bl
jmp 0x42bc17

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.0040288f
mov eax, esi
push 0x24
push eax
call fcn.00406830
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42bc6c
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bc9a
test al, 0x10
jne 0x42bc9a
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c59
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004375f4
leave
ret
xor bl, bl
jmp 0x42bc7e

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45c5f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.0040288f
mov eax, esi
push 0x24
push eax
call fcn.00406830
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x42bcd3
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bd01
test al, 0x10
je 0x42bd01
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c59
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004375f4
leave
ret
xor bl, bl
jmp 0x42bce5

Function at 0x42c9b7
Capabilities:
Set file attributes

Disassembly:
cmp dword [esp + 4], 0xffffffff
jne 0x42c9c1
xor al, al
ret
and dword [esp + 4], 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x42c9d4
mov eax, dword [eax + 4]
jmp 0x42c9d7
add eax, 4
push dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x42ca34
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 0x42ca4c
mov eax, dword [edi]
jmp 0x42ca4e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42ca60
mov al, 1
jmp 0x42cafc
cmp dword [esi + 0x18], 8
jb 0x42ca6a
mov eax, dword [edi]
jmp 0x42ca6c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x42cafa
cmp dword [esi + 0x18], 8
jb 0x42ca85
mov eax, dword [edi]
jmp 0x42ca87
mov eax, edi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00402873
push 0
lea eax, [ebp - 0x20]
call fcn.0042c9b7
pop ecx
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x20]
inc bl
call fcn.00402c59
test bl, bl
pop ebx
jne 0x42cafa
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 8
jb 0x42cac1
mov eax, dword [edi]
jmp 0x42cac3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ca59
cmp dword [esi + 0x18], 8
jb 0x42cad8
mov eax, dword [edi]
jmp 0x42cada
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00402873
push dword [ebp - 4]
lea eax, [ebp - 0x20]
call fcn.0042c9b7
pop ecx
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402c59
xor al, al
pop edi
pop esi
leave
ret

Function at 0x42cb00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x45c5f0]
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.00437780
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x42cb4e
mov edi, dword [edi + 4]
jmp 0x42cb51
add edi, 4
cmp dword [ebx + 0x18], 8
jb 0x42cb5c
mov ebx, dword [ebx + 4]
jmp 0x42cb5f
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 0x42cb86
mov word [ebp + 0x18e], si
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.00402bec
mov al, 1
jmp 0x42cb88
xor al, al
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004375f4
add ebp, 0x194
leave
ret

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

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x42cc81
mov eax, dword [eax + 4]
jmp 0x42cc84
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 0x42cea0
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 0x42cecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42cecd
xor al, al
jmp 0x42cee8
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00449260
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 0x42d025
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 0x42d03a
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 0x42d108
cmp eax, ebx
je 0x42d108
jmp 0x42d075
xor ebx, ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jae 0x42d108
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.0042cea0
test al, al
jne 0x42d0a3
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.0042bb21
sub esp, 0x1c
mov esi, esp
call fcn.0040288f
mov ecx, dword [edi + 0x20]
call dword [ebx]
test eax, eax
jne 0x42d108
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 0x42d073
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
pop esi
mov dword [ecx], edx
pop ebx
leave
ret 0xc

Function at 0x42dfd2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42dfe0
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42e01c
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42dffa
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 0x42e01c
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0042ba03
pop ecx
pop esi
pop ebp
ret 0xc
Function at 0x431902
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 0x431a4e
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 0x43193e
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x431943
inc esi
cmp esi, dword [ebp - 8]
jb 0x431935
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x431a2f
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4319c2
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x43196f
cmp cl, 0xff
jne 0x4319f1
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 0x431a02
movzx edi, byte [edx + 0x450918]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x4319b2
cmp bl, 0xff
jne 0x4319ff
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x43198a
dec ecx
shl edx, cl
and edx, 7
je 0x43195c
movzx ecx, byte [edx + 0x450918]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x450910], 0
mov cl, byte [ebx + 4]
je 0x4319ee
test cl, cl
je 0x4319ee
cmp cl, 0xff
jne 0x43195c
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x431930
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 0x431930
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 0x431c05
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 0x431eec
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 + 0x463a80], al
inc eax
cmp eax, 0x100
jb 0x431ef4
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 + 0x461a80], 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 + 0x461e80], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x462280], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x462680], ecx
movzx ecx, byte [edi + 0x463a80]
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 + 0x462a80], 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 + 0x462e80], 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 + 0x463280], edx
mov dword [eax + 0x463680], ecx
mov dword [ebp - 0x10], edi
jb 0x431f16
mov dword [0x464e68], 0x432a61
mov dword [0x464e70], 0x432aba
mov dword [0x464e6c], 0x432b3d
call fcn.00406ee8
test eax, eax
pop edi
pop esi
pop ebx
je 0x4320c6
mov dword [0x464e68], 0x43377d
mov dword [0x464e70], 0x433782
mov dword [0x464e6c], 0x433787
leave
ret