joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00427455
mov ecx, dword [esp + 8]
mov eax, dword [eax + 8]
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x409d0f
pop esi
ret
call fcn.00427455
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00409970
add esp, 0xc
pop esi
ret

Function at 0x40e240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4295b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x433748]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x30]
lea edx, [edi + 0x1a4]
push ecx
lea eax, [esp + 0x34]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x30], ebx
call fcn.0041f845
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0041f6e9
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call fcn.0041f5fc
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0xc]
mov eax, dword [edi + 0x1a0]
push ebx
push ecx
push esi
push str.Bitmap
push edx
push eax
call fcn.0040a310
add esp, 0x18
test eax, eax
jne 0x40e2ed
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f5fc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esp + 0xc]
push ebp
push eax
lea eax, [esi + 0x14]
push eax
push 0x433570
push ecx
call fcn.004090e0
mov eax, dword [edi + 0x1a0]
mov edx, dword [esp + 0x20]
lea ebp, [esi + 0xc]
push eax
push ebp
push str.Size
push edx
call fcn.00409120
mov eax, dword [edi + 0x1a0]
push eax
mov eax, dword [esp + 0x34]
push ebx
push str.Rectangles
push eax
call fcn.00408fb0
add esp, 0x30
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40e39a
shl eax, 4
push eax
call fcn.0041fac7
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add esp, 4
xor ebp, ebp
cmp eax, ebx
jle 0x40e3c8
push ebp
lea ecx, [esp + 0x18]
push 0x433708
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esi + 8]
mov edx, ebx
push eax
add edx, ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00409200
mov eax, dword [esi + 4]
add esp, 0x1c
inc ebp
add ebx, 0x10
cmp ebp, eax
jl 0x40e35b
jmp 0x40e3c8
push 0x10
mov dword [esi + 4], 1
call fcn.0041fac7
mov dword [esi + 8], eax
mov dword [eax + 4], ebx
mov edx, dword [esi + 8]
add esp, 4
mov dword [edx], ebx
mov eax, dword [esi + 8]
mov ecx, dword [ebp]
mov dword [eax + 8], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx + 0xc], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f5fc
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x41633d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434330
cmp edx, dword [eax]
je 0x41635f
add eax, 8
inc ecx
cmp eax, 0x4343c0
jl 0x416350
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434330]
jne 0x41648d
mov eax, dword [0x4383f0]
cmp eax, 1
je 0x416467
test eax, eax
jne 0x416390
cmp dword [0x433e34], 1
je 0x416467
cmp edx, 0xfc
je 0x41648d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4163c7
lea eax, [ebp - 0x1a4]
push 0x42d6e8
push eax
call fcn.00414b40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412c10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41640a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412c10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d6e4
push edi
call fcn.00418260
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x42d6c8
push eax
call fcn.00414b40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414b50
lea eax, [ebp - 0xa0]
push 0x42d6c4
push eax
call fcn.00414b50
push dword [esi + 0x434334]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414b50
push 0x12010
lea eax, [ebp - 0xa0]
push 0x42d69c
push eax
call fcn.004181cb
add esp, 0x2c
pop edi
jmp 0x41648d
lea eax, [ebp + 8]
lea esi, [esi + 0x434334]
push 0
push eax
push dword [esi]
call fcn.00412c10
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 0x41d470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00411bf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41d53b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41d53b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41d4ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41d4f9
or bh, 8
and edi, 0x8000000
je 0x41d514
mov eax, dword [0x439b9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41d53b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d93b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d95f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d97a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x421c88
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421cc0
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.0041fa57
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041fa2f
jmp 0x421ccc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x423257
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 0x423299
call fcn.00427455
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423299
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423290
xor eax, eax
jmp 0x4232a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004232a7
pop edi
pop esi
pop ebx
ret 4

Function at 0x428076
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 0x4280a4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4280c2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00427fdc
jmp 0x4280c2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4280c2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00427fdc
test edi, edi
mov eax, edi
jne 0x4280ac
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x221313e4
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd5519c7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x21d62326
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4679665c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4010ea
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401234
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x40c150]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, 0x20019
push edi
push 0x408314
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x50], esi
call fcn.0040109b
mov ebx, eax
cmp ebx, esi
je 0x4012c0
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
jmp 0x4013e2
push edi
push 0x408320
push dword [ebp - 0x74]
lea ecx, [ebp - 0x80]
call fcn.0040109b
mov ebx, eax
cmp ebx, esi
jne 0x401299
push edi
push 0x40832c
push dword [ebp - 0x80]
lea ecx, [ebp - 0x5c]
call fcn.0040109b
mov edi, eax
cmp edi, esi
jne 0x4013c0
mov ebx, 0x800
push ebx
lea eax, [ebp - 0x4c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
cmp edi, esi
jne 0x4013c0
inc dword [ebp - 0x50]
push 7
xor eax, eax
mov edi, 0x40833c
lea esi, [ebp - 0x4c]
pop ecx
repe cmpsb byte [esi], byte es:[edi]
lea eax, [ebp - 0x4c]
je 0x40135a
push ebx
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
je 0x40131e
jmp 0x4013c0
push 0x2001f
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
call fcn.0040109b
mov esi, eax
test esi, esi
je 0x401395
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, esi
jmp 0x4013e2
mov eax, dword [ebp + 0x7c0]
push 4
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 4
push 0
push 0x408344
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x68]
mov edi, eax
call fcn.00401080
lea ecx, [ebp - 0x68]
call fcn.00401080
lea ecx, [ebp - 0x5c]
call fcn.00401080
lea ecx, [ebp - 0x80]
call fcn.00401080
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, edi
mov ecx, dword [ebp + 0x7b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ab9
add ebp, 0x7b8
leave
ret
Function at 0x401cf3
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x401d04
push 0xd
pop eax
jmp 0x401d2e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x401d07
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4022d1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x40c150]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040109b
mov ebx, eax
cmp ebx, esi
je 0x402344
lea ecx, [ebp - 0x74]
call fcn.00401080
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ab9
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40235c
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.004022d1
cmp eax, esi
jne 0x40238e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x40234c
lea ecx, [ebp - 0x74]
call fcn.00401080
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401be8
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00401080
mov eax, esi
jmp 0x40232a
Function at 0x404005
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x40401e
push 0x80004005
call fcn.004019c9
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40406d
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x40406b
cmp dword [ebp + 0x10], ebx
jbe 0x404068
cmp dword [ebp + 0x10], 2
jbe 0x404074
cmp dword [ebp + 0x10], 7
jne 0x404068
cmp ecx, 1
jb 0x404068
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x404068
cmp ecx, 1
jbe 0x40406d
cmp byte [edx - 2], bl
je 0x40406d
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x404066

Function at 0x404d43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404d9d
cmp dword [ebp + 0x10], 1
je 0x404d82
cmp dword [ebp + 0x10], 2
je 0x404d82
push 0xd
pop eax
jmp 0x404d9d
mov eax, dword [ebp - 4]
test edi, edi
je 0x404d99
test eax, eax
je 0x404d96
cmp byte [eax + edi - 1], 0
je 0x404d99
jmp 0x404d7d
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x404da3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40c150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x40c248], 0
je 0x404dc4
xor eax, eax
inc eax
jmp 0x404e23
push esi
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
pop esi
ja 0x404e21
test eax, eax
je 0x404e21
lea eax, [ebp - 0x20c]
push eax
push 0
push str.REGFX
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x404e21
push 0x408c8c
lea eax, [ebp - 0x20c]
push eax
push 0x40c248
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jmp 0x404e23
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ab9
leave
ret
Function at 0x405122
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov edi, str.false
cmp dword [ebp + 8], esi
jne 0x40513c
mov edi, str.true
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push 0x408d78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405189
cmp dword [ebp + 8], esi
je 0x405180
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 1
push esi
push str.Disabled
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x40531b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x40c150]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b0]
push esi
push 0x20019
xor esi, esi
push str.SOFTWAREJavaSoftJava_Plug_in
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x64], 0x800
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
call fcn.0040109b
test eax, eax
je 0x405390
lea ecx, [ebp - 0x74]
call fcn.00401080
mov ecx, dword [ebp + 0x7a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406ab9
add ebp, 0x7a8
leave
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x60], esi
push esi
jmp 0x4053d2
lea eax, [ebp - 0x5c]
push eax
call fcn.00404e2f
inc dword [ebp - 0x60]
pop ecx
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0x800
push dword [ebp - 0x74]
call edi
cmp eax, esi
je 0x4053ac
pop edi
cmp eax, 0x103
jne 0x4053ea
mov dword [ebp - 0x68], 1
lea ecx, [ebp - 0x74]
call fcn.00401080
lea eax, [ebp - 0x5c]
push eax
push 0x40a108
push dword [ebp + 0x7b4]
push dword [ebp - 0x78]
call dword [sym.imp.MSVCR100.dll_sprintf_s]
mov esi, dword [ebp - 0x68]
add esp, 0x10
jmp 0x405370