joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa5e0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x583298
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4fa6bd
cmp dword [esi + 8], edi
je 0x4fa6a7
cmp dword [esp + 0x28], edi
je 0x4fa63a
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.0049c820
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call fcn.004fabc0
mov eax, dword [eax]
add esi, 0x14
push eax
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.00498b50
lea ecx, [esp + 0x1c]
mov bl, al
mov dword [esp + 0x14], 0xffffffff
call fcn.0055962c
test bl, bl
je 0x4fa6a7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0049c820
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 3
push edx
mov edx, dword [esi + ecx*4 + 0x50]
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4fa710
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5832b8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4fa7ee
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4fa79e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004fabc0
mov eax, dword [eax]
add esi, 0x14
push 0
push 0
push eax
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0049be50
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0055962c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.0049ca00
and eax, 0xff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
add esi, 0x14
push 0
push 0
push str.Item
mov ecx, esi
call fcn.0049be50
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
push ecx
push 0x5e2540
push edx
mov ecx, esi
call fcn.0049ace0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0049ca00
and eax, 0xff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 0x50]
push eax
push 3
push 0
mov eax, dword [esi + edx*4 + 0x50]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
pop esi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
add esp, 0xc
ret 0x10

Function at 0x4fa890
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5832e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ecx + 4]
test eax, eax
je 0x4fa965
mov eax, dword [ecx + 8]
test eax, eax
je 0x4fa952
push esi
lea esi, [ecx + 0x14]
push edi
push str.Item
mov ecx, esi
call fcn.00498b50
and eax, 0xff
mov edi, eax
je 0x4fa93d
mov eax, dword [0x5e8e38]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 8]
push 0x5e2540
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0044dca0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.00559765
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.0055962c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
call fcn.00438200
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0055962c
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [ecx + 0x50]
push edx
mov ecx, dword [ecx + eax*4 + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 4]
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
add esp, 0x10
ret 0xc
Function at 0x4fa9a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x583300
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
push esi
push edi
test eax, eax
je 0x4faa76
mov eax, dword [ecx + 8]
test eax, eax
je 0x4faa61
lea esi, [ecx + 0x14]
push str.Item
mov ecx, esi
call fcn.00498b50
and eax, 0xff
mov edi, eax
je 0x4faa4c
mov eax, dword [0x5e8e38]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
push 0x5e2540
push ecx
mov ecx, esi
mov dword [esp + 0x18], 0
call fcn.0044dca0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14], 1
call fcn.00559765
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 0
call fcn.0055962c
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.00438200
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0xffffffff
call fcn.0055962c
mov eax, edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esp + 0x24]
push 0
push 0
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push 0
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [ecx + 0x50]
push eax
mov eax, dword [ecx + edx*4 + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 8]
pop edi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
inc eax
pop esi
add esp, 0xc
ret 0x10

Function at 0x4fb920
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push 0x5d7a34
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4fba12
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, edi
call fcn.00467050
test eax, eax
jne 0x4fba12
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocStringLen
mov ecx, edi
call fcn.00467050
test eax, eax
jne 0x4fba12
lea edx, [esp + 0x10]
push 0x5d993c
push edx
call fcn.00542589
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fb9e3
lea eax, [esp + 0x10]
push 0x5d9938
push eax
call fcn.00542589
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fb9e3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4fb9e6
mov byte [esi], 0
push 0x5d9564
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x5068e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov edi, ecx
push SysReAllocStringLen
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x44], eax
je 0x5069e7
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
xor edx, edx
mov ebx, ecx
xor ebp, ebp
or edx, eax
or ebx, ebp
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov edx, dword [esi + 0x20]
or edx, ebx
jne 0x50694c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
push 0
push eax
mov eax, dword [esi + 0x44]
push ecx
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
mov ebp, dword [esi + 0x24]
mov dword [esi + 0x48], ebx
mov edi, dword [edi + 0x74]
mov ecx, dword [esi + 0x20]
mov eax, dword [edi + 0x5324]
cdq
cmp ebp, edx
jl 0x506983
jg 0x50697d
cmp ecx, eax
jbe 0x506983
mov dword [esp + 0x1c], eax
jmp 0x506987
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2c]
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
mov edi, dword [edi + 0x5324]
mov edx, ecx
mov eax, edi
sar edx, 0x1f
cdq
push edx
push eax
push ecx
push ebp
call fcn.00541ea0
imul eax, edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x40], eax
je 0x5069e7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x5069e7
mov ecx, dword [esp + 0x10]
push esi
call fcn.00506a00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x40]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
pop ecx
ret 8
Function at 0x506e60
Capabilities:
Check for time delay via gettickcount
Read and send data from client to server
Read file via mapping
Send data
Send data on socket

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov edx, ecx
push edi
test esi, esi
mov dword [esp + 0x10], edx
je 0x506f0e
cmp dword [esi + 0x44], 0xffffffff
je 0x506f0e
mov ecx, dword [esi + 0x28]
mov ebp, dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
sub ebp, ecx
mov dword [esp + 0x20], 0
sbb ebx, eax
mov eax, dword [edx + 0x74]
mov edi, dword [eax + 0x5328]
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esi + 0x2c]
push eax
push ecx
call fcn.00542120
sub edi, eax
test ebx, ebx
jl 0x506f1a
jg 0x506ebf
test ebp, ebp
jbe 0x506f1a
mov eax, edi
cdq
cmp ebx, edx
jl 0x506ed4
jg 0x506ecc
cmp ebp, eax
jbe 0x506ed4
mov ebp, eax
mov dword [esp + 0x18], edx
jmp 0x506ed8
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
push 0
push ebp
mov eax, dword [eax + 0x74]
mov eax, dword [eax + 0x5324]
cdq
push edx
push eax
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
push eax
call fcn.00542120
mov ebp, dword [esi + 0x40]
mov ecx, dword [esi + 8]
add eax, ebp
mov edx, dword [ecx + 8]
push eax
push edx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x506f1e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x28]
cdq
add edi, eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x2c]
adc ecx, edx
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x2c]
cmp ecx, eax
jne 0x506f58
cmp edi, dword [esi + 0x24]
jne 0x506f58
mov edx, dword [esi + 0x18]
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp edx, 0x62
setne al
add eax, 7
mov dword [esi + 0x58], eax
jmp 0x506fc7
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp + 0x74]
mov eax, dword [edx + 0x5324]
cdq
push edx
push eax
push edi
push ecx
call fcn.00542120
or eax, edx
jne 0x506fc7
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x20]
mov edx, dword [ebp + 0x74]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x24]
sub edi, eax
mov eax, dword [edx + 0x5324]
cdq
sbb ecx, ebx
cmp ecx, edx
jl 0x506fa7
jg 0x506fa1
cmp edi, eax
jbe 0x506fa7
mov dword [esp + 0x18], edx
jmp 0x506fad
mov eax, edi
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x28]
mov ecx, ebx
push eax
push ebx
push 4
push edx
sar ecx, 0x1f
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 8]
mov edx, eax
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x506ff2
mov dword [ecx + 0x20], eax
mov eax, dword [ebp + 0x1c]
push 0
push esi
push 0x471
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
Function at 0x51ccc0
Capabilities:
Capture microphone audio

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x51ccd6
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov di, word [esi + 0xc]
mov cx, word [esi + 4]
mov eax, edi
mov word [esp + 0xa], cx
and eax, 0xffff
and ecx, 0xffff
imul eax, ecx
mov edx, dword [esi + 8]
mov ecx, eax
imul ecx, edx
mov dword [esp + 0xc], edx
push 1
cdq
and edx, 7
push 0
add eax, edx
lea edx, [esp + 0x10]
push 0
push edx
shr ecx, 3
sar eax, 3
mov word [esp + 0x26], di
mov edi, dword [sym.imp.WINMM.dll_waveInOpen]
push 0xffffffffffffffff
push 0
mov word [esp + 0x20], 1
mov dword [esp + 0x28], ecx
mov word [esp + 0x2c], ax
mov word [esp + 0x30], 0
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x51cd4d
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [0x5ee0b8]
mov ecx, dword [esi + 0x18]
push 0x20000
push eax
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esi + 0x10]
push 0xffffffffffffffff
push eax
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x51cd78
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov dword [esi + 0x28], 1
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x51cd90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x51cdaa
call fcn.0051cde0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x51cdaa
xor eax, eax
pop esi
ret
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x51cb30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1c], eax
jne 0x51cdc9
pop esi
ret
mov eax, 1
mov dword [esi + 0x24], eax
pop esi
ret

Function at 0x51cde0
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x51cdf0
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51ce4d
mov eax, dword [esi + 0x18]
push ebx
push ebp
push edi
push 0
push 0
push 0x12
push eax
mov edi, 0x32
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
cmp dword [esp + 0x10], 0x103
jne 0x51ce43
push 0xa
call ebp
dec edi
jne 0x51ce1b
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop ebp
mov dword [esi + 0x1c], 0
pop ebx
mov dword [esi + 0x24], 0
mov eax, 1
pop esi
pop ecx
ret
Function at 0x51cf00
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x51cf14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WINMM.dll_waveInReset]
test eax, eax
mov dword [esi + 0x14], eax
je 0x51cf2c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x140
call fcn.00558a23
mov ebp, dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esp, 4
mov dword [esi + 0x20], eax
xor ebx, ebx
mov edi, dword [esi + 0x20]
mov ecx, 8
xor eax, eax
add edi, ebx
rep stosd dword es:[edi], eax
push 0x3c0
call fcn.00558a23
mov ecx, dword [esi + 0x20]
add esp, 4
mov dword [ecx + ebx], eax
mov edx, dword [esi + 0x20]
push 0x20
mov dword [edx + ebx + 4], 0x3c0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
add eax, ebx
push eax
push ecx
call ebp
test eax, eax
mov dword [esi + 0x14], eax
jne 0x51cf25
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
add edx, ebx
push 0x20
push edx
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x51cf25
add ebx, 0x20
cmp ebx, 0x140
jb 0x51cf44
mov eax, 1
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x51d2d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x51d2ea
call fcn.0051d320
mov eax, dword [esi + 0x44]
test eax, eax
je 0x51d2ea
xor eax, eax
pop esi
ret
lea eax, [esi + 0x1c]
push eax
push 0
push esi
push 0x51d180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x51d309
pop esi
ret
mov eax, 1
mov dword [esi + 0x44], eax
pop esi
ret

Function at 0x51d320
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x51d330
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0x18]
test eax, eax
je 0x51d38d
mov eax, dword [esi + 0x1c]
push ebx
push ebp
push edi
push 0
push 0
push 0x12
push eax
mov edi, 0x32
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
cmp dword [esp + 0x10], 0x103
jne 0x51d383
push 0xa
call ebp
dec edi
jne 0x51d35b
mov eax, dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop ebp
mov dword [esi + 0x18], 0
pop ebx
mov dword [esi + 0x44], 0
mov eax, 1
pop esi
pop ecx
ret
Function at 0x521710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x521743
push esi
call fcn.00525a00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x52173c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5217c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5217b2
mov eax, dword [esi + 8]
test eax, eax
je 0x521767
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5217ae
cmp eax, 2
je 0x5217b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x52175a
cmp eax, 3
je 0x52178d
cmp eax, 1
jne 0x52175a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x52175a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x52175a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00521800
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5217e9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00521800
add esp, 4
pop esi
ret
Function at 0x537b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
lea edx, [eax + 0x50]
lea ecx, [eax + 8]
push edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0x3ff00000
xor eax, eax
fld qword [ecx]
fadd qword [edx]
add eax, 8
add ecx, 8
sub edx, 8
cmp eax, 0x20
fsub qword [esp + eax + 0x48]
fstp qword [esp + eax + 0x50]
fld qword [ecx - 8]
fsub qword [edx + 8]
fadd qword [esp + eax + 0x78]
fstp qword [esp + eax + 0x80]
jle 0x537bd2
mov eax, dword [0x5e86b8]
mov ecx, dword [0x5e86bc]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x50]
mov dword [esp + 0x14], ecx
push 5
mov eax, ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], ebx
lea edi, [esp + 0x60]
call fcn.00537dc0
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [esp + 0x44], edx
mov esi, 0x5e86b8
cmp esi, 0x5e8848
jge 0x537d8d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 8]
add esi, 8
fstp qword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x3c], ecx
push 5
mov ecx, eax
push edi
push ecx
push edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.00537dc0
fst qword [esp + 0x58]
fld qword [esp + 0x38]
fmul st(1)
add esp, 0x10
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
je 0x537d7b
fstp st(0)
sub esi, 8
mov ebx, 2
fld qword [esp + 0x38]
fadd qword [esp + 0x10]
push 5
push edi
fmul qword [0x5899d8]
fstp qword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00537dc0
fld st(0)
fmul qword [esp + 0x58]
add esp, 0x10
fcomp qword [0x58a368]
fnstsw ax
test ah, 0x41
je 0x537cf4
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x28]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x537d08
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
dec ebx
jne 0x537ca4
fld qword [esp + 0x38]
fsub qword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add eax, 8
fmul qword [esp + 0x48]
fld qword [esp + 0x28]
fsub qword [esp + 0x48]
mov dword [esp + 0x44], eax
inc edi
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x80]
fdivp st(1)
fsubr qword [esp + 0x10]
fst qword [esp + 0x28]
fld st(0)
fstp qword [eax - 8]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
jne 0x537d5e
lea edi, [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
fstp qword [esp + 0x10]
push 5
push edi
push ecx
push edx
call fcn.00537dc0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 0xa
jl 0x537c3f
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xa
fstp st(0)
jge 0x537db3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov edx, 0xa
mov esi, dword [ecx + eax]
mov dword [eax], esi
mov esi, dword [ecx + eax + 4]
mov dword [eax + 4], esi
add eax, 8
dec edx
jne 0x537da1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x553f60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005417a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x55402b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x55402b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x553fde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x553fe9
or bh, 8
and edi, 0x8000000
je 0x554004
mov eax, dword [0x5f629c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x55402b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret