joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f609
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002f62d
xor eax, eax
jmp 0x1002f779
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1002f337
add esp, 0x10
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002f655
xor eax, eax
jmp 0x1002f779
push 0x6b32
push 0x4cf0
lea eax, [ebp - 8]
push eax
push 0x6ef0
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.1002f77d
add esp, 0x18
cmp dword [ebp - 0xc], 0
jne 0x1002f683
xor eax, eax
jmp 0x1002f779
push 0x1456
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x6db4
lea eax, [ebp - 0xc]
push eax
call fcn.1002f3a3
add esp, 0x20
push 0
push dword [ebp - 4]
push 0x5911
push dword [ebp - 8]
push dword [ebp + 8]
push 0x2d92
call fcn.100276ba
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002f6ed
lea eax, [ebp - 0x14]
push eax
push 0x6188
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002f45b
add esp, 0x10
push dword [ebp - 4]
call fcn.1002ef26
pop ecx
test eax, eax
jne 0x1002f6fe
xor eax, eax
jmp 0x1002f779
push 0x67f2
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002f4c9
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002f761
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002f730
xor eax, eax
jmp 0x1002f779
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002f749
xor eax, eax
jmp 0x1002f779
push 0x7c04
push 0x3e1a
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002f51d
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002f772
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002f776
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1006e99e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10078330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10060434
mov dword [ebp - 0x14], eax
cmp dword [0x1066589c], esi
jne 0x1006ea91
push 0x800
push esi
push 0x100076a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006ea1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006eb71
push esi
push esi
push 0x100076a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006eb71
push 0x100076bc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006eb71
push eax
call ebx
push 0x100076c8
push edi
mov dword [0x1066589c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076d8
push edi
mov dword [0x106658a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100076ec
push edi
mov dword [0x106658a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106658ac], eax
test eax, eax
je 0x1006ea8e
push 0x10007708
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106658a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006eab6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006eaa9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006eacb
push 4
pop eax
jmp 0x1006eb73
cmp dword [ebp - 0x14], esi
je 0x1006eacb
push dword [0x1066589c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006eab0
mov eax, dword [0x106658a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006eb29
cmp dword [0x106658ac], edi
je 0x1006eb29
push eax
call ebx
push dword [0x106658ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006eb29
test eax, eax
je 0x1006eb29
call ecx
test eax, eax
je 0x1006eb1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006eb1e
test byte [ebp - 8], 1
jne 0x1006eb29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006eb59
mov eax, dword [0x106658a0]
cmp eax, edi
je 0x1006eb56
push eax
call ebx
test eax, eax
je 0x1006eb56
call eax
mov esi, eax
test esi, esi
je 0x1006eb56
mov eax, dword [0x106658a4]
cmp eax, edi
je 0x1006eb56
push eax
call ebx
test eax, eax
je 0x1006eb56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066589c]
call ebx
test eax, eax
je 0x1006eb71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006eb73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005db22
mov esp, ebp
pop ebp
ret
Function at 0x4067d0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x515514
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55ec90]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
push 0
push 0x3a
mov ecx, ebp
call dword [0x518450]
mov edi, eax
mov eax, dword [0x518438]
cmp dword [eax], edi
jne 0x406831
xor al, al
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
push edi
push 0
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call dword [0x5182d0]
mov esi, eax
lea ebx, [esp + 0x14]
mov dword [esp + 0x8c], 0
call fcn.00406920
mov ecx, dword [esp + 0x98]
push eax
mov byte [esp + 0x90], 1
call dword [0x5182dc]
mov ecx, ebx
mov byte [esp + 0x8c], 0
call dword [0x518308]
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], 0xffffffff
call dword [0x518308]
mov edx, dword [0x518438]
mov eax, dword [edx]
push eax
inc edi
push edi
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebp
call dword [0x5182d0]
mov esi, eax
lea ebx, [esp + 0x4c]
mov dword [esp + 0x8c], 2
call fcn.00406920
mov ecx, dword [esp + 0x9c]
push eax
mov byte [esp + 0x90], 3
call dword [0x5182dc]
mov ecx, ebx
mov byte [esp + 0x8c], 2
call dword [0x518308]
lea ecx, [esp + 0x68]
mov dword [esp + 0x8c], 0xffffffff
call dword [0x518308]
mov al, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x40dce0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x515799
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55ec90]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
lea esi, [edi + edi + 2]
cmp esi, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
jge 0x40dd78
jmp 0x40dd30
lea eax, [esi*8]
sub eax, esi
lea eax, [ebx + eax*4]
lea ecx, [eax - 0x1c]
push ecx
push eax
call dword [0x5183c0]
add esp, 8
test al, al
je 0x40dd4f
dec esi
lea edx, [esi*8]
sub edx, esi
lea ecx, [edi*8]
lea eax, [ebx + edx*4]
sub ecx, edi
push eax
lea ecx, [ebx + ecx*4]
call dword [0x5182dc]
mov edi, esi
lea esi, [esi + esi + 2]
cmp esi, ebp
jl 0x40dd30
jne 0x40dd9d
lea edx, [ebp*8]
sub edx, ebp
lea ecx, [edi*8]
lea eax, [ebx + edx*4 - 0x1c]
sub ecx, edi
push eax
lea ecx, [ebx + ecx*4]
call dword [0x5182dc]
lea edi, [ebp - 1]
mov edx, dword [esp + 0x54]
push edx
sub esp, 0x1c
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [0x51831c]
mov ecx, dword [esp + 0x34]
push ecx
push edi
push ebx
call fcn.0040df30
add esp, 0x2c
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
call dword [0x518308]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40e3f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2b0]
mov dword [esp + 0xc], edi
test eax, eax
jle 0x40e56e
cmp eax, 1
jg 0x40e41c
mov eax, dword [edi]
mov edx, dword [eax + 8]
call edx
lea eax, [edi + 0x278]
push eax
call dword [0x51812c]
lea esi, [edi + 0x25c]
mov ebx, 6
mov eax, dword [esi]
test eax, eax
je 0x40e449
push eax
push 0
call dword [0x518760]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x40e434
cmp byte [ebp + 8], bl
je 0x40e540
cmp dword [edi + 0x274], ebx
mov dword [esp + 0x10], ebx
jl 0x40e540
lea esi, [edi + 0x180]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov ebx, dword [esi]
mov dword [esp + 0x1c], ecx
nop
mov edi, dword [esi + 0x14]
mov eax, dword [esi]
test ebx, ebx
je 0x40e48d
cmp ebx, eax
je 0x40e493
call dword [0x51856c]
cmp dword [esp + 0x1c], edi
je 0x40e518
test ebx, ebx
jne 0x40e510
call dword [0x51856c]
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 0x14]
jne 0x40e4b4
call dword [0x51856c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x24]
add eax, 8
push ecx
push edx
mov esi, ecx
mov esi, dword [esi]
mov ecx, dword [eax + 0x40]
push esi
mov edi, edx
mov edx, dword [eax + 0x3c]
push edi
push ecx
movzx ecx, byte [eax + 0x38]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
add edx, 4
push edx
call fcn.00414d40
test ebx, ebx
jne 0x40e514
call dword [0x51856c]
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x14]
jne 0x40e501
call dword [0x51856c]
mov eax, dword [esi]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x40e480
mov eax, dword [ebx]
jmp 0x40e4a5
mov eax, dword [ebx]
jmp 0x40e4f2
push esi
call fcn.004129a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
inc eax
add esi, 0x1c
cmp eax, dword [ecx + 0x274]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jle 0x40e474
mov edi, ecx
lea eax, [edi + 0x278]
push eax
call dword [0x518130]
mov edx, dword [edi + 8]
lea esi, [edi + 4]
push 0xffffffffffffffff
push edx
mov dword [esi + 0x7c], 1
mov byte [esi + 0x78], 1
call dword [0x518188]
mov eax, esi
call fcn.004173c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416820
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x55ec90]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], edx
cmp eax, ebx
je 0x4168e7
cmp ecx, ebx
je 0x4168e7
push ecx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0041cf60
add esp, 8
lea esi, [esp + 0x10]
lea edi, [esp + 0x68]
call fcn.0041d020
mov ebx, dword [0x5186a0]
xor esi, esi
lea edi, [esp + 0x78]
movzx eax, byte [esp + esi + 0x68]
push eax
push 0x54f4e4
push edi
call ebx
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x4168a5
push 0x20
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x14]
call dword [0x518274]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004ab3c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004ab3c2
mov esp, ebp
pop ebp
ret
Function at 0x417940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5166b0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
mov eax, dword [0x55ec90]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x7c]
lea eax, [esp + 0x14]
add ebx, 0x118
push eax
mov eax, edi
mov esi, ebx
call fcn.00419f90
mov esi, dword [esp + 0x14]
mov ebp, dword [ebx + 0x18]
mov eax, dword [ebx]
test esi, esi
je 0x41798f
cmp esi, eax
je 0x417995
call dword [0x51856c]
cmp dword [esp + 0x18], ebp
je 0x4179d4
test esi, esi
jne 0x4179d0
call dword [0x51856c]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x18]
jne 0x4179b4
call dword [0x51856c]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x2c]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
mov esi, dword [esi]
jmp 0x4179a5
cmp dword [edi + 0x18], 8
jb 0x4179e3
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x4179ea
lea ecx, [edi + 4]
mov dword [esp + 0x14], ecx
cmp dword [0x5624d8], 0
mov edx, dword [esp + 0x7c]
movzx esi, word [edi + 0x1c]
mov ebp, dword [edx + 0x114]
jne 0x417a0b
call fcn.0041d800
mov dword [0x5624d8], eax
mov eax, dword [esp + 0x14]
push 0
push esi
push eax
push ebp
call dword [0x562444]
mov ebp, eax
test ebp, ebp
jne 0x417a35
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
push ebp
sub esp, 0x20
mov esi, esp
mov dword [esp + 0x38], esp
push edi
mov ecx, esi
call dword [0x518338]
mov cx, word [edi + 0x1c]
mov word [esi + 0x1c], cx
lea esi, [esp + 0x68]
call fcn.0041cd70
add esp, 0x24
mov esi, eax
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], 0
call dword [0x518338]
mov dx, word [esi + 0x1c]
mov word [esp + 0x3c], dx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x40], eax
push ebx
lea eax, [esp + 0x24]
lea ebx, [esp + 0x18]
mov byte [esp + 0x78], 1
call fcn.00419b00
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 0
call dword [0x518304]
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], 0xffffffff
call dword [0x518304]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417b23
call dword [0x51856c]
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x417ad4
call dword [0x51856c]
add esi, 0x2c
push esi
mov esi, dword [esp + 0x80]
lea ecx, [esi + 0x138]
push ecx
call fcn.0041a3f0
mov edx, dword [esi + 0x174]
lea esi, [eax + 0x28]
push edi
mov ecx, esi
mov dword [eax + 0x20], edx
mov byte [eax + 0x24], 1
call dword [0x518348]
mov ax, word [edi + 0x1c]
mov word [esi + 0x1c], ax
mov eax, ebp
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
mov eax, dword [eax]
jmp 0x417ac5
Function at 0x420500
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x562500], ecx
inc edx
cmp edx, 0x100
jb 0x420502
cmp edx, 0x800
jae 0x4205d9
lea esp, [esp]
mov eax, dword [edx*4 + 0x562100]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x562500]
inc edx
mov dword [edx*4 + 0x5624fc], eax
cmp edx, 0x800
jb 0x4205b0
mov dword [0x562474], 0x421580
call fcn.00421750
test eax, eax
jne 0x4205f6
mov dword [0x562474], 0x421630
ret
Function at 0x420b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x55ec90]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.004237b0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x420cbb
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x420bf3
jb 0x420bef
cmp ebx, 0x40000
jae 0x420bf3
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x420ca7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.00423400
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x420ca7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x420c84
test eax, eax
jne 0x420c6d
cmp edi, dword [esp + 0x4c]
je 0x420c84
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x420ca7
xor edi, edi
jmp 0x420bd0
cmp ecx, dword [esp + 0xb4]
jne 0x420ca2
cmp dword [esp + 0x14], 0
jne 0x420ca2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x420ca7
cmp eax, 4
je 0x420ca7
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ab3c2
add esp, 0x90
ret
Function at 0x421c80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x421c9d
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x421ccd
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x421ccd
inc edi
cmp edi, ebx
jb 0x421cc0
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x421dd5
cmp eax, 3
jbe 0x421d00
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x421d3b
cmp al, 0xff
je 0x421d3b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x421cb3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x421ce6
movzx ecx, byte [esi + 0x54ece8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x54ece0], 0
mov al, byte [eax + 4]
je 0x421d29
test al, al
je 0x421d29
cmp al, 0xff
jne 0x421ce6
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x421cb3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x421da7
movzx edx, byte [esi + 0x54ece8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x421d8c
cmp bl, 0xff
jne 0x421da3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x421d60
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x421cb3
pop edi
pop ebx
cmp eax, 3
jbe 0x421dec
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x40377f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x420030]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403822
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00416be8
pop ecx
pop ecx
test eax, eax
je 0x40380b
test ebx, ebx
je 0x4037ff
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00416be8
pop ecx
pop ecx
test eax, eax
jle 0x40380b
push ebx
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x4037cc
xor edi, edi
cmp ebx, edi
jne 0x403826
xor eax, eax
jmp 0x403892
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403855
call fcn.0040473f
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403822
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403822
call fcn.0040473f
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403845
cmp dword [ebp - 0x70], edi
je 0x403888
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040471e
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088d9
add ebp, 0x9c
leave
ret