joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45275c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4528e8
mov dl, 1
mov eax, dword [0x412a80]
call fcn.004034b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042d8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4528d7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044020c
test al, al
je 0x4528ca
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x452918
lea eax, [ebp - 0x254]
call fcn.00409368
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4528ca
xor eax, eax
push ebp
push 0x4528c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452950
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4528ac
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404548
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4528ac
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4528ca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4527cd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004171c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45290e
lea eax, [ebp - 0x260]
call fcn.004042d8
ret

Function at 0x453250
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x472bbc]
cmp byte [eax + 0xa5], 0
jne 0x4532c1
cmp dword [0x472bd4], 0
jne 0x453282
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45320c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x472bd4], eax
cmp dword [0x472bd0], 0
jne 0x45329d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x472bd0], eax
cmp dword [0x472bd8], 0
jne 0x4532c1
push esp
push 0
push 0
push 0x4531b0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x472bd8], eax
pop edx
ret
Function at 0x453954
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x472bbc]
cmp dword [eax + 0x30], 0
je 0x4539fe
cmp dword [ebx + 0x94], 0
jne 0x4539f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4538e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4539f8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4539be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4539f8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414ad4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4539cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45455c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454591
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004043c8
jmp 0x45459e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040432c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4556b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4556f1
mov eax, esi
call fcn.0043b888
test al, al
je 0x4556f1
mov eax, dword [ebx + 0x84]
call fcn.0043b5b0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4556f1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b5b0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x463bf4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x463bfc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x463dee
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x463e04
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040432c
lea ecx, [ebp - 0x10]
mov edx, 0x463e18
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040432c
lea ecx, [ebp - 0x14]
mov edx, 0x463e30
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040432c
lea ecx, [ebp - 0x18]
mov edx, 0x463e4c
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040432c
lea ecx, [ebp - 0x1c]
mov edx, 0x463e68
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040432c
lea ecx, [ebp - 0x24]
mov edx, 0x463e80
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040827c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408670
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x463e98
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x28]
call fcn.0045b558
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x463ea8
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x2c]
call fcn.0045b558
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x463ec0
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408670
inc eax
je 0x463d91
lea ecx, [ebp - 0x34]
mov edx, 0x463ec0
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x34]
call fcn.00408634
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409d14
fstp qword [ebp - 0x3c]
wait
call fcn.0040a084
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x463dac
lea ecx, [ebp - 0x40]
mov edx, 0x463ec0
mov eax, esi
call fcn.00461a80
mov eax, dword [ebp - 0x40]
call fcn.0045b558
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x463ed0
mov eax, esi
call fcn.00461a80
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040432c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463df5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004042fc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004042fc
ret
Function at 0x46ab80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46abda
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046ab70
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045a1c4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00459dc4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46abe1
lea eax, [ebp - 4]
call fcn.004042d8
ret
Function at 0x401e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x78]
add eax, ecx
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0x14], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
add ebx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x401eef
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edx + ebx*4]
add edx, ecx
xor ecx, ecx
mov al, byte [edx]
test al, al
je 0x401e96
imul ecx, ecx, 0x1003f
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx]
test al, al
jne 0x401e82
xor ecx, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x401ede
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ecx
je 0x401eae
inc esi
cmp esi, edi
jb 0x401ea2
jmp 0x401ede
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp - 8]
cmp ecx, edx
jb 0x401ed8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x7c]
add eax, edx
cmp ecx, eax
jae 0x401ed8
call fcn.00401d40
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 4]
inc ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp ebx, dword [eax + 0x18]
jb 0x401e75
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [ebp - 4], ecx
mov edi, dword [ebx]
cmp edi, ebx
je 0x401f5d
lea esp, [esp]
mov esi, dword [edi + 0x30]
xor edx, edx
movzx eax, word [esi]
test ax, ax
je 0x401f52
lea ecx, [ecx]
lea ecx, [eax - 0x41]
movzx eax, ax
cmp cx, 0x19
ja 0x401f3f
add eax, 0x20
imul edx, edx, 0x1003f
add esi, 2
add edx, eax
movzx eax, word [esi]
test ax, ax
jne 0x401f30
cmp edx, dword [ebp - 4]
je 0x401f66
mov edi, dword [edi]
cmp edi, ebx
jne 0x401f20
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov dword [ebp - 4], edx
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 8]
mov bl, 0x41
push edi
mov edi, ecx
mov esi, edx
mov byte [eax], bl
inc bl
inc eax
cmp bl, 0x5a
jle 0x4021f8
mov cl, 0x61
mov byte [eax], cl
inc cl
inc eax
cmp cl, 0x7a
jle 0x402204
mov cl, 0x30
mov byte [eax], cl
lea eax, [eax + 1]
inc cl
cmp cl, 0x39
jle 0x402210
mov ebx, dword [ebp - 4]
mov word [eax], 0x2f2b
cmp ebx, 3
jb 0x402290
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
movzx ecx, byte [edi]
sub ebx, 3
movzx eax, byte [edi + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
add edi, 3
add ecx, eax
mov eax, ecx
shr ecx, 6
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 3], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 1], al
movzx eax, byte [ebp + ecx - 0x44]
mov byte [esi], al
add esi, 4
dec edx
jne 0x402232
mov edx, dword [ebp + 8]
test ebx, ebx
je 0x4022ee
mov cl, byte [edi]
cmp ebx, 1
jbe 0x4022a1
movzx eax, byte [edi + 1]
jmp 0x4022a3
xor eax, eax
movzx ecx, cl
movzx eax, al
shl ecx, 8
add ecx, eax
shl ecx, 8
shr ecx, 6
mov eax, ecx
shr ecx, 6
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 1], al
movzx eax, byte [ebp + ecx - 0x44]
mov byte [esi], al
mov byte [esi + 3], 0x3d
cmp ebx, 1
jne 0x4022eb
mov byte [esi + 2], 0x3d
add esi, 4
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402360
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x33323130
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], 0x37363534
lea eax, [esi + edx]
mov dword [ebp - 0xc], 0x42413938
xor edx, edx
mov dword [ebp - 8], 0x46454443
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, edx
test edi, edi
je 0x4023f7
jmp 0x4023a0
mov al, byte [esi]
cmp al, 0x30
jb 0x4023aa
cmp al, 0x39
jbe 0x4023ee
cmp al, 0x61
jb 0x4023b2
cmp al, 0x7a
jbe 0x4023ee
cmp al, 0x41
jb 0x4023ba
cmp al, 0x5a
jbe 0x4023ee
cmp al, 0x7e
je 0x4023ee
cmp al, 0x2d
je 0x4023ee
cmp al, 0x2e
je 0x4023ee
cmp al, 0x5f
je 0x4023ee
mov byte [ecx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [ebp + eax - 0x14]
mov byte [ecx + 1], al
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [ebp + eax - 0x14]
mov byte [ecx + 2], al
add ecx, 3
jmp 0x4023f1
mov byte [ecx], al
inc ecx
inc edx
inc esi
cmp edx, edi
jb 0x4023a0
sub ecx, dword [ebp + 8]
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4026c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi]
xor ebx, 0x1d231121
mov eax, ebx
mov dword [ebp - 0xc], ebx
and eax, 3
jne 0x4026e2
lea edi, [ebx + 4]
jmp 0x4026e9
mov edi, ebx
sub edi, eax
add edi, 4
push edi
push 8
call dword [0x410524]
push eax
call dword [0x410994]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x402764
add esi, 4
shr edi, 2
mov ecx, eax
lea edx, [esi + edi*4]
xor edi, edi
mov dword [ebp - 4], edx
sub dword [ebp - 4], esi
add dword [ebp - 4], 3
shr dword [ebp - 4], 2
cmp esi, edx
mov edx, dword [ebp - 4]
cmova edx, edi
mov dword [ebp - 4], edx
test edx, edx
je 0x402760
mov ebx, edx
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, 0x1d231121
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x402730
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ecx]
mov eax, edx
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
and eax, 3
jne 0x402794
lea esi, [edi + 4]
jmp 0x40279b
mov esi, edi
sub esi, eax
add esi, 4
lea eax, [esi + esi]
push eax
push 8
call dword [0x410524]
push eax
call dword [0x410994]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x402833
mov eax, dword [ebp - 4]
xor edi, edi
add eax, 4
shr esi, 2
mov edx, ebx
lea ecx, [eax + esi*4]
mov esi, dword [ebp - 4]
add esi, 4
mov eax, ecx
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, ecx
cmova eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x40282d
mov edi, eax
xor ebx, ebx
lea ebx, [ebx]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, dword [ebp - 0xc]
lea esi, [esi + 4]
movzx eax, cl
inc ebx
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebx, edi
jb 0x4027f0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebx
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
mov dword [ebp - 0x10], ecx
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x40306c
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x403178
xor ebx, ebx
cmp edx, 7
jbe 0x4030d6
mov eax, 7
sub eax, edi
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add ecx, esi
add edi, 8
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add ecx, esi
cmp eax, edx
jb 0x403085
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp ebx, eax
jae 0x40313a
sub eax, ebx
cmp eax, 2
jb 0x403126
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea ebx, [ebx + edx*2]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
dec edx
jne 0x403102
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 4]
jae 0x403133
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
mov eax, dword [ebp - 0xc]
add eax, edx
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
jne 0x403074
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [0x4108dc]
xor edx, edx
mov dword [ebp - 0x4c], 0
mov ecx, 0xea60
mov dword [ebp - 0x48], 0x4126b8
div ecx
push 0x4126b8
lea esi, [edx + 0xcd140]
call dword [0x410810]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x11c
call dword [0x410ca4]
lea eax, [ebp - 0x70]
push eax
call dword [0x410680]
movzx eax, byte [ebp - 0x76]
imul eax, eax, 0x64
add eax, dword [ebp - 0x18c]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x188]
lea eax, [eax + ecx*2]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x70]
add ecx, eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x34]
mov eax, dword [eax + 0x1d4]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x411d6c]
mov dword [ebp - 0x38], eax
call fcn.00402ef0
lea ecx, [ebp - 0x2c]
call 0x40e670
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x10]
call fcn.0040bee0
test eax, eax
je 0x40bce8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004074b0
add esp, 8
test eax, eax
je 0x40bca5
mov ecx, dword [ebp - 0x4c]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x40bc57
call 0x40e220
lea edx, [ebp - 0x24]
lea ecx, [ebp - 8]
call fcn.0040bfb0
test eax, eax
je 0x40bc91
cmp dword [ebp - 0x24], 0
jne 0x40bc91
call 0x40e5e0
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40bc80
mov ecx, dword [ebp - 0x20]
call 0x40e100
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x40bc91
mov ecx, dword [ebp - 0x18]
call 0x40e6e0
xor esi, esi
push dword [ebp - 8]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
jmp 0x40bcd6
call dword [0x4108dc]
xor edx, edx
mov ecx, 0xbb8
div ecx
mov eax, dword [0x4124a4]
add eax, 8
mov dword [0x4124a4], eax
lea esi, [edx + 0xbb8]
cmp dword [eax], 0
cmove eax, dword [0x4124a0]
mov dword [0x4124a4], eax
push dword [ebp - 0x10]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
push dword [ebp - 0x2c]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
push dword [ebp - 0x34]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x23d2186
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.023d1e49

Function at 0x23d2191
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.023d1fca
Function at 0x2491420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x249144b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x2491434
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x6d50378d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x6d520030]
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 0x6d503830
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d50d3f7
pop ecx
pop ecx
test eax, eax
je 0x6d503819
test ebx, ebx
je 0x6d50380d
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.6d50d3f7
pop ecx
pop ecx
test eax, eax
jle 0x6d503819
push ebx
call fcn.6d505895
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.6d505874
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 0x6d5037da
xor edi, edi
cmp ebx, edi
jne 0x6d503834
xor eax, eax
jmp 0x6d5038a0
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 0x6d503863
call fcn.6d505895
pop ecx
cmp dword [ebp - 0x70], edi
je 0x6d503830
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x6d503830
call fcn.6d505895
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 0x6d503853
cmp dword [ebp - 0x70], edi
je 0x6d503896
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.6d505874
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d508259
add ebp, 0x9c
leave
ret