joyce8/EMBER2024-capa huggingface dataset:
Function at 0x558906
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x108], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push ebx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x10c], esi
call fcn.0053d87a
mov dword [ebp - 0x11c], eax
pop ecx
test eax, eax
jne 0x55897b
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053cfc5
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push edi
call fcn.0052cc10
add esp, 0x1c
push 0x4d
pop esi
jmp 0x558ac7
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x5589c0
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053cfc5
push eax
push ebx
push str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x55896a
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x558a02
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053cfc5
push eax
push ebx
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push edi
call fcn.0052cc10
add esp, 0x1c
push 0x4d
pop esi
jmp 0x558abb
cmp dword [ebp - 0x120], esi
mov esi, dword [ebp - 0x124]
jl 0x558a2c
mov eax, 0x100000
jg 0x558a1b
cmp esi, eax
jbe 0x558a2c
push eax
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push edi
call fcn.0052cc10
add esp, 0xc
jmp 0x5589fa
lea eax, [esi + 1]
push eax
call dword [0x59e138]
pop ecx
mov ecx, eax
mov dword [ebp - 0x108], ecx
test ecx, ecx
jne 0x558a47
push 0x1b
jmp 0x5589fc
test esi, esi
je 0x558aa3
mov edx, dword [ebp - 0x10c]
and dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
push 0
push eax
mov eax, esi
sub eax, edx
push eax
lea eax, [edx + ecx]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x558afe
cmp dword [ebp - 0x110], 0
mov ecx, dword [ebp - 0x108]
je 0x558af6
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], edx
cmp edx, esi
jb 0x558a51
push edi
push ebx
push esi
push ecx
push dword [ebp - 0x118]
mov byte [esi + ecx], 0
call fcn.005586b8
add esp, 0x14
mov esi, eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x108]
call dword [0x59e13c]
mov eax, dword [ebp - 0x11c]
pop ecx
test eax, eax
je 0x558ae5
push eax
call fcn.00561f7c
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret
mov esi, dword [ebp - 0x10c]
jmp 0x558aa3
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053cfc5
push eax
push ebx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x5589f1
Function at 0x55c4bb
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
push 0xf0000040
push ebx
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x55c503
xor al, al
jmp 0x55c595
push 0x14
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0055e280
lea eax, [ebp - 0xc]
mov word [ebp - 0x18], 0x208
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.0055c5a4
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0055dc3d
add esp, 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x55c55d
xor bl, bl
jmp 0x55c588
push 8
push edi
push esi
call fcn.0055dd00
add esp, 0xc
lea eax, [ebp - 0x1c]
push dword [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret
Function at 0x55ca17
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x59e138]
mov esi, eax
pop ecx
test esi, esi
je 0x55cb0c
lea ecx, [esi + 0xc]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [edi + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push ebx
lea ebx, [edi + 4]
cmp eax, dword [edi + 0x10]
jbe 0x55ca85
push ecx
call dword [edi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [ebx]
mov eax, dword [esi + 8]
add eax, dword [edi + 0xc]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
push eax
call dword [edi + 8]
mov eax, dword [edi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x55ca8b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [esi + 4]
call dword [edi]
push dword [esi + 8]
call dword [edi]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x55cb04
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov al, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [ebx]
mov al, byte [edi]
xor al, 0x5c
inc edi
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [ebx]
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x55caa9
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
lea ebx, [edi + 4]
jmp 0x55cb04
push 1
push 0x590990
push dword [esi + 4]
call dword [ebx]
push 1
push 0x590991
push dword [esi + 8]
call dword [ebx]
mov eax, dword [ebp - 8]
add esp, 0x18
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edi + 0x10]
jb 0x55cae2
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x55cb59
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 0x18
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x55cb8a
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x55dc3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x55dc87
mov cl, byte [edi + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [edi + esi], cl
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x55dc4c
pop edi
pop esi
pop ebp
ret
Function at 0x55dcbf
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 0xf0000040
push 1
push ebx
push ebx
lea edi, [esi + 4]
mov dword [esi], ebx
push esi
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x55dcf5
push edi
push ebx
push ebx
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5741b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00573e76

Function at 0x576f26
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00576da5

Function at 0x57c0b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57c0dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57c0dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404082
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push dword [esi]
push 1
push dword [esi + 8]
push ebx
call fcn.0042ebee
mov edi, dword [esi + 8]
mov ecx, eax
add esp, 0x10
mov eax, edi
cmp ecx, 1
cdq
sete byte [ebp - 1]
idiv dword [esi + 0x18]
mov dword [esi + 0x1c], eax
cmp ecx, 1
jne 0x4041e6
add dword [esi + 0x14], edi
push 0xffffffffffffffff
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
push 0x18
lea ecx, [esi + 0x20]
pop edx
mov dword [eax], str.read
call fcn.00402c1f
mov edx, dword [esi + 0x18]
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, eax
mov eax, dword [esi + 0x1c]
add esp, 0x10
mov dword [ebp - 0x10], edx
mov edi, ebx
test eax, eax
jne 0x40411b
lea edi, [esi + 0x20]
cmp dword [esi + 0x18], 1
jle 0x4041e6
test byte [esi + 4], 0x80
je 0x4041e6
mov ecx, dword [esi + 0x1c]
jmp 0x4041c4
mov eax, dword [ebp - 0xc]
dec eax
xor ebx, ebx
cmp dword [ebp - 0x10], 1
mov dword [ebp - 0xc], eax
jne 0x40412b
cmp byte [edi], bl
jmp 0x404130
xor eax, eax
cmp word [edi], ax
sete bl
mov eax, edx
test ebx, ebx
mov ebx, dword [ebp - 8]
je 0x404162
test ecx, ecx
je 0x40415b
cmp edi, ecx
je 0x40415b
mov eax, edi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call fcn.00427fc0
mov eax, dword [esi + 0x18]
add esp, 0xc
inc ebx
lea ecx, [eax + edi]
mov dword [ebp - 8], ebx
add edi, eax
mov edx, eax
cmp dword [ebp - 0xc], 0
jne 0x404118
test ecx, ecx
je 0x404186
cmp edi, ecx
je 0x404186
sub edi, ecx
imul eax, ebx
push edi
push ecx
sub ecx, eax
push ecx
call fcn.00427fc0
add esp, 0xc
lea edi, [esi + 0x20]
test ebx, ebx
je 0x4041af
push 0xffffffffffffffff
push ebx
push ecx
mov eax, esp
xor edx, edx
push ecx
inc edx
mov ecx, edi
and dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.00402c1f
add esp, 0x10
sub dword [esi + 0x1c], ebx
mov ebx, dword [ebp + 8]
jmp 0x4040fc
dec ecx
movzx eax, word [ebx + ecx*2]
rol ax, 8
mov word [ebx + ecx*2], ax
test ecx, ecx
jne 0x4041b7
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
mov edx, ecx
push ecx
mov dword [eax], ecx
mov eax, esp
mov ecx, edi
mov dword [eax], str.endian_swap
call fcn.00402c1f
add esp, 0x10
mov bl, byte [ebp - 1]
test bl, bl
jne 0x4041f4
mov ecx, esi
call fcn.00403f61
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x40452d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
imul eax, edx
cmp dword [ebp + 0xc], 0
cmovne esi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
test byte [edi + 4], 0x80
mov dword [edi + 8], eax
je 0x4045bc
test ecx, ecx
jne 0x40459b
mov eax, edx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e506
mov ecx, dword [edi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 0xc], ebx
push ecx
push esi
push ebx
call fcn.00427a40
mov edx, dword [edi + 0x1c]
add esp, 0x10
mov ecx, ebx
mov esi, ebx
jmp 0x40459b
dec edx
movzx eax, word [ecx + edx*2]
rol ax, 8
mov word [ecx + edx*2], ax
test edx, edx
jne 0x40458e
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
push ecx
lea ecx, [edi + 0x20]
and dword [eax], edx
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.00402c1f
add esp, 0x10
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.0042ef48
add esp, 0x10
lea ebx, [eax - 1]
mov eax, dword [ebp + 0xc]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x4045e3
push eax
call fcn.0040e501
pop ecx
test bl, bl
je 0x404613
mov eax, dword [edi + 8]
add dword [edi + 0x14], eax
mov eax, dword [edi + 0x24]
push 0xffffffffffffffff
push dword [edi + 0x1c]
push ecx
mov esi, esp
push ecx
lea ecx, [edi + 0x20]
mov dword [esi], eax
mov eax, esp
push 0x18
pop edx
mov dword [eax], str.write
call fcn.00402c1f
add esp, 0x10
jmp 0x40461a
mov ecx, edi
call fcn.00403f61
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x4087e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, ecx
cmp dword [ebx + 0x230], esi
jne 0x40884d
push 4
push str.Built_with_Vbsedit
push str.This_program_was_built_with_the_evaluation_version_of_Vbsedit._r_n_r_nThe_registered_version_doesnt_include_this_message._r_n_r_nWould_you_like_to_visit_our_website_
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40884d
push 0xa
push 0x44fdc4
push esi
push str.https:__www.vbsedit.com
push str.open
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
call esi
cmp eax, 0x20
jae 0x40884d
push 0xa
push 0x44fdc4
push str.https:__www.vbsedit.com
push str.iexplore.exe
push str.open
push 0
call esi
mov dword [edi + 0xc], ebx
push dword [ebx + 0x22c]
push dword [ebx + 0x224]
push ecx
mov ecx, edi
call fcn.00408916
push 0x44631c
mov ecx, ebx
call fcn.00417529
push eax
push ecx
mov ecx, esp
push str.WScript
call fcn.0040ab67
mov ecx, edi
call fcn.00408695
mov eax, dword [ebx + 0x22c]
cmp eax, 1
jne 0x4088bb
mov eax, dword [ebx + 0x238]
push ecx
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp + 8], esi
call fcn.00401977
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00409a8b
mov ecx, edi
call fcn.00409c55
jmp 0x40890d
cmp eax, 2
jne 0x4088e4
mov eax, dword [ebx + 0x238]
push ecx
sub eax, 0x10
mov esi, esp
push eax
mov dword [ebp + 8], esi
call fcn.00401977
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00409b70
jmp 0x408906
cmp eax, 3
jne 0x40890d
lea eax, [ebx + 0x238]
mov ecx, edi
push eax
call fcn.00408c18
lea ecx, [edi + 4]
call fcn.004195e8
mov ecx, edi
call fcn.00409c55
mov ecx, edi
call fcn.00409c95
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x40b3a2
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x43ee50
call fcn.00426599
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x14]
xor ebx, ebx
push ebx
push ebx
push eax
push 0x400
call esi
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea ecx, [ebp - 0x10]
call fcn.0040203e
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call esi
push eax
lea eax, [ebp - 0x10]
push str.error__d_n_s
push eax
call fcn.00401acd
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.004019d2
mov ecx, edi
call fcn.0040c301
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40cd71
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x43f14b
call fcn.00426599
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401fad
and dword [ebp - 4], 0
push dword [ebx + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call esi
cmp dword [ebx + 0x24], 0
je 0x40ce6d
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 1
jne 0x40ce4d
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.0040e506
push esi
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.00428540
add esp, 0x10
xor eax, eax
push eax
push eax
push esi
push dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
push 0xfde9
call edi
mov edi, dword [ebp - 0x10]
mov byte [edi + esi - 1], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push 0xfde9
mov dword [ebp - 0x10], eax
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ce1c
push 0
lea eax, [ebp - 0x18]
sub ecx, edx
push eax
push ecx
push edi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call esi
push edi
call fcn.0040e501
pop ecx
jmp 0x40ce9e
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
call esi
jmp 0x40ce9e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040a5e5
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x20]
call esi
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00402052
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402052
call fcn.00426562
ret 4
Function at 0x40d84d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
inc esi
push esi
mov dword [ebp - 4], edi
call fcn.0040e506
push esi
xor ebx, ebx
mov dword [ebp - 8], eax
push ebx
push eax
call fcn.00428540
mov ecx, dword [ebp + 0x10]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d87a
lea esi, [edi + 0x20]
sub ecx, edx
mov edi, dword [ebp + 0x10]
xor edx, edx
mov eax, ebx
div ecx
mov al, byte [edx + edi]
mov byte [esi + ebx + 0x100], al
mov byte [esi + ebx], bl
inc ebx
cmp ebx, 0xff
jle 0x40d889
mov edi, dword [ebp - 4]
xor ebx, ebx
mov ah, bl
mov ebx, 0x100
mov dl, byte [esi]
mov al, byte [esi + 0x100]
add al, dl
add ah, al
movzx ecx, ah
mov al, byte [ecx + edi + 0x20]
mov byte [esi], al
inc esi
mov byte [ecx + edi + 0x20], dl
sub ebx, 1
jne 0x40d8b1
mov cl, bl
cmp dword [ebp + 0xc], ebx
jbe 0x40d926
mov eax, dword [ebp - 8]
sub dword [ebp + 8], eax
mov dword [ebp - 4], eax
inc bl
movzx esi, bl
mov dl, byte [esi + edi + 0x20]
add cl, dl
mov byte [ebp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + edi + 0x20]
mov byte [esi + edi + 0x20], al
mov byte [ecx + edi + 0x20], dl
movzx ecx, byte [esi + edi + 0x20]
movzx eax, dl
mov edx, dword [ebp - 4]
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp + 8]
mov al, byte [eax + edi + 0x20]
xor al, byte [ecx + edx]
mov cl, byte [ebp + 0x13]
mov byte [edx], al
inc edx
sub dword [ebp + 0xc], 1
mov dword [ebp - 4], edx
jne 0x40d8e0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40de49
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0041b457
test eax, eax
jne 0x40de82
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.0040df87
xor eax, eax
pop ecx
inc eax
jmp 0x40df7e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x26c
call fcn.0040e4c9
pop ecx
test eax, eax
je 0x40dea3
mov ecx, eax
call fcn.0040addc
mov esi, eax
jmp 0x40dea5
mov esi, ebx
xor edi, edi
inc edi
call fcn.0042f869
cmp dword [eax], edi
jle 0x40df40
call fcn.0042f86f
lea ecx, [esp + 0xc]
mov eax, dword [eax]
push dword [eax + edi*4]
call fcn.00401fad
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x260], ebx
jne 0x40df17
mov edx, 0x45078c
mov ecx, eax
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x40df03
test bx, bx
je 0x40defd
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x40df03
add ecx, 4
add edx, 4
test bx, bx
jne 0x40dedb
xor ebx, ebx
mov ecx, ebx
jmp 0x40df0a
sbb ecx, ecx
or ecx, 1
xor ebx, ebx
test ecx, ecx
jne 0x40df17
mov byte [esi + 0x220], 1
jmp 0x40df2a
lea ecx, [esi + 0x258]
push eax
push dword [ecx + 8]
call fcn.0040ea54
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0x10]
call fcn.00402052
inc edi
call fcn.0042f869
cmp edi, dword [eax]
jl 0x40deb5
mov ecx, esi
call fcn.0040b6a5
cmp byte [esi + 0x220], 0
jne 0x40df6f
mov eax, dword [esi + 0x23c]
cmp dword [eax - 0xc], ebx
je 0x40df6f
mov eax, dword [esi + 0x240]
cmp dword [eax - 0xc], ebx
je 0x40df6f
mov ecx, esi
call fcn.0040b419
jmp 0x40df7e
push esi
call fcn.004085e5
mov ecx, eax
call fcn.004087e6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41cef4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x43f9cf
call fcn.00426604
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x41cffe
cmp ebx, dword [esi + 0xc]
jge 0x41cffe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41cf4b
cmp ebx, dword [edi + 8]
jl 0x41cfec
cmp dword [ebp + 0xc], 0
je 0x41cfec
xor ebx, ebx
jmp 0x41cf85
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.0041cb75
mov edi, eax
test edi, edi
je 0x41cf65
mov dword [edi], vtable.CThreadData.0
jmp 0x41cf67
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0041ce87
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x41cfa0
push 4
push dword [esi + 0xc]
call fcn.0040e6ca
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41cfb8
push 2
push 4
push dword [esi + 0xc]
call fcn.0040e6ca
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x41d025
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00428540
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41cffe
cmp ebx, dword [edi + 8]
jge 0x41cffe
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00426562
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040efa5
int3