joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40471e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.004147f3
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040429f
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x40475c
cmp eax, 0x2f
jne 0x40478a
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x40478a
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x40477c
cmp eax, 0x5c
je 0x40477c
dec esi
test esi, esi
jg 0x404769
test esi, esi
je 0x40482c
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403126
test eax, eax
je 0x404778
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4047bf
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404496
test eax, eax
je 0x4047bf
xor esi, esi
jmp 0x40484f
mov ecx, edi
call fcn.00403126
test eax, eax
jne 0x404819
push edi
push 0xc
push 1
call fcn.00409623
add esp, 0xc
jmp 0x4047b8
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.msvcrt.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40480b
jmp 0x40480a
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x404811
cmp eax, 0x2f
je 0x404811
inc esi
cmp word [edi + esi*2], cx
jne 0x4047fc
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x4047bf
cmp esi, dword [ebp - 4]
jl 0x4047d9
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x404873
cmp dword [ebp - 4], 2
jne 0x40485c
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40485c
cmp ax, 0x7a
ja 0x40485c
cmp word [ebx + 2], 0x3a
jne 0x40485c
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x404873
push ebx
push 0xc
push 1
call fcn.00409623
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d79
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
push edi
push 1
lea eax, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x1c], edx
mov esi, ecx
call ebx
mov ecx, esi
mov edi, eax
call fcn.004147cf
lea ebp, [edi + 2]
push ebp
mov ecx, esi
call fcn.0040429f
inc edi
push edi
push ebp
mov ecx, esi
call fcn.0040429f
push eax
push dword [esp + 0x18]
call ebx
mov ecx, esi
call fcn.00404284
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x4054ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4226bc], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.0041bc50
call fcn.00403d19
push 3
pop ecx
call fcn.00403d74
push 0x28
pop ecx
mov dword [0x4226c0], eax
call fcn.00403d74
push 2
pop ecx
mov dword [0x4226ac], eax
call fcn.00403d74
push 5
pop ecx
mov dword [0x422698], eax
call fcn.00403d74
push 0x15
pop ecx
mov dword [0x42269c], eax
call fcn.00403d74
push 0x16
pop ecx
mov dword [0x4226b4], eax
call fcn.00403d74
push 0x17
pop ecx
mov dword [0x4226a8], eax
call fcn.00403d74
xor ebx, ebx
mov dword [0x4226a4], eax
mov dword [0x4226b8], ebx
mov dword [0x4226b0], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4055a0
push edi
lea eax, [ebp - 0x5c]
push 0x41eb4c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x5c]
call fcn.00404ffd
xor esi, esi
cmp dword [esi + 0x4223dc], edi
jne 0x405598
mov ecx, dword [esi + 0x4223e0]
push ebx
lea edx, [ebp - 0x268]
call fcn.00404ffd
add esi, 8
cmp esi, 0x28
jb 0x40557e
inc edi
cmp edi, 0x40
jl 0x405545
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405b0e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [0x4226a0], 0
jne 0x405b22
mov ecx, dword [0x4227fc]
jmp fcn.004034d6
ret
Function at 0x405b3a
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x405ce6
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405b62
cmp ecx, 0x2f
jne 0x405ce6
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405b94
push dword [ebp + 8]
jmp 0x405ce7
mov edx, str.7ZSfx_03x.cmd
lea ecx, [ebp - 0x24]
call fcn.00404349
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405cae
push esi
lea ecx, [ebp - 0x18]
call fcn.004147cf
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00414854
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.00414912
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414952
mov esi, 0x41ec18
push esi
lea ecx, [ebp - 0x18]
call fcn.00414912
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.00414912
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414952
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.00414912
push edi
lea ecx, [ebp - 0x18]
call fcn.00414912
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00414952
push esi
lea ecx, [ebp - 0x18]
call fcn.00414912
mov esi, dword [ebp - 0x14]
push 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040441f
mov eax, dword [eax]
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop esi
je 0x405cc1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x405cc1
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405cec
mov ecx, dword [ebp - 0x24]
call fcn.004034d6
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
jmp 0x405ced
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
leave
ret 0xc
Function at 0x405e26
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x4226ec], esi
jle 0x405e78
mov eax, dword [0x4226e8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00414829
lea ecx, [ebp - 0xc]
call fcn.004055da
mov eax, dword [0x4226e8]
push dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
pop ecx
cmp esi, dword [0x4226ec]
jl 0x405e37
pop esi
leave
ret
Function at 0x40703e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.00406ff9
pop esi
pop ebp
ret 4

Function at 0x408c16
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407536
test eax, eax
jne 0x408c34
push eax
push eax
push esi
push 0x408275
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x422698]
mov ecx, esi
push dword [esi + 4]
call fcn.004078aa
push 0x2d
pop ecx
call fcn.00403d74
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.004078aa
pop esi
ret
Function at 0x40912f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004078c4
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407956
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407956
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40802b
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408df6
mov ecx, esi
mov edi, eax
call fcn.00408540
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a390
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
push esi
add eax, 3
xor esi, esi
mov dword [esp + 0xc], ebp
mov dword [ecx], eax
test ebx, ebx
je 0x40a3bf
mov eax, dword [edx]
mov dword [ecx + esi*4 + 0x10], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x40a3b1
cmp esi, ebp
jae 0x40a4b0
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4 + 0x10]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 + 0xc]
test edx, edx
jne 0x40a43d
movzx eax, byte [eax + 0x41f1b0]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x40a493
cmp ebx, 6
jbe 0x40a493
cmp edx, 4
jne 0x40a493
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
movzx edi, byte [edi + str.cw]
or eax, edx
shl eax, 8
or edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4 + 0x10], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x40a3d4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40b560
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
inc edi
xor ebx, ebx
mov ebp, edx
cmp edi, 0x38
je 0x40b595
jmp 0x40b580
and edi, 0x3f
jne 0x40b58b
push esi
call fcn.0040b0a0
mov byte [esi + edi + 0x28], bl
inc edi
cmp edi, 0x38
jne 0x40b580
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040b0a0
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
bswap edx
bswap ecx
mov dword [ebp], edx
mov dword [ebp + 4], ecx
add eax, 2
add ebp, 8
cmp eax, 8
jb 0x40b5b7
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x40b770
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x74
push esi
mov esi, ecx
cmp dword [esi], 0x3f
jne 0x40b7d6
xor eax, eax
cmp dword [esi + 4], eax
jbe 0x40b790
mov cl, byte [esi + eax + 8]
mov byte [esi + eax + 0x20], cl
inc eax
cmp eax, dword [esi + 4]
jb 0x40b782
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x40b7b1
cmp eax, 0x20
jae 0x40b8d9
mov edx, dword [esi + 0x18]
mov dl, byte [ecx + edx]
mov byte [eax + esi + 0x20], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x1c]
jb 0x40b797
cmp eax, 0x20
jae 0x40b8d9
mov edx, 0x20
sub edx, eax
push edx
lea ecx, [eax + esi + 0x20]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
pop esi
add esp, 0x74
ret
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x1c]
push ebx
push ebp
lea eax, [eax + ecx + 8]
xor ebp, ebp
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
cmp eax, ebp
je 0x40b7fa
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov edx, dword [esi + 4]
push edx
lea eax, [esi + 8]
push eax
push ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push edx
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esi + 4]
add edi, ebx
add edi, dword [esi + 0x1c]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov ecx, dword [esi]
add esp, 0x18
mov eax, 1
xor edx, edx
mov dword [esp + 0x1c], 0x6a09e667
mov dword [esp + 0x20], 0xbb67ae85
mov dword [esp + 0x24], 0x3c6ef372
mov dword [esp + 0x28], 0xa54ff53a
mov dword [esp + 0x2c], 0x510e527f
mov dword [esp + 0x30], 0x9b05688c
mov dword [esp + 0x34], 0x1f83d9ab
mov dword [esp + 0x38], 0x5be0cd19
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.0041c280
mov ebp, eax
mov dword [esp + 0x18], edx
lea esp, [esp]
mov ecx, dword [esp + 0x10]
push ecx
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.0040b2b0
xor eax, eax
inc byte [eax + edi]
jne 0x40b8ad
inc eax
cmp eax, 8
jb 0x40b8a2
mov eax, dword [esp + 0x18]
add ebp, 0xffffffff
adc eax, 0xffffffff
mov edx, ebp
or edx, eax
mov dword [esp + 0x18], eax
jne 0x40b890
lea edx, [esi + 0x20]
lea ecx, [esp + 0x1c]
call fcn.0040b560
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x74
ret
Function at 0x40c490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [eax]
push edi
mov ebp, ecx
xor edi, edi
and esi, 7
mov dword [esp + 0xc], ebp
cmp edx, 5
jae 0x40c4b7
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 0xc
add dword [esp + 0x18], 5
push ebx
lea ebx, [edx - 4]
add ebx, ebp
mov dword [esp + 0x14], ebx
lea edx, [edi + ebp]
cmp edx, ebx
jae 0x40c4df
lea ecx, [ecx]
mov cl, byte [edx]
and cl, 0xfe
cmp cl, 0xe8
je 0x40c4df
inc edx
cmp edx, ebx
jb 0x40c4d0
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, ebp
sub edi, ebp
cmp edx, ebx
jae 0x40c5cb
cmp ecx, 2
jbe 0x40c537
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x40c5bc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x1c]
lea ebp, [edi + ecx]
add edi, 5
cmp dword [esp + 0x24], 0
je 0x40c560
add eax, ebp
jmp 0x40c562
shr esi, cl
test esi, esi
je 0x40c4f8
cmp esi, 4
ja 0x40c555
cmp esi, 3
je 0x40c555
mov ecx, esi
shr ecx, 1
movzx eax, byte [ecx + edx + 1]
inc eax
test al, 0xfe
jne 0x40c4f8
or esi, 8
shr esi, 1
inc edi
jmp 0x40c4c6
sub eax, ebp
test esi, esi
je 0x40c596
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x40c590
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [esp + 0x24], 0
je 0x40c58e
add eax, ebp
jmp 0x40c590
sub eax, ebp
mov ebx, dword [esp + 0x14]
xor esi, esi
mov ebp, dword [esp + 0x10]
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x40c4c6
mov ebp, dword [esp + 0x10]
or esi, 8
shr esi, 1
inc edi
jmp 0x40c4c6
pop ebx
cmp ecx, 2
jbe 0x40c5e4
mov edx, dword [esp + 0x1c]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebp
add esp, 8
ret 0xc
mov edx, dword [esp + 0x1c]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebp
add esp, 8
ret 0xc
Function at 0x413dea
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413e10
xor al, al
jmp 0x413e25
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x41bc50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424be0], ecx
inc edx
cmp edx, 0x100
jb 0x41bc52
cmp edx, 0x800
jae 0x41bd29
lea esp, [esp]
mov eax, dword [edx*4 + 0x4247e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424be0]
inc edx
mov dword [edx*4 + 0x424bdc], eax
cmp edx, 0x800
jb 0x41bd00
mov eax, 0x41c740
mov dword [0x424bdc], eax
mov dword [0x426be0], eax
mov dword [0x424bd8], 0x41c660
call fcn.0041bf60
test eax, eax
jne 0x41bd55
mov dword [0x426be0], 0x41c660
ret

Function at 0x41c060
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41c087
cmp dword [esp + 0x24], 5
sbb eax, eax
inc eax
jne 0x41c090
xor eax, eax
add esp, 0x134
ret
lea ecx, [esp]
call fcn.0041bec0
test eax, eax
je 0x41c087
mov eax, dword [esp + 0x18]
shr eax, 0x19
and eax, 1
add esp, 0x134
ret
Function at 0x41c31f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x41fad8
call fcn.0041c5f8
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x41c373
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x41c373
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41c38b
cmp ecx, 0x20b
je 0x41c378
mov dword [ebp - 0x1c], ebx
jmp 0x41c3a2
cmp dword [eax + 0x400084], 0xe
jbe 0x41c373
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41c39c
cmp dword [eax + 0x400074], 0xe
jbe 0x41c373
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x426be8], edi
mov dword [0x426bec], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x424bd4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x424bd0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426be4], eax
call fcn.0041c5f4
cmp dword [0x422640], ebx
jne 0x41c3ff
push fcn.0041c5f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041c5e2
push 0x41d414
push 0x41d410
call sub.msvcrt.dll__initterm
mov eax, dword [0x424bcc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x424bc8]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41d40c
push 0x41d394
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x41c48a
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c46a
cmp cl, 0x22
jne 0x41c45b
cmp byte [eax], 0x22
jne 0x41c473
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41c47e
cmp cl, 0x20
jbe 0x41c46f
test byte [ebp - 0x54], 1
je 0x41c495
movzx ecx, word [ebp - 0x50]
jmp 0x41c498
cmp byte [eax], 0x20
jbe 0x41c473
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41c48a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00406fb3
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x41c4b6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x41c4f2
mov eax, esi
jmp 0x41c506
call fcn.0041c633
ret

Function at 0x40ed3f
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop ecx
sub esp, 4
mov dword [esp], edx
pop edi
call fcn.0040ed62
xor dword [ebx], ecx
dec edx
sub edx, 0xa51a42e
inc ebx
cmp ebx, eax
jne fcn.0040ed3f
push edi
pop edx
ret