joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4895a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x535008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.0043d660
mov ecx, dword [edi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x24], ecx
xor edi, edi
mov dword [ebp - 0x2c], ebx
cmp dword [ecx + 0x14], edi
jle 0x4896b0
nop word [eax + eax]
mov eax, dword [ebp - 0x20]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
test eax, eax
je 0x489645
mov ecx, dword [ecx + 0x10]
mov edx, esi
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, eax
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x489688
test edx, edx
jne 0x48969a
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x10]
add esi, esi
push 0
mov edx, ebx
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 8
call fcn.0043ff10
add esp, 4
mov eax, dword [eax + 8]
test eax, eax
je 0x4896a0
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
push eax
push esi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.00485500
add esp, 0x18
jmp 0x48973b
movzx ecx, byte [ecx + 0x51b350]
movzx edx, byte [edx + 0x51b350]
sub edx, ecx
jne 0x48969d
inc eax
jmp 0x489630
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x489610
mov esi, dword [ebp - 0x20]
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4896d9
test ecx, ecx
jne 0x4896eb
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test esi, esi
jne 0x4896ee
neg ecx
sbb ecx, ecx
jmp 0x489712
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x489738
inc ebx
jmp 0x4896b7
test ecx, ecx
je 0x489738
mov edx, esi
mov esi, ecx
sub esi, dword [ebp - 0x20]
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x489723
test ecx, ecx
jne 0x489735
mov esi, dword [ebp - 0x20]
test ecx, ecx
jne 0x489738
mov ecx, dword [ebp - 0x24]
mov ebx, str.sqlite_temp_master
jmp 0x4895fc
movzx eax, byte [eax + 0x51b350]
movzx ecx, byte [ecx + 0x51b350]
sub ecx, eax
jne 0x48970f
inc edx
jmp 0x489700
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, 4
jle 0x4895e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051023c
mov esp, ebp
pop ebp
ret
Function at 0x4efe90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [eax], 0
test edi, edi
je 0x4eff87
mov ebx, dword [ebp + 0xc]
mov esi, 0xd
lea edx, [ebx - 1]
test edx, edx
js 0x4efee7
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x4efed0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x14], eax
test edi, edi
je 0x4eff6e
cmp dword [edi + 8], ecx
jne 0x4eff67
cmp dword [edi + 4], ebx
jne 0x4eff67
mov edx, dword [edi]
mov esi, ebx
mov eax, dword [ebp + 8]
sub esi, 4
jb 0x4eff31
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4eff36
add edx, 4
add eax, 4
sub esi, 4
jae 0x4eff20
cmp esi, 0xfffffffc
je 0x4eff7e
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4eff63
cmp esi, 0xfffffffd
je 0x4eff7e
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4eff63
cmp esi, 0xfffffffe
je 0x4eff7e
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4eff63
cmp esi, 0xffffffff
je 0x4eff7e
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x4eff7e
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4eff08
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.004cbab0
test eax, eax
je 0x4eff90
jmp 0x4effaa
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
or eax, esi
je 0x4effa4
push esi
push edi
call fcn.0043a970
add esp, 8
mov esi, eax
jmp 0x4effa6
xor esi, esi
test esi, esi
jne 0x4effb5
test edi, edi
je 0x4effc1
mov edi, 7
jmp 0x4effc3
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
test esi, esi
je 0x4effee
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov dword [ecx], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f7520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov bl, dl
sub edi, 1
mov dword [ebp - 4], ecx
mov esi, 0xd
js 0x4f7554
mov edx, dword [ebp + 8]
nop dword [eax]
movzx ecx, byte [edi + edx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edi, 1
jns 0x4f7540
lea eax, [esi*8]
movzx ecx, bl
xor eax, ecx
xor edx, edx
xor eax, esi
div dword [ebp - 4]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50dca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
cmp ecx, 0x80
jge 0x50dcc1
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x50dd6f
push ebx
xor eax, eax
mov dword [ebp - 8], 0xffffffff
push esi
mov ebx, 0xa2
mov dword [ebp - 4], eax
push edi
add eax, ebx
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x518ea0]
lea eax, [edi + 1]
sub esi, edx
mov edx, edi
cmovs edx, dword [ebp - 8]
test esi, esi
mov dword [ebp - 8], edx
cmovs eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [edi - 1]
cmovs ebx, eax
mov eax, dword [ebp - 4]
cmp ebx, eax
jge 0x50dce1
mov ebx, dword [ebp - 8]
movzx edx, word [edx*4 + 0x518ea0]
pop edi
pop esi
movzx eax, byte [ebx*4 + 0x518ea3]
add eax, edx
cmp ecx, eax
jge 0x50dd56
movzx eax, byte [ebx*4 + 0x518ea2]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x50dd56
shr eax, 1
movzx eax, word [eax*2 + 0x51a1c8]
add eax, ecx
movzx ecx, ax
mov eax, dword [ebp - 0xc]
pop ebx
test eax, eax
je 0x50dd7d
xor edx, edx
cmp eax, 2
sete dl
call fcn.0050d830
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x50dd7f
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x408000
Capabilities:
Accept command line arguments
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Contain obfuscated stackstrings
Copy file
Delete file
Encode data using xor
Get common file path
Get file attributes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x14], 0x3aa00
mov dword [ebp - 0x34], 0x375c3a43
mov dword [ebp - 0x30], 0x34633164
mov dword [ebp - 0x2c], 0x2e303938
mov dword [ebp - 0x28], 0x657865
call 0x408031
pop edx
mov ecx, 0x23e
add edx, 0xf
xor byte [edx], 0xf7
inc edx
loop 0x40803a
xchg ebx, eax
or dl, al
invalid
Function at 0x4032c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x4033c0
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x4032f6
sub esp, 0x10
call fcn.00403b92
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x4033c2
cmp eax, 0xf
jne 0x40330a
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x4032ee
cmp eax, 0x14
jne 0x40331a
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x4032ee
cmp eax, 0x201
jne 0x40332e
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.00403c04
jmp 0x4032e9
cmp eax, 0x202
jne 0x403340
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x4032ee
cmp eax, 0x18
jne 0x403398
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x436a70], 0
mov edi, eax
jne 0x40338d
xor ecx, ecx
mov byte [0x436a70], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x403ff6
push ecx
push ecx
call fcn.0040de68
add esp, 0x18
test eax, eax
je 0x40338d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x4033c2
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.004044d9
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x4032ee
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x40758b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
push eax
mov esi, ecx
push eax
push eax
push eax
mov dword [esi], 0x42fed8
mov dword [esi + 4], eax
or dword [esi + 0xc], 0xffffffff
push str.AmigoLoader
mov dword [esi + 8], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
je 0x407648
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 4]
push edi
push 4
push ecx
push 2
push eax
mov dword [ebp - 4], 0x36b0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4075e6
call edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 4]
call ebx
test eax, eax
jne 0x4075f9
call edi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 4]
call ebx
test eax, eax
jne 0x40760c
call edi
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 3
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407624
call edi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
and dword [ebp - 0xc], 0
push 8
push eax
push 0x32
push dword [esi + 4]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x407646
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4087cd
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x434558]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.AMIGOLOADERV2
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
test cl, cl
jne 0x408991
mov eax, dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], esi
push eax
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.0040875d
push ebx
lea ecx, [esp + 0x6c]
call fcn.004031f1
xorps xmm0, xmm0
mov dword [esp + 0x1c], esi
movdqu xmmword [esp + 0xc], xmm0
call fcn.004064ee
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.004064ee
mov dword [esp + 0x20], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x28], esi
push eax
call fcn.00405313
push esi
push 1
lea ecx, [esp + 0x70]
call fcn.00403b4c
cmp dword [esp + 0x28], esi
jne 0x4088f3
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
call fcn.0040af1f
push eax
lea ecx, [esp + 0x10]
call fcn.00405313
push esi
push 1
lea ecx, [esp + 0x70]
call fcn.00403b4c
push esi
push 1
lea ecx, [esp + 0x54]
call fcn.00403b4c
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x84]
call fcn.00402094
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
push esi
lea ecx, [esp + 0x90]
mov ebx, eax
call fcn.00401601
test eax, eax
jne 0x40892b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x40895a
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00408706
push esi
push 0x4089ed
push ebx
push 0x82
push dword [0x435a94]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, eax
lea ecx, [esp + 0x80]
call fcn.004022bb
lea ecx, [esp + 0x20]
call fcn.00405e01
lea ecx, [esp + 0x18]
call fcn.00405e01
lea ecx, [esp + 0xc]
call fcn.00405cd1
cmp byte [esp + 0x34], 0
je 0x408991
lea ecx, [esp + 0x2c]
call fcn.004089b5
test edi, edi
je 0x40899c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x25c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d5c1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4093f8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
jne 0x40949d
push esi
xor eax, eax
mov dword [ebp - 4], 0x1388
push eax
push eax
push eax
push eax
push str.AmigoLoader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40949c
push 4
lea eax, [ebp - 4]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409495
push 4
lea eax, [ebp - 4]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409495
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409495
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x409474
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80000000
push ecx
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x409495
push eax
mov byte [edi + 0x24], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ab0b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040aba8
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40ab9e
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40ab97
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40ab8e
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ab8e
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40aba0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040aba8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40abe6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40abf7
xor al, al
jmp 0x40ac60
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40ac5d
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40ac5d
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40ac20
mov esi, ecx
test esi, esi
je 0x40ac5d
lea eax, [esi + 8]
test eax, eax
je 0x40ac5d
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40ac4f
mov al, byte [edx]
cmp al, 0x82
jne 0x40ac4f
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40ac5d
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40ac5f
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40b0eb
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x4285bf
call fcn.00411b33
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x844]
xor esi, esi
mov dword [ebp - 0x83c], eax
mov ecx, 0xff
mov dword [ebp - 0x850], esi
mov eax, esi
mov dword [ebp - 0x848], ecx
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x838], edx
push 0x20
pop ebx
or edi, 0xffffffff
dec ebx
shr edi, 1
mov dword [ebp - 0x834], ebx
cmp edi, 0x7ffffffd
ja 0x40b140
lea edx, [eax - 0x80000000]
mov dword [ebp - 0x830], edi
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x840], ebx
sub eax, edx
mov dword [ebp - 0x828], edx
cmp eax, 0xffffffff
jne 0x40b1a0
mov edi, esi
mov dword [ebp - 0x814], esi
lea ecx, [ebp - 0x838]
call fcn.0040b46b
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40b17e
xor esi, esi
jmp 0x40b250
inc eax
mov dword [ebp - 0x820], eax
lea ecx, [eax - 1]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], esi
mov eax, esi
mov dword [ebp - 0x824], eax
test ecx, ecx
je 0x40b20c
lea eax, [ebx - 1]
mov ebx, esi
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x838]
call fcn.0040b46b
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
shl esi, cl
add ebx, ebx
add esi, esi
or ebx, edi
or esi, eax
cmp ebx, dword [ebp - 0x814]
jb 0x40b1cd
mov dword [ebp - 0x824], ebx
mov ebx, dword [ebp - 0x840]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x818], esi
xor esi, esi
xor edx, edx
div dword [ebp - 0x820]
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x818]
xor edx, edx
div dword [ebp - 0x820]
cmp eax, ecx
jb 0x40b240
mov ecx, dword [ebp - 0x814]
cmp dword [ebp - 0x81c], ecx
jne 0x40b1b0
mov eax, dword [ebp - 0x818]
xor edx, edx
div dword [ebp - 0x820]
mov edi, edx
mov edx, dword [ebp - 0x82c]
mov ebx, 0x800
mov eax, dword [ebp - 0x828]
add eax, edi
add eax, 0x80000000
mov byte [ebp + edx - 0x810], al
inc edx
mov dword [ebp - 0x82c], edx
cmp edx, ebx
jge 0x40b28b
mov ecx, dword [ebp - 0x848]
mov eax, dword [ebp - 0x84c]
jmp 0x40b13a
push ebx
lea ecx, [ebp - 0x838]
call fcn.0040b315
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x838]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, ebx
jne 0x40b2cd
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40b2b4
mov esi, dword [ebp - 0x83c]
mov ecx, esi
push edi
call fcn.00403190
test edi, edi
je 0x40b2e6
push edi
call fcn.0040d5bc
pop ecx
mov eax, esi
call fcn.00411ae2
ret 8
Function at 0x40b5a6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4285ef
call fcn.00411b00
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebx], esi
je 0x40b685
cmp dword [ebx], 0xffffffff
je 0x40b685
push 0x40
pop edi
push edi
lea ecx, [ebp - 0x24]
call fcn.0040b706
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40b5e6
mov ecx, dword [eax]
jmp 0x40b5e8
mov ecx, eax
mov esi, dword [ebp - 0x24]
lea eax, [edi + edi]
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b63c
cmp dword [ebp - 0x10], 1
je 0x40b61b
cmp dword [ebp - 0x10], 2
je 0x40b61b
push 0xd
pop eax
jmp 0x40b63c
test esi, esi
je 0x40b63a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b635
test al, 1
jne 0x40b616
shr eax, 1
cmp word [esi + eax*2 - 2], di
je 0x40b63a
jmp 0x40b616
xor eax, eax
mov word [esi], ax
mov eax, edi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40b659
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub edi, esi
and edi, 0xfffffffe
push edi
call fcn.0040b76a
jmp 0x40b5d9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], edi
je 0x40b67d
push dword [ebp + 0x10]
call fcn.004031c9
test esi, esi
je 0x40b690
push esi
call fcn.0040d5bc
pop ecx
jmp 0x40b690
push esi
call fcn.004031f1
jmp 0x40b670
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.004031c9
mov eax, dword [ebp + 8]
call fcn.00411ace
ret 0xc

Function at 0x40b69b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b701
cmp dword [edi], 0xffffffff
je 0x40b701
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40b6b6
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40b6c2
mov esi, dword [esi]
test ecx, ecx
jne 0x40b6cb
push 0xd
pop eax
jmp 0x40b6fd
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40b6d5
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40b94f
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b962
shr eax, 4
and eax, 1
ret
xor al, al
ret