joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b370
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
mov edx, dword [eax + 0x45c0d8]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x40b37b
xor eax, eax
mov ecx, pe_nt_image_headers32
mov edx, dword [edi + 4]
mov esi, dword [eax + 0x45c120]
mov dword [eax + edx], esi
add eax, 4
dec ecx
jne 0x40b395
cmp eax, 0x1000
jl 0x40b390
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [edi]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
cdq
idiv ebp
lea eax, [esi + 2]
mov bl, byte [edx + ecx]
cdq
idiv ebp
mov bh, byte [esi + ecx]
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + ecx]
or ebx, eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
xor edx, ebx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebp
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x48
mov dword [esp + 0x18], eax
mov esi, edx
jl 0x40b3be
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.0040ab70
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x40b420
mov esi, 4
mov ebx, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.0040ab70
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec ebx
jne 0x40b456
cmp esi, 0x1004
jl 0x40b451
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40d020
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x447208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov eax, dword [0x45e450]
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov bl, 2
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], bl
call fcn.0042e422
mov al, byte [esp + 0x2c]
test al, al
je 0x40d0a0
push 0x5c
lea ecx, [esp + 0x2c]
call fcn.0042beb6
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0042be3e
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.0042e422
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042e2e9
mov ecx, dword [esp + 4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d0ec
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0042e2e9
lea ecx, [esp + 4]
mov byte [esp + 0x20], 0
call fcn.0042e2e9
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042e2e9
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
cmp byte [eax + ecx - 1], 0x5c
je 0x40d120
lea edx, [esp + 4]
push 0x5c
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0042bb2a
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 4
call fcn.0042e422
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0042e2e9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push edi
mov edi, dword [esp + 0x38]
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0042e7b0
mov esi, eax
cmp esi, 0xffffffff
je 0x40d212
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0042be3e
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x38], 5
call fcn.0042e518
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 6
call fcn.0042e422
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call fcn.0042e2e9
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0042e2e9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call fcn.0042bdc2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 7
call fcn.0042e422
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0042e2e9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 1
jl 0x40d1e0
cmp byte [eax + ecx - 1], 0x3a
je 0x40d1e0
push 0
push ecx
call ebp
mov edi, eax
lea eax, [esp + 0x14]
push 0x5c
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0042bb2a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 8
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042e2e9
jmp 0x40d12d
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.0042e2e9
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0042e2e9
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x40d3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp + 0x18], 0
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d451
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0x24]
call fcn.0042e2e9
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x40d490
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4472a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x220], 1
mov eax, dword [0x45e450]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x22c]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov byte [esp + 0x220], 3
push ecx
push 0xf003f
push eax
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x200
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
jne 0x40d55c
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x230]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d548
lea edx, [esp + 0x14]
lea ecx, [esp]
push edx
call fcn.0042e472
jmp 0x40d551
lea ecx, [esp]
call fcn.0042e274
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x228]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0042e05e
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x220], 2
call fcn.0042e2e9
lea ecx, [esp + 0x22c]
mov byte [esp + 0x220], 1
call fcn.0042e2e9
lea ecx, [esp + 0x230]
mov byte [esp + 0x220], 0
call fcn.0042e2e9
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc
Function at 0x40d5d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4472b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d641
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042e2e9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x40d670
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4472e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d6e3
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
push ecx
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x24]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042e2e9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.0042e2e9
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc

Function at 0x40d720
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4472f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 4]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d77c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
cmp eax, ebx
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.0042e2e9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40d7b0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x447350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push edi
mov eax, dword [0x45e450]
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov bl, 2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], bl
mov edi, 1
call fcn.0042e422
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d845
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0042e2e9
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0042e2e9
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042e2e9
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov al, byte [eax + ecx - 1]
cmp al, 0x5c
je 0x40d87a
lea ecx, [esp + 8]
push 0x5c
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0042bb2a
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.0042e422
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.0042e2e9
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0042e7b0
mov esi, eax
cmp esi, 0xffffffff
je 0x40d971
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0042be3e
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x3c], 4
call fcn.0042e518
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0042e422
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.0042e2e9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0042e2e9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0042bdc2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 6
call fcn.0042e422
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], bl
call fcn.0042e2e9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 1
jl 0x40d935
cmp byte [eax + ecx - 1], 0x3a
je 0x40d935
push 0
push ecx
call ebp
mov edi, eax
test edi, edi
jne 0x40d93f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
push 0x5c
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0042bb2a
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 7
call fcn.0042e422
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], bl
call fcn.0042e2e9
jmp 0x40d882
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.0042e2e9
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call fcn.0042e2e9
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 0x28]
pop esi
mov eax, edi
pop ebp
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x40d9d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
xor eax, 0xcbf28b
xor esi, esi
push eax
call fcn.0041c0d6
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jle 0x40da21
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, eax
call fcn.0041c0e3
xor esi, esi
test ebx, ebx
jle 0x40da17
call fcn.0041c0e3
mov cl, byte [esi + edi]
xor cl, al
mov byte [esi + edi], cl
inc esi
cmp esi, ebx
jl 0x40da05
dec ebp
jne 0x40d9fa
pop edi
pop ebp
pop ebx
pop esi
ret 0x10
mov eax, esi
pop esi
ret 0x10

Function at 0x40da30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
xor eax, 0x12d4cb
push edi
push eax
call fcn.0041c0d6
add esp, 4
call fcn.0041c0e3
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
jle 0x40da6b
push ebx
mov ebx, dword [esp + 0x10]
call fcn.0041c0e3
mov cl, byte [esi + ebx]
xor cl, al
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jl 0x40da58
pop ebx
xor ecx, ecx
mov edx, eax
test edi, edi
jle 0x40da7a
xor eax, ecx
inc ecx
cmp ecx, edi
jl 0x40da73
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x40da90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
xor eax, 0x82ae
push esi
mov ebp, ecx
push eax
call fcn.0041c0d6
add esp, 4
call fcn.0041c0e3
mov ecx, dword [esp + 0x10]
xor esi, esi
test ecx, ecx
jle 0x40dae0
push ebx
push edi
mov edi, dword [esp + 0x14]
call fcn.0041c0e3
mov ebx, eax
mov al, byte [esi + edi]
xor al, bl
push 9
mov ecx, ebp
mov byte [esi + edi], al
call fcn.0040d9c0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40dabb
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40daf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor esi, 0x3fa519e
push edi
mov edi, ecx
push esi
call fcn.0041c0d6
add esp, 4
call fcn.0041c0e3
push esi
mov ecx, edi
mov ebx, eax
call fcn.0040d9c0
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x40db3e
test ebx, ebx
ja 0x40db3e
mov eax, dword [esp + 0x18]
push esi
push eax
push ebp
mov ecx, edi
call fcn.0040da90
push esi
mov ecx, edi
call fcn.0040d9c0
test eax, eax
jne 0x40db20
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x40db70
call fcn.0041c0e3
mov ecx, dword [esp + 0x1c]
mov ebx, eax
push ecx
mov ecx, edi
call fcn.0040d9c0
mov dl, byte [esi + ebp]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
xor dl, bl
mov byte [esi + ebp], dl
inc esi
cmp esi, eax
jl 0x40db48
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret 0xc

Function at 0x40db80
Capabilities:
Create thread

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push 4
push ecx
push edx
push 0
push 0
call fcn.0041c304
add esp, 0x18
mov dword [esi], eax
mov eax, esi
pop esi
ret 8

Function at 0x40dbc0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40dd00
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4473c8
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
xor ebp, ebp
push ebp
mov dword [esp + 0x30], ebp
call fcn.0041c105
push eax
call fcn.0041c0d6
add esp, 8
call fcn.0041c0e3
mov ebx, eax
call fcn.0041c0e3
mov edi, eax
mov eax, dword [0x45e450]
imul edi, ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
push 8
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.0040e040
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.0042e422
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.0042e2e9
mov eax, dword [0x45e450]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
push 8
mov byte [esp + 0x30], 3
mov eax, dword [ecx - 8]
mov ecx, dword [esp + 0x40]
cdq
and edx, 7
add eax, edx
lea edx, [esp + 0x1c]
mov ebx, eax
mov eax, edi
xor eax, ecx
mov ecx, esi
push eax
push edx
sar ebx, 3
call fcn.0040e170
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.0042e422
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call fcn.0042e2e9
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
call fcn.0042e422
test ebx, ebx
jle 0x40de7e
push 8
lea ecx, [esp + 0x1c]
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.0042bd2c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.0042e422
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call fcn.0042e2e9
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0042e05e
mov ecx, esi
call fcn.0040e2b0
mov ecx, dword [esp + 0x3c]
add eax, edi
xor eax, ecx
push 8
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040e170
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 6
call fcn.0042e422
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.0042e2e9
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.0042e701
add ebp, 8
dec ebx
jne 0x40ddec
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.0042e2e9
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.0042e2e9
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042e2e9
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0xc

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 4]
test ecx, ecx
je 0x416e46
cmp dword [esp + 0x14], 0
mov eax, dword [ecx]
push ebx
push edi
je 0x416e43
call dword [eax + 0x10]
jmp 0x416e46
call dword [eax + 0xc]
cmp word [esi + 0x20], 0
je 0x416e7f
mov eax, ebx
dec ebx
test eax, eax
je 0x416e7f
lea ecx, [ebx + 1]
mov eax, dword [esi + 0x1c]
movzx ebx, byte [edi]
mov edx, eax
and edx, 0xff
xor edx, ebx
sar eax, 8
mov edx, dword [edx*4 + 0x45f594]
and eax, 0xffffff
xor edx, eax
inc edi
dec ecx
mov dword [esi + 0x1c], edx
jne 0x416e57
pop edi
pop esi
pop ebx
ret 8
Function at 0x41752c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x68]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x417556
test ecx, ecx
jne 0x417560
test edx, edx
jne 0x417560
mov eax, edi
jmp 0x4175cc
cmp eax, 0xffffffff
jne 0x417560
push 0xfffffffffffffffe
pop eax
jmp 0x4175cc
mov edx, dword [esi + 0x20]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x4175cc
mov eax, dword [esi + 0x2c]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0041c7f0
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x64], edi
sub dword [esi + 0x60], edi
add esp, 0xc
sub dword [esi + 0x50], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x417591
mov eax, dword [esi + 0x34]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x4175b0
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x417627
push eax
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x60]
add eax, dword [esi + 0x2c]
push eax
push ecx
call fcn.0041762c
add dword [esi + 0x68], eax
mov ebx, dword [esi + 0x68]
add esp, 0xc
cmp ebx, 3
jb 0x417613
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [edx]
mov dword [esi + 0x3c], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x48]
mov dword [esi + 0x3c], eax
cmp ebx, 0x106
jae 0x417627
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x417538
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42b220
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.0041b600
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42b2eb
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 0x42b2eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42b29e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42b2a9
or bh, 8
and edi, 0x8000000
je 0x42b2c4
mov eax, dword [0x46879c]
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 0x42b2eb
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