joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b1a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b404
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x48b207
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0048ac6c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dd68
cmp al, 1
jne 0x48b207
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0048af84
test al, al
je 0x48b393
cmp dword [ebp - 8], 0
jge 0x48b225
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0048ac6c
mov eax, dword [ebp - 0x210]
call fcn.00404924
cmp ebx, eax
jge 0x48b26f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0048ac6c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x51bd74]
and eax, 0xff
bt dword [edx], eax
jae 0x48b26f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x48b283
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0048b180
cmp ebx, dword [ebp - 8]
je 0x48b385
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x48b2af
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a84
and eax, 0x7f
movzx eax, word [eax*2 + 0x51b3c4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x48b372
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a84
and eax, 0x7f
movzx eax, word [eax*2 + 0x51b3c4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00484fa0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a84
and eax, 0x7f
movzx eax, word [eax*2 + 0x51b3c4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00484fa0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b379
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x48b3e6
cmp dword [ebp - 8], 0
jge 0x48b39e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0048ac6c
mov eax, dword [ebp - 0x218]
call fcn.00404924
cmp eax, dword [ebp - 8]
jg 0x48b3d8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0048ac6c
mov eax, dword [ebp - 0x21c]
call fcn.00404924
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0048b180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b40b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404688
ret
Function at 0x49370c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x493726
add esp, 0xfffffff0
call fcn.00403bf4
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4937c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.0040384c
mov dword [edi + 0x20], esi
mov dl, 1
mov eax, dword [0x442338]
call fcn.00443ad0
mov esi, eax
mov dword [edi + 0x10], esi
mov eax, edi
call fcn.00493bb4
mov edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [edi + 0x10]
mov dword [eax + 0xc], edi
mov dword [eax + 8], 0x493a58
mov dl, 1
mov eax, dword [0x41bd64]
call fcn.0040384c
mov dword [edi + 4], eax
lea eax, [ebp - 0x10]
call fcn.00419314
lea edx, [ebp - 0x10]
lea eax, [edi + 0x30]
call fcn.00411324
mov byte [edi + 0x28], 1
mov dl, byte [0x4937e8]
mov ax, 0x2e
call fcn.00473618
mov word [edi + 0x26], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4937ca
lea eax, [ebp - 0x10]
call fcn.00410ffc
ret

Function at 0x4948ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x4948c4
push 5
mov eax, ebx
call fcn.00484fa0
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.00484fa0
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x497c5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x497c94]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x497c72
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x497c81
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x497c90
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4b4364
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x2ec], 0
jne 0x4b43b0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x48ec38]
call fcn.00494aec
mov esi, eax
mov dword [ebx + 0x2ec], esi
xor edx, edx
mov eax, esi
call fcn.0047e634
mov edx, ebx
mov eax, dword [ebx + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
mov eax, dword [ebx + 0x2ec]
call fcn.00484fa0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x2ec]
pop esi
pop ebx
ret

Function at 0x4b6154
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x308], 0
jne 0x4b61f4
mov esi, dword [ebx + 0x338]
test esi, esi
je 0x4b6180
mov ecx, ebx
mov dl, 1
mov eax, esi
call dword [eax + 0x2c]
mov dword [ebx + 0x308], eax
jmp 0x4b6194
mov ecx, ebx
mov dl, 1
mov eax, dword [0x48ee68]
call fcn.0049567c
mov dword [ebx + 0x308], eax
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.0047e634
mov dl, 1
mov eax, dword [ebx + 0x308]
call fcn.004850e0
mov edx, ebx
mov eax, dword [ebx + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
mov eax, dword [ebx + 0x308]
call fcn.00484fa0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x308]
mov dword [eax + 0xe4], ebx
mov dword [eax + 0xe0], 0x4b6228
mov dword [eax + 0x2ac], ebx
mov dword [eax + 0x2a8], 0x4b6200
mov eax, dword [ebx + 0x308]
pop esi
pop ebx
ret
Function at 0x4f9e94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x66c], 0
jne 0x4f9f2e
mov ecx, ebx
mov dl, 1
mov eax, dword [0x48ee68]
call fcn.0049567c
mov esi, eax
mov dword [ebx + 0x66c], esi
mov byte [esi + 0x2b8], 1
xor edx, edx
mov eax, esi
call fcn.0047e634
mov dl, 1
mov eax, dword [ebx + 0x66c]
call fcn.004850e0
mov edx, ebx
mov eax, dword [ebx + 0x66c]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push 0
mov eax, dword [ebx + 0x66c]
call fcn.00484fa0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x66c]
mov dword [eax + 0xe4], ebx
mov dword [eax + 0xe0], 0x4f9f38
mov dword [eax + 0x1dc], ebx
mov dword [eax + 0x1d8], 0x4f9f8c
mov dword [eax + 0x1e4], ebx
mov dword [eax + 0x1e0], 0x4f9fa0
mov eax, dword [ebx + 0x66c]
pop esi
pop ebx
ret
Function at 0x4fb51c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.004a510c
test al, al
jne 0x4fb6c8
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x220]
test al, al
je 0x4fb556
cmp byte [0x51cd42], 0
jne 0x4fb556
mov byte [ebx + 0x484], 1
cmp byte [ebx + 0x484], 0
je 0x4fb565
cmp dword [esi + 4], 0
je 0x4fb592
test byte [ebx + 0x55], 1
jne 0x4fb584
mov eax, ebx
call fcn.00481c4c
test eax, eax
jne 0x4fb584
mov edx, esi
mov eax, ebx
call fcn.00486cf4
jmp 0x4fb6c8
mov edx, esi
mov eax, ebx
call fcn.00482bd0
jmp 0x4fb6c8
push 0
call sub.user32.dll_GetDC
mov edi, eax
mov eax, ebx
call fcn.0047e15c
push eax
mov eax, ebx
call fcn.0047e118
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4fb6c1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00484fa0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.0048a72c
push eax
mov ecx, eax
mov edx, 0x14
mov eax, ebx
call fcn.0047f8e8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004fb51c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x60]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x54]
push eax
lea edx, [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x50]
push eax
mov eax, ebx
call fcn.00484fa0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb6c8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5191a8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
xor eax, eax
push ebp
push 0x519452
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x519223
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x28]
call fcn.0050f3e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51922d
xor eax, eax
push ebp
push 0x519277
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
lea eax, [ebp - 0x28]
call fcn.005125fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x519281
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00402eb8
mov eax, 0x20
call fcn.00402af4
mov dword [ebp - 0x44], eax
call fcn.00402f20
lea eax, [ebp - 0x4c]
call fcn.005190d8
push dword [ebp - 0x4c]
mov eax, 0xf423f
call fcn.004031f4
lea edx, [ebp - 0x50]
call fcn.0040946c
push dword [ebp - 0x50]
push 0x51946c
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004049e4
mov edx, 0x40
mov eax, dword [ebp - 0x3c]
call fcn.004097f0
mov dword [ebp - 0x38], eax
xor edx, edx
push ebp
push 0x5193f2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, eax
sub edx, 4
xor ecx, ecx
mov eax, dword [ebp - 0x38]
call fcn.004098cc
lea edx, [ebp - 0x30]
mov ecx, 4
mov eax, dword [ebp - 0x38]
call fcn.00409874
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
call fcn.004098cc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
mov eax, dword [ebp - 0x38]
call fcn.00409874
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
xor ecx, ecx
mov eax, dword [ebp - 0x38]
call fcn.004098cc
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax + 4]
mov eax, ebx
call fcn.00402af4
mov dword [ebp - 0x48], eax
xor eax, eax
push ebp
push 0x5193c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 0x48]
mov edx, esi
mov ecx, ebx
mov eax, dword [ebp - 0x38]
call fcn.00409874
mov eax, dword [ebp - 0x40]
call fcn.00409848
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x5193ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, ebx
mov eax, dword [ebp - 0x34]
call fcn.004098a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5193b2
mov eax, dword [ebp - 0x34]
call fcn.00409910
ret
Function at 0x4012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012e0
cmp esi, eax
jb 0x4012fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403170
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x4773e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a6eb0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x80c]
lea eax, [ebp + 0x810]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
mov ebx, 1
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
add esp, 0x14
test eax, eax
jle 0x40327d
lea eax, [ebp]
push eax
push 0x481b1c
lea ecx, [ebp - 0x14]
push 0x481b0c
push ecx
call fcn.00402e80
add esp, 0x10
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004027f0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x403246
test ecx, ecx
jge 0x40323b
push 0x80070057
call fcn.00401120
movzx eax, word [eax]
cmp ax, 0xa
jne 0x403246
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x403273
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00402e20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40329d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004764f6
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x406520
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406596
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x406565
cmp eax, 2
jne 0x406581
mov eax, dword [esp + 0x14]
test esi, esi
je 0x406590
test eax, eax
je 0x40658b
test al, 1
jne 0x406581
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406590
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x407e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4778e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 3
lea eax, [esp + 0x10]
push eax
add ecx, 0x40
mov dword [esp + 0x30], 0
call fcn.004027f0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
mov byte [esp + 0x28], 1
test ecx, ecx
jge 0x407e96
push 0x80070057
call fcn.00401120
cmp ecx, 1
movzx edx, word [eax]
mov dword [esp + 0x10], edx
jge 0x407eac
push 0x80070057
call fcn.00401120
cmp ecx, 2
movzx edx, word [eax + 2]
mov dword [esp + 0x14], edx
jge 0x407ec3
push 0x80070057
call fcn.00401120
movzx ecx, word [eax + 4]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi - 0xc]
test ecx, ecx
jge 0x407ee0
push 0x80070057
call fcn.00401120
cmp ecx, 1
movzx edx, word [esi]
jge 0x407ef2
push 0x80070057
call fcn.00401120
cmp ecx, 2
movzx ebx, word [esi + 2]
jge 0x407f05
push 0x80070057
call fcn.00401120
movzx ecx, word [esi + 4]
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x10]
cmp cl, dl
jle 0x407f79
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4
jne 0x407fce
mov cl, byte [esp + 0x14]
cmp cl, bl
jle 0x407f9a
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407f2c
jne 0x407fba
mov cl, byte [esp + 0x18]
cmp byte [esp + 0x1c], cl
lea ecx, [esp + 0xc]
jl 0x407fbe
call fcn.00450df0
lea ecx, [esp + 0x30]
call fcn.00450df0
jmp 0x407f60
lea ecx, [esp + 0xc]
call fcn.00450df0
lea ecx, [esp + 0x30]
call fcn.00450df0
jmp 0x408017
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407fef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408017
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x408970
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47a6d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
call edx
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], 0
test eax, eax
jne 0x4089c5
push 0x80004003
call fcn.00467970
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [esp + 0xc]
cmp eax, 0x40
je 0x408a38
cmp eax, 1
je 0x408a38
push eax
lea ecx, [esp + 0xc]
push 0x4820c8
push ecx
call fcn.00402e80
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
push eax
lea ecx, [esp + 0xc]
push 0x4820c8
push ecx
call fcn.00402e80
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408a7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x40e990
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e9c9
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x40e9d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x4a6eb0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
mov ebp, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push 0x2001f
mov dword [ebx], 0
mov ecx, dword [str.SOFTWARESamsungKiesDeviceDB]
push 0
push ecx
push SysReAllocString
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40eb09
push esi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x2c]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x40ea76
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004764f6
add esp, 0x214
ret
test ebp, ebp
jne 0x40ea9a
mov edx, dword [esp + 0x10]
pop esi
pop ebp
mov dword [ebx], edx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004764f6
add esp, 0x214
ret
xor esi, esi
cmp dword [esp + 0x10], esi
push edi
jle 0x40eafa
cmp esi, dword [esp + 0x22c]
jge 0x40eafa
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
jne 0x40eb20
push 0xa
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_wcstol]
mov dword [ebp + esi*4], eax
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x14]
mov dword [ebx], esi
jl 0x40eaa3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
xor ecx, esp
call fcn.004764f6
add esp, 0x214
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40eb07