joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cd02
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47cd3a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047adb9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047ad91
jmp 0x47cd46
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47e3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47e432
call fcn.004842fd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47e432
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47e429
xor eax, eax
jmp 0x47e43a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047e440
pop edi
pop esi
pop ebx
ret 4

Function at 0x48482d
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 0x48485b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x484879
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00484793
jmp 0x484879
mov eax, dword [esi + 0x14]
test eax, eax
je 0x484879
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00484793
test edi, edi
mov eax, edi
jne 0x484863
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401270
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
je 0x401349
cmp dword [esp + 0x18], esi
je 0x401349
mov ebp, dword [esp + 0x1c]
cmp ebp, esi
je 0x401349
push ebx
mov ebx, edi
nop
push 0
push ebx
call fcn.00402fdc
add esi, eax
add ebx, eax
cmp esi, 5
jb 0x4012a0
lea ebx, [esi + 5]
push ebx
call fcn.0040e1a9
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x4012ca
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
push ebx
push 0x90
push edx
call fcn.0040e5f0
mov eax, dword [ebp]
push esi
push edi
push eax
call fcn.0040e280
mov ecx, dword [ebp]
add ecx, esi
push ecx
lea edx, [edi + 5]
push edx
call fcn.00401230
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x20
lea eax, [esp + 0x10]
push eax
push 0x40
push ebx
push edi
call ebp
push esi
push 0x90
push edi
call fcn.0040e5f0
mov ecx, dword [esp + 0x28]
push edi
push ecx
call fcn.00401230
mov eax, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push edi
call ebp
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x402a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 1
push edi
mov edi, ecx
jl 0x402b4b
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.0040eb70
add esp, 0xc
cmp ebp, 1
jne 0x402aaa
movzx ecx, byte [esi]
movzx edx, byte [edi + 0x20020]
add ecx, 0x100
shl ecx, 8
add ecx, edi
mov al, byte [edx + ecx]
mov byte [esi], al
pop esi
pop edi
pop ebp
ret 0xc
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x402ae0
push ebx
jmp 0x402ac0
movzx edx, byte [eax + esi]
movzx ebx, byte [eax + esi + 1]
add edx, 0x100
shl edx, 8
add edx, edi
mov dl, byte [ebx + edx]
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x402ac0
pop ebx
movzx eax, byte [edi + 0x20020]
movzx edx, byte [esi + ebp - 1]
xor eax, 0x55
add edx, 0x100
add eax, edi
shl edx, 8
mov al, byte [edx + eax]
mov byte [esi + ebp - 1], al
mov eax, ecx
cmp eax, 1
jl 0x402b30
jmp 0x402b10
movzx edx, byte [eax + esi]
movzx ecx, byte [eax + esi - 1]
add edx, 0x100
shl edx, 8
add ecx, edi
mov cl, byte [edx + ecx]
mov byte [eax + esi], cl
dec eax
cmp eax, 1
jge 0x402b10
movzx edx, byte [esi]
movzx eax, byte [edi + 0x20020]
add edx, 0x100
shl edx, 8
add edx, edi
mov cl, byte [eax + edx]
mov byte [esi], cl
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x405280
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
xor ebp, ebp
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40530c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4052d4
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x4052f8
mov ecx, dword [esi - 4]
push eax
push 0
push 4
push 0x1000
push eax
add ecx, edi
push ecx
call ebx
push eax
call fcn.0040e5f0
jmp 0x4052f5
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, edi
push edx
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040e280
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
inc ebp
add esi, 0x28
cmp ebp, edx
jl 0x4052a8
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x405310
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [eax]
movzx edx, word [ebx + 0x14]
mov dword [esp + 4], ecx
push ebp
xor ecx, ecx
xor ebp, ebp
lea eax, [edx + ebx + 0x18]
cmp cx, word [ebx + 6]
jae 0x4053d7
push esi
push edi
lea edi, [eax + 0x24]
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x405373
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4053bf
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + section..data]
test eax, 0x4000000
je 0x40538d
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4053a8
test al, 0x40
je 0x40539f
mov ecx, dword [ebx + 0x20]
jmp 0x4053a6
test al, al
jns 0x4053bf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4053bf
mov ecx, dword [edi - 0x18]
add ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x405340
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4055f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x405604
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [ebp + 0x3c]
add edi, ebp
cmp dword [edi], 0x4550
je 0x405617
pop edi
xor eax, eax
pop ebp
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push ecx
push edx
call esi
mov ebx, eax
test ebx, ebx
jne 0x40564e
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x4056f5
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x50]
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [edi + 0x54]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.0040e280
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push esi
add eax, edx
push edi
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], ebx
call fcn.00405280
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x4056d0
push eax
mov eax, esi
call fcn.004053e0
add esp, 4
push esi
call fcn.00405460
add esp, 4
push esi
test eax, eax
jne 0x4056fc
call fcn.00405580
push str.error_occured
call fcn.0040f424
add esp, 8
call fcn.0040f41f
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret
call fcn.00405310
mov ecx, dword [esi]
add esp, 4
cmp dword [ecx + 0x28], 0
je 0x405713
mov dword [esi + 0x10], 1
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x4160eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4227b8]
jne 0x4160f5
repz ret
jmp fcn.004191fa

Function at 0x4164e8
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.004146eb
and dword [ebp - 4], 0
cmp dword [0x423e2c], 0
mov ebx, eax
jne 0x416599
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41664a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41664a
push eax
call fcn.00414679
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e2c], eax
call esi
push eax
call fcn.00414679
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e30], eax
call esi
push eax
call fcn.00414679
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e34], eax
call esi
push eax
call fcn.00414679
pop ecx
mov dword [0x423e3c], eax
test eax, eax
je 0x416599
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414679
pop ecx
mov dword [0x423e38], eax
mov eax, dword [0x423e38]
cmp eax, ebx
je 0x4165f1
cmp dword [0x423e3c], ebx
je 0x4165f1
push eax
call fcn.004146f4
push dword [0x423e3c]
mov esi, eax
call fcn.004146f4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4165f1
test edi, edi
je 0x4165f1
call esi
test eax, eax
je 0x4165e8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4165e8
test byte [ebp - 0xc], 1
jne 0x4165f1
or dword [ebp + 0x10], 0x200000
jmp 0x41662a
mov eax, dword [0x423e30]
cmp eax, ebx
je 0x41662a
push eax
call fcn.004146f4
pop ecx
test eax, eax
je 0x41662a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41662a
mov eax, dword [0x423e34]
cmp eax, ebx
je 0x41662a
push eax
call fcn.004146f4
pop ecx
test eax, eax
je 0x41662a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e2c]
call fcn.004146f4
pop ecx
test eax, eax
je 0x41664a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41664c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401147
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401178
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401174
cmp esi, eax
jae 0x401178
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401164
cmp esi, eax
jb 0x40117e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401290
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4012cf
cmp eax, 2
jne 0x4012ea
test esi, esi
mov eax, dword [esp]
je 0x4012f8
test eax, eax
je 0x4012f3
test al, 1
jne 0x4012ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4012f8
mov eax, 0xd
pop ecx
ret 8
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x401e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c378
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
mov eax, dword [0x439134]
mov edx, dword [eax + 0xc]
mov ecx, 0x439134
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [esp + 0x30], 0
call fcn.00402320
mov edx, 0x42ea54
mov ecx, eax
call fcn.00402470
test eax, eax
je 0x401ea8
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0040c310
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401ea3
mov dword [ecx], eax
jmp 0x401ea5
mov dword [esi], eax
mov dword [esi + 4], eax
push 0x42ea54
push ebp
call fcn.00402320
lea ecx, [esp + 0x20]
mov edx, eax
call fcn.00402550
test eax, eax
je 0x401ee2
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040c310
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401edd
mov dword [ecx], eax
jmp 0x401edf
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.00402320
cmp dword [eax + 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
je 0x401f3c
call fcn.00402320
mov edi, dword [eax + 4]
movzx edx, bp
push 0x42ea54
push edx
push edi
call ebx
test eax, eax
je 0x401f3c
push edi
lea ecx, [esp + 0x1c]
call fcn.004023e0
add esp, 4
test eax, eax
je 0x401f3c
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040c310
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401f37
mov dword [ecx], eax
jmp 0x401f39
mov dword [esi], eax
mov dword [esi + 4], eax
movzx edx, bp
push 0x42ea54
push edx
push 0x400000
call ebx
test eax, eax
je 0x401f85
push 0x400000
lea ecx, [esp + 0x1c]
call fcn.004023e0
add esp, 4
test eax, eax
je 0x401f85
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040c310
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401f80
mov dword [ecx], eax
jmp 0x401f82
mov dword [esi], eax
mov dword [esi + 4], eax
xor edx, edx
cmp dword [esi + 8], edx
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4023e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
push ebx
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x402401
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4023fa
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4023fa
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
jge 0x40243c
mov eax, esi
call fcn.0040a460
mov ecx, dword [esi]
push edi
push ebp
push ecx
call fcn.0042b200
add esp, 0xc
mov eax, edi
call fcn.00409850
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x402550
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42bec8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
mov dword [esp + 0x18], ebx
je 0x402697
mov edx, dword [0x439134]
mov eax, dword [edx + 0xc]
mov ecx, 0x439134
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [edi]
push ecx
push edx
push eax
push 0x42e884
lea edi, [esp + 0x24]
call fcn.0040b970
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40266f
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x402668
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x30], ebx
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x40261d
mov eax, esi
call fcn.0040a460
mov eax, dword [esi]
push ebx
lea edx, [esp + 0x34]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40265a
cmp dword [esp + 0x30], edi
jne 0x40265a
mov eax, edi
call fcn.00409850
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00409940
mov eax, 1
jmp 0x40269b
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jl 0x4026b1
mov dword [eax - 0xc], ebx
mov eax, dword [esi]
mov byte [eax], bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x80070057
call fcn.00401050
int3
Function at 0x4082a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42be68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x438020]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push 1
push 0
push 0x42ec64
mov dword [esp + 0x30], 0
push 0x80000002
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40838c
mov eax, dword [ebx]
mov ecx, dword [esp + 0xc]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x10e
or edx, eax
mov dword [esp + 0x10], ecx
jge 0x40832b
mov ecx, 0x10e
mov eax, ebx
call fcn.0040a310
mov esi, dword [ebx]
push 0x42ec9c
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x1c]
call fcn.00401290
mov esi, dword [ebx]
test esi, esi
jne 0x40834a
xor ecx, ecx
jmp 0x408365
mov ecx, esi
lea edi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x408350
sub ecx, edi
sar ecx, 1
js 0x408418
cmp ecx, dword [esi - 8]
jg 0x408418
test eax, eax
mov dword [esi - 0xc], ecx
mov edx, dword [ebx]
mov word [edx + ecx*2], 0
je 0x4083a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40838c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
test ecx, ecx
jl 0x408418
cmp ecx, edi
jg 0x408418
cmp word [eax + ecx*2], 0x5c
je 0x4083f2
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea esi, [edi + 1]
sub edx, esi
or ecx, edx
jge 0x4083d4
mov ecx, esi
mov eax, ebx
call fcn.0040a310
test esi, esi
mov eax, dword [ebx]
mov word [eax + edi*2], 0x5c
jl 0x408418
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x408418
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
mov word [ecx + esi*2], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408401
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push 0x80070057
call fcn.00401050
int3

Function at 0x4088e0
Capabilities:
Create thread

Disassembly:
push edi
push 0x42ee5c
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x408933
push 0x42ee70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408933
push esi
push 0
push 0
push eax
push 0x408820
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x408932
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
ret
Function at 0x408e80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x42ec64
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408f1e
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0x42efd4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408f1e
cmp dword [esp + 0xc], 1
jne 0x408f1e
cmp dword [esp + 0x10], 6
jb 0x408f1e
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ef0
sub eax, edx
sar eax, 1
movzx eax, word [edi + eax*2 - 2]
cmp ax, 0x5c
je 0x408f19
cmp ax, 0x2f
je 0x408f19
lea eax, [esp + 0x18]
call fcn.00401000
mov esi, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x408f2d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x4092b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x42ecb0
push 0x80000002
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40930b
mov esi, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x42f194
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
mov edi, dword [esp + 0xc]
je 0x40931a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret

Function at 0x409330
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x42ecb0
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409398
push edi
mov edi, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push 0x42f194
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
test edi, edi
je 0x409390
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
mov eax, esi
pop esi
add esp, 8
ret