joyce8/EMBER2024-capa huggingface dataset:
Function at 0x79c2b8
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr ax, bp
add al, dh
mov edx, dword [esp]
inc edi
mov di, bx
not bx
jmp 0x79c2ff
popal
not bh
lea ecx, [esp + ecx]
bswap edx
xchg edx, esi
jmp 0x79c291
pushal
inc ebp
rdtsc
xchg bp, dx
push dword [esp + 3]
setae bh
jmp 0x79c3d0
stc
mov cl, ch
lea esp, [esp]
bsf si, si
xchg si, di
mov cx, word [esp]
jmp 0x79c2e4
push word [esp + 1]
mov dl, 0x64
mov bp, di
xchg byte [esp + 2], dl
mov dword [esp], eax
jmp 0x79c378
mov dh, byte [esp + 2]
mov edi, ebp
neg di
pop dword [esp]
pop word [esp]
xchg bh, cl
jmp 0x79c32b
xchg byte [esp + 0x16], dl
mov bx, sp
pop esi
add al, dh
sub esp, 0x1a
xchg word [esp + 0x15], dx
jmp 0x79c3a4
xchg bh, cl
pushal
mov ax, 0xba01
ror eax, 0x15
xchg dx, si
setl bh
jmp 0x79c356
push word [esp]
lea ebp, [ebx + edi]
push dword [esp + 2]
rdtsc
xchg dword [esp], ecx
shr edx, 3
jmp 0x79c342
pop word [esp + 0x33]
pop edi
mov si, sp
sub edi, eax
mov dword [esp + 0x18], esi
lea esp, [esp + 0x2c]
jmp 0x79c413
pop word [esp]
mov cl, ch
mov si, 0x6cdd
btc ebx, ebx
jmp 0x79c3e8
xchg byte [esp + 2], dl
inc dx
lea esp, [esp + 0x11]
push word [esp + 0xf]
add esp, 0xd
lea esp, [esp + 6]
jmp 0x79c38f
lea ebx, [ebp*4]
xchg bh, cl
lea esp, [esp + 4]
add esp, 1
xor dl, ch
inc bl
jmp 0x79c428
clc
mov ebp, ecx
mov dword [esp + 1], eax
lea ebp, [ecx*4]
lea ebx, [eax + ebx]
xchg bh, cl
jmp 0x79c3b9
xchg ch, dl
call fcn.0079c43e
jmp 0x79c495
rdtsc
shl bp, cl
inc bl
add esp, 2
mov ah, byte [esp]
lea ecx, [edi + ebp]
jmp 0x79c50a
pop ebx
mov eax, ebp
jmp 0x79c46c
popal
call fcn.0079c4ca
cmpsb byte [esi], byte es:[edi]
xor dword [ecx - reloc.KERNEL32.DLL_GetWindowsDirectoryA], esp
xor ah, byte [eax - 0x5572cd39]
aaa
cmpsd dword [esi], dword es:[edi]
ret 0x9631
bsf bp, ax
add esp, 0
mov eax, esi
mov ah, byte [esp]
pushal
rcr dh, 7
jmp 0x79c4ef

Function at 0x79c5eb
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 2], sp
lea eax, [ebx*4]
xchg ebp, edx
mov si, 0x8ba1
xchg bh, cl
bsr cx, bp
jmp 0x79c6be
mov word [esp + 6], dx
push word [esp + 7]
add esp, 3
add esp, 7
mov word [esp], bx
mov cl, 0x42
jmp 0x79c5a0
mov si, dx
mov dword [esp + 5], ebp
jmp 0x79c5c7
mov eax, dword [esp]
lea esp, [esp + 1]
popal
push edx
add esp, 3
sub esp, 0
call fcn.0079c63c
enter 0xffffffffffffde48, 0xffffffffffffffb9
dec eax
test eax, 0x66310f65
mov edx, 0x788dfae9
push ecx
rdtsc
mov dx, 0xfae9
lea edi, [eax + 0x51]
lea esp, [esp]
add esp, 0
btr edx, edx
jmp 0x79c5f4
not ah
lea eax, [edx + ebx]
mov byte [esp], bh
mov bp, sp
mov di, 0x25b
xchg ch, dl
jmp 0x79c60f
btr edx, esp
btc ecx, ebx
rdtsc
cpuid
mov di, word [esp]
bswap esi
jmp 0x79c629
lea esp, [esp + 5]
xchg si, di
mov dx, word [esp]
setae dh
and ecx, ecx
sub bl, ah
jmp 0x79c65c
Function at 0x79c929
Capabilities:
Check for peb beingdebugged flag
Parse pe header

Disassembly:
push eax
call 0x79b2eb
jmp 0x79c8c8
movzx ebx, word [eax + 0x3c]
jmp 0x79c90b
mov dword [esp], eax
push dword [esp + 2]
mov dword [esp + 3], eax
pop word [esp + 1]
jmp 0x79c8e8
push word [esp + 0x29]
push esp
push word [esp + 0x25]
lea esp, [esp + 3]
je 0x79c8cd
sub dword [esi - 1], edx
je 0x79c8d3
and eax, 0x324648d
mov dword [esp + 0x88], esi
push esp
jmp 0x79c88f
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x79c902
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x79b30c
cmp dword [eax], reloc.KERNEL32.DLL_GetWindowsDirectoryA
xor eax, 0xfffffea
test edi, edx
add byte [eax], al
add byte [edx + 0x22d7b022], dh
test ebx, esp
sbb dh, byte [ebp + 0x64]
jne 0x79c9b4
mov dl, 0x22
mov al, 0xd7
and al, byte [ebp + 0x64751ae3]
xchg edi, eax
lea esp, [esp + 2]
mov dword [esp + 0x88], edi
lea esp, [esp + 0x88]
and al, 0x88
add byte [eax], al
add byte [ebp + 0x8824a4], cl
add byte [eax], al
mov eax, dword fs:[0x30]
jmp 0x79c8be
mov eax, dword [eax + 8]
push eax
jmp 0x79b2e6
add ebx, eax
cmp word [ebx], 0x4550
je 0x796fc1
jne 0x79c9b4
in eax, dx
jl 0x79c933
jne 0x79c8a7
jne 0x79c8ee
push 0xff5d228b
je 0x79c950
push dword [esp + 2]
mov byte [esp + 7], ch
push word [esp + 8]
add cl, byte [eax + 0x6607246c]
push dword [esp + 8]
je 0x79c959
or byte [eax - 0x17], ah
imul edi, edi, 0x2eb8ffff
mov esp, 0xaa8336db
inc ebx
sal dword [esi + reloc.KERNEL32.DLL_GetWindowsDirectoryA], cl
lcall 0x21b1, 0x26ba0cfd
inc eax
mov bl, 0x18
sub byte [edx + 0xdb24720], dh
pushal
jmp 0x79c8a5
and dword [eax - 0x4d], eax
sbb byte [eax], ch
mov dl, 0x20
inc edi
mov dl, 0xd
or eax, 0x4227b72a
mov cl, 0x16
sub dh, byte [edi + 0x16b14227]
xor byte [eax + 0x1fa8593e], ch
pop esi
lds edx, [ebp + 0x3c]
iretd
sub eax, 0x10000
jmp 0x79c8cc
Function at 0x4b3000
Capabilities:
Check for peb beingdebugged flag
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
call dword [0x56c84c]
cmp eax, 1
jne 0x4b3024
push 0
call dword [fcn.0056c850]
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
je 0x4b303f
push 0
call dword [fcn.0056c850]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x68]
mov dword [ebp - 8], eax
test byte [ebp - 8], 0x70
je 0x4b3059
push 0
call dword [fcn.0056c850]
mov esp, ebp
pop ebp
ret

Function at 0x4b3060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x4b30a2]
lea ecx, [0x4b30aa]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4b30c6
mov edi, dword [ebp + 8]
lea esi, [0x4b30a2]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x4b30c1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b30d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x4b3176
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4b315a
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4b318c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4b31b9
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x4b319d
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b31d1
push eax
call fcn.004b3060
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b3640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push edi
call fcn.004b9d50
mov ebx, dword [0x56c838]
mov ecx, dword [0x4be0a4]
mov eax, ebx
sub eax, ecx
jne 0x4b3742
mov edi, dword [0x4be996]
test edi, edi
je 0x4b3742
cmp word [ebx], 0x5a4d
je 0x4b3691
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004b4a10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
je 0x4b36b4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004b4a10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [eax + 6]
xor edx, edx
mov dx, word [eax + 0x14]
test cx, cx
lea eax, [edx + eax + 0x18]
jbe 0x4b36d7
and ecx, 0xffff
mov edx, eax
add eax, 0x28
dec ecx
jne 0x4b36cd
jmp 0x4b36da
mov edx, dword [ebp - 4]
push esi
mov esi, dword [edx + 0xc]
push 0x10
lea eax, [ebp - 0xf4]
push 0x4be986
push eax
add esi, ebx
call fcn.004bcdd0
push edi
lea ecx, [ebp - 0xf4]
push esi
push ecx
call fcn.004bd030
lea edx, [ebp - 0xf4]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.004bd050
push 0x20
lea ecx, [ebp - 0x24]
push 0x4be966
push ecx
call fcn.004b4800
add esp, 0x2c
test eax, eax
pop esi
je 0x4b3742
push 0xa36
push 0
push 0x4be080
call fcn.004b47b0
add esp, 0xc
call fcn.004b4a10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b9d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4b9dc1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x400]
push 0x200
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x400]
push 0x5c
push edx
call fcn.004b4840
add esp, 8
test eax, eax
jne 0x4b9df4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
lea eax, [ebp - 0x200]
push 0x200
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x200]
push 0x5c
push ecx
call fcn.004b4840
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b9e2b
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x200]
push 0x4bf82c
push edx
mov byte [esi], 0
call fcn.004b4900
lea eax, [ebp - 0x400]
lea ecx, [ebp - 0x200]
push eax
push ecx
call fcn.004b49a0
add esp, 0x10
test eax, eax
jne 0x4b9e5f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x200]
push 0x4bf820
push edx
mov byte [esi], 0
call fcn.004b4900
lea eax, [ebp - 0x400]
lea ecx, [ebp - 0x200]
push eax
push ecx
call fcn.004b49a0
add esp, 0x10
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x4058
call fcn.00401548
mov ebx, 0xffffffff
sub esp, eax
lea esi, [ebp - 0x4018]
lea edi, [ebp - 0x401c]
mov eax, dword [esp + eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], esi
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
mov dword [esp], 0xfffffff5
test eax, eax
cmovns ebx, eax
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x402c], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4010b0
mov edx, dword [ebp - 0x401c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x4038], eax
mov dword [ebp - 0x4044], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x403c], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x4030], eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x4040], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x4038]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x4034], eax
je 0x40109e
mov ecx, dword [ebp - 0x4044]
call ecx
mov ecx, dword [ebp - 0x4034]
mov edx, dword [ebp - 0x4030]
mov dword [esp + 8], esi
mov dword [esp + 0x1c], 0
mov esi, dword [ebp - 0x403c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
mov esi, dword [ebp - 0x402c]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call esi
mov edx, dword [ebp - 0x4030]
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x4034]
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x4040]
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401098
Function at 0x4012f0
Capabilities:
Get hostname

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x4c
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
cmp esi, 1
jle 0x4013b0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x403006
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
je 0x40138a
mov edx, 1
mov eax, dword [ebx + edx*4]
cmp word [eax], 0x2d
jne 0x401380
movzx eax, word [eax + 2]
cmp ax, 0x3f
je 0x40138a
cmp ax, 0x73
je 0x4013a8
mov dword [esp + 4], eax
mov dword [esp], 0x66
call sym._hostname_message_printfW
mov eax, 0x65
call sym._hostname_message
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, 0x68
call sym._hostname_message
mov eax, 0x65
call sym._hostname_message
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
inc edx
cmp edx, esi
jne 0x401336
lea esi, [esi]
lea eax, [ebp - 0x3c]
lea ebx, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x4013f0
mov dword [esp + 4], ebx
mov dword [esp], 0x40300c
call sym._hostname_printfW
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 0x67
mov dword [esp + 4], eax
call sym._hostname_message_printfW
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4014a0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x41be50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2f06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x50eeec
call sub.MFC42.DLL_CString::CString_2
push ecx
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push str.bro.mymacro
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
push 0x50ee90
push eax
mov byte [esp + 0x3c], 1
call fcn.0042f2c0
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
push ecx
call fcn.0041a6d0
add esp, 8
mov byte [esp + 0x38], 3
mov edx, esp
mov dword [esp + 0x28], esp
push esi
push eax
push edx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x3c], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x50eeac
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x3c], 7
call fcn.00401550
mov ecx, eax
call fcn.00401710
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString
mov al, byte [0x52e514]
test al, 1
jne 0x41bfb7
mov dl, al
mov al, byte [esp + 0xb]
or dl, 1
mov byte [0x52e4e8], al
mov byte [0x52e514], dl
mov dword [0x52e4ec], edi
mov dword [0x52e4f0], edi
mov dword [0x52e4f4], edi
mov dword [0x52e4e0], 0x4bd4d8
mov ecx, 0x52e4f8
mov dword [esp + 0x2c], 8
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x52e4fc
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x52e508
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x52e50c
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CString::CString_4
push 0x41c020
mov dword [0x52e4e0], 0x4bd4d4
mov dword [0x52e4e4], 4
mov dword [esp + 0x30], esi
call fcn.00421f2c
add esp, 4
push 0x52e4e0
call fcn.00401550
mov ecx, eax
call fcn.00401a30
push 0x3e8
mov ecx, 0x52e4e0
call fcn.00403020
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
Function at 0x4018f8
Capabilities:
Delete registry key

Disassembly:
push ebp
push esi
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401920
xor eax, eax
pop ecx
pop ebp
ret 4
push dword [esp + 0xc]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebp, ebp
sete al
pop ecx
pop ebp
ret 4

Function at 0x403118
Capabilities:
Set registry value

Disassembly:
push ebp
push ebx
push esi
mov ebp, edx
mov ebx, eax
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403144
xor eax, eax
pop ecx
pop ebx
pop ebp
ret
mov ecx, ebp
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x40315f
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x403148
add eax, 0xffffffff
add eax, 1
push eax
push ebp
push 1
push 0
push ebx
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
pop ecx
pop ebx
pop ebp
ret

Function at 0x409ea0
Capabilities:
Get file size

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
push dword [ecx + 0x120]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x409ed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409ed4
mov eax, 0xffffffff
mov edx, 0xffffffff
add esp, 8
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret
Function at 0x4166c4
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
mov ebx, ecx
mov ecx, ebx
sar ecx, 1
shr ecx, 0x1e
add ecx, ebx
sar ecx, 2
test ecx, ecx
jle 0x4166ec
mov esi, dword [eax]
mov edi, edx
lea ebp, [edx + ecx*4]
xor esi, dword [edi]
mov dword [eax], esi
add edi, 4
cmp edi, ebp
jb 0x4166e1
shl ecx, 2
cmp ecx, ebx
jge 0x416704
mov ebp, dword [eax]
movzx esi, byte [ecx + edx]
xor ebp, esi
mov dword [eax], ebp
add ecx, 1
cmp ecx, ebx
jl 0x4166f5
pop ebx
pop ebp
pop esi
pop edi
ret
Function at 0x431350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
ret
Function at 0x53a38d
Capabilities:
Encrypt data using aes

