joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402738
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x415da1
call fcn.00415740
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401629
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 1
jg 0x402761
push 1
lea ecx, [ebp - 0x18]
call fcn.00401411
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x402789
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4027bc
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.0040219c
push eax
push ebx
call esi
lea ecx, [ebp - 0x18]
call fcn.00402411
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0040157a
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402b84
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x415e22
call fcn.00415740
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004023d8
and dword [ebp - 4], 0
push 0x4183c4
lea ecx, [ebp - 0x18]
call fcn.00402429
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402c6b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401541
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00401641
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402429
test byte [ebp - 0x268], 0x10
je 0x402c36
push 0x4183c0
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402c4e
push 0x4183b8
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402c4e
push dword [ebp - 0x18]
call fcn.00402b84
pop ecx
jmp 0x402c4a
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x402c88
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c88
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bda
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c88
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c88
xor esi, esi
inc esi
jmp 0x402c8a
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402ca8
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41d6a0], 0
je 0x402cb5
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402ccb
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402ce9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402ce5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b84
pop ecx
pop esi
ret

Function at 0x402f55
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x415e8a
call fcn.00415740
sub esp, 0x18
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x24]
mov edi, eax
call fcn.00401629
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
call fcn.0040219c
inc edi
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0040219c
push eax
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x24]
call fcn.00402411
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040150f
push dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4030c9
xor eax, eax
jmp 0x403122
test al, 0x10
je 0x4030da
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403122
mov eax, dword [0x41d62c]
test eax, eax
je 0x403116
cmp eax, 2
jne 0x40311f
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403116
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x40311f
push esi
call fcn.0040307f
pop ecx
jmp 0x403122
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40340a
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x415ee2
call fcn.00415740
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.004023d8
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jg 0x403445
push esi
lea ecx, [ebp - 0x24]
call fcn.00401411
mov ax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x24]
je 0x403459
cmp ax, 0x2f
jne 0x403462
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
jmp 0x403488
mov ax, word [edi + esi*2]
cmp ax, 0x2f
je 0x40347b
cmp ax, 0x5c
je 0x40347b
dec esi
test esi, esi
jg 0x403466
test esi, esi
je 0x403522
and word [edi + esi*2], 0
push edi
call fcn.00401bd4
test eax, eax
pop ecx
je 0x403477
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4034bc
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004030ac
test eax, eax
pop ecx
pop ecx
jne 0x403556
push edi
call fcn.00401bd4
test eax, eax
pop ecx
je 0x40351f
cmp esi, ebx
jge 0x403544
mov eax, dword [ebp - 0x10]
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 edx, edx
add esp, 0xc
cmp word [ebx], dx
je 0x4034ed
inc esi
lea eax, [edi + esi*2]
jmp 0x403504
mov cx, word [eax]
cmp cx, 0x5c
je 0x403509
cmp cx, 0x2f
je 0x403509
inc esi
inc eax
inc eax
cmp word [eax], dx
jne 0x4034f2
push edi
mov word [edi + esi*2], dx
call fcn.00401bd4
test eax, eax
pop ecx
je 0x40351f
cmp esi, dword [ebp - 0x10]
jl 0x4034cb
jmp 0x403544
push edi
jmp 0x40354a
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403549
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403549
cmp ax, 0x7a
ja 0x403549
cmp word [ecx + 2], 0x3a
jne 0x403549
xor esi, esi
inc esi
jmp 0x403558
push ecx
push 0xc
push 1
call fcn.00407890
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403d0a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x41d010], esi
je 0x403d34
mov eax, 0x41d010
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 8]
je 0x403d34
add eax, 0x10
inc edi
cmp dword [eax], esi
mov ecx, eax
jne 0x403d23
shl edi, 4
mov eax, dword [edi + 0x41d01c]
cmp eax, esi
jne 0x403df5
cmp dword [0x41d248], 0xffffffff
jne 0x403d59
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x41d248], eax
cmp word [0x41d244], 0xffff
jne 0x403d70
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x41d244], ax
mov ax, word [0x41d240]
cmp ax, 0xffff
jne 0x403d87
call fcn.00401e03
mov word [0x41d240], ax
mov ecx, dword [edi + 0x41d018]
cmp ecx, esi
push ebx
mov ebx, dword [edi + 0x41d014]
mov dword [ebp - 4], esi
je 0x403dc1
mov edx, 0x419
cmp dword [0x41d248], edx
je 0x403db6
cmp word [0x41d244], dx
je 0x403db6
cmp ax, dx
jne 0x403dc1
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp - 4]
mov dword [edi + 0x41d01c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x41d01c]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x404337
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x416060
call fcn.00415740
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.00401629
xor esi, esi
inc esi
cmp dword [ebp - 0x14], 2
mov dword [ebp - 4], esi
jg 0x40436a
push 2
lea ecx, [ebp - 0x1c]
call fcn.00401411
mov edi, dword [ebp - 0x1c]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
xor ecx, ecx
cmp eax, ebx
mov word [edi], bx
mov dword [ebp - 0x18], ecx
jbe 0x40439e
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040219c
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.00402411
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + 0xf]
lea esi, [ecx + ecx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040219c
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00402411
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043dc
inc ebx
cmp ebx, 0xfff
jl 0x4043a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040150f
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40440e
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x416072
call fcn.00415740
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41d688], esi
jle 0x404472
mov eax, dword [0x41d68c]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.0040150f
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403e7d
mov eax, dword [0x41d68c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
pop ecx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41d688]
pop ecx
jl 0x404426
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404d98
Capabilities:
Get common file path

Disassembly:
mov eax, 0x416177
call fcn.00415740
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00403d0a
push 2
mov dword [0x41d624], eax
call fcn.00403d0a
push 5
mov dword [0x41d620], eax
call fcn.00403d0a
push 0x15
mov dword [0x41d61c], eax
call fcn.00403d0a
push 0x16
mov dword [0x41d618], eax
call fcn.00403d0a
push 0x17
mov dword [0x41d614], eax
call fcn.00403d0a
xor edi, edi
add esp, 0x18
mov dword [0x41d610], eax
mov dword [0x41d608], edi
mov dword [0x41d60c], edi
xor ebx, ebx
mov esi, 0x41d680
push edi
push ebx
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404eb3
push ebx
lea eax, [ebp - 0xa4]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00402388
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00401541
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401541
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402fe1
cmp dword [edi + 0x41d280], ebx
jne 0x404e9d
push dword [edi + 0x41d284]
lea ecx, [ebp - 0x24]
call fcn.00401541
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401541
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402fe1
add edi, 8
cmp edi, 0x28
jb 0x404e6d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401ce2
xor edi, edi
inc ebx
cmp ebx, 0x40
jl 0x404e0b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40876b
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 0x408773
mov dword [ecx*4 + 0x41d8e0], eax
inc ecx
cmp ecx, 0x100
jb 0x40876e
pop esi
ret

Function at 0x40879a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, ecx
mov ecx, edx
jbe 0x4087c1
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41d8e0]
inc ecx
dec esi
jne 0x4087a7
pop esi
ret 4

Function at 0x40d76b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x416aa7
call fcn.00415740
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x419518
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41953c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f41d
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f41d
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f41d
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f41d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d777
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x416aa7
call fcn.00415740
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x419518
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41953c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f41d
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f41d
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f41d
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f41d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e55a
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 0x40e580
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e580
xor al, al
jmp 0x40e5a0
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004158c0
mov ecx, eax
xor eax, eax
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 0x40fe01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040fdc8
add esp, 0x1c
leave
ret
Function at 0x41426c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x414285
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4142a8
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4142ad
inc esi
cmp esi, dword [ebp - 4]
jb 0x41429f
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4143a1
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4142e3
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x414310
cmp cl, 0xff
je 0x414310
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x41429a
dec ecx
shl edx, cl
and edx, 7
je 0x4142c9
movzx ecx, byte [edx + 0x4198d8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4198d0], 0
mov cl, byte [ebx + 4]
je 0x41430b
test cl, cl
je 0x41430b
cmp cl, 0xff
jne 0x4142c9
mov dword [ebp + 0xc], eax
jmp 0x4142d8
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
cmp dword [ebp + 0x18], 0
je 0x414339
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x414340
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x414374
movzx edi, byte [edx + 0x4198d8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x41435f
cmp al, 0xff
jne 0x414371
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x41432b
mov eax, dword [ebp - 8]
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 0x41429a
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x4159c2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x419b78
call fcn.00415970
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 0x415a16
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x415a16
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x415a2e
cmp ecx, 0x20b
je 0x415a1b
mov dword [ebp - 0x1c], ebx
jmp 0x415a45
cmp dword [eax + 0x400084], 0xe
jbe 0x415a16
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x415a3f
cmp dword [eax + 0x400074], 0xe
jbe 0x415a16
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 [0x41dce4], edi
mov dword [0x41dce8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41d8d0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41d8cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41dce0], eax
call fcn.00415c98
cmp dword [0x41d5f0], ebx
jne 0x415aa2
push fcn.00415c98
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00415c86
push 0x418350
push 0x41834c
call sub.msvcrt.dll__initterm
mov eax, dword [0x41d8c8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41d8c4]
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 0x418348
push 0x418300
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 0x415b2d
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x415b0d
cmp cl, 0x22
jne 0x415afe
cmp byte [eax], 0x22
jne 0x415b16
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x415b21
cmp cl, 0x20
jbe 0x415b12
test byte [ebp - 0x54], 1
je 0x415b38
movzx ecx, word [ebp - 0x50]
jmp 0x415b3b
cmp byte [eax], 0x20
jbe 0x415b16
inc eax
mov dword [ebp - 0x20], eax
jmp 0x415b2d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.0040541b
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x415b59
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x415b95
mov eax, esi
jmp 0x415ba9
call fcn.004159ab
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx