joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4362b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470888
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4362e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4363fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4362fd
mov eax, 0xffffffc7
jmp 0x4363fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43630e
cmp dword [esi + 8], eax
jne 0x4362fd
cmp dword [esi + 8], eax
jne 0x436327
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x436327
mov eax, 0xffffffc7
jmp 0x4363fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43633b
push eax
mov ecx, ebx
call fcn.00435ae0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00405100
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43636c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00405120
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435250
test eax, eax
mov dword [esp + 0x38], eax
je 0x43639f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475cf0
call fcn.00405300
mov eax, dword [esp + 0x38]
jmp 0x4363fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00436110
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4363e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00436130
mov esi, eax
test esi, esi
jne 0x436413
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00436110
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4363b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475cf0
call fcn.00405300
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x475cf0
call fcn.00405300
mov eax, esi
jmp 0x4363fe

Function at 0x439530
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x439590
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x439590
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x439590
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x439590
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4395d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43f510
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00469a68
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043eeb0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00469996
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00466257
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00466257
push 1
push 0
push 0
mov ecx, esi
call fcn.004661ff
push 1
push 0
push 1
mov ecx, esi
call fcn.004661ff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469ada
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f690
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00469a68
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043eeb0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00469996
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43f754
cmp dword [esp + 0x40], 1
jne 0x43f752
cmp ecx, eax
jge 0x43f754
mov eax, ecx
cmp eax, 0xc8
jge 0x43f760
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f510
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469ada
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43fed0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470f43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00464678
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00469d10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b26f
test eax, eax
je 0x43ffec
mov ecx, dword [esp + 0x3c]
call fcn.00469d3d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ffb0
push edi
mov ecx, esi
call fcn.004673a5
mov ecx, esi
call fcn.00440150
cmp dword [esp + 0x38], 1
jne 0x43ffe5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004674e0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442a10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442a43
push esi
call fcn.00445b00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442a3c
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 0x442ac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442ab2
mov eax, dword [esi + 8]
test eax, eax
je 0x442a67
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 0x442aae
cmp eax, 2
je 0x442ab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442a5a
cmp eax, 3
je 0x442a8d
cmp eax, 1
jne 0x442a5a
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 0x442a5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442a5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442af0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442ad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442af0
add esp, 4
pop esi
ret
Function at 0x44f3c0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44f40a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44f439
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44f47b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46546d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4654a5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463524
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004634fc
jmp 0x4654b1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466b5f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466ba1
call fcn.0046c65f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466ba1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466b98
xor eax, eax
jmp 0x466ba9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466baf
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cb8f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46cbbd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cbdb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046caf5
jmp 0x46cbdb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cbdb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046caf5
test edi, edi
mov eax, edi
jne 0x46cbc5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40a970
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x462454]
mov dword [ebp - 0x14], eax
mov dword [0x464568], 1
cmp dword [0x464564], 0
je 0x40a9aa
mov eax, dword [0x464564]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40aa50
call fcn.0040a880
mov dword [ebp - 0x880], 0
xor ecx, ecx
mov dword [ebp - 0x87c], ecx
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x874], ecx
lea edx, [ebp - 0x880]
push edx
mov eax, dword [0x464560]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x880]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.OBJMGR.dll_ObjMgr_CreateBrowserWindow]
add esp, 8
mov dword [0x464564], eax
lea ecx, [ebp - 0x870]
call fcn.0040c9a0
lea eax, [ebp - 0x5f4]
push eax
call fcn.0041c750
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40aa34
lea edx, [ebp - 0x870]
push edx
push 0
push 0x12dd
mov eax, dword [0x464564]
push eax
call dword [sym.imp.SQLUNIRL.dll__SendMessage_16]
cmp dword [0x464564], 0
je 0x40aa50
mov ecx, dword [0x464564]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040ad10
add esp, 8
cmp dword [0x46456c], 0
je 0x40aa69
mov eax, dword [0x46456c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40aa8a
mov ecx, dword [0x463d04]
push ecx
push 0x52000000
push 0x67
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403ad0
add esp, 0x14
mov dword [0x46456c], eax
cmp dword [0x462548], 0
jne 0x40aab0
push 0
mov eax, dword [0x46456c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [0x464564]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x464580], 0
je 0x40aad1
mov edx, dword [0x462548]
push edx
push 0xff1
mov ecx, dword [0x464580]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SToolBarCtrl::CheckButton_int__int_]
cmp dword [0x462548], 0
jne 0x40aaf7
mov eax, dword [0x464574]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40aaf7
mov ecx, dword [0x464574]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
xor edx, edx
cmp dword [0x462548], 0
sete dl
mov dword [0x462548], edx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_void___thiscall_SRect::constructor_int__int__int__int_]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x463cf4]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SRect::Height_void_const]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_int___thiscall_SRect::Width_void_const]
push eax
mov edx, dword [0x463cf4]
push edx
call fcn.00409970
add esp, 0xc
xor eax, eax
cmp dword [0x464564], 0
setne al
mov ecx, dword [ebp - 0x14]
call fcn.0044fa3b
mov esp, ebp
pop ebp
ret
Function at 0x40da00
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x462454]
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x110], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
cmp dword [0x46545c], 0
je 0x40da45
xor eax, eax
cmp dword [0x465460], 0
setne al
jmp 0x40db19
push 0x105
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40dada
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCR71.dll_strlen
add esp, 4
mov esi, 0x104
sub esi, eax
push 0x4554f0
call sub.MSVCR71.dll_strlen
add esp, 4
add eax, 1
cmp esi, eax
jbe 0x40dad8
push str.HHCTRL.OCX
lea edx, [ebp - 0x110]
push edx
call sub.MSVCR71.dll_strcat
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x46545c], eax
cmp dword [0x46545c], 0
je 0x40dad4
push str.HtmlHelpA
mov ecx, dword [0x46545c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x465460], eax
cmp dword [0x465460], 0
jne 0x40dad8
xor eax, eax
jmp 0x40db19
jmp 0x40dade
xor eax, eax
jmp 0x40db19
push 0x104
push 0
push 0x465468
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0x104
push 0x465468
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.HELP_
push 0x465468
call sub.MSVCR71.dll_strcat
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.0044fa3b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4105f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41060b
cmp dword [ebp + 0xc], 0
jne 0x41060f
xor eax, eax
jmp 0x410666
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410664
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x410664
mov eax, dword [ebp + 8]
jmp 0x410666
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410670
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x41068b
cmp dword [ebp + 0xc], 0
jne 0x41068f
xor eax, eax
jmp 0x4106e8
mov eax, dword [ebp + 8]
mov word [eax], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4106e6
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x4106e6
mov eax, dword [ebp + 8]
jmp 0x4106e8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x423860
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0x26
je 0x423877
cmp dword [ebp + 8], 0x28
jne 0x4238cc
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
push 1
push 0xd
mov ecx, dword [ebp - 0x10]
call fcn.004235d0
cmp dword [ebp - 8], 0
je 0x4238c7
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
push edx
mov edx, dword [ebp + 8]
push edx
push pe_nt_image_headers32
mov ecx, dword [ebp - 8]
call fcn.00427cb0
jmp 0x423957
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 9
jne 0x4238f2
mov byte [ebp - 1], 1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
test eax, eax
jge 0x4238f0
mov dword [ebp + 8], 8
jmp 0x423906
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004235d0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x423957
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0xd
mov ecx, dword [ebp - 0x10]
call fcn.004235d0
cmp dword [ebp - 0xc], 0
je 0x423949
push 0x3b00
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetParent_void_]
mov ecx, eax
call dword [sym.imp.SEMSFC.dll_public:_class_SWnd____thiscall_SWnd::GetDlgItem_unsigned_int_]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x423957
mov ecx, dword [ebp - 0xc]
call fcn.00402870
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4355b0
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x17f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43564e
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x1800], 0
je 0x4355f5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1800]
call fcn.0043cd40
mov dword [ebp - 0xc], eax
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.004385b0
cmp dword [ebp - 0xc], 0
jne 0x43564e
mov ecx, dword [ebp - 0x1c]
add ecx, 0x78
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLIsConnDead]
add esp, 4
test eax, eax
jne 0x43564e
mov ecx, dword [ebp - 0x1c]
call fcn.00438690
movzx edx, al
test edx, edx
jne 0x43564e
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x17f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43564e
mov edx, dword [ebp - 0x1c]
add edx, 0x78
push edx
call dword [sym.imp.SQLSVC.dll_QSQLCancel]
add esp, 4
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x17f8], 0
je 0x4356cb
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x88]
push edx
push SysReAllocString
call fcn.00436100
add esp, 8
push 0xa
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x17f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x435694
jmp 0x4356cb
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [ebp - 8], 0x3e8
jle 0x4356c9
mov byte [ebp - 1], 1
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x17f8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.004383a0
jmp 0x4356cb
jmp 0x435659
mov ecx, dword [ebp - 0x1c]
call fcn.0043c500
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4356eb
mov eax, dword [ebp - 0x1c]
add eax, 0x78
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc38
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x17fd]
test eax, eax
je 0x43575e
mov ecx, dword [ebp - 0x1c]
call fcn.00437d70
mov byte [ebp - 0xd], al
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1800], 0
je 0x43575e
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1800]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x43574a
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0043e760
mov dword [ebp - 0x20], eax
jmp 0x435751
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1800], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret