joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43060d56
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x22c
mov eax, 0x43068466
call fcn.43065fef
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], edi
push 0x43061020
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x43060d98
push 0x8007000e
call fcn.4305499e
xor eax, eax
mov byte [ebp - 4], 1
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0xd
push 0x43061004
push edi
push 0x43043bac
push ebx
mov dword [ebp - 0x238], 0x104
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
call dword [eax + 0x38]
mov esi, eax
cmp esi, edi
jl 0x43060f86
mov ecx, dword [ebp - 0x228]
cmp word [ecx], 0x2e
mov eax, ecx
je 0x43060e23
xor edx, edx
mov esi, edx
sar esi, 1
cmp esi, dword [ebp - 0x21c]
jge 0x43060e23
add eax, 2
add edx, 2
cmp word [eax], 0x2e
jne 0x43060e0b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea edi, [ebp - 0x220]
mov dword [ebp - 0x21c], eax
call fcn.4305499e
mov esi, eax
test esi, esi
js 0x43060f86
mov esi, 0x43044320
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
push eax
push esi
call fcn.4305499e
mov esi, eax
test esi, esi
js 0x43060f86
mov eax, dword [ebx]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 7
push 0x43060fe4
push 0
push 0x43043bac
push ebx
call dword [eax + 0x38]
mov esi, eax
test esi, esi
js 0x43060f86
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
call fcn.4305499e
mov esi, eax
test esi, esi
js 0x43060f86
mov eax, dword [ebx]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x228]
push ecx
push 0x10
push 0x43060fc0
push 0
push 0x43043bac
push ebx
call dword [eax + 0x38]
mov esi, eax
test esi, esi
js 0x43060f86
push dword [ebp - 0x21c]
lea edi, [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.4305499e
mov esi, eax
test esi, esi
js 0x43060f86
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push 0
push dword [ebp - 0x220]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43060f84
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0x43060ff4
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x43060f84
cmp dword [ebp - 0x230], 1
jne 0x43060f84
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
call fcn.4305499e
mov esi, eax
test esi, esi
js 0x43060f86
cmp esi, 1
je 0x43060f84
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ecx + 8]
and dword [ebp - 0x224], 0
mov dword [ecx + 0x14], eax
jmp 0x43060f86
xor esi, esi
cmp dword [ebp - 0x22c], 0
je 0x43060f9b
push dword [ebp - 0x22c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp - 0x220]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x224]
call edi
mov eax, esi
call fcn.43066025
ret 4
Function at 0x407701
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x407710
pop dword [ebp - 0x38]
mov eax, 0x407710
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4fe128b3
add dword [ebp - 0x48], 0xfe711c98
mov dword [ebp - 0x44], 0xdff04d36
add dword [ebp - 0x44], 0x5242ff0f
mov dword [ebp - 0x40], 0xf7a92df7
add dword [ebp - 0x40], 0x54a31637
mov dword [ebp - 0x3c], 0x1d54375e
sub dword [ebp - 0x3c], 0x1d54375e
lea eax, [ebp - 0x48]
push eax
mov eax, 0x8da8d4c5
add eax, 0x7297ab4f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x5d3ec434
add dword [ebp - 0x48], 0x1733a522
mov dword [ebp - 0x44], 0x9b8d86b0
add dword [ebp - 0x44], 0xa5dedac5
mov dword [ebp - 0x40], 0xd7053526
sub dword [ebp - 0x40], 0x7395c8ba
mov dword [ebp - 0x3c], 0xf3ad538
add dword [ebp - 0x3c], 0xf0c52ac8
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7ac
push 0
call eax
mov ecx, 0x324dc074
add ecx, 0xcdb294d2
xor edx, edx
add edx, eax
mov ebx, 0xfaa09582
sub ebx, 0xfa5fa982
add ebx, dword [ebp - 0x38]
mov edi, 0xdc170e0a
mov dword [ebp - 0x2c], 0xd5cd4190
mov esi, dword [ebx]
sub dword [ebp - 4], esi
sub esi, edi
xor dword [ebp - 4], 0x293495d3
mov dword [edx], esi
add dword [ebp - 0x1c], ecx
add edx, 0x264d7a62
add edx, 0xd9b285a2
add ebx, 0x601f671d
add ebx, 0x9fe098e7
loop 0x407824
add eax, 0xbbc29a30
sub eax, 0xbbc15245
mov ebx, eax
add eax, 0x2cfe99f1
sub eax, 0x2cfe99ec
mov ecx, 0x58a4d04b
sub ecx, 0x5864d04b
add ecx, dword [ebp - 0x38]
call ebx
leave
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
Function at 0x433e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27000]
push edi
jmp 0x433e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x433e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x433e80
mov eax, 1
add ebx, ebx
jne 0x433ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x433e98
jne 0x433eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433e98
xor ecx, ecx
sub eax, 3
jb 0x433ec8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x433f3a
mov ebp, eax
add ebx, ebx
jne 0x433ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x433ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x433f04
inc ecx
add ebx, ebx
jne 0x433ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x433ee5
jne 0x433f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433ee5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x433f24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x433f15
jmp 0x433e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x433f24
add edi, ecx
jmp 0x433e86
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x433f42
cmp byte [edi], 9
jne 0x433f42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x433f47
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x433fbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x49c1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49ce4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x433f74
mov ecx, edi
jns 0x433fa3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x49ce8]
or eax, eax
je 0x433fb9
mov dword [ebx], eax
add ebx, 4
jmp 0x433f91
call dword [esi + 0x49cf8]
mov ebp, dword [esi + 0x49cec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x433ff3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x4029a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d84f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x453040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x218]
call fcn.004088d0
lea ecx, [esi + 0x7cc]
call fcn.0041aad0
lea ecx, [esi + 0x7e0]
mov dword [ebp - 4], 0
call fcn.00402580
lea ecx, [esi + 0x7f4]
call fcn.00402580
push esi
push 0x208
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esi - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x402a10
mov ax, word [0x4404d8]
mov word [edi], ax
lea eax, [esi - 1]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x402a26
mov ecx, dword [str.MERVBot.INI]
mov dword [eax], ecx
mov ecx, dword [0x4404e0]
mov dword [eax + 4], ecx
mov ecx, dword [0x4404e4]
mov dword [eax + 8], ecx
call fcn.00401210
mov dword [esi + 0x214], eax
mov eax, esi
mov dword [esi + 0x8d4], 0x7530
mov byte [esi + 0x804], 0
mov byte [esi + 0x7f0], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407930
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x407951
jl 0x407947
test esi, esi
jne 0x407951
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x407a04
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.00403e20
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x4079c1
jg 0x407989
test esi, esi
je 0x4079c1
cmp ebp, eax
jg 0x407999
jl 0x407993
cmp edi, esi
jae 0x407999
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.0041e510
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x4079e0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4079f0
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x407970
jl 0x4079f0
test edi, edi
jne 0x407970
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x407a49
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x407a50
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.0041e510
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x407a50
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x407ab9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x407a7a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x407aa4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.00422a24
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407ab9
cmp edi, eax
ja 0x407a82
test edi, edi
je 0x407ab9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.00422a24
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x408a30
Capabilities:
Encode data using xor
Get disk information
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x19c
mov eax, dword [0x453040]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x4e4], eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x48], 2
lea eax, [esp + 8]
push eax
je 0x408a83
push str.SOFTWAREMicrosoftWindowsCurrentVersion
jmp 0x408a88
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x17c]
mov dword [esp + 0x10], 0x28
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.RegisteredOwner
push dword [esp + 0x1c]
call esi
push 0x28
lea eax, [esp + 0x17c]
push eax
lea eax, [edi + 0x4e8]
push eax
call fcn.00425e30
add esp, 0xc
mov dword [esp + 0xc], 0x28
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x17c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.RegisteredOrganization
push dword [esp + 0x1c]
call esi
push 0x28
lea eax, [esp + 0x17c]
push eax
lea eax, [edi + 0x528]
push eax
call fcn.00425e30
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ax, word [esp + 0xcc]
push 0x440ab8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
mov word [edi + 0x3d4], ax
call fcn.0041c330
add esp, 0xc
mov dword [edi + 0x3d8], eax
cmp eax, 0xffffffff
jne 0x408ba4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor eax, 0xaaaaaaaa
imul eax, eax, 0x5f346d
add eax, 0x5abcdef
mov dword [edi + 0x3d8], eax
je 0x408b68
cmp eax, 1
je 0x408b68
cmp eax, 0xffffffff
je 0x408b68
push eax
push 0x440ab8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
call fcn.0041c630
add esp, 0x10
push 0
push 0
push 0
push 0
lea esi, [edi + 0x3d0]
push esi
push 0
push 0
push 0x440ac8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esi]
test eax, eax
je 0x408bd2
cmp eax, 1
je 0x408bd2
cmp eax, 0xffffffff
jne 0x408c19
push str.ProductCode
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call fcn.0041c330
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x408bf9
cmp eax, 1
je 0x408bf9
cmp eax, 0xffffffff
jne 0x408c19
mov eax, dword [edi + 0x3d8]
push eax
push str.ProductCode
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
mov dword [esi], eax
call fcn.0041c630
add esp, 0x10
mov eax, dword [esi]
cmp eax, 0x7fffffff
jbe 0x408c29
add eax, 0x7fffffff
mov dword [esi], eax
push eax
push 0x440ad8
push str.SOFTWARE
push reloc.WS2_32.dll_bind
call fcn.0041c630
mov ecx, dword [esp + 0x1b0]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.0041c73b
add esp, 0x19c
ret
Function at 0x409b40
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x1c]
xorps xmm2, xmm2
movd xmm0, ebp
xorps xmm1, xmm1
pshufd xmm3, xmm0, 0
nop
movups xmm0, xmmword [edi + eax*4]
xorps xmm0, xmm3
paddd xmm2, xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
add eax, 8
xorps xmm0, xmm3
paddd xmm1, xmm0
cmp eax, 0x160
jb 0x409b60
paddd xmm1, xmm2
xor edx, edx
movaps xmm0, xmm1
xor esi, esi
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ebx, xmm1
cmp eax, 0x165
jae 0x409bed
mov ecx, 0x165
sub ecx, eax
cmp ecx, 2
jb 0x409bdb
mov ecx, dword [edi + eax*4]
xor ecx, ebp
add edx, ecx
mov ecx, dword [edi + eax*4 + 4]
xor ecx, ebp
add eax, 2
add esi, ecx
mov ecx, eax
cmp eax, 0x164
jb 0x409bb8
cmp ecx, 0x165
jae 0x409be2
mov ecx, dword [edi + eax*4]
xor ecx, ebp
add ebx, ecx
pop edi
lea eax, [esi + edx]
pop esi
pop ebp
add eax, ebx
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x409d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
or eax, 0xffffffff
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x409d86
push ebp
mov ebp, dword [esp + 0x18]
nop dword [eax]
movzx edx, byte [ebx + esi]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [ebp + edx*4]
cmp esi, edi
jb 0x409d70
pop ebp
pop edi
pop esi
not eax
pop ebx
ret

Function at 0x40a0e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor cl, cl
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
je 0x40a15a
cmp esi, 0x20
jb 0x40a150
mov ecx, esi
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm1, xmm1
movups xmm0, xmmword [eax + edx]
xorps xmm2, xmm0
movups xmm0, xmmword [edx + eax + 0x10]
add eax, 0x20
xorps xmm1, xmm0
cmp eax, ecx
jb 0x40a101
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
xorps xmm1, xmm0
movd ecx, xmm1
jmp 0x40a154
xor cl, byte [edx + eax]
inc eax
cmp eax, esi
jb 0x40a150
mov al, cl
pop esi
ret
Function at 0x40a4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e230
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x453040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0041c749
mov edi, eax
add esp, 4
test edi, edi
je 0x40a56d
push 1
mov dword [ebp - 4], 0
call fcn.0041d7af
add esp, 4
mov dword [edi + 4], eax
jmp 0x40a56f
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.00403f30
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [esi + 0x18]
mov byte [esi + 0x48], 0
lea edi, [esi + 0x24]
mov byte [esi + 0x3d], 0
lea ebx, [esi + 0x28]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x45408c]
mov ecx, dword [0x454090]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [ecx]
mov dword [esp + 4], eax
test eax, eax
je 0x415f56
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
cmp byte [eax], 0
mov edi, 1
mov dword [esp + 8], 0
jne 0x415ebb
cmp ebp, 2
jbe 0x415f54
mov edi, 2
push ebx
lea ebx, [edi + 4]
add ecx, 0x10
mov dword [esp + 0x20], ecx
push esi
cmp ebx, ebp
ja 0x415f0f
lea ecx, [eax - 4]
mov dword [esp + 0x18], ecx
push edi
push eax
call fcn.004152a0
push dword [esp + 0x18]
mov esi, eax
push dword [esp + 0x30]
call fcn.004152a0
mov ecx, dword [esp + 0x28]
xor eax, esi
xor eax, dword [esp + 0x24]
add esp, 0x10
add dword [esp + 0x10], 4
add edi, 4
mov dword [esp + 0x14], esi
mov dword [ebx + ecx], eax
add ebx, 4
mov eax, dword [esp + 0x20]
cmp ebx, ebp
jbe 0x415ed2
sub ebp, edi
je 0x415f52
lea esi, [edi + eax]
mov dword [esp + 0x20], 0
push ebp
lea eax, [esp + 0x24]
push esi
push eax
call fcn.0041e510
push dword [esp + 0x1c]
push dword [esp + 0x34]
call fcn.004152a0
xor eax, dword [esp + 0x34]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push ebp
push eax
push esi
call fcn.0041e510
add esp, 0x20
pop esi
pop ebx
pop edi
pop ebp
add esp, 0xc
ret 8

Function at 0x415f60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi]
test ebp, ebp
je 0x416037
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
push edi
mov dword [esp + 0xc], ecx
lea edi, [ecx + 1]
cmp byte [edx], cl
jne 0x415f95
cmp eax, 2
jbe 0x416036
mov edi, 2
push ebx
lea ebx, [edi + 4]
add esi, 0x10
mov dword [esp + 0x14], esi
cmp ebx, eax
ja 0x415ff0
lea eax, [edx - 4]
mov dword [esp + 0x18], eax
nop dword [eax + eax]
push ecx
push esi
call fcn.004152a0
push edi
push dword [esp + 0x2c]
mov esi, eax
call fcn.004152a0
mov ecx, dword [esp + 0x20]
xor eax, esi
mov esi, dword [esp + 0x24]
xor ebp, eax
mov eax, dword [esp + 0x28]
add ecx, 4
add esp, 0x10
mov dword [esp + 0x10], ecx
add edi, 4
mov dword [ebx + eax], ebp
add ebx, 4
cmp ebx, dword [esp + 0x24]
jbe 0x415fb0
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
sub ebx, edi
je 0x416035
lea esi, [edi + edx]
mov dword [esp + 0x24], 0
push ebx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0041e510
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.004152a0
xor eax, dword [esp + 0x38]
xor eax, ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push ebx
push eax
push esi
call fcn.0041e510
add esp, 0x20
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 8

