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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x100258bf
pop dword [ebp - 0x44]
mov eax, 0x100258bf
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x38765
push 0
mov eax, 0x83f630f7
add eax, 0x8c0ff03d
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x4657
xor edi, edi
add edi, eax
mov edx, 0x10086000
add edx, dword [ebp - 0x44]
mov esi, 0x6e9a079e
sub dword [ebp - 0x18], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x40], ecx
xor ebx, esi
mov dword [edi], ebx
sub dword [ebp - 0x34], ebx
add edi, 4
add edx, 0xd274b629
sub edx, 0xd274b625
loop 0x10025909
add eax, 0x10c2f
mov ebx, eax
add eax, 0xcff22d9f
add eax, 0x300dd266
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x10029750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x534
mov eax, dword [0x100682c0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x544]
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x42c], 0
mov byte [esp + 0x428], 0
mov byte [esp + 0x31e], 0
mov byte [ecx + edx], 1
movzx ecx, word [esi + 0xe4]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x53c], eax
mov eax, dword [esp + 0x548]
mov byte [ecx + edx + 2], 0
movzx ecx, byte [eax]
sub ecx, 0x61
cmp ecx, 0x19
push edi
ja 0x10029832
mov ebx, dword [esp + 0x10]
jmp 0x100297c0
movzx ecx, byte [ecx + 0x1002a130]
jmp dword [ecx*4 + 0x1002a10c]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
mov ecx, dword [esp + 0x530]
call fcn.10057644
add esp, 0x534
ret
Function at 0x1005a116
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100630f0
call fcn.10058c20
push 8
call fcn.100258b0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1006a74c], esi
jne 0x1005a14a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x1006a748], esi
mov al, byte [ebp + 0x10]
mov byte [0x1006a744], al
cmp dword [ebp + 0xc], edi
jne 0x1005a194
cmp dword [0x1006d408], edi
je 0x1005a184
mov eax, dword [0x1006d404]
sub eax, 4
mov dword [0x1006d404], eax
cmp eax, dword [0x1006d408]
jb 0x1005a184
mov eax, dword [eax]
cmp eax, edi
je 0x1005a165
call eax
jmp 0x1005a165
push 0x10066020
mov eax, 0x1006601c
call fcn.1005a076
pop ecx
push 0x10066028
mov eax, 0x10066024
call fcn.1005a076
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1005a1c5
cmp dword [ebp + 0x10], edi
jne 0x1005a1d3
mov dword [0x1006a74c], esi
push dword [ebp + 8]
call fcn.1005a034
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1005a1d2
push 8
call fcn.100258b0
pop ecx
ret
call fcn.10058c5b
ret

Function at 0x1005aca9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100682c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100686e0]
je 0x1005acde
inc eax
cmp eax, 0x13
jb 0x1005accf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100686e0]
jne 0x1005ae04
mov eax, dword [0x1006a68c]
cmp eax, 1
je 0x1005addc
cmp eax, edx
jne 0x1005ad0e
cmp dword [0x1006a690], 1
je 0x1005addc
cmp ecx, 0xfc
je 0x1005ae04
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1005ad44
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1005af80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.1005b1b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1005ad78
mov eax, edi
push eax
call fcn.1005b1b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10062ca4
push edi
call fcn.1005b080
add esp, 0x10
push edi
call fcn.1005b1b0
push dword [esi + 0x100686e4]
mov ebx, eax
call fcn.1005b1b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10057e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1005af80
push edi
push ebx
call fcn.1005af90
push 0x10062ca0
push ebx
call fcn.1005af90
push dword [esi + 0x100686e4]
push ebx
call fcn.1005af90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100258b0
add esp, 0x2c
jmp 0x1005ae04
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100686e4]
push dword [esi]
call fcn.1005b1b0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10057644
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402b14
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404610
test esi, esi
jne 0x402b4a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404700
jmp 0x402b68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c8
mov edi, eax
test esi, esi
je 0x402b68
cmp dword [ebx], 0
je 0x402b68
dec esi
jmp 0x402b51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403708
xor eax, eax
push ebp
push 0x403701
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403744
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403708
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404410
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x404471
cmp word [0x48a220], 0xd7b2
jne 0x404439
cmp dword [0x48a228], 0
jbe 0x404439
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x485054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404498
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48501c], 0
jne 0x40448d
push 0
push 0x485074
push 0x485054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4045c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040278c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40458c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x448e9c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x489448]
cmp byte [eax + 0xc], 0
je 0x449009
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x449002
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48abf4], 0
jne 0x448ef0
push 0x449010
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x449018
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abf4], eax
cmp dword [0x485b2c], 0
jne 0x448feb
push 0x449028
call sub.kernel32.dll_LoadLibraryA
mov dword [0x485b2c], eax
cmp dword [0x485b2c], 0
je 0x448feb
push 0x449034
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abf8], eax
push 0x449044
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48abfc], eax
push 0x449058
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac00], eax
push 0x449070
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac04], eax
push 0x449088
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac08], eax
push 0x44909c
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac0c], eax
push 0x4490b4
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac10], eax
push 0x4490cc
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac14], eax
push 0x4490e8
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac18], eax
push 0x4490f4
mov eax, dword [0x485b2c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48ac1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x449009
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44cc38
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404610
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44cc87
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404878
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x454ac8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454b18]
test si, 4
je 0x454adc
or bl, 1
test si, 8
je 0x454ae6
or bl, 4
test si, 1
je 0x454af0
or bl, 8
test si, 2
je 0x454afa
or bl, 0x10
test si, 0x10
je 0x454b04
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454b13
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4845b8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x484644
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [eax + 0x38a], 0
je 0x4845e9
lea eax, [ebp - 8]
mov edx, 0x484658
call fcn.004046a8
jmp 0x4845f6
lea eax, [ebp - 8]
mov edx, 0x4846a0
call fcn.004046a8
mov eax, 0xf003f
lea edx, [ebp - 4]
push edx
push eax
push 0
push 0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x484625
mov eax, dword [ebp - 8]
call fcn.00404ac0
push eax
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48464b
lea eax, [ebp - 8]
call fcn.00404610
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 0x40d300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41208d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0xc], esi
call dword [0x413940]
mov dword [esi], 0x415aa4
mov dword [esi + 8], 0x415a84
mov eax, dword [0x413234]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x1c], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [0x413234]
mov dword [esi + 0x24], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [0x413234]
mov dword [esi + 0x34], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
push 1
push 0x37
mov ecx, esi
mov byte [esp + 0x1c], 3
call dword [0x413710]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x21], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x38], 1
mov byte [esi + 0x20], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4011df
Capabilities:
Encode data using base64

Disassembly:
push 0x2c
mov eax, 0x4892f0
call fcn.0045eaa4
mov esi, edx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
cmp esi, ecx
jne 0x401212
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
push eax
mov ecx, ebx
mov byte [ebx], al
call fcn.00401c62
jmp 0x401355
sub ecx, esi
lea eax, [ecx + 2]
cdq
push 3
pop edi
idiv edi
push 3
mov edi, eax
mov eax, ecx
cdq
pop ecx
idiv ecx
shl edi, 2
push edi
sub dword [ebp - 0x30], edx
mov dword [ebp - 0x38], edx
call fcn.0045bdbb
push edi
push 0
push eax
mov dword [ebp - 0x34], eax
call fcn.0045db90
mov eax, dword [ebp - 0x34]
add esp, 0x10
jmp 0x4012a5
movzx ecx, byte [esi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movsx ecx, byte [esi]
movzx edx, byte [esi + 1]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
movsx edx, byte [esi + 1]
movzx ecx, byte [esi + 2]
shr ecx, 6
and edx, 0xf
shl edx, 2
or ecx, edx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
movsx ecx, byte [esi + 2]
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], cl
add esi, 3
add eax, 4
cmp esi, dword [ebp - 0x30]
jb 0x40124a
cmp dword [ebp - 0x38], 1
jne 0x4012d8
movzx ecx, byte [esi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movsx ecx, byte [esi]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
mov word [eax + 2], 0x3d3d
jmp 0x40131c
cmp dword [ebp - 0x38], 2
jne 0x40131c
movzx ecx, byte [esi]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
movsx ecx, byte [esi]
movzx edx, byte [esi + 1]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
movsx ecx, byte [esi + 1]
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
push edi
push dword [ebp - 0x34]
lea esi, [ebp - 0x2c]
call fcn.004015b9
push dword [ebp - 0x34]
and dword [ebp - 4], 0
call fcn.0045bd42
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
pop ecx
mov edi, ebx
mov byte [ebx], 0
call fcn.0040176b
push 0
push 1
mov ecx, esi
call fcn.00401af4
mov eax, ebx
call fcn.0045eb27
ret
Function at 0x40381d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0045db90
mov dword [ebp - 0x58], edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403872
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret
Function at 0x403876
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x16c
mov eax, 0x48953c
call fcn.0045eaa4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x154], 0xf
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
lea eax, [ebp - 0x16c]
push eax
push 0x20019
push ebx
mov edi, str.SOFTWAREi4Tool
push edi
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
push esi
mov dword [ebp - 0x16c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403952
push 0x103
lea eax, [ebp - 0x13b]
push ebx
push eax
mov dword [ebp - 0x170], ebx
mov byte [ebp - 0x13c], bl
call fcn.0045db90
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x170]
push eax
push ebx
push str.GUID
push dword [ebp - 0x16c]
mov dword [ebp - 0x178], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403941
lea eax, [ebp - 0x13c]
push eax
lea esi, [ebp - 0x168]
call fcn.00402346
pop ecx
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a47
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x403a47
push 0x27
lea eax, [ebp - 0x37]
push ebx
push eax
mov byte [ebp - 0x38], bl
call fcn.0045db90
movzx eax, byte [ebp - 0x13d]
push eax
movzx eax, byte [ebp - 0x13e]
push eax
movzx eax, byte [ebp - 0x13f]
push eax
movzx eax, byte [ebp - 0x140]
push eax
movzx eax, byte [ebp - 0x141]
push eax
movzx eax, byte [ebp - 0x142]
push eax
movzx eax, byte [ebp - 0x143]
push eax
movzx eax, byte [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x146]
push eax
movzx eax, word [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
lea eax, [ebp - 0x38]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x27
push eax
call fcn.0045c85a
add esp, 0x44
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x16c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403a47
push 0x28
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push str.GUID
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a2e
sub eax, edx
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x168]
call fcn.00401bd9
mov edi, dword [ebp - 0x174]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
lea esi, [ebp - 0x168]
mov byte [edi], bl
call fcn.0040176b
push ebx
push 1
mov ecx, esi
call fcn.00401af4
mov eax, edi
call fcn.0045eb27
ret
Function at 0x404e8a
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x404ea6
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x404eca
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.0045db90
mov eax, ebx
movzx ecx, word [eax*8 + 0x49e2ba]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x49e2b8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x49e2bc]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x49e2be]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x404f2d
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x404f39
cmp ebx, 8
jl 0x404f39
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x404f9e
cmp eax, 0xffffffff
je 0x404f9e
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x404f79
call fcn.0040513c
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x404f81
jmp 0x404fae
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40525c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x40545c
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x4052d6
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x40531b
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x40531b
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x405300
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.00404fb3
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x40531b
mov ebx, eax
cmp ebx, 3
jb 0x4053dc
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.004048b4
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x4053a9
cmp eax, 3
jb 0x4053a9
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x405357
jmp 0x4053fc
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x405402
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.004048b4
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x40543d
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40541b
lea edx, [ecx + esi + 0x1af70]
jmp 0x40541d
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.00404714
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x40544e
call fcn.0040513c
cmp dword [esi + 0x6af90], 0
jne 0x405286
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40546f
lea edx, [ecx + esi + 0x1af70]
jmp 0x405471
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.00404714
pop ecx
pop ecx
pop esi
pop ebx
leave
ret