joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100037d1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1007879c], 0
mov dword [0x100787a0], 0
mov dword [0x100787ac], 0
mov dword [0x10078794], 0x1403
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000392a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [0x10078794], 0x53e
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1007879c], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x100787a0], edx
mov dword [0x10078798], 0xffffed94
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x100787a4], cl
mov dword [0x10078794], 0x2aff
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x100787a4]
mov edx, dword [0x100787a0]
mov byte [ebx + edx], cl
mov edx, dword [0x1007879c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x100787a0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x100787ac], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
xor cl, byte [edx + esi]
mov byte [0x100787b0], cl
mov dword [0x10078794], 0x1f0a
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x38], edi
je 0x1000392a
mov eax, dword [0x1007879c]
mov ecx, dword [0x100787a0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x10003834
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10003932
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x10078794]
add edx, 0x13c2
mov dword [0x10078798], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.10002f9c
lea ecx, [0x100028b4]
mov edx, 0x20fb
mov esi, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], 0x139200
mov esi, dword [0x10078780]
mov dword [esp + 0x94], esi
mov esi, dword [0x10078784]
mov dword [esp + 0x7c], esi
mov dword [0x10078794], 0xdb4
mov esi, dword [0x10078788]
mov dword [esp + 0x50], esi
mov esi, dword [0x1007878c]
mov dword [esp + 0x54], esi
mov esi, dword [0x10078790]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
jmp 0x100039f6
mov eax, 0x207e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x100039f6
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp word [ecx], 0x5a4d
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
jne 0x100039cd
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x100039cd
mov eax, dword [esp + 0xc]
add eax, 0xffffeccb
mov ecx, dword [esp + 0xc]
add ecx, 0xffffd9c1
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], edx
mov dword [0x10078794], ecx
mov ecx, dword [esp + 8]
mov esi, dword [edx + ecx + 0x50]
mov dword [esp + 0x6c], esi
mov dword [0x10078798], eax
call fcn.10002bac
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x100039ec
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000276f
mov ecx, dword [0x10078798]
add ecx, 0x1f05
mov dword [0x10078794], ecx
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov ecx, dword [0x10078794]
add ecx, 0xffffe0bc
mov dword [0x10078794], ecx
mov dword [esp + 0x10], eax
jmp 0x100039ec
Function at 0x1002223
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1006140
call fcn.010023d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10076f8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002038
cmp eax, esi
jne 0x100202b
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100203b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002012
xor esi, esi
inc esi
mov eax, dword [0x10076f4]
cmp eax, esi
jne 0x100204e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002089
mov eax, dword [0x10076f4]
test eax, eax
jne 0x1002083
mov dword [0x10076f4], esi
push 0x10011bc
push 0x10011b0
call fcn.01001f8f
pop ecx
pop ecx
test eax, eax
je 0x1002089
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002153
mov dword [0x10072f4], esi
mov eax, dword [0x10076f4]
cmp eax, esi
jne 0x10020ad
push 0x10011ac
push 0x1001194
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10076f4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10020ba
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10076fc], ebx
je 0x10020db
push 0x10076fc
call fcn.01002349
pop ecx
test eax, eax
je 0x10020db
push ebx
push 2
push ebx
call dword [0x10076fc]
push dword [0x10072dc]
push dword [0x10072e0]
push dword [0x10072d8]
call fcn.01001f21
add esp, 0xc
mov dword [0x10072f0], eax
cmp dword [0x10072e4], ebx
jne 0x1002139
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10072f4], ebx
jne 0x1002147
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10072f0]
call fcn.01002419
ret
call fcn.010025c7
jmp 0x1001ff0
Function at 0x1002aca
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1007004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20019
xor esi, esi
push 0x10012f0
mov dword [ebp - 0x90], ecx
push 0x80000002
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
call fcn.010027d7
test eax, eax
jne 0x1002bb7
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x88], esi
call edi
mov ebx, 0x103
jmp 0x1002bb1
lea eax, [ebp - 0x84]
push eax
call fcn.010055b7
mov dword [ebp - 0xa0], eax
cmp eax, esi
je 0x1002b81
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x54
call fcn.01002a9b
inc dword [ebp - 0x88]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push dword [ebp - 0x9c]
call edi
cmp eax, ebx
jne 0x1002b56
pop edi
pop ebx
lea ecx, [ebp - 0x9c]
call fcn.010027b9
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
xor ecx, ebp
add eax, 0x54
pop esi
call fcn.0100223d
leave
ret

Function at 0x1002c74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002ccd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002cbf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1002cbb
cmp esi, eax
jae 0x1002cbf
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1002cad
cmp esi, eax
jb 0x1002cc3
xor eax, eax
jmp 0x1002ccc
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x100307f
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa2
call esi
mov edi, 0x8000
xor ebx, ebx
mov ecx, edi
inc ebx
test cx, ax
je 0x10030b0
mov dword [ebp - 4], ebx
push 0xa3
call esi
push 2
test di, ax
pop edi
je 0x10030c2
or dword [ebp - 4], edi
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x10030d7
or dword [ebp - 4], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x10030ec
or dword [ebp - 4], 8
push 0xa0
call esi
mov ecx, 0x8000
test cx, ax
je 0x1003101
or dword [ebp - 4], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x1003116
or dword [ebp - 4], 0x20
and dword [ebp - 0x1c4], 0
push 0x1bc
lea eax, [ebp - 0x1c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
test byte [ebp - 4], bl
je 0x1003154
mov eax, 0xa2
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], edi
mov eax, ebx
test byte [ebp - 4], 2
push 3
pop esi
je 0x1003178
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa3
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 4
je 0x1003199
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa4
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 8
je 0x10031ba
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa5
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 0x10
je 0x10031db
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa0
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 0x20
je 0x10031fc
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa1
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x5b
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x55
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov word [ecx + 4], dx
mov dword [ecx], ebx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
push 0x5b
lea ecx, [ebp + ecx - 0x1c4]
pop edx
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
push 0x1c
lea ecx, [ebp - 0x1c4]
push ecx
inc eax
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003c35
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x10013b4
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], ebx
call fcn.01001de9
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1003d98
cmp word [esi], bx
je 0x1003d98
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push esi
mov dword [ebp - 4], ebx
call fcn.010037ba
test eax, eax
jl 0x1003d73
lea eax, [ebp - 4]
push eax
push 0x104
push dword [ebp - 4]
call fcn.01002eb8
test eax, eax
jl 0x1003d73
push dword [ebp - 4]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.010038ac
test al, al
jne 0x1003cc1
push dword [ebp + 8]
call fcn.01002bf5
mov esi, 0x8007000e
jmp 0x1003d78
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, ebx
jne 0x1003cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003ce9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call fcn.01002bf5
jmp 0x1003d78
cmp esi, dword [ebp - 4]
jbe 0x1003d08
push edi
call fcn.01002bf5
mov esi, 0x8007007a
jmp 0x1003d78
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
jg 0x1003d84
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003d47
test byte [eax + 0x1c], 8
je 0x1003d47
push edi
push dword [ebp + 8]
push 0x10013a4
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001d76
cmp edi, 2
jl 0x1003d6b
cmp edi, 3
jle 0x1003d56
cmp edi, 0xb
jne 0x1003d6b
cmp esi, ebx
jle 0x1003d66
and esi, 0xffff
or esi, 0x80070000
push dword [ebp + 8]
jmp 0x1003cec
push dword [ebp + 8]
call fcn.01002bf5
mov esi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.01001e2d
mov eax, esi
jmp 0x1003da5
push dword [ebp + 8]
call fcn.01002bf5
lea ecx, [ebp - 0x10]
call fcn.01001e2d
xor eax, eax
jmp 0x1003da5
lea ecx, [ebp - 0x10]
call fcn.01001e2d
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1005ba4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1007004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01005ae5
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1005c17
cmp dword [ebp - 0x94], 5
jb 0x1005c38
jmp 0x1005c34
cmp dword [ebp - 0x88], 1
jne 0x1005c38
cmp dword [ebp - 0x94], 4
ja 0x1005c34
jne 0x1005c38
cmp dword [ebp - 0x90], 0
jbe 0x1005c38
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001a84
call fcn.01005958
test eax, eax
jge 0x1005c59
mov byte [0x10072d4], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100223d
leave
ret
Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68

Function at 0x4099fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a55
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40c0cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409a48
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x409a57
xor eax, eax
pop esi
leave
ret 4
Function at 0x401f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, edx
je 0x401fa3
push esi
push edi
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
mov dword [ebp + 8], ecx
cmp ecx, edx
jne 0x401f81
pop edi
pop esi
pop ebp
ret
Function at 0x401fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d81c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + edx*4]
push esi
xor eax, eax
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], 1
inc ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x30]
mov dword [esp + 0x18], eax
call fcn.00403c00
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
lea eax, [ecx + eax*4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], eax
mov edi, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [ebx + 0x10], 0
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
je 0x4020ea
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4020d9
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x402078
mov ecx, dword [eax]
jmp 0x40207a
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
cmp dword [eax + 0x14], 0x10
jb 0x402087
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x10], eax
xor eax, eax
cmp ecx, edx
je 0x4020b8
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x402093
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor edx, edx
div dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
mov dword [edi], ecx
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov dword [esi], edx
mov dword [eax], esi
mov esi, dword [edi]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x40206b
add edi, 4
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x1c]
jne 0x402061
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], eax
cmp dword [ebx + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
je 0x40212d
mov eax, dword [ebx]
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
jne 0x402137
jmp 0x402120
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x402120
jmp 0x402137
mov edx, eax
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov eax, ebx
call fcn.00404390
cmp dword [esp + 0x30], 0
mov dword [ebx + 0x1c], eax
je 0x402152
lea edx, [esp + 0x30]
push edx
call fcn.00401ee0
cmp dword [esp + 0x24], 0
je 0x402163
lea eax, [esp + 0x24]
push eax
call fcn.00401ee0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7f5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ebx, [ecx + eax*4]
mov eax, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], cx
push eax
mov dword [ebp - 4], ecx
call fcn.00403c90
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x403bae
mov edi, dword [eax]
test edi, edi
je 0x403ba0
mov ecx, dword [edi + 0x18]
cmp ecx, 0x10
jb 0x403a88
mov esi, dword [edi + 4]
jmp 0x403a8b
lea esi, [edi + 4]
mov edx, dword [edi + 0x14]
add edx, esi
cmp ecx, 0x10
jb 0x403a9a
mov ecx, dword [edi + 4]
jmp 0x403a9d
lea ecx, [edi + 4]
xor eax, eax
cmp ecx, edx
je 0x403ac0
mov esi, eax
mov ebx, eax
shl esi, 6
shr ebx, 2
add esi, ebx
movsx ebx, byte [ecx]
lea esi, [esi + ebx - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x403aa3
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, dword [edi]
mov dword [ebp - 0x10], ecx
lea esi, [eax + edx*4]
lea edx, [ebp - 0x2c]
push edx
call fcn.004018c0
mov ebx, dword [ebp - 0x28]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
je 0x403b13
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
push eax
mov ecx, ebx
mov byte [ebx], 0
call fcn.00401c50
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x1c], eax
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x28]
mov ecx, dword [esi]
mov dword [ebx], ecx
mov dword [esi], ebx
mov edi, dword [edi]
mov byte [ebp - 0x23], 1
mov dword [ebp - 0x28], 0
cmp edi, dword [ebp - 0x10]
je 0x403b92
lea edx, [ebp - 0x2c]
push edx
call fcn.004018c0
mov esi, dword [ebp - 0x28]
add esi, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
je 0x403b73
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00401c50
mov eax, dword [edi + 0x20]
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ebx], ebx
mov edi, dword [edi]
mov byte [ebp - 0x23], 1
mov dword [ebp - 0x28], 0
cmp edi, dword [ebp - 0x10]
jne 0x403b32
test edi, edi
jne 0x403a7b
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x403a71
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4