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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30c
push ebx
push esi
mov esi, dword [0x43c550]
lea eax, [esp + 8]
push edi
push 0x10
push 0x439694
push eax
call esi
mov eax, dword [ebp + 8]
add esp, 0xc
xor dword [esp + 0xc], eax
xor word [esp + 0x10], ax
shr eax, 0x10
xor word [esp + 0x12], ax
xor edi, edi
push 4
mov ecx, edi
mov edx, edi
pop ebx
mov al, byte [ebp + ecx + 0xc]
xor byte [esp + edx + 0x14], al
inc ecx
xor eax, eax
cmp ecx, ebx
cmove ecx, eax
inc edx
cmp edx, 8
jb 0x427a16
lea ecx, [esp + 0x128]
call fcn.00434460
push 0x102
lea eax, [esp + 0x1da]
mov byte [esp + 0x24], 1
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0x407d5c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push 1
push 0x10
push eax
push 0x10
push eax
mov eax, dword [esp + 0x30]
call dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
movzx eax, al
dec eax
je 0x427a8b
dec eax
je 0x427a84
mov ecx, dword [ebp + 0x10]
jmp 0x427a9d
push 5
pop ebx
push 7
jmp 0x427a8d
push 6
mov esi, dword [ebp + 0x10]
mov ecx, ebx
pop edi
mov edx, esi
call fcn.00438287
lea ecx, [esi + edi*2]
push 0x32
pop eax
sub eax, edi
push eax
push ecx
lea eax, [esp + 0x14]
push eax
call dword [0x43c59c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4292cc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
xor edx, edx
mov dword [0x43a610], ecx
inc edx
mov ecx, 0x43a610
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x43afcc
jl 0x4292da
mov dword [0x43a11c], edx
ret

Function at 0x4292ff
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x43a11c]
cmp esi, 0x270
jl 0x4293c4
xor esi, esi
push ebx
mov edx, esi
mov ebx, 0x7fffffff
mov ecx, dword [edx*4 + 0x43a614]
xor ecx, dword [edx*4 + 0x43a610]
and ecx, ebx
xor ecx, dword [edx*4 + 0x43a610]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x407cc8]
xor ecx, dword [edx*4 + 0x43ac44]
mov dword [edx*4 + 0x43a610], ecx
inc edx
cmp edx, 0xe3
jl 0x42931c
cmp edx, 0x26f
jge 0x429395
push edi
lea edi, [edx*4 + 0x43a610]
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, ebx
xor ecx, dword [edi]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x407cc8]
xor eax, dword [edi - 0x38c]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x43afcc
jl 0x429368
pop edi
mov ecx, dword [0x43a610]
xor ecx, dword [0x43afcc]
and ecx, ebx
xor ecx, dword [0x43afcc]
mov eax, ecx
shr ecx, 1
and eax, 1
pop ebx
xor ecx, dword [eax*4 + 0x407cc8]
xor ecx, dword [0x43ac40]
mov dword [0x43afcc], ecx
mov ecx, dword [esi*4 + 0x43a610]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x43a11c], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret
Function at 0x433ef7
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x433f1a
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x433f11
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x433f07
pop edi
pop esi
ret

Function at 0x434460
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, 0x1ec
mov esi, ecx
push edi
push 0x404830
push esi
call dword [0x43c550]
mov ecx, dword [0x43a0fc]
add esp, 0xc
add ecx, dword [0x439ae4]
sub ecx, esi
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
dec edi
jne 0x434487
pop edi
pop esi
ret

Function at 0x434562
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
mov ebp, 0x114
mov dword [esp + 0x24], 0x17693152
push ebp
lea eax, [esp + 0x2c]
mov edi, edx
push 0x406ba8
push eax
mov ebx, ecx
call dword [0x43c550]
add esp, 0xc
xor ecx, ecx
xor edx, edx
mov al, byte [esp + ecx + 0x24]
xor byte [esp + edx + 0x28], al
inc ecx
xor eax, eax
cmp ecx, 4
cmove ecx, eax
inc edx
cmp edx, ebp
jb 0x434595
push 1
lea ecx, [esp + 0x14]
call fcn.00418a5e
and dword [esp + 0x20], 0
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x404708
call fcn.004149ca
test al, al
je 0x434618
lea ecx, [esp + 0x10]
call fcn.00414a16
mov esi, eax
test esi, esi
je 0x434618
cmp edi, esi
jbe 0x434618
sub edi, esi
lea ecx, [esp + 0x10]
push edi
push ebx
call fcn.00418ad8
test al, al
je 0x434618
push ecx
push esi
lea eax, [edi + ebx]
push eax
lea ecx, [esp + 0x1c]
call fcn.00414a57
test al, al
je 0x434618
lea ecx, [esp + 0x10]
call fcn.004149aa
jmp 0x434623
lea ecx, [esp + 0x10]
call fcn.004149aa
xor esi, esi
push ebp
lea eax, [esp + 0x2c]
push 0
push eax
call dword [0x43c564]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret

Function at 0x43823f
Capabilities:
Encode data using xor

Disassembly:
push esi
movzx esi, cx
xor eax, eax
push edi
mov edi, edx
xor edx, edx
cmp ax, word [esi*8 + 0x406f52]
jae 0x438278
mov eax, dword [esi*8 + 0x406f54]
movzx ecx, dx
mov al, byte [eax + ecx]
xor al, byte [esi*8 + 0x406f50]
xor al, dl
inc edx
mov byte [ecx + edi], al
cmp dx, word [esi*8 + 0x406f52]
jb 0x438254
movzx eax, word [esi*8 + 0x406f52]
mov byte [eax + edi], 0
pop edi
pop esi
ret

Function at 0x438287
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx esi, cx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
cmp ax, word [esi*8 + 0x406f52]
jae 0x4382d1
mov eax, dword [esi*8 + 0x406f54]
movzx edx, di
movsx cx, byte [eax + edx]
mov eax, 0xff
xor cx, di
and cx, ax
movzx eax, byte [esi*8 + 0x406f50]
xor cx, ax
inc edi
mov word [ebx + edx*2], cx
cmp di, word [esi*8 + 0x406f52]
jb 0x43829d
movzx eax, word [esi*8 + 0x406f52]
xor ecx, ecx
pop edi
pop esi
mov word [ebx + eax*2], cx
pop ebx
ret
Function at 0x401680
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84587c], 0x400
push esi
push edi
jne 0x4016a4
lea eax, [ebp - 0x24]
call fcn.00401760
lea esi, [ebp - 0x24]
call fcn.00401780
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af054
jle 0x4016c2
cmp ebx, 0x787e04e5
jne 0x4016cb
inc esi
cmp esi, 0x1d8d
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016fd
inc esi
cmp esi, 0x4f6a4
jl 0x4016e0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40171b
inc esi
cmp esi, 0x11915
jl 0x401706
mov eax, dword [0x4262ac]
mov dword [0x84587c], eax
call fcn.004013f0
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, 0x3078f
jmp 0x401740
cmp dword [0x84587c], 0x51f
jne 0x401750
push 0
call esi
sub edi, 1
jne 0x401740
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404830
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4252c0]
jne 0x40483a
repz ret
jmp fcn.00408d0d
Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x40658d
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406591
xor eax, eax
jmp 0x406593
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4087d4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4087e9
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
Function at 0x408bf4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408bd2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408bf0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x408c4e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x408c35
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x408c3e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je fcn.00408c48
add ecx, eax
or byte [ecx], 4
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408bb4
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x408c9b
dec eax
je 0x408c92
sub eax, 3
je 0x408c89
mov dword [ebp - 4], 0x40
jmp 0x408cb8
mov dword [ebp - 4], 4
jmp 0x408c9e
mov dword [ebp - 4], 0x20
jmp 0x408c9e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x408cea
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x408c6a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004084fb
dec esi
mov al, 0xd4
cmp al, 0xff
jne 0x408cf5
push 1
push esi
call edi
mov eax, esi
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aa70
Capabilities:
Get file attributes

Disassembly:
push ebx
push eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40aa8b
dec eax
and al, 0x10
setne al
xchg ebx, eax
push eax
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
pop ebx
ret

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret

Function at 0x40d908
Capabilities:
Get file attributes

Disassembly:
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40d91c
dec eax
and al, 0x10
sete al
ret

Function at 0x40d998
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret
Function at 0x40d9c8
Capabilities:
Get common file path

Disassembly:
push ebx
xchg ebx, eax
sub esp, 0x104
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40d9f8
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403870
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00405c64
ret

Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4299d0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec edx
jne 0x415868
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, edi
dec eax
test eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4158b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
add esp, 0x104
pop ebx
ret
Function at 0x41ce98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc10
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x3e9
call fcn.004038dc
add esp, 0x3f0
pop ebx
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
xor dword [eax], edx
sub esp, 4
mov dword [esp], esi
pop esi
add eax, 4
cmp eax, edi
jne fcn.00414ddf
or ecx, esi
sub esi, 0xaff6a553
ret
Function at 0x40ef7d
Capabilities:
Delete registry value

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ef83
call fcn.0044cf80
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00411000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00411000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00411000
push dword [esp]
call fcn.0040d735
push dword [esp + 8]
mov edx, 0x4a63b4
pop ecx
call fcn.00411bb0
je 0x40f027
cmp dword [0x21967b0], 0
je 0x40f00b
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x21967c8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x2196790]
push dword [0x21967ac]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40f025
lea eax, [esp + 0x10]
push eax
push dword [0x2196790]
push dword [0x21967ac]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x40f08c
lea eax, [esp + 0x18]
push eax
push dword [0x21967ac]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x21967b0], 0
je 0x40f074
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x21967c8]
or ebx, 0xf003f
push ebx
push 0
push dword [0x2196790]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40f08c
lea eax, [esp + 0x10]
push eax
push dword [0x2196790]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40f0c0
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegDeleteValueW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40f0b8
mov dword [esp + 0x1c], 1
jmp 0x40f0c0
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x1c]
jmp 0x40f0d1
push dword [esp + 8]
call fcn.0044cfe0
push dword [esp]
call fcn.0044cfe0
push dword [esp + 4]
call fcn.0044cfe0
add esp, 0x20
pop ebx
ret 0xc

Function at 0x412379
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x412411
push edi
push 0x21979c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x2196ca8]
test edi, edi
je 0x4123e5
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4123de
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x2196ca8
call fcn.0044cccf
pop ecx
pop ecx
jmp 0x4123e0
mov edi, dword [edi]
test edi, edi
jne 0x4123b5
pop ebx
mov eax, dword [0x21930f0]
mov esi, eax
inc eax
push 0x10
push 0x2196ca8
mov dword [0x21930f0], eax
call fcn.0044cd0f
pop ecx
pop ecx
push 0x21979c4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4134a1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4134f6
push dword [esp + 0x10]
push 0x413420
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x2196cf4]
test esi, esi
je 0x41354f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4134ee
cmp byte [esi + 0x10], 0
je 0x4134ee
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4134ca
jmp 0x41354f
mov esi, dword [0x2196cf4]
test esi, esi
je 0x41354f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x413548
cmp byte [esi + 0x11], 0
je 0x413524
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41353b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x2196cf4
call fcn.0044cccf
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x413503
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42d892
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x2197d24]
call fcn.0044c38b
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x42d992
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42d8e8
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x42d8e0
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42d928
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x42d96a
push 0x22
pop edx
cmp cx, dx
je 0x42d91a
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42d90a
xor ecx, ecx
cmp word [eax], cx
je 0x42d96a
mov ecx, eax
add eax, 2
jmp 0x42d96c
test dx, dx
je 0x42d972
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42d91a
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x42d960
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x42d96a
cmp cx, dx
je 0x42d95d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42d94d
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x42d932
jmp 0x42d91a
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x42d974
xor edx, edx
cmp dword [ebp], ebx
jne 0x42d97d
test edi, edi
jne 0x42d99a
test edx, edx
je 0x42d982
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42d8d6
test edi, edi
jne 0x42d9ab
mov eax, ebx
jmp 0x42d9af
test esi, esi
je 0x42d9ab
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x42d9af
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret