joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469a1c
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 0x469bc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x469ba8
mov dl, 1
mov eax, dword [0x418984]
call fcn.00403934
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047b0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x469b97
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.00457144
test al, al
je 0x469b8a
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, 0x469bd8
lea eax, [ebp - 0x254]
call fcn.0040aaf8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x469b8a
xor eax, eax
push ebp
push 0x469b83
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 0x469c10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x469b6c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a20
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 0x469b6c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469b8a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x469a8d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d1bc
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 0x469bce
lea eax, [ebp - 0x260]
call fcn.004047b0
ret

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

Disassembly:
push ecx
mov eax, dword [0x588be4]
cmp byte [eax + 0xa5], 0
jne 0x46a581
cmp dword [0x588bfc], 0
jne 0x46a542
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46a4cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x588bfc], eax
cmp dword [0x588bf8], 0
jne 0x46a55d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x588bf8], eax
cmp dword [0x588c00], 0
jne 0x46a581
push esp
push 0
push 0
push 0x46a470
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x588c00], eax
pop edx
ret
Function at 0x46ac44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x588be4]
cmp dword [eax + 0x30], 0
je 0x46acee
cmp dword [ebx + 0x94], 0
jne 0x46ace8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46abd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ace8
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 0x46acae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ace8
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.0041a99c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46acbd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b864
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 0x46b899
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.004048a0
jmp 0x46b8a6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404804
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46ca70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46cab1
mov eax, esi
call fcn.0045270c
test al, al
je 0x46cab1
mov eax, dword [ebx + 0x84]
call fcn.00452408
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46cab1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00452408
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47145c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47148a
mov eax, ebx
call fcn.00471f10
cmp dword [ebx + 0x40], 0
je 0x471483
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4714fb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4714ed
cmp dword [ebx + 8], 0
je 0x4714ac
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4714be
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4714ed
cmp dword [ebx + 8], 0
je 0x47149f
cmp eax, 3
je 0x4714d1
dec eax
jne 0x47149f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47149f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47149f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x471519
cmp dword [ebx + 0x14], 0xcc
je 0x471519
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00471524
pop ebx
ret
Function at 0x487e34
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
cmp eax, dword [ebp - 0x24]
jge 0x487e66
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00487d48
mov dword [ebp - 0x1c], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d3b70
test al, al
je 0x487f61
mov edx, dword [ebp - 0x2c]
xor eax, eax
call fcn.0042cc24
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 0x24]
call fcn.0042cb60
dec eax
pop edx
sub eax, edx
jl 0x487f61
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
imul dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x30]
xor eax, eax
call fcn.0042cc24
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0042cb60
mov edi, eax
dec edi
pop eax
sub edi, eax
jl 0x487f55
inc edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx*4]
xor eax, eax
mov al, byte [ecx + 2]
xor edx, edx
mov dl, byte [ebp - 0x1a]
sub eax, edx
mov esi, ebx
and esi, 0xff
imul esi
push ecx
mov ecx, 0x64
cdq
idiv ecx
pop ecx
sub byte [ecx + 2], al
xor eax, eax
mov al, byte [ecx + 1]
xor edx, edx
mov dl, byte [ebp - 0x1b]
sub eax, edx
imul esi
push ecx
mov ecx, 0x64
cdq
idiv ecx
pop ecx
sub byte [ecx + 1], al
xor eax, eax
mov al, byte [ecx]
xor edx, edx
mov dl, byte [ebp - 0x1c]
sub eax, edx
imul esi
mov esi, 0x64
cdq
idiv esi
sub byte [ecx], al
mov al, byte [ebp - 0x19]
mov byte [ecx + 3], al
inc dword [ebp - 0x14]
dec edi
jne 0x487eeb
inc dword [ebp - 0x18]
dec dword [ebp - 0x20]
jne 0x487eb8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48fe7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x588d4c
test esi, esi
jne 0x48fe96
xor eax, eax
jmp 0x48ff98
cmp dword [ebp], 0
jne 0x48fea1
call fcn.0048fe0c
xor ebx, 0xffffffff
cmp edi, 8
jb 0x48ff71
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x48fead
test edi, edi
jbe 0x48ff93
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x48ff75
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a27e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a289e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ebc
mov eax, dword [0x587978]
cmp dword [eax], 2
jne 0x4a2853
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405164
mov eax, dword [ebx]
call fcn.00405028
push eax
mov eax, dword [ebx]
call fcn.00405018
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405028
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405164
jmp 0x4a2885
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a2dc
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a28a5
lea eax, [ebp - 0x3f0]
call fcn.004047b0
ret
Function at 0x4ac880
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x68], 0
jne 0x4ac898
mov eax, ebx
call fcn.004ac618
cmp dword [ebx + 0x60], 0
jne 0x4ac8a5
mov eax, ebx
call fcn.004ac570
mov esi, dword [ebx + 0x68]
test esi, esi
je 0x4aca4c
cmp dword [ebx + 0x60], 0
je 0x4aca4c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x68]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004ac4f4
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov esi, dword [esp + 0x14]
sub ecx, esi
mov eax, dword [esp]
cmp ecx, eax
je 0x4ac918
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x18]
sar ecx, 1
jns 0x4ac901
adc ecx, 0
push ecx
sub eax, edx
add eax, esi
sar eax, 1
jns 0x4ac90d
adc eax, 0
push eax
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0xd8]
test eax, eax
je 0x4ac92e
call fcn.00452408
mov esi, eax
jmp 0x4ac931
mov esi, dword [ebx + 0x48]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4ac946
or esi, 0xffffffff
jmp 0x4ac950
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x60]
call fcn.0044b340
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x60]
call fcn.0044b364
mov edx, dword [esp]
mov eax, dword [ebx + 0x60]
call fcn.0044b38c
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x60]
call fcn.0044b3b0
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406d90
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x60]
call fcn.00452408
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x60]
call fcn.00452408
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x60]
call fcn.00452408
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x68]
call fcn.0042a93c
call fcn.00425d7c
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x60]
call fcn.00452408
push eax
mov eax, dword [0x586f18]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x60]
call fcn.00452408
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c9844
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004c9830
test eax, eax
jne 0x4c9865
mov eax, esi
call fcn.004047b0
jmp 0x4c98f6
mov eax, ebx
call fcn.004c9994
test al, al
je 0x4c98ab
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.004048a0
test edi, edi
je 0x4c98a2
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4c98f6
mov eax, esi
call fcn.004047b0
jmp 0x4c98f6
mov ebp, dword [ebx + 0x78]
test ebp, ebp
je 0x4c98ef
mov eax, dword [ebp + 0x208]
call fcn.0041b798
test eax, eax
jle 0x4c98dd
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.0043c0e4
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404804
jmp 0x4c98f6
mov eax, esi
mov edx, dword [ebx + 0x78]
mov edx, dword [edx + 0x210]
call fcn.00404804
jmp 0x4c98f6
mov eax, esi
call fcn.004047b0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4cb5ec
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00406d74
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret
Function at 0x512ba8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x512bc0
mov eax, ebx
call fcn.0051243c
cmp dword [ebx + 0x68], 0
jne 0x512bcd
mov eax, ebx
call fcn.00512398
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x512d80
cmp dword [ebx + 0x68], 0
je 0x512d80
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.00512208
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0051bab8
cmp eax, dword [esp]
je 0x512c4f
lea eax, [esp + 0x14]
xor edx, edx
call fcn.0051bacc
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x512c2b
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.0051bab8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x512c44
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x512c62
mov eax, dword [eax + 0x18]
call fcn.00452408
mov esi, eax
jmp 0x512c65
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x512c7a
or esi, 0xffffffff
jmp 0x512c84
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0044b340
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.0044b364
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.0044b38c
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0044b3b0
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406d90
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00452408
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00452408
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00452408
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.0042a93c
call fcn.00425d7c
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00452408
push eax
mov eax, dword [0x586f18]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.00452408
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x512fe8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.0040336c
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x5131d4
push 0
push 0x5131dc
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5131d4
push 0
push 0x5131ec
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5131d4
push 0
push 0x5131fc
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5131d4
push 0
push 0x51320c
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x5131d4
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x5131d4
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x5131d4
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x5131d4
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x5131d4
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x5131c0
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x5131b6
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5131b6
test byte [esp + 0x1d], 0xd
jne 0x5131b6
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x5131b6
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5131b6
cmp dword [esp + 0xc], 0
je 0x5131b6
mov eax, dword [0x587574]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x5131b6
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x513192
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x5131c0
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.00406e34
jmp 0x5131c0
cmp ebx, dword [esp + 4]
jl 0x5130f6
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x516a88
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4178ac]
call fcn.004051cc
xor eax, eax
push ebp
push 0x516bcc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x583d20], 0
jne 0x516adb
mov ecx, dword [0x586dc0]
mov dl, 1
mov eax, dword [0x4081d0]
call fcn.0040de68
call fcn.00404104
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040336c
mov eax, ebx
call fcn.00405018
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x516bdc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040657c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405028
test eax, eax
jle 0x516b73
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x516b6c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a38
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a20
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040918c
test eax, eax
jne 0x516b6c
mov ebx, 0x15
jmp 0x516b78
mov ebx, 0x10
jmp 0x516b78
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x583d20]
call fcn.005169e0
mov eax, dword [ebp - 8]
call fcn.005169e0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516bd3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004047d4
lea eax, [ebp - 0x10]
mov edx, dword [0x4178ac]
call fcn.0040529c
ret

Function at 0x517ad8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x517b49
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x583d58]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x517b33
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00517ac8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5178d0]
call fcn.00517b70
mov dword [0x583dbc], eax
mov eax, dword [ebp - 4]
call fcn.00517a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517b50
lea eax, [ebp - 8]
call fcn.0040657c
ret