Disassembly:
cmc
bsr di, bp
mov di, 0xb07f
mov edi, 0x510591f0
jmp 0x53a3c2
push esi
mov esi, ebp
jmp 0x53a396
lea esi, [esi - 4]
mov dword [esi], ecx
pop esi
lea esp, [esp + 4]
jmp 0x53a3de
movzx ebx, byte [esi + 0x11]
mov dl, dh
lea edi, [eax*4]
btc edi, edx
mov dh, bh
jmp 0x53a3fe
mov ecx, 0xff
jmp 0x50d46c
add esi, 0x10
call fcn.0053a480
mov edi, 0x4b94a2f
add al, 0x90
push es
popal
nop
push ebx
lea ebx, [ebx + ecx*4]
sbb al, 0x9d
enter 0x5176, 0
mov ebx, dword [ebx*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
btc edi, edi
mov dh, 0x68
mov edi, dword [esp]
neg dh
jmp 0x53a3e8

Function at 0x53a480
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x1e
clc
push word [esp + 0x11]
add esp, 0xd
lea esp, [esp + 3]
lea esp, [esp + 0x10]
jmp 0x53a45d
pushal
setnp ah
mov al, 0x5c
bswap ecx
mov dword [esp], edx
jmp 0x53a429
popal
stc
sub esp, 0x14
add esp, 0xd
push word [esp + 4]
lea esp, [esp + 1]
jmp 0x53bcf3
mov edx, dword [esi]
lea edi, [eax*4]
pushal
jmp 0x53a450
lea esp, [esp + 0x48]
xor edi, dword [ebx*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
mov bl, 0xb4
movzx ebx, byte [esi + 5]
call fcn.0053a48c
push esi
mov esi, edx
jmp 0x53a580
and ebx, ecx
sub esp, 0xe
pushal
cmc
lea esp, [esp + 2]
jmp 0x53a4ab
lea esi, [esi*4]
lea esi, reloc.WINMM.dll_waveOutUnprepareHeader
mov edx, dword [esi]
pop esi
call fcn.0053a556
mov dh, 0xc8
jbe 0x53a5dd
add byte [ebx - 0x3e17a1ea], cl
invalid
btr eax, esp
xchg di, ax
mov dword [esp], esi
clc
call fcn.0053a568
jle 0x53a588
jo 0x53a5bf
loop 0x53a5cb
mov esp, 0x21d2b727
wait
cli
pop eax
into
test eax, 0x6035df58
pushal
push word [esp + 0xb]
pop word [esp + 0xb]
inc esp
and al, 0xb
pop word [esp + 0x13]
lea esp, [esp + 2]
jmp 0x53a4f8
jmp 0x53a5e3
lea esp, [esp + 2]
jmp 0x53a624
shr edi, 0x18
jmp 0x53a7cd
mov esi, ebx
lea esi, [esi*4]
lea esi, reloc.WINMM.dll_waveOutUnprepareHeader
mov ebx, dword [esi]
pop esi
jmp 0x53a5b7
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
pushal
call fcn.0053a652
leave
inc ecx
sal dword [eax + reloc.WINMM.dll_waveOutUnprepareHeader], 1
nop
test dword [edx], reloc.WINMM.dll_waveOutUnprepareHeader
and al, 0x60
lea esp, [esp + 0x60]
xor edi, dword [ebx*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
inc bl
mov bx, word [esp]
jmp 0x53a669
and edi, ecx
mov edi, dword [edi*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
and ebx, ecx
jmp 0x53a688
mov edi, dword [edi*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
sub esp, 0xe
sub esp, 0x18
mov dword [esp + 3], esi
lea esp, [esp + 2]
jmp 0x53a6e0
xor edi, dword [ebx*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
movzx ebx, byte [esi + 2]
push esi
jmp 0x53a63b
mov edi, dword [edi*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
and ebx, ecx
lea esp, [esp + 0x5c]
jmp 0x53a81a
lea esp, [esp + 2]
mov edi, dword [edi*4 + reloc.WINMM.dll_waveOutUnprepareHeader]
pushal
and edi, ecx
jmp 0x53aeb0
shr edi, 0x18
sub esp, 0x12
push esp
cmc
pop dword [esp + 8]
jmp 0x53b907