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

Disassembly:
mov eax, 0x4138e1
call fcn.00413260
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004015e5
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 1
jg 0x402726
push 1
lea ecx, [ebp - 0x18]
call fcn.004013cd
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 0x40274e
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402781
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00402161
push eax
push ebx
call esi
lea ecx, [ebp - 0x18]
call fcn.004023d6
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00401536
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 0x402b49
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x413962
call fcn.00413260
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040239d
and dword [ebp - 4], 0
push 0x4153bc
lea ecx, [ebp - 0x18]
call fcn.004023ee
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 0x402c30
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004014fd
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004015fd
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004023ee
test byte [ebp - 0x268], 0x10
je 0x402bfb
push 0x4153b8
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402c13
push 0x4153b0
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x402c13
push dword [ebp - 0x18]
call fcn.00402b49
pop ecx
jmp 0x402c0f
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x402c4d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c4d
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b9f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c4d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c4d
xor esi, esi
inc esi
jmp 0x402c4f
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 0x402c6d
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a680], 0
je 0x402c7a
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 0x402c90
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402cae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402caa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b49
pop ecx
pop esi
ret

Function at 0x402f1a
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4139ca
call fcn.00413260
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.004015e5
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
call fcn.00402161
inc edi
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00402161
push eax
push dword [ebp + 0xc]
call esi
lea ecx, [ebp - 0x24]
call fcn.004023d6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.004014cb
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 0x403071
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 0x40308e
xor eax, eax
jmp 0x4030e7
test al, 0x10
je 0x40309f
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4030e7
mov eax, dword [0x41a60c]
test eax, eax
je 0x4030db
cmp eax, 2
jne 0x4030e4
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4030db
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 0x4030e4
push esi
call fcn.00403044
pop ecx
jmp 0x4030e7
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4033cf
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x413a22
call fcn.00413260
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.0040239d
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jg 0x40340a
push esi
lea ecx, [ebp - 0x24]
call fcn.004013cd
mov ax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x24]
je 0x40341e
cmp ax, 0x2f
jne 0x403427
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
jmp 0x40344d
mov ax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403440
cmp ax, 0x5c
je 0x403440
dec esi
test esi, esi
jg 0x40342b
test esi, esi
je 0x4034e7
and word [edi + esi*2], 0
push edi
call fcn.00401b90
test eax, eax
pop ecx
je 0x40343c
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 0x403481
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00403071
test eax, eax
pop ecx
pop ecx
jne 0x40351b
push edi
call fcn.00401b90
test eax, eax
pop ecx
je 0x4034e4
cmp esi, ebx
jge 0x403509
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 0x4034b2
inc esi
lea eax, [edi + esi*2]
jmp 0x4034c9
mov cx, word [eax]
cmp cx, 0x5c
je 0x4034ce
cmp cx, 0x2f
je 0x4034ce
inc esi
inc eax
inc eax
cmp word [eax], dx
jne 0x4034b7
push edi
mov word [edi + esi*2], dx
call fcn.00401b90
test eax, eax
pop ecx
je 0x4034e4
cmp esi, dword [ebp - 0x10]
jl 0x403490
jmp 0x403509
push edi
jmp 0x40350f
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x40350e
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x40350e
cmp ax, 0x7a
ja 0x40350e
cmp word [ecx + 2], 0x3a
jne 0x40350e
xor esi, esi
inc esi
jmp 0x40351d
push ecx
push 0xc
push 1
call fcn.00407860
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 0x403ccf
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 [0x41a010], esi
je 0x403cf9
mov eax, 0x41a010
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 8]
je 0x403cf9
add eax, 0x10
inc edi
cmp dword [eax], esi
mov ecx, eax
jne 0x403ce8
shl edi, 4
mov eax, dword [edi + 0x41a01c]
cmp eax, esi
jne 0x403dba
cmp dword [0x41a248], 0xffffffff
jne 0x403d1e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x41a248], eax
cmp word [0x41a244], 0xffff
jne 0x403d35
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x41a244], ax
mov ax, word [0x41a240]
cmp ax, 0xffff
jne 0x403d4c
call fcn.00401dc8
mov word [0x41a240], ax
mov ecx, dword [edi + 0x41a018]
cmp ecx, esi
push ebx
mov ebx, dword [edi + 0x41a014]
mov dword [ebp - 4], esi
je 0x403d86
mov edx, 0x419
cmp dword [0x41a248], edx
je 0x403d7b
cmp word [0x41a244], dx
je 0x403d7b
cmp ax, dx
jne 0x403d86
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 + 0x41a01c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x41a01c]
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
mov eax, 0x413ba0
call fcn.00413260
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.004015e5
xor esi, esi
inc esi
cmp dword [ebp - 0x14], 2
mov dword [ebp - 4], esi
jg 0x40432f
push 2
lea ecx, [ebp - 0x1c]
call fcn.004013cd
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 0x404363
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402161
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.004023d6
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + 0xf]
lea esi, [ecx + ecx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402161
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.004023d6
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043a1
inc ebx
cmp ebx, 0xfff
jl 0x404369
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004014cb
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 0x4043d3
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x413bb2
call fcn.00413260
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41a668], esi
jle 0x404437
mov eax, dword [0x41a66c]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004014cb
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403e3d
mov eax, dword [0x41a66c]
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 [0x41a668]
pop ecx
jl 0x4043eb
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404e46
Capabilities:
Get common file path

Disassembly:
mov eax, 0x413cb7
call fcn.00413260
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00403ccf
push 2
mov dword [0x41a604], eax
call fcn.00403ccf
push 5
mov dword [0x41a600], eax
call fcn.00403ccf
push 0x15
mov dword [0x41a5fc], eax
call fcn.00403ccf
push 0x16
mov dword [0x41a5f8], eax
call fcn.00403ccf
push 0x17
mov dword [0x41a5f4], eax
call fcn.00403ccf
xor edi, edi
add esp, 0x18
mov dword [0x41a5f0], eax
mov dword [0x41a5e8], edi
mov dword [0x41a5ec], edi
xor ebx, ebx
mov esi, 0x41a660
push edi
push ebx
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404f61
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.0040234d
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.004014fd
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.004014fd
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402fa6
cmp dword [edi + 0x41a280], ebx
jne 0x404f4b
push dword [edi + 0x41a284]
lea ecx, [ebp - 0x24]
call fcn.004014fd
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.004014fd
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402fa6
add edi, 8
cmp edi, 0x28
jb 0x404f1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401c9e
xor edi, edi
inc ebx
cmp ebx, 0x40
jl 0x404eb9
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40873b
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 0x408743
mov dword [ecx*4 + 0x41a7c0], eax
inc ecx
cmp ecx, 0x100
jb 0x40873e
pop esi
ret

Function at 0x40876a
Capabilities:
Encode data using xor

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

Function at 0x40d735
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4145ef
call fcn.00413260
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, 0x41652c
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, 0x416550
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.0040f3d8
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f3d8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3d8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3d8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d741
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4145ef
call fcn.00413260
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, 0x41652c
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, 0x416550
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.0040f3d8
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f3d8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3d8
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3d8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e4df
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 0x40e505
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e505
xor al, al
jmp 0x40e525
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004133e0
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 0x40fd88
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.0040fd3b
add esp, 0x1c
leave
ret
Function at 0x412a2d
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 0x412a46
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 0x412a69
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x412a6e
inc esi
cmp esi, dword [ebp - 4]
jb 0x412a60
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x412b62
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x412aa4
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x412ad1
cmp cl, 0xff
je 0x412ad1
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x412a5b
dec ecx
shl edx, cl
and edx, 7
je 0x412a8a
movzx ecx, byte [edx + 0x4168c8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4168c0], 0
mov cl, byte [ebx + 4]
je 0x412acc
test cl, cl
je 0x412acc
cmp cl, 0xff
jne 0x412a8a
mov dword [ebp + 0xc], eax
jmp 0x412a99
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 0x412afa
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x412b01
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x412b35
movzx edi, byte [edx + 0x4168c8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x412b20
cmp al, 0xff
jne 0x412b32
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 0x412aec
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 0x412a5b
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 0x413502
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x416968
call fcn.004134b0
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 0x413556
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x413556
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x41356e
cmp ecx, 0x20b
je 0x41355b
mov dword [ebp - 0x1c], ebx
jmp 0x413585
cmp dword [eax + 0x400084], 0xe
jbe 0x413556
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x41357f
cmp dword [eax + 0x400074], 0xe
jbe 0x413556
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 [0x41abc4], edi
mov dword [0x41abc8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41a7a8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41a7a4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41abc0], eax
call fcn.004137d8
cmp dword [0x41a5d0], ebx
jne 0x4135e2
push fcn.004137d8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.004137c6
push 0x41534c
push 0x415348
call sub.msvcrt.dll__initterm
mov eax, dword [0x41a7a0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41a79c]
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 0x415344
push 0x415308
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 0x41366d
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x41364d
cmp cl, 0x22
jne 0x41363e
cmp byte [eax], 0x22
jne 0x413656
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x413661
cmp cl, 0x20
jbe 0x413652
test byte [ebp - 0x54], 1
je 0x413678
movzx ecx, word [ebp - 0x50]
jmp 0x41367b
cmp byte [eax], 0x20
jbe 0x413656
inc eax
mov dword [ebp - 0x20], eax
jmp 0x41366d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.004053cd
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x413699
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4136d5
mov eax, esi
jmp 0x4136e9
call fcn.004134eb
ret