joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5080e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push 0x55cdd0
lea ecx, [esp + 0xc]
call fcn.004dce86
mov eax, dword [0x55cdc8]
mov ecx, dword [0x55cdd4]
push eax
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.004d3758
add esi, 0x24
mov ecx, esi
call fcn.004dd09c
lea ecx, [esp + 0x10]
call fcn.004de17f
mov edx, dword [esp + 8]
push 0
push 0
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.004de331
test eax, eax
jne 0x4049a3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], al
call fcn.004de274
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004dd111
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebp
push 0x12d
call fcn.004dd75a
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x14]
push 0x12c
push ebp
call fcn.004de44e
test eax, eax
jle 0x404acd
push edi
push ebp
lea ecx, [esp + 0x10]
mov byte [eax + ebp], 0
call fcn.004dd17f
mov eax, dword [0x55cdcc]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x34], 2
call fcn.004d3b06
mov edi, eax
test edi, edi
jl 0x404abe
push edi
push 0x55266c
lea ecx, [esp + 0x14]
call fcn.004d3b14
cmp eax, edi
jle 0x404a41
mov ecx, dword [0x55cdcc]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub eax, ecx
add ecx, edi
sub eax, edi
push eax
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004d392f
push eax
mov ecx, esi
mov byte [esp + 0x34], 3
call fcn.004dd24a
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x14]
jmp 0x404a70
mov eax, dword [0x55cdcc]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
add eax, edi
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.004d390c
push eax
mov ecx, esi
mov byte [esp + 0x34], 4
call fcn.004dd24a
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x14]
call fcn.004dd111
push str.__r_n_t_
mov ecx, esi
call fcn.004d3ee8
push str.__r_n_t_
mov ecx, esi
call fcn.004d3fc9
mov ecx, esi
call fcn.004dd657
push 0x2c
push 0x2b
mov ecx, esi
call fcn.004d371b
push 0x2c
push 0x3b
mov ecx, esi
call fcn.004d371b
push 0x2c
push 0x2d
mov ecx, esi
call fcn.004d371b
push 0x20
mov ecx, esi
call fcn.004d38bb
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004dd111
pop edi
push ebp
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.004de274
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd111
mov ecx, dword [esp + 0x24]
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x405000
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x508188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
add ecx, 0x10
push str.Register
lea eax, [esp + 0xc]
xor esi, esi
push ecx
push eax
mov dword [esp + 0x10], esi
call fcn.004dd3a6
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0x20019
push esi
push edx
push reloc.WSOCK32.dll_accept
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405078
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004dd111
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
push 0x400
call fcn.004dd75a
mov edx, dword [esp + 0xc]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
push str.REGISTERED
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050cb
push 0x552708
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd111
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x405200
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
push 0x405110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40523a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffffffffffffffe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x407780
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4083c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x20000
je 0x4083d3
mov eax, 1
test ch, 4
je 0x4083da
or al, 2
test ecx, 0x200000
je 0x4083e4
or al, 4
test cl, 8
je 0x4083eb
or al, 8
test ecx, 0x80000000
je 0x4083f5
or al, 0x10
test ch, 0x80
je 0x4083fc
or al, 0x20
test ecx, 0x800000
je 0x408406
or al, 0x40
test cl, 2
je 0x40840d
or al, 0x80
test ecx, 0x8000000
je 0x408418
or ah, 1
test ch, 0x40
je 0x408420
or ah, 2
test ecx, 0x2000000
je 0x40842b
or ah, 4
test ecx, 0x40000000
je 0x408436
or ah, 8
test cl, 0x80
je 0x40843e
or ah, 0x10
test ch, 2
je 0x408446
or ah, 0x20
test ch, 0x10
je 0x40844e
or ah, 0x40
test ecx, 0x80000
je 0x408459
or ah, 0x80
test ch, 1
je 0x408463
or eax, 0x10000
test cl, 0x10
je 0x40846d
or eax, 0x20000
test ecx, 0x400000
je 0x40847a
or eax, 0x40000
test ecx, 0x10000
je 0x408487
or eax, 0x80000
test ecx, 0x10000000
je 0x408494
or eax, 0x100000
test cl, 0x20
je 0x40849e
or eax, 0x200000
test ecx, 0x4000000
je 0x4084ab
or eax, 0x400000
test ch, 8
je 0x4084b5
or eax, 0x800000
test cl, 1
je 0x4084bf
or eax, 0x1000000
test ecx, 0x1000000
je 0x4084cc
or eax, 0x2000000
test ecx, 0x100000
je 0x4084d9
or eax, 0x4000000
test ecx, 0x40000
je 0x4084e6
or eax, 0x8000000
test ecx, 0x20000000
je 0x4084f3
or eax, 0x10000000
test cl, 4
je 0x4084fd
or eax, 0x20000000
test cl, 0x40
je 0x408507
or eax, 0x40000000
test ch, 0x20
je 0x408511
or eax, 0x80000000
ret

Function at 0x408520
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test cl, 1
je 0x408530
mov eax, 0x20000
test cl, 2
je 0x408538
or ah, 4
test cl, 4
je 0x408542
or eax, 0x200000
test cl, 8
je 0x408549
or al, 8
test cl, 0x10
je 0x408553
or eax, 0x80000000
test cl, 0x20
je 0x40855b
or ah, 0x80
test cl, 0x40
je 0x408565
or eax, 0x800000
test cl, 0x80
je 0x40856c
or al, 2
test ch, 1
je 0x408576
or eax, 0x8000000
test ch, 2
je 0x40857e
or ah, 0x40
test ch, 4
je 0x408588
or eax, 0x2000000
test ch, 8
je 0x408592
or eax, 0x40000000
test ch, 0x10
je 0x408599
or al, 0x80
test ch, 0x20
je 0x4085a1
or ah, 2
test ch, 0x40
je 0x4085a9
or ah, 0x10
test ch, 0x80
je 0x4085b3
or eax, 0x80000
test ecx, 0x10000
je 0x4085be
or ah, 1
test ecx, 0x20000
je 0x4085c8
or al, 0x10
test ecx, 0x40000
je 0x4085d5
or eax, 0x400000
test ecx, 0x80000
je 0x4085e2
or eax, 0x10000
test ecx, 0x100000
je 0x4085ef
or eax, 0x10000000
test ecx, 0x200000
je 0x4085f9
or al, 0x20
test ecx, 0x400000
je 0x408606
or eax, 0x4000000
test ecx, 0x800000
je 0x408611
or ah, 8
test ecx, 0x1000000
je 0x40861b
or al, 1
test ecx, 0x2000000
je 0x408628
or eax, 0x1000000
test ecx, 0x4000000
je 0x408635
or eax, 0x100000
test ecx, 0x8000000
je 0x408642
or eax, 0x40000
test ecx, 0x10000000
je 0x40864f
or eax, 0x20000000
test ecx, 0x20000000
je 0x408659
or al, 4
test ecx, 0x40000000
je 0x408663
or al, 0x40
test ecx, 0x80000000
je 0x40866e
or ah, 0x20
ret
Function at 0x408db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5085a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.004f7db8
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x408e0d
call fcn.004f7db8
mov ecx, dword [esi + 0x40]
mov ebx, dword [eax + 0xc]
push 5
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x408e1b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x408e36
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004d9160
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.004d9ff6
test edi, edi
mov dword [ebp - 0x1c], 0
je 0x408e6d
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408e6d
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x2c]
call fcn.004dd80b
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.004d9faa
push edi
call fcn.004d9af8
mov edx, dword [ebp - 0x14]
push ebx
push eax
push edx
mov ecx, esi
call fcn.004d8ef8
test eax, eax
je 0x408efe
test byte [esi + 0x24], 0x10
je 0x408ebe
mov ecx, esi
xor ebx, ebx
call fcn.004dcb69
test ah, 1
je 0x408eb6
mov ebx, 1
push ebx
mov ecx, esi
call fcn.004dc43c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408efe
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004dccda
jmp 0x408efe
mov dword [ebp - 4], 0xffffffff
call fcn.004dd849
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408f1a
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x408f30
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x408f30
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov ecx, esi
call fcn.004d919a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b1b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5089f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0040ad80
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call fcn.0040aa20
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x34]
push eax
mov edx, dword [ecx]
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push edx
push eax
mov byte [esp + 0x34], 2
call fcn.0040aa80
mov ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
lea edx, [esp + 8]
mov dword [esp + 0xc], ecx
push edx
mov ecx, esi
call fcn.0040adc0
mov dword [esp + 4], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0040a430
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0040ae30
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40b530
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x508b07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
mov dword [esp + 0x14], esi
call fcn.0040ad80
lea ebp, [esi + 8]
push 0
mov ecx, ebp
mov dword [esp + 0x30], 0
call fcn.0040ad80
lea edi, [esi + 0x10]
push 0
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.0040ad80
lea ebx, [esi + 0x18]
push 0
mov ecx, ebx
mov byte [esp + 0x30], 2
call fcn.0040ad80
push 0
lea ecx, [esi + 0x20]
mov byte [esp + 0x30], 3
call fcn.0040ad80
push 0
lea ecx, [esi + 0x28]
mov byte [esp + 0x30], 4
call fcn.0040ad80
mov eax, dword [esp + 0x34]
mov ecx, edi
push eax
mov byte [esp + 0x30], 5
call fcn.0040ade0
push 1
lea ecx, [esp + 0x18]
mov dword [esi + 0x30], 0
call fcn.0040ad80
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
push ecx
mov ecx, esi
call fcn.0040ade0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call fcn.0040ae30
mov edx, dword [esp + 0x34]
sub esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0040adc0
mov ecx, esi
call fcn.0040aca0
test eax, eax
jge 0x40b61a
push esi
mov ecx, esi
call fcn.0040ae60
inc dword [esi + 0x30]
jmp 0x40b5ef
push edi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0040afd0
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x44], 7
call fcn.0040b260
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x30], 8
call fcn.0040ade0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call fcn.0040ae30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call fcn.0040ae30
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0040b260
push eax
lea eax, [esp + 0x2c]
push esi
push eax
mov byte [esp + 0x44], 9
call fcn.0040afd0
add esp, 0x18
push eax
mov ecx, ebx
mov byte [esp + 0x30], 0xa
call fcn.0040ade0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 9
call fcn.0040ae30
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 5
call fcn.0040ae30
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4

Function at 0x40b8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x508bb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x54]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0040b530
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push ecx
push edx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 1
call fcn.0040b780
mov dword [esp + 4], 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 6
call fcn.0040ae30
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 5
call fcn.0040ae30
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call fcn.0040ae30
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 3
call fcn.0040ae30
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.0040ae30
lea ecx, [esp + 8]
mov byte [esp + 0x44], 0
call fcn.0040ae30
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x40f300
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x509098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
push 0xff
and eax, 0xff
push 0
push eax
call fcn.0040f140
xor ecx, ecx
push 0xff
mov cl, bh
push 0
and ecx, 0xff
mov byte [esp + 0x26], al
push ecx
call fcn.0040f140
mov edx, ebx
push 0xff
shr edx, 0x10
and edx, 0xff
push 0
push edx
mov byte [esp + 0x35], al
call fcn.0040f140
add esp, 0x24
mov byte [esp + 0x10], al
mov eax, dword [edi + 0x1c]
mov byte [esp + 0x13], 0
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004e04d8
push ebx
push 1
mov esi, eax
push 1
push 0
push 0
mov ecx, esi
call fcn.004ef6e9
lea ecx, [esp + 0x18]
call fcn.004e0436
test esi, esi
mov dword [esp + 0x30], 0
jne 0x40f3b8
xor eax, eax
jmp 0x40f3bb
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.004e04ed
lea eax, [edi + 0x94]
test eax, eax
mov dword [esp + 0x14], eax
je 0x40f3dd
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.004e062e
test esi, esi
mov ebp, eax
jne 0x40f3f2
xor eax, eax
jmp 0x40f3f5
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push 0
push 0
push eax
push 1
push 1
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
mov ebx, eax
jne 0x40f41c
xor eax, eax
jmp 0x40f41f
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004e062e
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x40f465
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
cmp eax, 0xffffffff
je 0x40f465
mov esi, dword [esp + 0x14]
push 0
push 0
mov ecx, esi
call fcn.0048d3d0
mov ecx, dword [eax]
push ecx
mov ecx, esi
jmp 0x40f46e
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
call fcn.0048d6b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004e056b
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x40f4e0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40f52a
mov esi, dword [esp + 0xc]
push 8
push esi
call fcn.0040f5b0
add esp, 8
cmp edi, 8
jle 0x40f52a
add esi, 8
dec edi
shr edi, 3
xor eax, eax
mov cl, byte [esi + eax - 8]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 8
jl 0x40f507
push 8
push esi
call fcn.0040f5b0
add esp, 8
add esi, 8
dec edi
jne 0x40f505
pop edi
pop esi
ret
Function at 0x40f530
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 4], bl
mov byte [esp + 5], bl
mov byte [esp + 6], bl
mov byte [esp + 7], bl
mov byte [esp + 8], bl
mov byte [esp + 9], bl
mov byte [esp + 0xa], bl
mov byte [esp + 0xb], bl
je 0x40f5aa
jle 0x40f5aa
push esi
mov esi, dword [esp + 0x1c]
push edi
lea edi, [eax + 7]
shr edi, 3
mov eax, esi
push 8
push esi
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
call fcn.0040f5e0
add esp, 8
xor eax, eax
mov cl, byte [esp + eax + 0xc]
mov dl, byte [esi + eax]
xor dl, cl
mov byte [esi + eax], dl
mov dl, byte [esp + eax + 0x14]
mov byte [esp + eax + 0xc], dl
inc eax
cmp eax, 8
jl 0x40f588
add esi, 8
dec edi
jne 0x40f56c
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40ff70
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, 0x12
mov esi, 0x552bdc
mov edi, 0x55de4c
mov ebp, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x400
mov esi, 0x552c24
mov edi, 0x55ce4c
xor edx, edx
rep movsd dword es:[edi], dword [esi]
movsx edi, word [esp + 0x18]
mov ecx, 0x55de4c
mov dword [esp + 0x18], 0x12
movsx esi, dx
xor ebx, ebx
add ecx, 4
lea eax, [esi + 1]
cdq
idiv edi
lea eax, [esi + 2]
mov bl, byte [edx + ebp]
cdq
idiv edi
mov bh, byte [esi + ebp]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ebp]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv edi
xor eax, eax
shl ebx, 8
mov al, byte [edx + ebp]
or ebx, eax
mov eax, dword [ecx - 4]
xor eax, ebx
mov dword [ecx - 4], eax
lea eax, [esi + 4]
cdq
idiv edi
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40ffae
xor eax, eax
mov esi, 0x55de50
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov edi, 9
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0040f610
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esp, 8
add esi, 8
dec edi
jne 0x41000f
mov esi, 0x55ce50
mov ebx, 4
mov edi, 0x80
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040f610
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esi - 4], ecx
mov dword [esi], edx
add esp, 8
add esi, 8
dec edi
jne 0x410043
dec ebx
jne 0x41003e
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
Function at 0x412080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x509443
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMenu.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.004d6f4f
mov dword [ebx], method.CPtrArray.virtual_0
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.004d6f4f
or eax, 0xffffffff
mov dword [ebx], method.CPtrArray.virtual_0
push 4
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 0x40], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x44], 0x10
mov dword [esi + 0x48], 0xf
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x55dec0
push edi
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x423070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50b5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x3c]
push ebx
push esi
push edi
mov edi, ecx
push 0x1001
push eax
lea ecx, [esp + 0x30]
call fcn.004de1d4
mov ecx, dword [edi + 0xfc]
xor esi, esi
push esi
push esi
push 0x1004
push ecx
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x5580a0]
mov ebx, eax
mov dword [esp + 0x48], edx
lea eax, [esp + 0x14]
push 0xe8ef
push eax
mov byte [esp + 0x48], 1
call fcn.0042e080
add esp, 8
push eax
lea ecx, [esp + 0x14]
push str._html__body__r_n_title_
push ecx
mov byte [esp + 0x4c], 2
call fcn.004dd41a
push str.___title__r_n
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x4c], 3
call fcn.004dd3a6
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 4
call fcn.004dd24a
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 3
call fcn.004dd111
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004dd111
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.004dd111
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004de488
cmp ebx, esi
jle 0x42325f
add edi, 0xe0
push ebp
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x18]
push esi
call fcn.004d59d9
mov edi, eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.004232c0
mov ebp, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 5
push ecx
mov ecx, edi
call fcn.004232c0
push eax
lea edx, [esp + 0x24]
push str._a_href_
push edx
mov byte [esp + 0x50], 6
call fcn.004dd41a
push 0x5540bc
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x4c], 7
push eax
call fcn.004dd3a6
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x50], 8
call fcn.004dd340
push str.___a__br__r_n
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x50], 9
call fcn.004dd3a6
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0xa
call fcn.004dd24a
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 9
call fcn.004dd111
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 8
call fcn.004dd111
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call fcn.004dd111
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 6
call fcn.004dd111
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 5
call fcn.004dd111
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.004dd111
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004de488
inc esi
cmp esi, ebx
jl 0x423165
pop ebp
push str.__body___html_
lea ecx, [esp + 0x4c]
call fcn.004dd29a
mov eax, dword [esp + 0x48]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004de488
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004dd111
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
call fcn.004de274
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4