joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417700
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [eax + 0x14]
push esi
mov esi, 0x5a4d
xor ecx, ecx
push edi
cmp word [edx], si
jne 0x41772b
mov ecx, dword [edx + 0x3c]
cmp ecx, 0x800
jbe 0x41772b
mov dl, byte [2]
inc dl
mov byte [2], dl
int3
mov esi, dword [eax + 0x14]
add esi, ecx
mov dword [eax + 0x18], esi
cmp dword [esi], 0x4550
je 0x41774a
mov dl, byte [3]
inc dl
mov byte [3], dl
int3
mov edx, 0xe0
cmp word [esi + 0x14], dx
je 0x417764
mov dl, byte [4]
inc dl
mov byte [4], dl
int3
mov edx, 0x10b
cmp word [esi + 0x18], dx
je 0x41777e
mov dl, byte [5]
inc dl
mov byte [5], dl
int3
cmp dword [esi + 0x74], 0x10
je 0x417793
mov dl, byte [6]
inc dl
mov byte [6], dl
int3
mov dword [eax + 0x1c], ecx
movzx edx, word [esi + 6]
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*8 + 0xf8]
mov dword [eax + 0x20], ecx
mov edx, dword [esi + 0x50]
mov dword [eax + 0x24], edx
mov edi, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ebx
cmp edi, 0x28
jb 0x4177cb
cmp edx, ecx
jb 0x4177cb
mov ecx, dword [esi + 0x50]
cmp edx, ecx
jae 0x4177cb
lea ebx, [edx + edi]
cmp ebx, ecx
jbe 0x4177da
mov cl, byte [7]
inc cl
mov byte [7], cl
int3
mov ecx, dword [eax + 0x14]
add ecx, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edi
mov edx, dword [ecx + 0x14]
cmp edx, 0x100000
jae 0x417805
cmp edx, 1
jb 0x417805
mov edx, dword [ecx + 0x18]
cmp edx, 0x100000
jae 0x417805
cmp edx, 1
jae 0x417814
mov dl, byte [8]
inc dl
mov byte [8], dl
int3
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x38], edx
mov edi, dword [ecx + 0x14]
cmp dword [ecx + 0x18], edi
jb 0x417825
mov edi, dword [ecx + 0x18]
mov dword [eax + 0x34], edi
mov edx, dword [ecx + 0x1c]
cmp edx, dword [eax + 0x20]
jb 0x41783e
mov ebx, dword [esi + 0x50]
cmp edx, ebx
jae 0x41783e
lea edx, [edx + edi*4]
cmp edx, ebx
jbe 0x41784d
mov dl, byte [9]
inc dl
mov byte [9], dl
int3
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x14]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x20]
cmp edx, dword [eax + 0x20]
jb 0x41786f
mov edi, dword [esi + 0x50]
cmp edx, edi
jae 0x41786f
mov ebx, dword [ecx + 0x18]
lea edx, [edx + ebx*4]
cmp edx, edi
jbe 0x41787e
mov dl, byte [0xa]
inc dl
mov byte [0xa], dl
int3
mov edx, dword [ecx + 0x20]
add edx, dword [eax + 0x14]
pop ebx
mov dword [eax + 0x3c], edx
mov edx, dword [ecx + 0x24]
cmp edx, dword [eax + 0x20]
jb 0x4178a1
mov esi, dword [esi + 0x50]
cmp edx, esi
jae 0x4178a1
mov edi, dword [ecx + 0x18]
lea edx, [edx + edi*4]
cmp edx, esi
jbe 0x4178b0
mov dl, byte [0xb]
inc dl
mov byte [0xb], dl
int3
mov ecx, dword [ecx + 0x24]
add ecx, dword [eax + 0x14]
pop edi
mov dword [eax + 0x40], ecx
pop esi
ret
Function at 0x4409f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [eax + 0x98]
mov dword [eax + 0xf8], ecx
xor ecx, ecx
mov dword [eax + 0xfc], ecx
mov edx, dword [eax + 0x94]
mov dword [eax + 0xf0], edx
mov edx, dword [eax + 0x90]
mov dword [eax + 0xe8], edx
mov dword [eax + 0xec], ecx
movzx edx, word [eax + 0x8e]
mov word [eax + 0xe6], dx
movzx edx, word [eax + 0x8c]
mov word [eax + 0xe4], dx
mov edx, dword [eax + 0x88]
mov dword [eax + 0xe0], edx
mov edx, dword [eax + 0x84]
mov dword [eax + 0xd8], edx
mov dword [eax + 0xdc], ecx
mov edx, dword [eax + 0x80]
mov dword [eax + 0xd0], edx
mov dword [eax + 0xd4], ecx
mov edx, dword [eax + 0x7c]
mov dword [eax + 0xc8], edx
mov dword [eax + 0xcc], ecx
mov edx, dword [eax + 0x78]
mov dword [eax + 0xc0], edx
mov dword [eax + 0xc4], ecx
mov edx, dword [eax + 0x74]
mov dword [eax + 0xb8], edx
mov dword [eax + 0xbc], ecx
mov edx, dword [eax + 0x70]
mov dword [eax + 0xb0], edx
mov dword [eax + 0xb4], ecx
mov edx, dword [eax + 0x6c]
mov dword [eax + 0xa8], edx
mov dword [eax + 0xac], ecx
mov edx, dword [eax + 0x68]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], ecx
mov edx, dword [eax + 0x64]
mov dword [eax + 0x9c], edx
mov edx, dword [eax + 0x60]
mov dword [eax + 0x98], edx
movzx edx, word [eax + 0x5e]
mov word [eax + 0x96], dx
movzx edx, word [eax + 0x5c]
mov word [eax + 0x94], dx
mov edx, dword [eax + 0x58]
mov dword [eax + 0x90], edx
mov edx, dword [eax + 0x54]
mov dword [eax + 0x88], edx
mov dword [eax + 0x8c], ecx
mov edx, dword [eax + 0x50]
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
mov edx, dword [eax + 0x4c]
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], ecx
mov edx, dword [eax + 0x48]
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], ecx
mov edx, dword [eax + 0x44]
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], ecx
mov edx, dword [eax + 0x40]
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], ecx
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], ecx
mov edx, dword [eax + 0x38]
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], ecx
movzx edx, word [eax + 0x36]
mov word [eax + 0x4e], dx
movzx edx, word [eax + 0x34]
mov word [eax + 0x4c], dx
mov edx, dword [eax + 0x2c]
mov dword [eax + 0x48], edx
mov edx, dword [eax + 0x30]
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
mov edx, dword [eax + 0x28]
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
mov edx, dword [eax + 0x24]
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ecx
mov edx, dword [eax + 0x20]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
mov edx, dword [eax + 0x18]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
ret
Function at 0x4612d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov cl, byte [eax + 0x3f]
lea esi, [edi + 2]
sub edi, eax
mov dword [ebp - 4], 4
mov dl, byte [edi + eax]
movzx ebx, byte [eax]
xor bl, dl
mov byte [eax + 0x10], dl
movzx ecx, cl
movzx edx, dl
xor edx, ecx
mov byte [eax + 0x20], bl
movzx ecx, byte [edx + str._.C]
movzx edx, byte [eax + 0x30]
movzx ebx, byte [eax + 1]
xor ecx, edx
mov byte [eax + 0x30], cl
mov dl, byte [esi - 1]
xor bl, dl
mov byte [eax + 0x11], dl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + 0x31]
mov byte [eax + 0x21], bl
movzx ecx, byte [ecx + str._.C]
movzx ebx, byte [eax + 2]
xor ecx, edx
mov byte [eax + 0x31], cl
mov dl, byte [esi]
xor bl, dl
mov byte [eax + 0x12], dl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + 0x32]
mov byte [eax + 0x22], bl
movzx ecx, byte [ecx + str._.C]
movzx ebx, byte [eax + 3]
xor ecx, edx
mov byte [eax + 0x32], cl
mov dl, byte [esi + 1]
mov byte [eax + 0x13], dl
xor bl, dl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + 0x33]
mov byte [eax + 0x23], bl
movzx ecx, byte [ecx + str._.C]
xor ecx, edx
mov byte [eax + 0x33], cl
add eax, 4
add esi, 4
dec dword [ebp - 4]
jne 0x4612e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4613a0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [esi + 0x3f]
xor eax, eax
push ebx
movzx ebx, byte [eax + esi]
mov dl, byte [eax + esi + 0x10]
xor bl, dl
movzx ecx, cl
movzx edx, dl
xor edx, ecx
mov byte [eax + esi + 0x20], bl
movzx ecx, byte [edx + str._.C]
movzx edx, byte [eax + esi + 0x30]
movzx ebx, byte [eax + esi + 1]
xor ecx, edx
mov dl, byte [eax + esi + 0x11]
xor bl, dl
mov byte [eax + esi + 0x30], cl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + esi + 0x31]
mov byte [eax + esi + 0x21], bl
movzx ecx, byte [ecx + str._.C]
movzx ebx, byte [eax + esi + 2]
xor ecx, edx
mov dl, byte [eax + esi + 0x12]
mov byte [eax + esi + 0x31], cl
xor bl, dl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + esi + 0x32]
mov byte [eax + esi + 0x22], bl
movzx ecx, byte [ecx + str._.C]
movzx ebx, byte [eax + esi + 3]
xor ecx, edx
mov dl, byte [eax + esi + 0x13]
mov byte [eax + esi + 0x32], cl
xor bl, dl
movzx ecx, cl
movzx edx, dl
xor ecx, edx
movzx edx, byte [eax + esi + 0x33]
mov byte [eax + esi + 0x23], bl
movzx ecx, byte [ecx + str._.C]
xor ecx, edx
mov byte [eax + esi + 0x33], cl
add eax, 4
cmp eax, 0x10
jb 0x4613a6
pop ebx
ret
Function at 0x461460
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor cl, cl
xor ebx, ebx
mov esi, eax
jmp 0x461470
lea eax, [esi + 1]
mov edx, 8
jmp 0x461480
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 1]
add eax, 6
mov byte [eax - 7], cl
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 6]
mov byte [eax - 6], cl
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 5]
mov byte [eax - 5], cl
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 4]
mov byte [eax - 4], cl
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 3]
mov byte [eax - 3], cl
movzx ecx, cl
mov cl, byte [ecx + str._.C]
xor cl, byte [eax - 2]
dec edx
mov byte [eax - 2], cl
jne 0x461480
add cl, bl
inc ebx
cmp ebx, 0x12
jb 0x461470
pop esi
pop ebx
ret

Function at 0x462390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add ecx, 0xf
and ecx, 0xfffffff0
jbe 0x4623b8
mov edx, dword [0x4a3630]
dec ecx
shr ecx, 2
inc ecx
lea esp, [esp]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x4623b0
xor eax, eax
pop ebp
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x573190b
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..text
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x23db3306
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x50bc1000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x50bc1033
xor edi, edi
jmp 0x50bc1042
lea eax, [ebp - 0x20c]
push eax
call fcn.50bc1df5
pop ecx
mov edi, eax
push 0x180000
push 0x40
mov dword [ebp - 0x41c], str.QQBrowserFrame.dll
mov dword [ebp - 0x418], str.QBUtils.dll
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x50bc106d
xor eax, eax
jmp 0x50bc10b3
cmp edi, esi
je 0x50bc1086
push dword [ebp + esi*4 - 0x41c]
mov ecx, edi
call fcn.50bc10c2
inc esi
pop ecx
cmp esi, 2
jb 0x50bc1071
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.riched20.dll
lea ecx, [ebp - 0x414]
call fcn.50bc10c2
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.50bc2237
leave
ret

Function at 0x50bc10c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x50bc10eb
push eax
push ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50bc1110
xor eax, eax
jmp 0x50bc1137
and dword [ebp - 0x210], 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x180000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.50bc2237
leave
ret

Function at 0x50bc1996
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push edi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x50bc34c8
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, edi
call fcn.50bc19da
and eax, 0xfff
or eax, 0x29bfa000
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x50bc1e11
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.50bc1ebe
cmp dword [0x50bc43ac], 0
je 0x50bc1e88
cmp byte [0x50bc4375], 0
mov al, byte [0x50bc43b0]
je 0x50bc1e48
cmp al, 4
jae 0x50bc1e7b
test al, al
jmp 0x50bc1e79
cmp al, 4
jae 0x50bc1e50
test al, al
jne 0x50bc1e88
mov ecx, dword [0x50bc439c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x50bc1e88
mov ecx, dword [0x50bc43a4]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x50bc43a0]
jne 0x50bc1e88
cmp eax, ecx
jne 0x50bc1e88
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.50bc1d78
pop ecx
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x50bc1ead
call section..text
call fcn.50bc21e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.50bc2237
leave
ret
Function at 0x50bc1fb6
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareTencentQQBrowserAdvanced
push 0x80000001
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x20d], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50bc2163
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push 4
pop edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.EnableIE8Core
push dword [ebp - 0x214]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
call esi
test eax, eax
jne 0x50bc2084
cmp dword [ebp - 0x218], 1
jne 0x50bc2084
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push str.IE8CoreInstalled
push dword [ebp - 0x214]
mov byte [ebp - 0x20d], 1
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], edi
call esi
test eax, eax
jne 0x50bc2084
cmp dword [ebp - 0x218], 1
sete al
and al, 1
mov byte [ebp - 0x20d], al
push dword [ebp - 0x214]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp byte [ebp - 0x20d], bl
je 0x50bc2161
lea eax, [ebp - 0x214]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50bc2115
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x208
call esi
test eax, eax
jne 0x50bc210d
cmp word [ebp - 0x20c], 0x36
je 0x50bc2104
cmp word [ebp - 0x20c], 0x37
jne 0x50bc2107
xor eax, eax
inc eax
and byte [ebp - 0x20d], al
push dword [ebp - 0x214]
call edi
cmp byte [ebp - 0x20d], bl
je 0x50bc2161
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x50bc2161
cmp dword [ebp - 0x11c], 5
jne 0x50bc215b
cmp dword [ebp - 0x118], 1
jne 0x50bc215b
cmp word [ebp - 0xc], 2
je 0x50bc2158
cmp word [ebp - 0xc], 3
jne 0x50bc215b
xor ebx, ebx
inc ebx
and byte [ebp - 0x20d], bl
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
xor ecx, ebp
pop ebx
call fcn.50bc2237
leave
ret

Function at 0x50bc2237
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x50bc2241
repz ret
jmp fcn.50bc2246

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ebx
sub esi, 0x3eded4ee
mov ecx, esi
call fcn.00408970
add ecx, 0x198dd81e
sub ecx, ecx
xor dword [eax], ebx
inc eax
add esi, ecx
mov ecx, 0xa98f994d
cmp eax, edx
jne fcn.00408937
inc esi
or esi, esi
ret
Function at 0x4012d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x441370]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], ebx
lea edx, [ecx + 1]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012f8
sub ecx, edx
lea eax, [ecx*2 + 0x400]
push eax
call fcn.00412550
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 8]
mov ecx, esi
call fcn.004010c0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401330
mov edi, dword [ebx]
sub ecx, edx
cmp byte [ebp + 0x14], al
jne 0x4013b3
test edi, edi
je 0x40135e
mov edx, dword [ebp - 0xc]
lea ebx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x401350
sub edx, ebx
jne 0x401382
mov ebx, dword [ebp - 0x10]
xor al, al
mov ecx, 8
push esi
mov byte [ebx + ecx], al
call fcn.00412508
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004124fa
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x401399
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401390
sub ecx, edx
push ecx
push esi
push 1
push 0
push dword [ebp - 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x10]
test eax, eax
sete al
jmp 0x401360
test edi, edi
je 0x40135e
mov edx, dword [ebp - 0xc]
lea ebx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4013c0
sub edx, ebx
je 0x40135b
test ecx, ecx
jne 0x4013dd
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4013d4
sub ecx, edx
push ecx
push esi
push 7
push 0
push dword [ebp - 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [ebp - 0x10]
test eax, eax
sete al
jmp 0x401360
Function at 0x40ace0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x441370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40ae89
lea eax, [ebp - 0x120]
push eax
push 0x20019
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ad46
cmp eax, 2
je 0x40ae89
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004124fa
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax - 1], 0x5c
lea ebx, [edi + eax]
mov dword [ebp - 0x124], ebx
je 0x40ad6a
mov byte [ebx], 0x5c
inc ebx
mov dword [ebp - 0x124], ebx
mov byte [ebx], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x114], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40ae57
mov byte [ebx], 0
mov ecx, 0x208
mov eax, edi
nop
cmp byte [eax], 0
je 0x40adbb
inc eax
sub ecx, 1
jne 0x40adb0
mov eax, 0x208
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x40ae0c
mov edx, 0x208
lea ecx, [esi + edi]
sub edx, esi
je 0x40ae01
lea esi, [ebp - 0x110]
mov eax, SysReAllocString
sub esi, ecx
test eax, eax
je 0x40adfb
mov bl, byte [esi + ecx]
test bl, bl
je 0x40adfb
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x40ade7
mov ebx, dword [ebp - 0x124]
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
mov edx, edi
mov ecx, SysReAllocString
call fcn.0040ace0
test eax, eax
je 0x40ae57
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x114], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40ada5
mov byte [ebx - 1], 0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004124fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004124fa
mov esp, ebp
pop ebp
ret
Function at 0x40be80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x40bea0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40dd2d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40dcf0
mov eax, dword [esi]
jmp 0x40de07
cmp eax, 0x4e0
jb 0x40de07
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x40dd46
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x40dd90
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret