joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf63
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x500bd0
lea eax, [ebp - 0x25c]
push str._sSystem32_rundll32.exe
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x65c]
push str.__s__url_OpenURL__s
push eax
call esi
add esp, 0x1c
cmp dword [0x500aa8], 6
jb 0x42bfd8
call fcn.004271f6
test eax, eax
je 0x42bfd8
call fcn.0042abf8
test eax, eax
je 0x42bfd8
push 3
push 0x500770
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0042a2ef
jmp 0x42c044
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x38
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x46aad8
call fcn.00442d2f
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x42c042
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x42c044
xor eax, eax
pop esi
leave
ret 4
Function at 0x42eb47
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x42eb74
mov eax, dword [0x5035ec]
cmp eax, esi
je 0x42ed48
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [0x5035ec], esi
jmp 0x42ed48
cmp dword [0x5035ec], esi
jne 0x42ed18
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42ed18
mov eax, dword [0x498ab0]
cmp eax, 0xf0
push ebx
push edi
jl 0x42ebad
push 8
call fcn.00429f6c
mov ebx, eax
jmp 0x42ebd5
cmp eax, 0xc0
jl 0x42ebb8
push 0x10
jmp 0x42ebc1
cmp eax, 0xa8
jl 0x42ebc4
push 0xe
pop ebx
jmp 0x42ebd5
xor ebx, ebx
cmp eax, 0x90
setge bl
lea ebx, [ebx*4 + 8]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push eax
push eax
push esi
mov dword [0x5035e8], eax
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [0x5035e8]
push esi
sub eax, dword [ebp - 0x14]
mov dword [0x5035e4], esi
mov dword [0x5035e0], eax
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov dword [0x5035ec], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
push ebx
push 1
push 0xbe
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0xcc0020
push dword [0x5035e4]
mov edi, eax
push dword [0x5035e0]
mov eax, dword [0x5035e8]
push dword [ebp + 0xc]
push eax
push eax
push esi
push esi
push dword [0x5035ec]
call dword [sym.imp.GDI32.dll_BitBlt]
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [0x5035e8]
push 3
push esi
sub ecx, ebx
push esi
lea eax, [ecx + 1]
cdq
push ebx
sub eax, edx
sar eax, 1
push ebx
push edi
push eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push dword [0x5035ec]
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [0x5035e8]
mov ecx, dword [0x5035e0]
mov edx, dword [0x5035e4]
lea edi, [ecx + eax]
mov dword [0x5034e8], edi
lea edi, [edx + eax]
mov dword [0x5034ec], edi
pop edi
mov dword [0x5034e0], ecx
mov dword [0x5034e4], edx
mov dword [0x5034f0], eax
pop ebx
jmp 0x42ed29
mov edx, dword [0x5035e4]
mov ecx, dword [0x5035e0]
mov eax, dword [0x5035e8]
push 0xcc0020
push esi
push esi
push dword [0x5035ec]
lea esi, [edx + eax]
push esi
add eax, ecx
push eax
push edx
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_BitBlt]
pop esi
leave
ret 8
Function at 0x4311d1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push dword [ebp + 8]
call fcn.004262b4
test eax, eax
jne 0x43120e
push 0x10
push 0x450e54
push str.File_not_found
push dword [0x5010bc]
call fcn.00449df7
mov dword [0x501800], 1
xor eax, eax
jmp 0x431432
mov eax, dword [0x50356c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x431227
push eax
call fcn.00442f64
pop ecx
mov dword [0x50356c], ebx
push 0x50356c
push dword [ebp + 8]
call fcn.00429baf
cmp eax, 0x64
jge 0x431258
mov eax, dword [0x50356c]
cmp eax, ebx
je 0x43142f
push eax
call fcn.00442f64
pop ecx
mov dword [0x50356c], ebx
jmp 0x43142f
push str.Report
push ebx
push 0x7f02
call fcn.004309d8
push dword [0x5010d4]
mov dword [0x501070], 1
call fcn.00430013
push dword [0x5010dc]
call fcn.00430013
push dword [0x5010c4]
push dword [0x50356c]
call fcn.00449fcd
test eax, eax
je 0x431429
push esi
push edi
xor eax, eax
push 0x3fe
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x406]
push ebx
push eax
call fcn.00442d2f
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x408]
push eax
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x43132f
mov esi, 0x44f334
push esi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
je 0x4312f9
xor ecx, ecx
mov word [eax], cx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x408]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x408]
push eax
call esi
lea eax, [ebp - 0x408]
push eax
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x503554]
mov esi, dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
cmp eax, ebx
je 0x431341
push eax
call esi
mov eax, dword [0x503558]
mov dword [0x503554], ebx
cmp eax, ebx
je 0x431353
push eax
call esi
mov ecx, dword [0x5034fc]
mov dword [0x503558], ebx
call fcn.00404fbc
mov ecx, dword [0x5034f8]
call fcn.004072e2
mov ecx, dword [0x5034f4]
call fcn.0040cdc3
mov ecx, dword [0x503500]
call fcn.004406c7
mov esi, dword [sym.imp.USER32.dll_GetMenu]
push ebx
push dword [0x5010bc]
call esi
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call edi
push 2
push dword [0x5010bc]
mov dword [ebp - 8], eax
call esi
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x9cae
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
xor edi, edi
push 0x401
push edi
push dword [ebp - 4]
call esi
inc edi
cmp edi, 0xe
jl 0x4313c4
push dword [0x5009fc]
push dword [0x500bcc]
push dword [0x500fa8]
push dword [0x500458]
push str.Host_Controllers:__i____Root_Hubs:__i____Standard_Hubs:__i____Peripheral_Devices:__i
push ebx
push ebx
push dword [0x501824]
call fcn.00405a42
add esp, 0x20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x4573b0
push ebx
push 1
push dword [0x501824]
call fcn.00405a42
add esp, 0x14
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x431431
mov dword [0x501070], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x435af8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
pop ebx
cmp dword [0x50da14], ebx
jl 0x435b5e
mov eax, edi
test edi, edi
jne 0x435b1d
mov eax, 0x44cd2c
lea ecx, [esi + 0xd0a]
push ecx
push eax
push dword [esi + 0x820]
push str.ChangeLeaf_name_s__text_s______s
push ebx
call fcn.004487a4
add esp, 0x14
cmp dword [0x50da14], ebx
jl 0x435b5e
push dword [esi + 8]
push dword [0x5010c4]
call fcn.00431a70
push eax
push str._currenttext_s
push ebx
call fcn.004487a4
add esp, 0xc
push dword [esi + 8]
push dword [0x5010c4]
call fcn.00427ea5
test eax, eax
jne 0x435b89
cmp dword [0x50da14], ebx
jl 0x435c69
push dword [esi + 8]
push str._0x_08Ix_is_not_a_tree_item____abort
jmp 0x435c60
push 0x34
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00442d2f
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
xor eax, eax
add esp, 0xc
test edi, edi
setne al
push esi
mov dword [ebp - 0x28], edi
or eax, 0x22
mov dword [ebp - 0x38], eax
call fcn.0043545c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
xor esi, esi
push esi
push 0x113f
push dword [0x5010c4]
mov dword [0x501090], esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x435c4c
push dword [0x5010c4]
mov dword [0x501090], esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x501818]
jne 0x435c47
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x50cb94]
cmp eax, 0xbb8
jae 0x435c29
push 0x415a7d
push 0xa
push 0x12340005
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x435c40
push dword [0x501818]
push dword [0x5010c4]
push dword [0x5010c8]
call fcn.0041590b
call esi
mov dword [0x50cb94], eax
xor eax, eax
inc eax
jmp 0x435c6b
cmp dword [0x50da14], ebx
jl 0x435c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TreeView_SetItem_err_u
push ebx
call fcn.004487a4
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x435f77
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004309d8
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.00442d2f
add esp, 0x24
push 0x5007f0
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0x44d0ac
mov ebx, str.ReportPath
push ebx
mov edi, 0x450eac
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00427908
test eax, eax
je 0x43607f
lea eax, [ebp - 0x208]
push eax
call fcn.004311d1
mov esi, eax
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.00429c71
push 0x5007f0
lea eax, [ebp - 0x208]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004309d8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor esi, esi
jmp 0x436067
Function at 0x439a72
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004309d8
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00442d2f
push 0x5004e8
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x5007f0
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x44d0ac
mov ebx, str.ReportPath
push ebx
mov edi, 0x450eac
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00427794
test eax, eax
je 0x439b9c
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x20c]
push eax
call fcn.004399c3
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x439b9c
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x439b9c
xor ecx, ecx
push 0x5007f0
mov word [eax - 2], cx
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004309d8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439bb5
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004309d8
push dword [0x501818]
call fcn.004308cc
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x439bff
push 0x40
push 0x450e54
push str.No_device_selected
push dword [0x5010bc]
call fcn.00449df7
jmp 0x439dde
push ebx
push esi
xor eax, eax
push 0x7fe
mov word [ebp - 0xc18], ax
lea eax, [ebp - 0xc16]
push edi
push eax
call fcn.00442d2f
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.00442d2f
add esp, 0x24
push 0x5007f0
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
push 0x44d0ac
push str.DevReportPath
mov ebx, 0x450eac
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [ebp - 0x418], di
je 0x439ca6
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.004260eb
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0xfcc]
cmp eax, edi
je 0x439cc7
lea ecx, [eax + 0x1738]
cmp word [ecx], di
jne 0x439cc4
lea ecx, [eax + 0x1838]
push ecx
jmp 0x439ccd
push dword [ecx + 0x820]
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x20
lea eax, [ebp - 0xc18]
push eax
call fcn.00427f62
push str..txt
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.00427794
test eax, eax
je 0x439dcc
cmp dword [0x501070], edi
jne 0x439d2e
push edi
push fcn.004157d6
push dword [0x501818]
call fcn.00430592
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [0x501818]
mov dword [ebp - 4], edi
call fcn.004368c4
mov esi, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00442eef
pop ecx
push edi
xor ecx, ecx
mov dword [0x503574], eax
mov word [eax], cx
push 0x43110b
push dword [0x501818]
mov dword [0x503578], esi
call fcn.00430592
lea eax, [ebp - 0xc18]
push eax
call fcn.0040dc7e
push dword [0x503574]
call fcn.00442f64
pop ecx
lea eax, [ebp - 0xc18]
push eax
mov dword [0x503574], edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, edi
je 0x439dcc
xor ecx, ecx
push 0x5007f0
mov word [eax], cx
lea eax, [ebp - 0xc18]
push eax
push str.DevReportPath
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push edi
push 0x7f00
call fcn.004309d8
pop esi
pop ebx
pop edi
leave
ret
Function at 0x439f95
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004309d8
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00442d2f
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00442d2f
push 0x5004e8
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.xml
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x5007f0
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x44d0ac
mov ebx, str.ReportPath
push ebx
mov edi, 0x450eac
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042784e
test eax, eax
je 0x43a0d5
push dword [0x5010bc]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040da5a
push 0
call fcn.0040da98
lea eax, [ebp - 0x20c]
push eax
call fcn.00439de1
mov dword [ebp - 4], eax
call fcn.0040dad8
call fcn.0040da79
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43a0d5
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43a0d5
xor ecx, ecx
push 0x5007f0
mov word [eax - 2], cx
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004309d8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4400e7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0xc], ecx
call fcn.00442d2f
add esp, 0xc
push 0x23
push 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 4], eax
test eax, eax
je 0x440247
mov esi, 0x44dbd4
lea edi, [ebp - 0xa24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x3f6
xor esi, esi
lea eax, [ebp - 0xa1a]
push esi
push eax
call fcn.00442d2f
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xa1c]
push eax
call ebx
lea eax, [ebp - 0xa24]
push eax
mov eax, dword [ebp - 4]
add eax, 2
push eax
push str.SystemCurrentControlSetControlDeviceClasses
lea eax, [ebp - 0xe24]
push 0x44d3fc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xe24]
push eax
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440247
cmp dword [ebp - 8], esi
je 0x440247
and dword [ebp - 4], esi
mov edi, 0x104
push edi
lea eax, [ebp - 0x624]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x44022a
cmp word [ebp - 0x624], 0x23
jne 0x44021c
push 0x44dbd0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x440235
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push 0x5c
pop eax
mov word [ebp - 0x214], ax
inc dword [ebp - 4]
push edi
lea eax, [ebp - 0x624]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4401d5
jmp 0x44023e
xor eax, eax
mov word [ebp - 0x214], ax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x44fbdc
lea edi, [ebp - 0x41c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x1fe
lea eax, [ebp - 0x412]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00442d2f
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
call ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
lea eax, [ebp - 0x41c]
push eax
call fcn.00428c8c
mov esi, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [esi], eax
call fcn.00428c34
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x441210
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
test byte [0x50cc04], 1
jne 0x441239
or dword [0x50cc04], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x50cc00], eax
test byte [0x50cc04], 2
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x441263
or dword [0x50cc04], 2
push str.GetModuleFileNameExW
push dword [0x50cc00]
call esi
mov dword [0x50cbfc], eax
test byte [0x50cc04], 4
jne 0x441285
or dword [0x50cc04], 4
push str.GetProcessImageFileNameW
push dword [0x50cc00]
call esi
mov dword [0x50cbf8], eax
test byte [0x50cc04], 8
jne 0x4412ad
or dword [0x50cc04], 8
cmp dword [0x500aa8], 6
sbb eax, eax
and eax, 0xfffff400
add eax, 0x1000
mov dword [0x50cbf4], eax
xor ebx, ebx
cmp dword [0x50cbf8], ebx
jne 0x4412be
xor eax, eax
jmp 0x441459
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4412b7
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00442d2f
xor eax, eax
push 0x246
mov word [ebp - 0x684], ax
lea eax, [ebp - 0x682]
push ebx
push eax
call fcn.00442d2f
push 0x228
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], 0x22c
call fcn.00442d2f
add esp, 0x24
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x44144d
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x434], 4
je 0x441418
push dword [ebp - 0x434]
mov eax, dword [0x50cbf4]
push ebx
or eax, 0x50
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x441418
xor eax, eax
mov word [ebp - 0x210], ax
mov word [ebp - 0x684], ax
push 0x124
lea eax, [ebp - 0x684]
push eax
push esi
call dword [0x50cbf8]
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call dword [0x50cbfc]
test eax, eax
jne 0x4413c1
push 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.004290f8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x210]
push 0x44d214
mov eax, esi
push eax
call fcn.00426e06
test eax, eax
je 0x4413e5
lea esi, [ebp - 0x208]
push dword [ebp + 8]
lea eax, [ebp - 0x684]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x441418
push esi
call fcn.00428c34
inc dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x434]
mov dword [edi], eax
mov eax, dword [ebp - 4]
add edi, 0x10
cmp eax, dword [ebp + 0x10]
jge 0x441431
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x441341
jmp 0x44144c
cmp dword [0x50da14], 5
jl 0x44144c
push dword [ebp - 4]
push str.max_number_of_processes_reached___i_____abort
push 5
call fcn.004487a4
add esp, 0xc
pop edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc