joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xac
mov ecx, 0xffffffff
sub eax, eax
push esi
push edi
mov edi, 0x4214f4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x28
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x42]
mov eax, dword [esp + 0xbc]
push ecx
push eax
call fcn.00404140
mov edx, str.ProxyStubClsid32
lea edi, [esp + 0x34]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov esi, dword [edx + 8]
mov dword [edi], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 8], 0x27
mov dword [edi + 4], eax
mov ax, word [edx + 0x10]
mov dword [edi + 8], esi
lea edx, [esp + 8]
mov dword [edi + 0xc], ecx
mov word [edi + 0x10], ax
push edx
lea ecx, [esp + 0x10]
lea eax, [esp + 0x38]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
push SysReAllocStringLen
call esi
test eax, eax
je 0x408587
lea edi, [esp + 0x34]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
lea eax, [esp + 8]
lea edx, [esp + 0x34]
not ecx
push eax
mov byte [esp + ecx + 0x35], 0
lea ecx, [esp + 0x10]
push ecx
push edx
push SysReAllocStringLen
call esi
test eax, eax
je 0x408587
mov eax, 0x80040155
pop edi
pop esi
add esp, 0xac
ret
lea eax, [esp + 0xc]
push str.00020420_0000_0000_C000_000000000046
push eax
call fcn.00418560
add esp, 8
test eax, eax
jne 0x4085cd
mov edx, dword [esp + 0xbc]
mov eax, dword [0x41d658]
mov ecx, 0x41d658
mov dword [edx], eax
mov esi, dword [ecx + 4]
pop edi
mov dword [edx + 4], esi
pop esi
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
xor eax, eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
add esp, 0xac
ret
lea eax, [esp + 0xc]
push str.00020424_0000_0000_C000_000000000046
push eax
call fcn.00418560
add esp, 8
test eax, eax
jne 0x408613
mov edx, dword [esp + 0xbc]
mov eax, dword [0x41d698]
mov ecx, 0x41d698
mov dword [edx], eax
mov esi, dword [ecx + 4]
pop edi
mov dword [edx + 4], esi
pop esi
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
xor eax, eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
add esp, 0xac
ret
mov eax, 0x80004005
pop edi
pop esi
add esp, 0xac
ret
Function at 0x415ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
mov ecx, 0xffffffff
sub eax, eax
push ebx
push esi
mov ebx, 0x8002801d
push edi
mov edi, 0x42153c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x27
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3a]
mov eax, dword [esp + 0x70]
push ecx
push eax
call fcn.00404140
mov edx, str.TypeLib
lea edi, [esp + 0x2c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dl, byte [edx + 8]
mov dword [edi], ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [edi + 4], eax
lea eax, [esp + 0x30]
mov byte [edi + 8], dl
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415be7
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xc]
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x415bdc
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [esp + 0x10]
push ecx
push 0
mov dword [esi], 0
mov dword [esp + 0x20], 0x14
push 0
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415bda
lea eax, [esp + 0x10]
push 0x10
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00418380
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp byte [ecx], 0x2e
jne 0x415bda
mov ecx, dword [esp + 0x78]
push 0x10
mov word [ecx], ax
push 0
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.00418380
mov ecx, dword [esp + 0x88]
add esp, 0xc
mov word [ecx], ax
mov dword [esi], 1
xor ebx, ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x5c
ret

Function at 0x415bf0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20
mov ecx, 0xffffffff
sub eax, eax
push ebx
mov ebx, dword [esp + 0x28]
push esi
push edi
push 0x10
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x10]
lea esi, [ecx - 1]
push eax
push ebx
add ebx, esi
call fcn.00418380
add esp, 0xc
cmp ebx, dword [esp + 0xc]
jne 0x415c45
lea ecx, [esp + 0xc]
push 0x20
push ecx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x415c45
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x20
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4183a0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fae0
push 0x417e74
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4215d4], eax
xor eax, eax
mov al, byte [0x4215d5]
mov dword [0x4215e0], eax
mov eax, dword [0x4215d4]
shr dword [0x4215d4], 0x10
and eax, 0xff
mov dword [0x4215dc], eax
shl eax, 8
add eax, dword [0x4215e0]
mov dword [0x4215d8], eax
call fcn.00419c00
mov dword [ebp - 4], 0
call fcn.00419a20
call fcn.00419a10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x423b98], eax
call fcn.004195b0
mov dword [0x4215b4], eax
test eax, eax
je 0x418439
cmp dword [0x423b98], 0
jne 0x418443
push 0xffffffffffffffff
call fcn.00418620
add esp, 4
call fcn.00419330
call fcn.00419250
call fcn.004185f0
mov esi, dword [0x423b98]
mov al, byte [esi]
cmp al, 0x22
je 0x41846a
cmp al, 0x20
jbe 0x418497
inc esi
cmp byte [esi], 0x20
ja 0x418462
jmp 0x418497
inc esi
cmp byte [esi], 0x22
je 0x418496
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x418491
xor eax, eax
mov al, bl
push eax
call fcn.004191f0
add esp, 4
test eax, eax
je 0x41848b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x418473
cmp byte [esi], 0x22
jne 0x418497
inc esi
cmp byte [esi], 0
je 0x4184a7
cmp byte [esi], 0x20
ja 0x4184a7
inc esi
cmp byte [esi], 0
jne 0x41849c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4184cb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00418620
jmp 0x41850c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418660
Capabilities:
Terminate process

Disassembly:
mov dword [0x42160c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x421608], bl
jne 0x4186bc
cmp dword [0x423b94], 0
je 0x4186aa
mov esi, dword [0x423b90]
sub esi, 4
cmp esi, dword [0x423b94]
jb 0x4186aa
mov eax, dword [esi]
test eax, eax
je 0x41869f
call eax
sub esi, 4
cmp esi, dword [0x423b94]
jae 0x418697
push 0x421040
push 0x421038
call fcn.004186e0
add esp, 8
push 0x421048
push 0x421044
call fcn.004186e0
add esp, 8
test ebx, ebx
jne 0x4186dd
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x4195b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x421950], 0
push ebx
push esi
push edi
push ebp
jne 0x419600
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x4195de
mov dword [0x421950], 1
mov ebx, dword [esp + 0x10]
jmp 0x41960e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4195f6
mov dword [0x421950], 2
jmp 0x41960e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x421950], 1
jne 0x4196bd
test edi, edi
jne 0x419631
call esi
mov edi, eax
test edi, edi
jne 0x419631
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x41964b
add esi, 2
cmp word [esi], 0
jne 0x419639
add esi, 2
cmp word [esi], 0
jne 0x419639
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4196ac
push ebp
call fcn.00418790
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4196ac
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41969b
push ebx
call fcn.00419f70
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x421950], 2
jne 0x419741
test ebx, ebx
jne 0x4196e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4196e0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4196f5
inc ebp
cmp byte [ebp], 0
jne 0x4196e7
inc ebp
cmp byte [ebp], 0
jne 0x4196e7
sub ebp, ebx
inc ebp
push ebp
call fcn.00418790
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x41971a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x419c60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x421de0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x419c88
add ecx, 8
inc eax
cmp ecx, 0x421e68
jb 0x419c78
cmp dword [eax*8 + 0x421de0], edx
lea ebx, [eax*8]
jne 0x419e43
cmp dword [0x4215c0], 1
je 0x419e08
cmp dword [0x4215c0], 0
jne 0x419cbf
cmp dword [0x4215c4], 1
je 0x419e08
cmp edx, 0xfc
je 0x419e43
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x419cfc
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x419d40
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x421eb4
push ebp
call fcn.0041ac50
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x421e94
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x421de4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041abb0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x423a90]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x419e1f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x421de4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x41bff0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x423a84], edx
push ebx
push esi
push edi
push ebp
jbe 0x41c1f7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x423a90
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x41c1f7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x41c059
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x41c06a
push 2
push 0
push edx
call fcn.0041c430
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x41c106
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41c13f
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x41c0cd
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x41c0bb
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x41c0a2
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c135
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x41c08d
jmp 0x41c13f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c135
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x41c13f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x41c1e6
cmp dword [esp + 0x10], 0
je 0x41c198
cmp dword [esp + 0x10], 5
jne 0x41c17b
mov dword [0x4215c8], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4215cc], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0041c3c0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x41c1c2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x41c1c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4215c8], 0x1c
mov dword [0x4215cc], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4215c8], 9
mov dword [0x4215cc], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x419aeb
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004149eb
test eax, eax
jne 0x419b57
push ebp
push 0x54df40
mov ecx, edi
call fcn.00418d6b
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0041456b
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0040913b
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00414b9b
add esp, 4
test eax, eax
je 0x419bfa
add esi, 0x18
push esi
call fcn.00451b1b
add esi, eax
push esi
call fcn.00451b1b
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x419efd
jmp dword [ecx*4 + 0x416d20]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00418eab
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00451b1b
add esi, eax
push esi
call fcn.00451b1b
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x419c4b
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.0046f5d0]
test eax, eax
je 0x419c4b
mov eax, 1
jmp 0x419c4d
xor eax, eax
cmp ebx, 8
jge 0x419eb2
cmp ebx, 7
ja 0x419efd
jmp dword [ebx*4 + 0x416d30]
test eax, eax
jne 0x419ec5
mov ecx, dword [esp + 0x10]
push eax
push 0x54df2c
call fcn.00418d6b
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0041a40b
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x53a100
call fcn.0040933b
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x422adb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x564920]
xor edx, edx
cmp eax, edx
jne 0x422b01
xor eax, eax
mov byte [eax + 0x564820], al
inc eax
cmp eax, 0x100
jl 0x422ae9
mov dword [0x564920], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x564820
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x422b92
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x422b65
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x422b33
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422c0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x422c5e
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x422c45
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426efb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x42711c
cmp eax, 8
jg 0x42711c
cmp dword [esp + 0x8c], 2
jl 0x42711c
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x42711c
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x42711c
mov eax, dword [esp + 0x80]
test eax, eax
je 0x426f82
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x427105
mov ebp, dword [fcn.0046f4a8]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x426fb4
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4270ec
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x426fd4
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [fcn.0046f498]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x427013
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0046f49c]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.0046f4dc]
test eax, eax
jne 0x4270d3
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0042650b
cmp eax, 1
jne 0x4270fd
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00426dbb
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x426fc8
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x427105
jmp 0x426f9f
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0042610b
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c