joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e6cd
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x4514b8], al
inc eax
cmp eax, 0x100
jb 0x41e6d5
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
shl ecx, 2
mov dword [ecx + 0x44f4b8], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx + 0x44f8b8], ebx
mov ebx, dword [ebp - 4]
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx + 0x44fcb8], edx
movzx edx, byte [ebx + 0x4514b8]
shl eax, 8
or eax, esi
mov dword [ecx + 0x4500b8], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
mov esi, edx
xor esi, dword [ebp - 8]
xor edx, eax
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
mov eax, edx
mov edx, dword [ebp - 0xc]
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx + 0x4504b8], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx + 0x4508b8], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx + 0x450cb8], ebx
mov dword [ecx + 0x4510b8], eax
jb 0x41e6f1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e857
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
shr dword [ebp + 0x10], 2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
shr eax, 1
add eax, 3
push esi
xor esi, esi
lea edx, [eax*8 + 4]
push edi
mov dword [ecx], eax
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], esi
jbe 0x41e891
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ecx + esi*4 + 4], edi
inc esi
add eax, 4
cmp esi, dword [ebp + 0x10]
jb 0x41e882
cmp esi, edx
jae 0x41e978
mov eax, esi
sub eax, dword [ebp + 0x10]
push ebx
lea eax, [ecx + eax*4 + 4]
mov dword [ebp + 8], eax
xor edx, edx
mov eax, esi
div dword [ebp + 0x10]
mov edi, dword [ecx + esi*4]
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x41e90c
mov eax, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi + 0x44e500]
shl eax, 8
or eax, ebx
xor edx, edi
shl eax, 8
or eax, edx
mov edi, eax
jmp 0x41e95e
cmp dword [ebp + 0x10], 6
jbe 0x41e95e
cmp edx, 4
jne 0x41e95e
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx eax, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edx, eax
mov edi, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add dword [ebp + 8], 4
xor eax, edi
mov dword [ecx + esi*4 + 4], eax
inc esi
cmp esi, dword [ebp - 4]
jb 0x41e8a6
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41e97e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.0041e857
mov eax, dword [esi]
lea eax, [eax*8 - 4]
xor edx, edx
mov dword [ebp + 0x10], eax
test eax, eax
jbe 0x41ea07
push ebx
mov ecx, 0xff
push edi
mov eax, dword [esi + edx*4 + 0x14]
mov edi, eax
shr edi, 0x10
and edi, ecx
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*4 + 0x450cb8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4508b8]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4510b8]
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edi, dword [eax*4 + 0x4504b8]
inc edx
mov dword [esi + edx*4 + 0x10], edi
cmp edx, dword [ebp + 0x10]
jb 0x41e9aa
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41f2b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x41f2c0
xor eax, eax
jmp 0x41f323
push 0x10
pop eax
cmp ebx, eax
jb 0x41f323
sub ebx, eax
add ebx, eax
shr ebx, 4
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
xor dword [esi], eax
mov eax, dword [edi + 4]
xor dword [esi + 4], eax
mov eax, dword [edi + 8]
xor dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push dword [esi + 0x10]
xor dword [esi + 0xc], eax
push esi
lea ecx, [esi + 0x14]
mov eax, esi
call fcn.0041ea0c
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
add edi, 0x10
dec ebx
jne 0x41f2de
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41f328
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x41f33d
xor eax, eax
jmp 0x41f3cc
push 0x10
pop eax
cmp ebx, eax
jb 0x41f3cc
sub ebx, eax
add ebx, eax
shr ebx, 4
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x10]
call fcn.0041ee2e
mov eax, dword [esi]
xor eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x1c]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x18]
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 0x14]
dec ebx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
jne 0x41f35f
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41f46f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x41f5ca
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x41f4ad
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41f4b2
inc edi
cmp edi, dword [ebp - 4]
jb 0x41f4a4
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x41f5aa
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x41f509
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x41f4dd
cmp cl, 0xff
jne 0x41f534
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x41f542
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41f549
dec ecx
shl edx, cl
and edx, 7
je 0x41f4ce
movzx ecx, byte [edx + 0x440410]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x440408], 0
mov cl, byte [ebx + 4]
je 0x41f531
test cl, cl
je 0x41f531
cmp cl, 0xff
jne 0x41f4ce
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41f49f
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x41f57d
movzx esi, byte [edx + 0x440410]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x41f568
cmp al, 0xff
jne 0x41f57a
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x41f4fb
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41f49f
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0x14

Function at 0x4214dd
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4

Function at 0x42183a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00426bd5
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.004217e5
pop ebp
ret 0xc
Function at 0x422f09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e580]
jne 0x422f13
repz ret
jmp fcn.004292dc

Function at 0x431891
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00427896
and dword [ebp - 4], 0
cmp dword [0x451f68], 0
mov ebx, eax
jne 0x431942
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4319f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4319f3
push eax
call fcn.00427824
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451f68], eax
call esi
push eax
call fcn.00427824
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451f6c], eax
call esi
push eax
call fcn.00427824
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451f70], eax
call esi
push eax
call fcn.00427824
pop ecx
mov dword [0x451f78], eax
test eax, eax
je 0x431942
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427824
pop ecx
mov dword [0x451f74], eax
mov eax, dword [0x451f74]
cmp eax, ebx
je 0x43199a
cmp dword [0x451f78], ebx
je 0x43199a
push eax
call fcn.0042789f
push dword [0x451f78]
mov esi, eax
call fcn.0042789f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43199a
test edi, edi
je 0x43199a
call esi
test eax, eax
je 0x431991
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431991
test byte [ebp - 0xc], 1
jne 0x43199a
or dword [ebp + 0x10], 0x200000
jmp 0x4319d3
mov eax, dword [0x451f6c]
cmp eax, ebx
je 0x4319d3
push eax
call fcn.0042789f
pop ecx
test eax, eax
je 0x4319d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4319d3
mov eax, dword [0x451f70]
cmp eax, ebx
je 0x4319d3
push eax
call fcn.0042789f
pop ecx
test eax, eax
je 0x4319d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451f68]
call fcn.0042789f
pop ecx
test eax, eax
je 0x4319f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4319f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8
Function at 0x44212d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44215b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442179
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00442097
jmp 0x442179
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442179
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00442097
test edi, edi
mov eax, edi
jne 0x442163
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56c32c]
test ecx, ecx
je 0x44222c
jmp 0x44212c
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x402ee4
pop dword [ebp - 8]
mov eax, 0x13269096
sub eax, 0x12e661b2
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xd19e8519
add dword [ebp - 0x18], 0x7cb3c032
mov dword [ebp - 0x14], 0x450923e3
add dword [ebp - 0x14], 0xed2a2862
mov dword [ebp - 0x10], 0xca647adf
sub dword [ebp - 0x10], 0x7e1836b1
mov dword [ebp - 0xc], 0x6affe023
sub dword [ebp - 0xc], 0x6affe023
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xfe0532d6
sub dword [ebp - 0x18], 0x8992c980
mov dword [ebp - 0x14], 0x97e47225
sub dword [ebp - 0x14], 0x567810b0
mov dword [ebp - 0x10], 0xe9416db0
sub dword [ebp - 0x10], 0x85d20144
mov dword [ebp - 0xc], 0x866886f7
add dword [ebp - 0xc], 0x79977909
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35943
push 0
call eax
mov ecx, 0x422c
mov ebx, eax
mov edx, 0x86686af
add edx, 0xf7e05d51
add edx, dword [ebp - 8]
mov edi, 0x4c281168
sub dword [ebp - 4], edi
mov esi, dword [edx]
xor dword [ebp - 4], 0x7fc14de8
sub esi, edi
mov dword [ebp - 4], 0xe888585b
mov dword [ebx], esi
add dword [ebp - 4], ebx
add ebx, 0xd5ef3013
add ebx, 0x2a10cff1
add edx, 0xc6cbc8bf
add edx, 0x39343745
loop 0x402ff0
add eax, 0xfb83
mov ebx, eax
add eax, 0x4bcfcb01
sub eax, 0x4bcfcafc
mov ecx, 0xf17db1af
sub ecx, 0xf13db1af
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x419291
pop dword [ebp - 0x20]
mov eax, 0xe73ce1ec
add eax, 0x1904b0a5
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x40070
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x5115
xor ebx, ebx
add ebx, eax
mov edx, 0xd380189e
add edx, 0x2cc33b62
add edx, dword [ebp - 0x20]
mov edi, 0xacfdbfbb
xor dword [ebp - 0x1c], 0x9ccd448d
mov esi, dword [edx]
xor dword [ebp - 0xc], ecx
add esi, edi
add dword [ebp - 8], ecx
mov dword [ebx], esi
mov dword [ebp - 0x18], 0xb5e39409
add ebx, 4
add edx, 0x89dae5c7
sub edx, 0x89dae5c3
loop 0x4192e1
add eax, 0x13727
mov ebx, eax
add eax, 0x4a981738
sub eax, 0x4a981733
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4027d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x409b04
push 0
push str.SoftwareRealtekAlcMonitor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402854
mov eax, 4
lea edx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.PrevSpeakerConfig
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40283b
mov dword [esp + 4], 0x140004
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 4]
mov dword [ecx], edx
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x140004
mov dword [ecx], eax
add esp, 0x14
ret

Function at 0x403af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 6
mov esi, str.SoftwareRealtekInitAp_
lea edi, [esp + 0x18]
lea eax, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x2001f
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x80000002
mov dword [esp + 0x20], 0xffffffff
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x403b84
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x418]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b79
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x410
ret
Function at 0x404995
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409688
cmp edx, dword [eax]
je 0x4049b7
add eax, 8
inc ecx
cmp eax, 0x409718
jl 0x4049a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409688]
jne 0x404ae5
mov eax, dword [0x409b20]
cmp eax, 1
je 0x404abf
test eax, eax
jne 0x4049e8
cmp dword [0x4095d4], 1
je 0x404abf
cmp edx, 0xfc
je 0x404ae5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404a1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404f40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004050b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404a62
lea eax, [ebp - 0x1a4]
push eax
call fcn.004050b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407578
push edi
call fcn.00405d40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404f40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404f50
lea eax, [ebp - 0xa0]
push 0x407558
push eax
call fcn.00404f50
push dword [esi + 0x40968c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404f50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405cae
add esp, 0x2c
pop edi
jmp 0x404ae5
lea eax, [ebp + 8]
lea esi, [esi + 0x40968c]
push 0
push eax
push dword [esi]
call fcn.004050b0
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]
pop esi
leave
ret