joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c75
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x42e07c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428b9c
lea eax, [esp + 0x7c]
push esi
push eax
call fcn.00414f26
push 0x428ba0
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00414f26
add esp, 0x18
xor esi, esi
push esi
push 4
push 2
push esi
push esi
push 0x40000000
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401d3a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push eax
push 4
lea eax, [ebp + 8]
push eax
push ebx
call esi
test eax, eax
je 0x401d33
push 4
lea eax, [ebp + 8]
push eax
lea edi, [esp + 0x70]
lea ecx, [esp + 0x18]
call fcn.00423190
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
mov eax, edi
push eax
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x401d3c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004144e4
mov esp, ebp
pop ebp
ret

Function at 0x401d51
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x42e07c]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428b9c
lea eax, [esp + 0x84]
push esi
push eax
call fcn.00414f26
push 0x428ba0
lea eax, [esp + 0x90]
push esi
push eax
call fcn.00414f26
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401e45
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e3b
push edi
call fcn.0041492c
pop ecx
push 0
mov esi, eax
lea eax, [esp + 0x18]
push eax
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 4
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00414500
add esp, 0xc
push 4
lea eax, [esp + 0x10]
push eax
lea edi, [esp + 0x78]
lea ecx, [esp + 0x20]
call fcn.00423190
xor eax, eax
mov cl, byte [esp + eax + 0x70]
cmp cl, byte [esi + eax + 4]
jne 0x401e3b
inc eax
cmp eax, 0x10
jl 0x401e25
mov eax, dword [esp + 0xc]
jmp 0x401e47
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.004144e4
mov esp, ebp
pop ebp
ret
Function at 0x40301e
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x42e07c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xa0]
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x403058
push eax
call fcn.00414d4a
pop ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jne 0x4030da
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x428c28
push 0x12e
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x403223
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403223
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x403223
push dword [esp + 0x14]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [esp + 0x18], eax
call fcn.0041492c
pop ecx
push dword [esp + 0x14]
mov esi, eax
push dword [esp + 0x14]
push esi
call fcn.00414500
add esp, 0xc
jmp 0x403150
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x403223
mov ecx, dword [edi + 0x14]
call fcn.00424760
mov ecx, dword [edi + 0x84]
push ebx
push ebx
mov dword [esp + 0x1c], eax
call fcn.00424760
add eax, 0x2c
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x14]
call fcn.0041492c
pop ecx
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x403223
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
push dword [edi + 0x80]
add eax, 0x10
push dword [edi + 0x7c]
mov dword [esp + 0x18], eax
push str._cn__d_cxy__dhzr
lea eax, [esp + 0x1c]
call fcn.004023e7
add esp, 0xc
lea eax, [edi + 0x6c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x10
pop ecx
call fcn.00401e5b
pop ecx
pop ecx
lea ecx, [esp + 0x10]
call fcn.00402c96
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401159
mov ecx, dword [edi + 0x14]
call fcn.00424760
mov ebx, eax
push ebx
call fcn.0041492c
pop ecx
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, eax
mov dword [edi + 0xa0], eax
call fcn.00424a10
pop ecx
push dword [edi + 0x14]
lea ecx, [esp + 0x24]
push dword [edi + 0xa0]
lea edi, [esp + 0x84]
call fcn.00423190
mov dword [esp + 0x18], 1
xor eax, eax
mov cl, byte [esp + eax + 0x7c]
mov edx, dword [esp + 0x1c]
cmp cl, byte [edx + eax + 0x1c]
jne 0x40320b
inc eax
cmp eax, 0x10
jb 0x4031f5
jmp 0x403210
and dword [esp + 0x18], 0
push esi
call fcn.00414d4a
mov eax, dword [esp + 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.00401159
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00401159
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004144e4
mov esp, ebp
pop ebp
ret 4
Function at 0x403249
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
mov ebx, ecx
xor edi, edi
push eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x428b9c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00414f26
add esp, 0xc
push str.UdSafety.dll
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00414f26
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403386
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x428c28
push 0x12c
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x214], eax
cmp eax, edi
je 0x403386
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x403386
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x403380
push dword [ebp - 0x214]
mov eax, dword [ebx]
push edi
mov dword [ebp - 0x21c], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea esi, [eax - 4]
push esi
call fcn.0041492c
pop ecx
push esi
lea esi, [ebx + 4]
mov ebx, eax
mov ecx, str.0123456789ABCDEF
call fcn.00424a10
pop ecx
push edi
push 4
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403379
push edi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x21c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00414d4a
pop ecx
mov ebx, dword [ebp - 0x220]
cmp dword [ebx + 0xc], edi
jne 0x403399
push str.UdSafety.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x403412
push str.InstallHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x403412
call eax
test eax, eax
js 0x403412
cmp byte [ebx + 0x62], 2
jb 0x403408
mov eax, dword [ebx + 0x94]
cmp eax, edi
je 0x4033e2
cmp dword [eax - 0xc], edi
jle 0x4033e2
push ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.004022eb
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
call fcn.0040351e
mov eax, dword [ebx + 0x98]
cmp eax, edi
je 0x403408
cmp dword [eax - 0xc], edi
jle 0x403408
push ecx
add eax, 0xfffffff0
mov esi, esp
call fcn.004022eb
add eax, 0x10
mov dword [esi], eax
mov eax, ebx
call fcn.00403567
mov dword [ebp - 0x218], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret
Function at 0x40406b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4040cf
cmp dword [ebp + 0xc], 1
je 0x4040a7
cmp dword [ebp + 0xc], 2
je 0x4040a7
push 0xd
pop eax
jmp 0x4040cf
mov eax, dword [ebp - 4]
test edi, edi
je 0x4040c9
test eax, eax
je 0x4040c4
test al, 1
jne 0x4040a2
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4040c9
jmp 0x4040a2
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4040d3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00404024
mov edi, eax
cmp edi, ebx
je 0x404141
cmp dword [ebp - 0x218], ebx
je 0x40413a
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x404204
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404165
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004040d3
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x4041ce
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], pe_nt_image_headers32
call edi
test eax, eax
je 0x404149
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x4041b0
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x4041ea
mov esi, eax
call fcn.004039ec
jmp 0x4041f0
cmp dword [ebp - 0x218], ebx
je 0x4041e2
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x404204
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x404202
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret 4
Function at 0x4044e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x404534
call fcn.004038fa
mov esi, eax
jmp 0x4045f9
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40454d
call fcn.004038fa
jmp 0x4045eb
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x404543
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x40457d
mov esi, 0x8007000e
jmp 0x4045ed
push 2
push eax
call fcn.00413e63
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x40459d
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00412c7c
jmp 0x4045a9
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x404576
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x404543
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x414]
call fcn.00404f9e
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x404612
lea eax, [ebp - 0x408]
call fcn.0040e312
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret 0xc
Function at 0x40572f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00414cd0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405792
cmp dword [ebp - 0x114], 5
jae 0x40578e
cmp dword [ebp - 0x114], 4
jne 0x405792
cmp dword [ebp - 0x110], 0x5a
jb 0x405792
xor eax, eax
jmp 0x405795
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144e4
leave
ret
Function at 0x40a217
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
lea esi, [ebx + 0x1b8]
call fcn.00405b7e
cmp byte [ebx + 0x24e], 2
jb 0x40a288
lea eax, [ebx + 0x280]
lea edi, [ebx + 0x1dc]
call fcn.00402b24
lea eax, [ebx + 0x284]
lea edi, [ebx + 0x1e0]
call fcn.00402b24
jmp 0x40a2a7
mov edi, 0x42899c
push edi
lea eax, [ebx + 0x1dc]
push eax
call fcn.004020c5
push edi
lea eax, [ebx + 0x1e0]
push eax
call fcn.004020c5
push 1
push 0
push dword [ebx + 0x1b8]
mov dword [ebx + 0x1d8], 3
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00401295
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004144e4
leave
ret
Function at 0x40adb3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x320], 0
je 0x40ae13
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x290]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0x2f4]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
and dword [esi + 0x320], 0
mov esi, dword [esi + 0x1e8]
test esi, esi
je 0x40ae13
push 1
push 0
push dword [esi + 4]
mov byte [esi + 0x70], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
pop esi
ret
Function at 0x40b041
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x2c]
mov ebx, esi
mov dword [ebp - 0x1cc], eax
call fcn.0040a217
mov eax, dword [esi + 0x1b8]
mov dword [esi + 0x2c], eax
mov al, byte [esi + 0x24f]
cmp al, 1
jne 0x40b0dc
lea edi, [ebp - 0x68]
call fcn.0040bc90
push 0xb
pop ecx
add esi, 0x248
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
lea eax, [esi + 0x27c]
lea edi, [ebp - 0x14]
call fcn.00402b24
lea eax, [esi + 0x274]
lea edi, [ebp - 0x10]
call fcn.00402b24
push dword [esi + 4]
lea ebx, [ebp - 0x68]
call fcn.0040df3e
test eax, eax
jne 0x40b183
mov eax, ebx
call fcn.0040bcc1
xor eax, eax
jmp 0x40b21e
cmp word [esi + 0x252], 1
jne 0x40b0ea
cmp al, 2
jmp 0x40b0f0
cmp al, 2
je 0x40b087
cmp al, 3
jne 0x40b1fb
lea edi, [ebp - 0x1c0]
call fcn.0040bce9
lea eax, [esi + 0x288]
lea edi, [ebp - 0x140]
call fcn.00402b24
lea eax, [esi + 0x274]
lea edi, [ebp - 0x13c]
call fcn.00402b24
lea eax, [esi + 0x208]
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0x10
pop ecx
call fcn.00401e5b
pop ecx
pop ecx
lea edi, [ebp - 0x144]
call fcn.00402b24
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00401159
lea eax, [esi + 0x27c]
lea edi, [ebp - 0x138]
call fcn.00402b24
push dword [esi + 4]
lea ebx, [ebp - 0x1c0]
call fcn.0040def2
test eax, eax
jne 0x40b1e0
mov eax, ebx
call fcn.0040bd33
jmp 0x40b0d5
xor ebx, ebx
cmp byte [esi + 0x21b], bl
je 0x40b1d6
lea edi, [esi + 0x68]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x40b1bf
lea ecx, [ebp - 0x1c4]
mov dword [ebp - method.CGetHDSerial.virtual_0], vtable.CGetHDSerial.0
call fcn.00402991
call fcn.00402b24
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
call fcn.00401159
push ebx
push ebx
push esi
push 0x40a60c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x68]
call fcn.0040bcc1
jmp 0x40b1fb
lea eax, [ebp - 0x134]
push eax
lea eax, [esi + 0x68]
push eax
call fcn.004020c5
lea eax, [ebp - 0x1c0]
call fcn.0040bd33
mov eax, dword [ebp - 0x1cc]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x1b8]
mov dword [esi + 0x2c], eax
call edi
push 5
push dword [esi + 0x2c]
call edi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144e4
leave
ret
Function at 0x40b22d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
push 0
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040a217
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00405a0e
mov esi, eax
mov eax, dword [esi + 8]
xor ecx, ecx
lea edx, [ebx + 0x34]
test eax, eax
jle 0x40b26e
mov edi, dword [esi + 4]
cmp dword [edi], edx
je 0x40b271
inc ecx
add edi, 4
cmp ecx, eax
jl 0x40b262
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x40b2a5
test ecx, ecx
js 0x40b2a5
cmp ecx, eax
jge 0x40b2a5
lea edx, [eax - 1]
cmp ecx, edx
je 0x40b2a2
mov edx, dword [esi + 4]
sub eax, ecx
shl eax, 2
lea ecx, [edx + ecx*4]
lea edx, [eax - 4]
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.0040243e
add esp, 0x10
dec dword [esi + 8]
mov eax, dword [esi + 0x14]
xor ecx, ecx
lea edx, [ebx + 0x38]
test eax, eax
jle 0x40b2c0
mov edi, dword [esi + 0x10]
cmp dword [edi], edx
je 0x40b2c3
inc ecx
add edi, 4
cmp ecx, eax
jl 0x40b2b4
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x40b2f7
test ecx, ecx
js 0x40b2f7
cmp ecx, eax
jge 0x40b2f7
lea edx, [eax - 1]
cmp ecx, edx
je 0x40b2f4
mov edx, dword [esi + 0x10]
sub eax, ecx
shl eax, 2
lea ecx, [edx + ecx*4]
lea edx, [eax - 4]
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.0040243e
add esp, 0x10
dec dword [esi + 0x14]
push dword [0x4316a4]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp byte [ebx + 0x219], 0
jne 0x40b334
mov eax, dword [ebx + 0x1e8]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x1ec]
mov eax, esi
call fcn.004034d6
mov edi, dword [ebx + 0x2a4]
mov eax, esi
call fcn.004034d6
call fcn.00403427
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x40b525
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
xor ecx, ecx
push edi
xor edi, edi
cmp dword [ebx + 0x320], edi
sete cl
mov dword [ebx + 0x320], ecx
cmp ecx, edi
je 0x40b689
cmp dword [0x4316a4], edi
jne 0x40b57e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x4099d4
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4316a4], eax
lea eax, [ebx + 0x2f4]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
call esi
push 1
mov dword [ebp - 0x54], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx + 0x1e8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push dword [eax + 4]
call esi
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
lea esi, [ebx + 0x324]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], edi
mov dword [ebx + 0x328], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 0x2c
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], 1
mov dword [ebx + 0x32c], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
lea edi, [ebp - 0x34]
add eax, dword [ebp - 0x58]
mov dword [ebx + 0x330], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebx + 4]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0
push 0x26
push 0xf2
push 8
push 8
push dword [ebx + 4]
push dword [ebx + 0x290]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [ebx + 0x290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x290]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0x9c4
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
xor edi, edi
jmp 0x40b6ba
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push dword [ebx + 0x290]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebx + 0x2f4]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, dword [ebx + 0x1e8]
push 1
push edi
push dword [ebx + 4]
mov byte [ebx + 0x70], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004144e4
leave
ret