Function at 0x4173a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
mov ebp, 0xffff
push edi
nop dword [eax]
cmp byte [ebx + esi + 0x41b09], 0xac
jne 0x4173ea
push 6
call fcn.0041c749
add esp, 4
lea ecx, [ebx + 0x14cc]
mov edi, eax
push edi
call fcn.00404820
mov ecx, esi
mov word [edi + 4], bp
and ecx, 0x3ff
mov word [edi], cx
mov ecx, esi
shr ecx, 0xa
mov word [edi + 2], cx
inc esi
cmp esi, 0x100000
jb 0x4173b0
pop edi
pop esi
pop ebp
mov ecx, ebx
pop ebx
jmp fcn.00417400
Function at 0x417400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov dword [esp + 4], ebp
mov edx, dword [ebp + 0x14cc]
mov al, byte [ebp + 0x142068]
test edx, edx
je 0x4174c6
push ebx
push esi
push edi
movzx edi, al
mov ebp, 0x200
dec edi
nop dword [eax + eax]
mov ecx, dword [edx]
movzx eax, word [ecx + 2]
movzx esi, word [ecx]
mov ebx, eax
cmp edi, 5
ja case.default.0x417440
jmp dword [edi*4 + 0x4174d4]
cmp si, bp
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x4174b0
cmp ax, bp
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x4174b0
cmp ax, bp
jae 0x417472
cmp si, bp
sbb eax, eax
inc eax
movzx eax, ax
movzx eax, ax
jmp 0x4174b0
cmp si, bp
sbb eax, eax
add eax, 3
movzx eax, ax
jmp 0x4174b0
xor ebx, 0x3ff
movzx ebx, bx
cmp si, ax
jb 0x41749f
cmp bx, si
sbb eax, eax
neg eax
add eax, 2
movzx eax, ax
movzx eax, ax
jmp 0x4174b0
cmp bx, si
sbb eax, eax
neg eax
movzx eax, ax
jmp 0x4174b0
mov eax, 0xffff
mov word [ecx + 4], ax
mov edx, dword [edx + 4]
test edx, edx
jne 0x417430
mov ebp, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, ebp
pop ebp
add esp, 4
jmp 0x4174f0
sub esp, 8
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x41510]
test eax, eax
je 0x41759c
movzx eax, word [eax + 0xd8]
mov cl, byte [ebp + 0x142068]
push esi
mov esi, dword [ebp + 0x14cc]
mov dword [esp + 8], eax
test esi, esi
je 0x41759b
push ebx
push edi
movzx edi, cl
dec edi
mov ecx, dword [esi]
movzx ebx, word [ecx + 2]
movzx edx, word [ecx]
mov dword [esp + 0x14], ebx
cmp edi, 5
ja case.default.0x417538
jmp dword [edi*4 + 0x4175a4]
mov eax, dword [esp + 0x10]
and eax, 1
cmp ax, word [ecx + 4]
setne bl
add bl, 0xdf
jmp 0x41757a
mov eax, dword [esp + 0x10]
and eax, 3
cmp ax, word [ecx + 4]
setne bl
add bl, 0xdf
jmp 0x41757a
mov eax, dword [esp + 0x10]
and eax, 3
cmp ax, word [ecx + 4]
sete bl
add bl, 0xdf
jmp 0x41757a
mov bl, 0xe0
mov eax, dword [esp + 0x14]
movzx eax, ax
push eax
push edx
call fcn.0041b0d0
add esp, 8
mov byte [eax + ebp + 0x41b09], bl
mov esi, dword [esi + 4]
test esi, esi
jne 0x417526
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret