joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a70b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x48a748
cmp dword [ebp + 0x14], edi
je 0x48a748
cmp ecx, edi
jne 0x48a74f
call fcn.0048c2cf
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00486c59
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x48a763
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48a784
cmp ebx, 0xffffffff
je 0x48a773
push ebx
push edi
push ecx
call fcn.004863a0
add esp, 0xc
cmp esi, edi
je 0x48a730
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x48a730
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x48a7a0
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x48a7a7
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x48a898
test word [esi + 0xc], 0x10c
je 0x48a7fb
mov eax, dword [esi + 4]
test eax, eax
je 0x48a7fb
jl 0x48a8f9
cmp ebx, eax
mov edi, ebx
jb 0x48a7cc
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x48a8a0
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00486912
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x48a890
cmp ebx, dword [ebp - 0xc]
jb 0x48a868
cmp dword [ebp - 0xc], 0
je 0x48a825
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48a81a
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x48a821
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x48a830
mov eax, SysReAllocString
cmp ebx, eax
ja 0x48a830
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x48a8cc
push eax
push dword [ebp - 8]
push esi
call fcn.00495750
pop ecx
push eax
call fcn.00498085
add esp, 0xc
test eax, eax
je 0x48a90b
cmp eax, 0xffffffff
je 0x48a8f9
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x48a890
push esi
call fcn.004979a4
cmp eax, 0xffffffff
pop ecx
je 0x48a8fd
cmp dword [ebp - 4], 0
je 0x48a8cc
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x48a7af
mov eax, dword [ebp + 0x14]
jmp 0x48a74a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x48a8b7
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004863a0
add esp, 0xc
call fcn.0048c2cf
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x48a740
cmp dword [ebp + 0xc], 0xffffffff
je 0x48a8e2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004863a0
add esp, 0xc
call fcn.0048c2cf
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x48a740
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48a74a
or dword [esi + 0xc], 0x10
jmp 0x48a8fd
Function at 0x48baa2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48bacf
call fcn.0048c2e2
mov dword [eax], esi
call fcn.0048c2cf
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00486c59
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48baab
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48bafe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048c2f5
pop ecx
call fcn.0048c2cf
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48bb25
test al, 1
je 0x48bb25
test byte [esp + 0xc], 2
je 0x48bb25
call fcn.0048c2e2
mov dword [eax], 5
call fcn.0048c2cf
mov dword [eax], 0xd
jmp 0x48baf5
xor eax, eax
pop esi
ret

Function at 0x48f32c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4cd448]
je 0x48f347
inc edi
cmp edi, 0x17
jb 0x48f338
cmp edi, 0x17
jae 0x48f4c7
push ebp
push 3
call fcn.0049b32a
cmp eax, 1
pop ecx
je 0x48f493
push 3
call fcn.0049b32a
test eax, eax
pop ecx
jne 0x48f37b
cmp dword [0x4cd284], 1
je 0x48f493
cmp ebx, 0xfc
je 0x48f4c6
push 0x4ae8e0
mov ebx, 0x314
push ebx
mov ebp, 0x4d0398
push ebp
call fcn.0048afda
add esp, 0xc
test eax, eax
je 0x48f3b1
push esi
push esi
push esi
push esi
push esi
call fcn.00486b5d
add esp, 0x14
push 0x104
mov esi, 0x4d03b1
push esi
push 0
mov byte [0x4d04b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48f3f5
push 0x4ae8c8
push 0x2fb
push esi
call fcn.0048afda
add esp, 0xc
test eax, eax
je 0x48f3f5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00486b5d
add esp, 0x14
push esi
call fcn.00485d80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48f43a
push esi
call fcn.00485d80
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d06ac
push 0x4ae8c4
sub ecx, eax
push ecx
push eax
call fcn.0048b5ab
add esp, 0x14
test eax, eax
je 0x48f43a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00486b5d
add esp, 0x14
jmp 0x48f43c
xor esi, esi
push 0x4ae8c0
push ebx
push ebp
call fcn.00499c16
add esp, 0xc
test eax, eax
je 0x48f45c
push esi
push esi
push esi
push esi
push esi
call fcn.00486b5d
add esp, 0x14
push dword [edi*8 + 0x4cd44c]
push ebx
push ebp
call fcn.00499c16
add esp, 0xc
test eax, eax
je 0x48f47e
push esi
push esi
push esi
push esi
push esi
call fcn.00486b5d
add esp, 0x14
push 0x12010
push 0x4ae898
push ebp
call fcn.0049b16d
add esp, 0xc
jmp 0x48f4c6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48f4c6
cmp ebp, 0xffffffff
je 0x48f4c6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cd44c]
push dword [esi]
call fcn.00485d80
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49b16d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048f5df
xor ebx, ebx
cmp dword [0x4d0e94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49b243
push 0x4af4dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49b323
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4af4d0
push edi
call esi
cmp eax, ebx
je 0x49b323
push eax
call fcn.0048f571
mov dword [esp], 0x4af4c0
push edi
mov dword [0x4d0e94], eax
call esi
push eax
call fcn.0048f571
mov dword [esp], 0x4af4ac
push edi
mov dword [0x4d0e98], eax
call esi
push eax
call fcn.0048f571
mov dword [0x4d0e9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00488bf3
test eax, eax
pop ecx
pop ecx
je 0x49b211
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486b5d
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49b243
push 0x4af490
push edi
call esi
push eax
call fcn.0048f571
cmp eax, ebx
pop ecx
mov dword [0x4d0ea4], eax
je 0x49b243
push 0x4af478
push edi
call esi
push eax
call fcn.0048f571
pop ecx
mov dword [0x4d0ea0], eax
mov eax, dword [0x4d0ea0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49b2c8
cmp dword [0x4d0ea4], ecx
je 0x49b2c8
push eax
call fcn.0048f5e8
push dword [0x4d0ea4]
mov esi, eax
call fcn.0048f5e8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49b2c8
cmp edi, ebx
je 0x49b2c8
call esi
cmp eax, ebx
je 0x49b295
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49b295
test byte [ebp - 0x18], 1
jne 0x49b2c8
lea eax, [ebp - 0x10]
push eax
call fcn.00488c2a
test eax, eax
pop ecx
je 0x49b2b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00486b5d
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49b2bf
or dword [ebp + 0x10], 0x200000
jmp 0x49b303
or dword [ebp + 0x10], 0x40000
jmp 0x49b303
mov eax, dword [0x4d0e98]
cmp eax, dword [ebp - 8]
je 0x49b303
push eax
call fcn.0048f5e8
cmp eax, ebx
pop ecx
je 0x49b303
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49b303
mov eax, dword [0x4d0e9c]
cmp eax, dword [ebp - 8]
je 0x49b303
push eax
call fcn.0048f5e8
cmp eax, ebx
pop ecx
je 0x49b303
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d0e94]
call fcn.0048f5e8
cmp eax, ebx
pop ecx
je 0x49b323
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49b325
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4044d4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x404510
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x404500
xor eax, eax
jmp 0x40451c
mov byte [ebx], al
mov eax, 1
jmp 0x40451c
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x404524
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x40454c
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x40461c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x404645
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x404650
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x4074b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40ab84
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40aba9
mov dword [0x413164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40abae
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40abc4
mov dword [sym._eh_context_initialize], 0x40aca8
jmp 0x40abce
mov dword [sym._eh_context_initialize], 0x40ac5c
leave
ret

Function at 0x40aca8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x413164]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40acf5
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x413164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40acea
call sub.KERNEL32.dll_GetLastError
jmp 0x40acec
xor eax, eax
test eax, eax
je 0x40acf5
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40ae20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40aedd
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40ae88
mov dword [eax + 8], esp
jmp 0x40ae8a
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40aec6
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40aea4
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40aedd
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40af6d
jb 0x40af78
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40af7b
insb byte es:[edi], dx
jb 0x40af36
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40af92
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x41
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093c8
cmp edx, dword [eax]
je 0x403aac
add eax, 8
inc ecx
cmp eax, 0x409458
jl 0x403a9d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093c8]
jne 0x403bda
mov eax, dword [0x409c68]
cmp eax, 1
je 0x403bb4
test eax, eax
jne 0x403add
cmp dword [0x407214], 1
je 0x403bb4
cmp edx, 0xfc
je 0x403bda
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b14
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004047f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b57
lea eax, [ebp - 0x1a4]
push eax
call fcn.004047f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404710
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.00404710
push dword [esi + 0x4093cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404ce2
add esp, 0x2c
pop edi
jmp 0x403bda
lea eax, [ebp + 8]
lea esi, [esi + 0x4093cc]
push 0
push eax
push dword [esi]
call fcn.004047f0
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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407fc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4954c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocStringLen
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
mov esi, eax
call edi
test esi, esi
je 0x408027
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457813
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x408015
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x408015
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.00458c40
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00457813
mov esp, ebp
pop ebp
ret
Function at 0x4080c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x271c
call fcn.0046f430
mov eax, dword [0x4954c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x2715], 0
call fcn.00458d10
add esp, 0xc
test esi, esi
je 0x408147
push edi
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408108
mov cx, word [0x47eea0]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408120
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408130
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0
lea edx, [ebp - 0x271c]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x2714]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4081e9
test ebx, ebx
je 0x4081a3
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408180
mov ecx, dword [ebp - 0x271c]
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4081c4
mov edx, dword [ebp - 0x271c]
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457813
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457813
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.00457813
mov esp, ebp
pop ebp
ret

Function at 0x408200
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.0046f430
mov eax, dword [0x4954c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x270f
push eax
lea eax, [ebp - 0x2714]
push eax
call fcn.00458d10
add esp, 0xc
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
xor ecx, ebp
call fcn.00457813
mov esp, ebp
pop ebp
ret
Function at 0x40d2b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479d4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x4954c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov ecx, dword [0x47e298]
mov dword [esi + 0xc], ecx
mov edx, dword [0x47e29c]
mov dword [esi + 0x10], edx
mov ecx, dword [0x47e2a0]
mov dword [esi + 0x14], ecx
mov edx, dword [0x47e2a4]
mov dword [esi + 0x18], edx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov dword [esi + 0x30], edi
cmp edi, ebx
je 0x40d384
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push esi
push edi
call ecx
cmp eax, ebx
mov eax, dword [esi + 0x30]
jl 0x40d375
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
cmp eax, ebx
jl 0x40d384
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
lea eax, [esi + 4]
push eax
mov eax, dword [edx + 0x20]
push ecx
call eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40d384
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp + 8], ebx
jmp 0x40d384
cmp eax, ebx
je 0x40d384
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x30], ebx
push 8
call fcn.00457d58
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x40d3b5
mov dword [ebx], vtable.tcomxTypeHandler.0
mov dword [ebx + 4], edi
test edi, edi
je 0x40d3b7
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
jmp 0x40d3b7
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea eax, [esi + 0x34]
mov ecx, 0x96
mov dword [eax], 0
add eax, 0x10
dec ecx
jne 0x40d3c2
mov eax, dword [0x498218]
mov dword [esi + 0x994], eax
inc eax
mov dword [0x498218], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14