joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51aa38
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, ecx
dec eax
test eax, eax
jl 0x51aa4d
inc eax
movzx ecx, byte [edx]
xor byte [esi], cl
inc esi
inc edx
dec eax
jne 0x51aa43
pop esi
ret

Function at 0x51ac68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x51ac71
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x200c]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004032ec
cmp dword [ebp - 0xc], 0
jl 0x51acfc
lea edx, [ebp - 0x100c]
lea eax, [ebp - 0x200c]
mov ecx, ebx
call fcn.004032ec
lea edx, [ebp - 0x100c]
mov ecx, ebx
mov eax, dword [ebp - 8]
call dword [ebp + 0x14]
movzx eax, byte [ebp - 0x100c]
xor byte [esi], al
mov ecx, ebx
dec ecx
lea edx, [ebp - 0x200c]
lea eax, [ebp - 0x200b]
call fcn.004032ec
movzx eax, byte [esi]
mov byte [ebp + ebx - 0x200d], al
dec dword [ebp - 0xc]
inc esi
cmp dword [ebp - 0xc], 0
jge 0x51acaa
lea eax, [ebp - 0x100c]
mov edx, ebx
call fcn.00518538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x51ad14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x51ad1d
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2010]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004032ec
cmp dword [ebp - 0x10], 0
jl 0x51adb2
lea edx, [ebp - 0x1010]
lea eax, [ebp - 0x2010]
mov ecx, ebx
call fcn.004032ec
lea edx, [ebp - 0x1010]
mov ecx, ebx
mov eax, dword [ebp - 8]
call dword [ebp + 0x14]
mov ecx, ebx
dec ecx
lea edx, [ebp - 0x2010]
lea eax, [ebp - 0x200f]
call fcn.004032ec
movzx eax, byte [esi]
mov byte [ebp - 9], al
movzx eax, byte [ebp - 9]
mov byte [ebp + ebx - 0x2011], al
movzx eax, byte [ebp - 9]
xor al, byte [ebp - 0x1010]
mov byte [esi], al
dec dword [ebp - 0x10]
inc esi
cmp dword [ebp - 0x10], 0
jge 0x51ad56
lea eax, [ebp - 0x1010]
mov edx, ebx
call fcn.00518538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51adc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x51add1
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x200c]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004032ec
cmp dword [ebp - 0xc], 0
jl 0x51ae60
lea edx, [ebp - 0x100c]
lea eax, [ebp - 0x200c]
mov ecx, ebx
call fcn.004032ec
lea edx, [ebp - 0x100c]
mov ecx, ebx
mov eax, dword [ebp - 8]
call dword [ebp + 0x14]
movzx eax, byte [ebp - 0x100c]
xor byte [esi], al
mov ecx, ebx
dec ecx
lea edx, [ebp - 0x200c]
lea eax, [ebp - 0x200b]
call fcn.004032ec
movzx eax, byte [ebp - 0x100c]
mov byte [ebp + ebx - 0x200d], al
dec dword [ebp - 0xc]
inc esi
cmp dword [ebp - 0xc], 0
jge 0x51ae0a
lea eax, [ebp - 0x100c]
mov edx, ebx
call fcn.00518538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x51ae78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x51ae81
mov eax, dword [ebp - 4]
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x200c]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004032ec
cmp dword [ebp - 0xc], 0
jl 0x51af10
lea edx, [ebp - 0x100c]
lea eax, [ebp - 0x200c]
mov ecx, ebx
call fcn.004032ec
lea edx, [ebp - 0x100c]
mov ecx, ebx
mov eax, dword [ebp - 8]
call dword [ebp + 0x14]
mov ecx, ebx
dec ecx
lea edx, [ebp - 0x200c]
lea eax, [ebp - 0x200b]
call fcn.004032ec
movzx eax, byte [ebp - 0x100c]
mov byte [ebp + ebx - 0x200d], al
movzx eax, byte [ebp - 0x100c]
xor byte [esi], al
dec dword [ebp - 0xc]
inc esi
cmp dword [ebp - 0xc], 0
jge 0x51aeba
lea eax, [ebp - 0x100c]
mov edx, ebx
call fcn.00518538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51d698
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x51d6c7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x51d746
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0051b9f4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51d714
mov cx, word [esp]
sub cx, si
jmp 0x51d716
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51d6fd
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x51d73c
mov cx, word [esp]
sub cx, si
jmp 0x51d73e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x51d725
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x51d7a3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0051d36c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x51d78e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x51d7a3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x51d6a2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x56a490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x56a4ba
cmp dword [ebx + 0x64], 0
jne 0x56a4ba
cmp dword [ebx + 0x6c], 0
jne 0x56a4ba
mov edi, esi
jmp 0x56a541
cmp edi, 0xffffffff
jne 0x56a4c2
dec edi
jmp 0x56a541
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x56a541
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00569864
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x56a50f
mov cx, word [esp]
sub cx, si
jmp 0x56a511
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x56a4f8
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x56a537
mov cx, word [esp]
sub cx, si
jmp 0x56a539
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x56a520
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x56a59e
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0056a22c
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x56a589
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x56a59e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x56a49a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5707ec
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and eax, 1
test al, al
je 0x57081b
mov eax, dword [ebp - 4]
shr eax, 1
xor eax, 0xedb88320
mov dword [ebp - 4], eax
jmp 0x57081e
shr dword [ebp - 4], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 8
jne 0x570802
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [eax*4 + 0x5ac2f0], edx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
jne 0x5707f7
mov byte [0x5ac6f0], 1
mov esp, ebp
pop ebp
ret
Function at 0x57084c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp byte [0x5ac6f0], 0
jne 0x57086f
call fcn.005707ec
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x5708ae
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
xor eax, dword [ebp - 0x14]
and eax, 0xff
mov eax, dword [eax*4 + 0x5ac2f0]
mov edx, dword [ebp - 0x14]
shr edx, 8
xor eax, edx
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x570882
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d01e
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c1b
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x450e00], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
call 0xff4082b9
adc eax, sym.imp.USER32.dll_WindowFromDC
push 0
call dword [sym.imp.USER32.dll_WindowFromDC]
push 8
call fcn.0040232a
push 4
mov esi, eax
call fcn.0040232a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ad0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053bf
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401891
cmp dword [edi], 0
je 0x40189e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x4018a5
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040216e
add esp, 0xc
test eax, eax
jne 0x4018ac
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f10
push 1
call fcn.00401f10
push 5
call fcn.00401f10
push 2
call fcn.00401f10
int3

Function at 0x402c97
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cd6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cd6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cd6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cd6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407864
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407898
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
jmp 0x40789e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407919
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4145af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422b70
cmp edx, dword [eax]
je 0x4145d1
add eax, 8
inc ecx
cmp eax, 0x422c00
jl 0x4145c2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422b70]
jne 0x4146ff
mov eax, dword [0x4296dc]
cmp eax, 1
je 0x4146d9
test eax, eax
jne 0x414602
cmp dword [0x420194], 1
je 0x4146d9
cmp edx, 0xfc
je 0x4146ff
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x414639
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41467c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c1ac
push edi
call fcn.0040ca50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb70
lea eax, [ebp - 0xa0]
push 0x41c1a8
push eax
call fcn.0040bb70
push dword [esi + 0x422b74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412420
add esp, 0x2c
pop edi
jmp 0x4146ff
lea eax, [ebp + 8]
lea esi, [esi + 0x422b74]
push 0
push eax
push dword [esi]
call fcn.0040c050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x43cf70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x43ccda
and ebx, ebx
inc edx
call fcn.0043cf9d
add edx, 0x620cdb5b
xor dword [esi], eax
inc esi
sub edx, ebx
mov ebx, ebx
cmp esi, edi
jne fcn.0043cf70
or edx, ebx
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x43cf60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x43ccda
pop ebx
sub edx, 0x1e2fcc3f
call fcn.0043cf86
mov edx, 0x8b4e1bc3
xor dword [ecx], ebx
inc ecx
add edx, 0xe9151446
or edi, edx
cmp ecx, eax
jne fcn.0043cf60
ret
Function at 0x408941
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
inc ebx
push 0x900c1ba9
pop edx
call fcn.00408961
xor dword [esi], edi
inc esi
dec ebx
sub ebx, edx
cmp esi, eax
jne fcn.00408941
push edx
pop ebx
ret

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d020
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c64
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x447200], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
call 0xff408235
adc eax, sym.imp.USER32.dll_WindowFromDC
push 0
call dword [sym.imp.USER32.dll_WindowFromDC]
push 8
call fcn.0040232a
push 4
mov esi, eax
call fcn.0040232a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ad0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053bf
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401891
cmp dword [edi], 0
je 0x40189e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x4018a5
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040216e
add esp, 0xc
test eax, eax
jne 0x4018ac
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f10
push 1
call fcn.00401f10
push 5
call fcn.00401f10
push 2
call fcn.00401f10
int3

Function at 0x402c97
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cd6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cd6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cd6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cd6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407864
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407898
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
jmp 0x40789e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407919
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x402df0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44821800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
push 0x400
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004e9960
movaps xmm1, xmmword [0xc0f81300]
lea edx, [ebp - 0x3f4]
add esp, 0xc
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0
mov ecx, 8
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x20], xmm0
cmp eax, 0x100
jl 0x402e51
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
xor ebx, ebx
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp + esi*4 - 0x404]
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
mov eax, dword [ebp + ebx*4 - 0x404]
mov dword [ebp + esi*4 - 0x404], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [ebp + ebx*4 - 0x404], ecx
inc esi
cmp eax, edi
cmovl edx, eax
cmp esi, 0x100
jl 0x402ec0
mov edi, dword [ebp + 0x14]
xor esi, esi
mov edx, dword [ebp - 0x40c]
mov ebx, dword [ebp - 0x408]
test edi, edi
jle 0x402f55
inc dl
movzx edx, dl
mov ecx, dword [ebp + edx*4 - 0x404]
lea eax, [ebx + ecx]
movzx ebx, al
mov eax, dword [ebp + ebx*4 - 0x404]
mov dword [ebp + edx*4 - 0x404], eax
mov dword [ebp + ebx*4 - 0x404], ecx
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0x414]
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x402f14
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443d5b
mov esp, ebp
pop ebp
ret