joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f8f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x406122
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x200
lea eax, [ebp - 0xc08]
push eax
push dword [ebp + 0x14]
call fcn.0042c168
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.00449c78
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x806]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
inc eax
cmp eax, 0x124
jl 0x406032
push str.CStatusText::PrintfStatusText
push 0x58
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044fe2e
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x51adac], 4
jl 0x406052
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.0044fe2e
add esp, 0x10
push edi
lea eax, [ebp - 0x808]
push eax
push dword [esi + ebx*4 + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp word [ebp - 0x808], 0
mov dword [esi + ebx*4 + 0x2c], eax
jne 0x4060aa
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x4060aa
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x4060a2
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x4060a2
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x40608d
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x4060e9
cmp dword [0x51adac], 5
jl 0x4060d2
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.0044fe2e
add esp, 0x10
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406107
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x4551b0
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
pop ebx
je 0x406122
push 0x405f1f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
leave
ret

Function at 0x40669b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x4066c4
dec eax
je 0x4066bf
dec eax
dec eax
jne 0x4066bf
push 2
pop eax
jmp 0x406708
xor eax, eax
inc eax
jmp 0x406708
add esi, 8
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x10], ax
push 0x104
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x456a4c
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
neg eax
sbb eax, eax
and eax, 2
inc eax
pop esi
leave
ret 4
Function at 0x40670d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x456c50]
mov dword [ebp - 8], eax
mov eax, dword [0x456c54]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
push 0x41
mov word [esi], ax
pop eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x406771
cmp eax, 3
jbe 0x40674c
cmp eax, 5
jne 0x406771
push 0x34
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x406771
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40677e
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x406733
jmp 0x406789
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x40678e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
cmp dword [esi + 0xc], edi
jne 0x4067c8
cmp dword [esi + 0x840], 0xffffffff
jne 0x4067c8
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x4068ee
mov word [esi], ax
inc eax
jmp 0x4068ee
push ebx
mov ebx, 0x28a0
push ebx
call fcn.00449e38
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00449c78
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x4068f2
cmp dword [0x4ab688], eax
je 0x4068a6
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.0044fe2e
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x4ab688]
test eax, eax
je 0x406881
cmp dword [0x51adac], 3
jl 0x40686c
push dword [ebp - 4]
call fcn.00428ba7
mov edi, eax
test edi, edi
je 0x406858
push edi
push str._OK__mp_s
push 3
call fcn.0044fe2e
push edi
call fcn.00449e73
add esp, 0x10
jmp 0x40686c
push 0x4550e0
push str._OK__mp_s
push 3
call fcn.0044fe2e
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00449c35
add esp, 0xc
jmp 0x4068d1
call fcn.0044cf74
push eax
push str._err_S
push 3
call fcn.0044fe2e
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x4069ac
push dword [ebp - 4]
push edi
call fcn.0040670d
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.0044fe2e
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00449c35
add esp, 0x18
test eax, eax
je 0x40689f
push ebx
push dword [ebp - 4]
push esi
call fcn.00449ce2
push dword [ebp - 4]
call fcn.00449e73
xor eax, eax
add esp, 0x10
inc eax
pop ebx
pop edi
pop esi
leave
ret
lea eax, [esi + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x40689f
mov esi, 0x456c60
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 0x41
pop eax
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406986
mov eax, dword [ebp - 0x10]
add eax, 0x428
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406986
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.0044fe2e
lea eax, [ebp - 0xc]
push eax
push 0x456c58
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [esi + 0x930]
push eax
push dword [ebp - 4]
call fcn.00449c35
add esp, 0x24
test eax, eax
jne 0x406996
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x406916
jmp 0x40689f
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.00449ce2
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.00449e73
pop ecx
mov eax, esi
jmp 0x4068ed
Function at 0x4069bc
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x406b70
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406b70
mov eax, dword [0x50eff0]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.0044fe2e
add esp, 0xc
push 0x20
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x101
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x50efd4], ebx
jne 0x406b70
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x50eff0]
jne 0x406b70
cmp eax, ebx
je 0x406b14
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x24c]
push eax
push str._Label_s_Serial_08X_FileSystem_s
push 3
call fcn.0044fe2e
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x50eff0]
jne 0x406b0f
push 0x456ce8
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x3574], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406abd
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x406abd
cmp dword [ebp - 4], 0xff5
jae 0x406aa5
push 0x456ce0
jmp 0x406ab3
cmp dword [ebp - 4], 0xfff5
jae 0x406abd
push 0x456cd8
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 8]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [esi + 0x32e4]
push str._04X__04X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [esi + 0x32f8]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x34fa]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x32e0], eax
mov byte [esi + 0x353a], bl
xor eax, eax
inc eax
jmp 0x406b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3574], eax
call fcn.0044cf52
push eax
push str._err_s
push 3
call fcn.0044fe2e
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x3574], 0x80310000
mov word [esi + 0x32e4], ax
mov word [esi + 0x32f8], ax
mov word [esi + 0x34fa], ax
mov dword [esi + 0x32e0], ebx
jne 0x406b70
push str.locked_by_BitLocker
add esi, 0x353a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407137
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x420
cmp word [eax], 0x5c
jne 0x40714c
add eax, 8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.004288cd
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x407189
leave
ret 0xc
push esi
push 0x456e7c
push 0
lea ecx, [ebp - 0x10]
call fcn.00447aeb
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x4071bd
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 8]
push dword [eax + esi*8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4071c1
inc esi
cmp esi, dword [ebp - 4]
jl 0x4071a0
xor esi, esi
jmp 0x4071dc
mov eax, dword [ebp - 8]
push dword [eax + esi*8 + 4]
push 0x456e6c
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
inc esi
lea ecx, [ebp - 0x10]
call fcn.0044799c
mov eax, esi
pop esi
jmp 0x407185
Function at 0x407bba
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 0x1154]
push dword [esi]
mov ecx, dword [0x510c44]
call fcn.0040121c
test eax, eax
je 0x407caa
mov esi, dword [esi]
mov ecx, dword [0x510c44]
push ebx
push ebp
push edi
push esi
call fcn.00404b65
xor ebx, ebx
push ebx
push dword [esi + 0x10]
lea edi, [esi + 0x3a74]
push edi
lea eax, [esi + 0x3a70]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x407c0d
mov dword [esi + 8], ebp
jmp 0x407c16
mov dword [edi], 0x2d
mov dword [esi + 8], ebx
cmp dword [esi + 8], ebx
je 0x407ca7
cmp dword [esi + 0x3abc], ebx
jne 0x407c2f
cmp dword [esi + 0x3ab8], ebx
je 0x407ca7
lea edi, [esi + 0x3ab0]
cmp dword [edi], 0xffffffff
jne 0x407c48
lea eax, [esi + 0xc30]
push eax
call fcn.0042f5de
mov dword [edi], eax
cmp dword [esi + 0x3ab8], ebx
je 0x407ca7
cmp dword [esi + 0x3b84], ebx
jne 0x407c6e
mov eax, dword [0x510c44]
push dword [esi + 0x10]
mov ecx, dword [eax + 8]
call fcn.0040635d
mov dword [esi + 0x3b84], eax
mov eax, dword [esi + 0x3b84]
cmp eax, ebx
je 0x407c8a
pop edi
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0x3b84]
pop ebp
pop ebx
pop esi
jmp fcn.0040678e
push dword [esi + 0x10]
lea eax, [esi + 0xc30]
push eax
mov eax, dword [0x510c44]
mov ecx, dword [eax + 8]
call fcn.004071fa
mov dword [esi + 0x3b84], eax
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x40de94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 1
jne 0x40b961
cmp dword [esi + 8], 0
je 0x40b961
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x1184]
push eax
lea eax, [esi + 0xd90]
push eax
push dword [esi + 8]
push dword [0x50e684]
call fcn.0042be27
push eax
push esi
push str.TV_NODE_INFO::SetItemColors____0x_08Ix___s___s__age_u
push 4
call fcn.0044fe2e
mov eax, dword [esi + 8]
add esp, 0x18
cmp eax, dword [0x50efe8]
jne 0x40b91e
cmp dword [0x50e738], 0
je 0x40b960
call edi
mov ecx, dword [0x50e730]
mov edx, dword [0x50e734]
sub eax, dword [esi + 0x1184]
add edx, ecx
cmp eax, edx
jae 0x40b959
push str.set_g_AnyTreeItemColoredtrue
push 5
mov dword [0x50e724], 1
call fcn.0044fe2e
pop ecx
pop ecx
pop edi
mov ecx, esi
pop esi
jmp fcn.00407aab
and dword [esi + 0x1188], 0
pop edi
pop esi
ret
push esi
mov esi, ecx
push dword [esi + 0x828]
push str.StartArrivalHighlight__s_
push 4
call fcn.0044fe2e
mov eax, dword [0x50e730]
mov ecx, dword [0x50e734]
add esp, 0xc
add ecx, eax
je 0x40df59
push edi
mov dword [esi + 0x1188], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1184], eax
cmp dword [0x51adac], 4
mov edi, fcn.0043c947
jl 0x40df0a
push dword [esi + 0x828]
push dword [esi + 8]
push edi
push dword [0x50e730]
push esi
push dword [0x50e67c]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.0044fe2e
add esp, 0x20
push edi
push dword [0x50e730]
push esi
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x50e73c], 0
pop edi
je 0x40df51
push dword [esi + 8]
call fcn.00436704
test eax, eax
je 0x40df51
cmp dword [esi + 0xde0], 0
je 0x40df51
mov ecx, esi
call fcn.00407d8d
test eax, eax
je 0x40df51
push 1
mov ecx, esi
call fcn.0040bed6
mov ecx, esi
pop esi
jmp 0x40b8be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x50e67c]
call fcn.0043c947
pop esi
ret
Function at 0x40df76
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 1
jne 0x40e064
lea eax, [esi + 0xd90]
push eax
push dword [esi + 0x828]
push esi
push str.StartRemovalHighlight____pTNI0x_08Ix____s___s
push 4
call fcn.0044fe2e
mov eax, dword [0x50e730]
mov ecx, dword [0x50e734]
add esp, 0x14
add ecx, eax
je 0x40e04c
push edi
mov dword [esi + 0x1188], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1184], eax
cmp dword [0x51adac], 4
mov edi, fcn.0043c947
jl 0x40dffd
push dword [esi + 0x828]
push dword [esi + 8]
push edi
push dword [0x50e730]
push esi
push dword [0x50e67c]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.0044fe2e
add esp, 0x20
push edi
push dword [0x50e730]
push esi
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x50e73c], 0
pop edi
je 0x40e044
push dword [esi + 8]
call fcn.00436704
test eax, eax
je 0x40e044
cmp dword [esi + 0xde0], 0
je 0x40e044
mov ecx, esi
call fcn.00407d8d
test eax, eax
je 0x40e044
push 1
mov ecx, esi
call fcn.0040bed6
mov ecx, esi
pop esi
jmp 0x40b8be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x50e67c]
call fcn.0043c947
pop esi
ret

Function at 0x40f5cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x459814
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40f607
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40f634
mov eax, 0x7fff
cmp ebx, eax
ja 0x40f617
mov eax, ebx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x40f5ff
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40f60c
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f64f
Capabilities:
Manipulate console buffer
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40f6fe
push str.AttachConsole
call fcn.004285a5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f704
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40f704
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40f704
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40f6fe
cmp word [ebp - 0x1c], 0
je 0x40f6fe
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40f6bc
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4c3730
push esi
mov word [0x4a5098], ax
call fcn.00449c78
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x1a]
add esp, 0xc
mov word [ebp - 2], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40f714
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40f6fe
push 0x10
push dword [0x4a5acc]
push str.Error:_no_stdout_handle
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x411a85
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str._r_n____________________________HID_Descriptor______________________r_n
call fcn.0040fd32
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040fd32
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040fd32
movzx eax, word [esi + 2]
mov ecx, eax
mov edi, eax
and ecx, 0xff
push ecx
sar edi, 8
push edi
push eax
push str.bcdHID___________________:_0x_04X__HID_Version__X._02X__r_n
call fcn.0040fd32
add esp, 0x28
cmp edi, 2
jle 0x411aeb
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040fd32
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.00411a6b
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040fd32
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040fd32
add esp, 0x18
push esi
call fcn.00423d90
movzx eax, byte [esi]
sub eax, 5
push 3
cdq
pop edi
idiv edi
mov cl, byte [esi + 5]
movzx edx, cl
cmp edx, eax
jle 0x411b40
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040fd32
pop ecx
jmp 0x411c21
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x411c21
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040fd32
lea eax, [edi + 2]
imul eax, eax, 3
add eax, esi
movzx ebx, byte [eax]
pop ecx
pop ecx
push ebx
mov dword [ebp - 0xc], eax
call fcn.004119c5
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040fd32
add esp, 0xc
test bl, bl
jns 0x411b93
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040fd32
pop ecx
mov eax, edi
imul eax, eax, 3
lea ebx, [eax + esi + 7]
movzx eax, word [ebx]
push eax
push eax
push str.wDescriptorLength________:_0x_04X___u_bytes__r_n
call fcn.0040fd32
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4c3a98
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.0040a145
test eax, eax
je 0x411bfc
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x411bed
movzx eax, word [ebx]
push eax
push 0x4c3a98
call fcn.0042392f
push dword [ebp - 4]
push 0x4c3a98
call fcn.00423d74
jmp 0x411c11
push dword [ebp - 8]
call fcn.0044b09e
push eax
push str.Error_reading_descriptor_:__s__due_to_a_obscure_limitation_of_the_Win32_USB_API__see_F1_Help__r_n
call fcn.0040fd32
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x411b4d
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4121cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x388
push ebx
push esi
xor ebx, ebx
push 0x7f
lea eax, [ebp - 0x17]
push ebx
push eax
mov byte [ebp - 0x18], bl
call fcn.00449c78
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0xc
push dword [ebp + 0x7c]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp + 0x68], 0x80
mov dword [ebp + 0x6c], ebx
call esi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x6c]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412395
cmp word [ebp - 0x118], bx
jne 0x412246
push str._default_
lea eax, [ebp - 0x118]
push eax
call esi
push edi
xor eax, eax
push 0x1fe
mov word [ebp - 0x318], ax
lea eax, [ebp - 0x316]
push ebx
push eax
call fcn.00449c78
mov eax, dword [ebp + 0x6c]
add esp, 0xc
dec eax
je 0x412358
dec eax
je 0x412346
dec eax
je 0x412329
dec eax
je 0x4122b6
sub eax, 7
jne 0x412378
push dword [ebp - 0x14]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_QWORD__08I64x___I64u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x412378
push dword [ebp - 0x18]
lea eax, [ebp - 0x118]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x318]
push str.___24s:_REG_DWORD__08x___u_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x18], ebx
je 0x412378
movzx eax, word [ebp - 0x18]
test eax, eax
jne 0x412378
push dword [ebp - 0x18]
call fcn.00412177
mov edi, eax
cmp edi, ebx
je 0x412378
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x455ef0
lea eax, [ebp - 0x318]
push eax
call esi
push edi
lea eax, [ebp - 0x318]
push eax
call esi
push 0x455eec
lea eax, [ebp - 0x318]
push eax
call esi
jmp 0x412378
push 0x20
push dword [ebp + 0x68]
lea eax, [ebp - 0x18]
push eax
call fcn.00428f32
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_BINARY__s
jmp 0x412368
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_EXPAND_SZ___s_
jmp 0x412368
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
push str.___24s:_REG_SZ___s_
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
pop edi
cmp word [ebp - 0x318], bx
je 0x412395
lea eax, [ebp - 0x318]
push eax
push str._s_r_n
call fcn.0040fd85
pop ecx
pop ecx
pop esi
pop ebx
add ebp, 0x70
leave
ret 8