joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d08a
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c81
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x447200], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
jmp 0xe8488269
push 8
call fcn.0040231a
push 4
mov esi, eax
call fcn.0040231a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ac0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053af
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401889
cmp dword [edi], 0
je 0x401896
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x40189d
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040215e
add esp, 0xc
test eax, eax
jne 0x4018a4
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f00
push 1
call fcn.00401f00
push 5
call fcn.00401f00
push 2
call fcn.00401f00
int3

Function at 0x402c87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cc6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407855
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407889
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
jmp 0x40788f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40790a
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x404dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x404de7
pop dword [ebp - 0x34]
mov eax, 0x404de7
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe65877be
sub dword [ebp - 0x44], 0x98063273
mov dword [ebp - 0x40], 0x965c9a8a
add dword [ebp - 0x40], 0x9bd6b1bb
mov dword [ebp - 0x3c], 0x6626ab30
add dword [ebp - 0x3c], 0xe62598fe
mov dword [ebp - 0x38], 0x244eb0ba
add dword [ebp - 0x38], 0xdbb14f46
lea eax, [ebp - 0x44]
push eax
mov eax, 0x548e9fa7
add eax, 0xabb390cd
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd5045c76
sub dword [ebp - 0x44], 0x6091f320
mov dword [ebp - 0x40], 0x3074db6b
add dword [ebp - 0x40], 0x10f7860a
mov dword [ebp - 0x3c], 0x6ae3964b
sub dword [ebp - 0x3c], 0x77429df
mov dword [ebp - 0x38], 0x1a5230e3
sub dword [ebp - 0x38], 0x1a5230e3
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x70b3bc42
sub eax, 0x70718b1e
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3f965
push 0
call eax
mov ecx, 0xc9ab817e
sub ecx, 0xc9ab321c
xor edi, edi
add edi, eax
mov ebx, 0xc2d8ec5
sub ebx, 0xbea4ac5
add ebx, dword [ebp - 0x34]
mov esi, 0x84d77d8d
add esi, 0x4ffc3060
add dword [ebp - 0x24], 0x9bdcdd5e
mov edx, dword [ebx]
xor dword [ebp - 0x28], 0xe24ded24
sub edx, esi
xor dword [ebp - 0x1c], 0xeb22fa3f
mov dword [edi], edx
mov dword [ebp - 0x14], 0xfb194025
add edi, 4
add ebx, 0x2777b999
sub ebx, 0x2777b995
loop 0x404f06
add eax, 0xed58e9e8
sub eax, 0xed57b98d
xor ebx, ebx
add ebx, eax
add eax, 0x5f2ee349
add eax, 0xa0d11cbc
mov ecx, 0x314f3e2d
sub ecx, 0x310f3e2d
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4672d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
jmp 0x4672ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4672f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4672e0
mov eax, 1
add ebx, ebx
jne 0x467303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467314
jne 0x467333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467333
dec eax
add ebx, ebx
jne 0x467320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4672f8
add ebx, ebx
jne 0x46732f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x467385
xor ecx, ecx
sub eax, 3
jb 0x46734b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4673ba
sar eax, 1
mov ebp, eax
jmp 0x467356
add ebx, ebx
jne 0x467356
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467324
inc ecx
add ebx, ebx
jne 0x467364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467324
add ebx, ebx
jne 0x467371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x467366
jne 0x467382
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x467366
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4673a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x467396
jmp 0x4672e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4673a4
add edi, ecx
jmp 0x4672e6
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4673c2
cmp byte [edi], 0
jne 0x4673c2
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 al, bl
loop 0x4673c7
mov ebp, dword [esi + 0x676d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x467422
sub esp, 0xffffff80
jmp 0x407c28
Function at 0x401e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.00509888
add esp, 0x10
pop ebp
ret 0xc

Function at 0x402490
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5c0db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
jb 0x4024ae
mov eax, dword [eax]
push eax
mov eax, dword [esi + 4]
push 0x2712
push eax
call fcn.00523190
add esp, 0xc
push 0x4a
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.00402360
cmp dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0x20]
jae 0x4024ed
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 4]
push eax
push 0x2722
push ecx
call fcn.00523190
mov edx, dword [esi + 4]
push 5
push 0x44
push edx
call fcn.00523190
mov eax, dword [esi + 4]
push 1
push 0x34
push eax
call fcn.00523190
mov ecx, dword [esi + 4]
push 1
push 0x63
push ecx
call fcn.00523190
mov edx, dword [esi + 4]
push 0
push 0x2f
push edx
call fcn.00523190
mov eax, dword [esi + 4]
push 0x401f00
push 0x4e2b
push eax
call fcn.00523190
mov ecx, dword [esi + 4]
add esp, 0x48
push esi
push 0x2711
push ecx
call fcn.00523190
mov edx, dword [esi + 4]
push 0
push 0x2b
push edx
call fcn.00523190
mov eax, dword [esi + 4]
push esi
push 0x2749
push eax
call fcn.00523190
mov ecx, dword [esi + 4]
push fcn.00401f30
push 0x4e58
push ecx
call fcn.00523190
mov edx, dword [esi + 4]
push 0
push 0x40
push edx
call fcn.00523190
mov eax, dword [esi + 4]
push 0
push 0x51
push eax
call fcn.00523190
add esp, 0x48
cmp dword [ebp - 0xc], 0x10
pop esi
jb 0x4025b4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040a93a
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005087f8
mov esp, ebp
pop ebp
ret

Function at 0x403050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40306b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40309e
jmp 0x403090
cmp esi, eax
jae 0x4030a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403090
cmp esi, eax
jb 0x4030a9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403f80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x5c0db0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.00414a52
test eax, eax
jne 0x403fa6
push 0x80004005
call fcn.00401220
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov edx, dword [ebp + 8]
mov esi, eax
mov eax, dword [edi + 0x10]
push eax
push 0x5a
lea ecx, [ebp - 0x68]
push ecx
push 0x56c4e8
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ecx, ecx
test eax, eax
setg cl
mov dword [edi + 0xc], eax
lea edx, [esi + 0xc]
or eax, 0xffffffff
mov edi, ecx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403ff2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x404012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.005087f8
mov esp, ebp
pop ebp
ret 4

Function at 0x4040b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d580
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5c0db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x114], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push 0x56c4e8
push ecx
push edx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x110]
push eax
mov ecx, edi
call fcn.00403860
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40414a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404170
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005087f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
mov esi, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404990
sub eax, edx
mov ecx, esi
lea edi, [eax + 1]
call fcn.004047f0
mov dword [esi + 8], 1
mov eax, 0x800
cmp edi, 0x800
ja 0x4049b9
mov eax, edi
push eax
mov eax, dword [esi + 0x18]
push ebx
push eax
call fcn.00509eca
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x10], 1
mov eax, dword [ecx + 8]
add esp, 0xc
test al, 8
jne 0x404a10
cmp dword [esi + 4], 0
je 0x404a10
test al, 2
je 0x4049ea
push 2
call fcn.004059d0
test al, al
jne 0x4049f9
mov eax, dword [esi + 0xc]
test byte [eax + 8], 2
jne 0x404a10
cmp dword [eax + 4], 0
je 0x404a10
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 4]
push edi
push ebx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], 2
je 0x404a1e
call fcn.00404840
pop edi
mov eax, esi
mov byte [esi + 0x11], 1
pop esi
pop ebx
pop ebp
ret 4

Function at 0x404a30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 8], 4
mov ecx, dword [eax]
push edi
lea edi, [esi + 0x14]
mov dword [edi], ecx
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x10], 1
mov eax, dword [ecx + 8]
test al, 8
jne 0x404a92
cmp dword [esi + 4], 0
je 0x404a92
test al, 2
je 0x404a6b
push 2
call fcn.004059d0
test al, al
jne 0x404a7a
mov eax, dword [esi + 0xc]
test byte [eax + 8], 2
jne 0x404a92
cmp dword [eax + 4], 0
je 0x404a92
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push 4
push edi
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], 2
je 0x404aa0
call fcn.00404840
pop edi
mov eax, esi
mov byte [esi + 0x11], 1
pop esi
pop ebp
ret 4
Function at 0x404bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x404d58
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], 3
mov eax, dword [ecx + 8]
push ebx
mov ebx, 2
test al, 8
jne 0x404c55
cmp dword [esi + 4], 0
je 0x404c55
test bl, al
je 0x404c2d
push ebx
call fcn.004059d0
test al, al
jne 0x404c3b
mov eax, dword [esi + 0xc]
test byte [eax + 8], bl
jne 0x404c55
cmp dword [eax + 4], 0
je 0x404c55
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
push edi
push eax
mov eax, dword [edx + 4]
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], bl
je 0x404c62
call fcn.00404840
mov byte [esi + 0x11], 1
mov ecx, dword [esi + 0x20]
sub ecx, dword [esi + 0x1c]
add esi, 0x1c
cmp ecx, edi
jae 0x404c7b
push edi
mov ecx, esi
call fcn.00404ad0
mov eax, dword [esi + 4]
mov ebx, dword [esi]
cmp ebx, eax
je 0x404c98
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.005093d0
add esp, 0xc
add edi, ebx
mov dword [esi + 4], edi
mov edi, dword [esi + 4]
sub edi, dword [esi]
mov eax, dword [esi + 4]
add edi, dword [ebp + 8]
cmp edi, eax
jae 0x404cfd
mov edx, dword [esi]
cmp edx, edi
ja 0x404cfd
mov ecx, dword [esi + 8]
sub edi, edx
cmp eax, ecx
jne 0x404ce9
sub eax, edx
cmp eax, 0xfffffffe
ja 0x404d5e
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x404ce9
mov edx, ecx
shr edx, 1
or ebx, 0xffffffff
sub ebx, edx
cmp ebx, ecx
jae 0x404cd9
xor ecx, ecx
jmp 0x404cdb
add ecx, edx
cmp ecx, eax
jae 0x404ce1
mov ecx, eax
push ecx
mov ecx, esi
call fcn.00404ad0
mov edx, dword [esi]
mov eax, dword [esi + 4]
add edx, edi
push edx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.00404ab0
jmp 0x404d43
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x404d35
mov edx, dword [esi]
sub eax, edx
cmp eax, 0xfffffffe
ja 0x404d5e
inc eax
sub ecx, edx
cmp eax, ecx
jbe 0x404d35
mov edx, ecx
shr edx, 1
or ebx, 0xffffffff
sub ebx, edx
cmp ebx, ecx
jae 0x404d25
xor ecx, ecx
jmp 0x404d27
add ecx, edx
cmp ecx, eax
jae 0x404d2d
mov ecx, eax
push ecx
mov ecx, esi
call fcn.00404ad0
mov edx, dword [esi + 4]
push edi
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00404ab0
inc dword [esi + 4]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
add esp, 0xc
cmp ecx, dword [ebp + 0xc]
jb 0x404c98
pop ebx
pop edi
pop esi
pop ebp
ret 8
push str.vector_T__too_long
call fcn.00522f04
int3
Function at 0x4054f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5c0db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], edi
jne 0x4055f3
lea ecx, [esi + 0x2c]
mov dword [esi + 8], 7
call fcn.00405260
cmp edi, 2
jbe 0x4055f3
cmp byte [ebx + edi - 1], 0
jne 0x405556
dec edi
mov dword [ebp - 0x30], edi
push 0
push ebx
call fcn.00509de0
mov edi, eax
sub edi, ebx
add esp, 8
cmp edi, dword [ebp - 0x30]
jae 0x4055f0
mov esi, ebx
mov eax, esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405587
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402360
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
add ecx, 0x2c
mov dword [ebp - 4], esi
call fcn.00405460
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4055c7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040a93a
add esp, 4
mov dword [ebp - 0x1c], esi
lea esi, [ebx + edi + 1]
push 0
push esi
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00509de0
sub eax, ebx
mov edi, eax
add esp, 8
cmp edi, dword [ebp - 0x30]
jb 0x405570
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
test al, 8
jne 0x405638
cmp dword [esi + 4], 0
je 0x405638
test al, 2
je 0x405612
push 2
call fcn.004059d0
test al, al
jne 0x405621
mov eax, dword [esi + 0xc]
test byte [eax + 8], 2
jne 0x405638
cmp dword [eax + 4], 0
je 0x405638
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
push edi
push ebx
push 7
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esi + 0xc]
test byte [ecx + 8], 2
je 0x405646
call fcn.00404840
mov byte [esi + 0x11], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005087f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405670
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5c0db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0x11c], eax
and eax, 2
mov dword [ebp - 0x118], eax
je 0x4056a5
push 1
call fcn.004059d0
test al, al
je 0x4056ac
mov eax, dword [esi + 4]
test eax, eax
jne 0x4056bd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005087f8
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4056ac
push edi
push 0x800
call fcn.0040a945
mov edx, dword [esi + 8]
and edx, 0xfffffffd
or edx, 8
mov dword [esi + 8], edx
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
lea ecx, [esi + 0x14]
mov edi, eax
mov eax, dword [ebp - 0x10c]
sar edx, 2
add esp, 4
cmp eax, edx
jbe 0x405721
push eax
call fcn.00404b40
mov eax, dword [ebp - 0x10c]
push ebx
xor ebx, ebx
test eax, eax
je 0x40580b
lea esp, [esp]
lea eax, [ebp - 0x110]
push eax
push edi
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x108]
push eax
push ebx
push ecx
mov dword [ebp - 0x120], 0x104
mov dword [ebp - 0x110], 0x800
mov byte [ebp - 0x108], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne case.0x405789.2
mov eax, dword [ebp - 0x114]
dec eax
cmp eax, 6
ja case.0x405789.2
jmp dword [eax*4 + 0x405840]
push edi
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.004050d0
mov ecx, eax
call fcn.00404a30
jmp case.0x405789.2
push edi
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.004050d0
mov ecx, eax
call fcn.00404980
jmp case.0x405789.2
mov ecx, dword [ebp - 0x110]
push 0
push ecx
push edi
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.004050d0
mov ecx, eax
call fcn.004054f0
jmp case.0x405789.2
mov eax, dword [ebp - 0x110]
push eax
push edi
lea ecx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.004050d0
mov ecx, eax
call fcn.00404bf0
inc ebx
cmp ebx, dword [ebp - 0x10c]
jb 0x405730
cmp dword [ebp - 0x118], 0
mov edx, dword [ebp - 0x11c]
mov dword [esi + 8], edx
pop ebx
je 0x405825
mov ecx, esi
call fcn.00404840
push edi
call fcn.0040a93a
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.005087f8
mov esp, ebp
pop ebp
ret