joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45cab9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45cf30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e3b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045cae0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045cb60
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045cb60
lea ecx, [esi + 0xc]
call fcn.0047004f
lea ecx, [esi + 0x10]
call fcn.0047004f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045e0f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045e0f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045e0f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004700c4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004700c4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47244e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472486
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047051f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004704f7
jmp 0x472492
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x473b3f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x473b81
call fcn.00479787
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473b81
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x473b78
xor eax, eax
jmp 0x473b89
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00473b8f
pop edi
pop esi
pop ebx
ret 4

Function at 0x479cb7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x479ce5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479d03
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00479c1d
jmp 0x479d03
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479d03
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00479c1d
test edi, edi
mov eax, edi
jne 0x479ced
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403d2f
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
xor esi, esi
mov dword [ebp - 0x14], ebx
push 0x423384
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
call fcn.00403e00
and dword [ebp - 4], ebx
pop ecx
pop ecx
cmp esi, edi
je 0x403d66
and dword [esi], 0
add esi, 4
mov dword [ebp - 0x10], esi
jmp 0x403d7c
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004014e5
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
mov ecx, 0x42e098
call fcn.004021de
push eax
call fcn.00401b37
mov eax, esi
sub eax, ebx
and eax, 0xfffffffc
pop ecx
cmp eax, 0x190
jne 0x403d57
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x40
push 0x4ac
push 0x47ce20
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push esi
push esi
push 0x40307c
push esi
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00403062
mov edx, 0x47ce20
add edx, 0x188
mov esi, 0x42f020
push esi
call edx
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.004014b9
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x4069b0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4069ef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4069ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4069ef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4069ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4069ef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414aa4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427210
push 0x427208
push 0x424cdc
push 0x1e
call fcn.00414911
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414ad8
push dword [ebp + 8]
mov ecx, esi
call dword [0x423144]
call esi
jmp 0x414ade
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x404338
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
test dword [0x40abd4], 2
je 0x40450e
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push str.___uppp_bin___
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x404562
mov dword [0x40ab5a], eax
push 0xa
push 0x640
push dword [0x409470]
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x4044ee
push eax
push eax
push dword [0x409470]
call sub.kernel32.dll_SizeofResource
mov dword [0x409586], eax
push dword [0x409470]
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x4044ee
push 0
push 0x40abe0
push dword [0x409586]
push eax
push dword [0x40ab5a]
call sub.kernel32.dll_WriteFile
or eax, eax
je 0x4044ee
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push str.___uppp_bin___
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x4091ce
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
mov dword [0x40ab62], 0x44
push 0x40aba6
push 0x40ab62
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40a8ba
push str.___uppp_bin___
call sub.kernel32.dll_CreateProcessA
or eax, eax
je 0x4044ee
push 0xffffffffffffffff
push dword [0x40aba6]
call sub.kernel32.dll_WaitForSingleObject
push 0xc8
call sub.kernel32.dll_Sleep
push 0x409586
push dword [0x40aba6]
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [0x409586], 0
jne 0x4044ee
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push str.___uppp_res___
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4044ee
mov dword [0x40ab5a], eax
push 0x409586
push dword [0x40ab5a]
call sub.kernel32.dll_GetFileSize
push 0
push 0x409586
push eax
push dword [ebp + 8]
push dword [0x40ab5a]
call sub.kernel32.dll_ReadFile
mov ebx, eax
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push str.___uppp_res___
call sub.kernel32.dll_DeleteFileA
cmp dword [0x40ab5a], 0
je 0x404502
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push str.___uppp_bin___
call sub.kernel32.dll_DeleteFileA
jmp 0x404562
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
call sub.kernel32.dll_lstrlenA
add eax, 0x40a8ba
inc eax
push dword [ebp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
push str.Target_not_found___Lets_search_n_...
push 0
push dword [0x409474]
call fcn.004052c0
cmp byte [eax], 0
je 0x404562
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcpyA
inc ebx
or ebx, ebx
jne 0x40456c
mov eax, dword [ebp + 8]
mov byte [eax], 0
pop ebx
leave
ret 4
Function at 0x4891c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4891cc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4894ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39c], 0
je 0x489203
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x320]
mov dl, 1
call fcn.0043d238
mov eax, dword [ebp - 4]
cmp byte [eax + 0x39d], 0
je 0x48921f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov dl, 1
call fcn.0043d238
mov eax, dword [0x48f808]
mov eax, dword [eax]
call fcn.0045cf24
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.0043d318
mov dl, 1
mov eax, dword [0x416d2c]
call fcn.00403cc4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x489313
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x364]
call fcn.00404f5c
mov ecx, eax
mov edx, 0x4894fc
mov eax, 0x4894fc
call fcn.00418afc
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4892fd
inc ebx
xor esi, esi
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, byte [0x48951c]
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0x489528
mov eax, dword [ebp - 0xc]
call fcn.0040e348
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00404b34
push 1
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004099f8
mov eax, dword [ebp - 0x18]
call fcn.00404f5c
push eax
push 0x489538
mov eax, dword [ebp - 0xc]
call fcn.00404f5c
push eax
push 0x48953c
mov eax, dword [0x48f808]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
inc esi
dec ebx
jne 0x48928e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48931a
mov eax, dword [ebp - 0x10]
call fcn.00403cf4
ret

Function at 0xdd0dec
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdd0df6
pushal
call 0xdd0dfc
pop ebp
sub ebp, 0x10
sub ebp, 0x9d0dec
jmp 0xdd0e12
mov eax, 0x9d0dec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cd
mov edx, 0x119a0b9e
xor byte [eax], dl
inc eax
dec ecx
jne 0xdd0e29
jmp 0xdd0e3c
adc eax, 0xa2171553
sahf
sahf
sahf
pop ds
pop ss
mov byte [0x1f9e9e9e], al
pop edi
sahf
sahf
sahf
popfd
push ebx
lcall 0x9eb6, 0x249e9e9e
sahf
sahf
imul edi, dword [ebp + ebx*4 + 0x56], 0x9e921f15
sahf
sahf
popfd
pop ebx
adc edi, edx
mov edx, 0xba9a1762
adc edi, edx
mov edx, 0xba9a1762
mul byte [esi + 4]
mov edi, 0xec6af69e
in eax, 0x9e
lahf
mov dl, 0xba
not byte [eax + 0x763aed89]
wait
sahf
sahf
sahf
ja 0xdd0e3f
sahf
sahf
sahf
retf

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x811ce0], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811ce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811ce4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811ce8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811cf0], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811cec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x811ce0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x811cec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x811cf0], edi
je 0x40c333
push eax
call ebx
push dword [0x811cf0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x811ce4]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x811ce8]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811ce0]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b643
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
and esi, edi
sub esi, esi
inc esi
call fcn.0043b68f
add esi, 0x51df4cb3
add edi, 1
xor dword [ebx], edx
add edi, 0x8bcbd890
add edi, 1
add edi, esi
inc ebx
add esi, 0x5c01a100
sub edi, edi
cmp ebx, eax
jne fcn.0043b643
add edi, 1
ret
Function at 0x100040e0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x1000415b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.101591c2
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10004117
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x1000412e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.101591c2
add esp, 4
test eax, eax
jbe 0x1000415b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.101591c2
add esp, 4
cmp esi, eax
jb 0x10004140
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10004c70
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x101e6358]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push esi
jne 0x10004c9d
push eax
push str.Setupapi.dll
call fcn.10004800
add esp, 8
test eax, eax
mov dword [0x101e6358], eax
je 0x10004dd6
cmp dword [0x101e635c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x10004cc6
push str.SetupDiGetClassDevsW
push eax
call esi
test eax, eax
mov dword [0x101e635c], eax
je 0x10004dd6
mov eax, dword [0x101e6358]
cmp dword [0x101e6360], 0
jne 0x10004ce9
push str.SetupDiEnumDeviceInfo
push eax
call esi
test eax, eax
mov dword [0x101e6360], eax
je 0x10004dd6
mov eax, dword [0x101e6358]
cmp dword [0x101e6368], 0
jne 0x10004d0c
push str.SetupDiGetDeviceRegistryPropertyW
push eax
call esi
test eax, eax
mov dword [0x101e6368], eax
je 0x10004dd6
mov eax, dword [0x101e6358]
cmp dword [0x101e6364], 0
jne 0x10004d2f
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call esi
test eax, eax
mov dword [0x101e6364], eax
je 0x10004dd6
mov eax, dword [0x101e6358]
cmp dword [0x101e6370], 0
jne 0x10004d4d
push str.SetupDiDestroyDeviceInfoList
push eax
call esi
test eax, eax
mov dword [0x101e6370], eax
je 0x10004dd6
push 6
push 0
push 0
push 0
call dword [0x101e635c]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x10004dd8
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
push edi
push eax
mov dword [ecx + 0x18], eax
push esi
mov dword [edi], 0x1c
call dword [0x101e6360]
test eax, eax
je 0x10004dcf
lea ecx, [ecx]
push esi
push ebp
mov eax, edi
call fcn.10004410
add esp, 8
cmp eax, 1
je 0x10004ddc
xor edx, edx
mov eax, edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
push edi
add ebx, 1
mov dword [eax + 0x14], edx
push ebx
mov dword [eax + 0x18], edx
push esi
mov dword [edi], 0x1c
call dword [0x101e6360]
test eax, eax
jne 0x10004d90
push esi
call dword [0x101e6370]
xor eax, eax
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x10005610
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x101e6420], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x100056a6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x101e6420
mov dword [0x101e6420], 0x11c
mov dword [0x101e6424], 6
mov dword [0x101e6428], 1
mov word [0x101e6534], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x101cfe5c], eax
jmp 0x100056ab
mov eax, dword [0x101cfe5c]
cmp eax, esi
je 0x100056ba
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x100057da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x100057d8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x100057d8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x100057d8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x10005710
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x1000578f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x100057d8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x100057d8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x100057d8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10005776
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x101ab62c
push 0x26
jmp 0x10005795
cmp word [esi + edi*2 - 4], 0x5c
je 0x100057a3
push 0x101ab8cc
add edi, 1
push edi
push esi
call fcn.10005480
jmp 0x100057a3
push 0x101ab62c
push eax
call fcn.10005520
mov esi, eax
add esp, 8
test esi, esi
je 0x100057d8
push esi
call fcn.101591c2
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.1015f2b4
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x100057d8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x10005710
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10005970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.10005800
mov esi, eax
add esp, 4
test esi, esi
je 0x100059b2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10005994
test al, 0x50
je 0x100059b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100059a7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x100071a0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, ecx
push edi
push 0
push 0
push 1
lea edi, [ebx + 0xc]
mov dword [ebx], vtable.EventThread.0
push 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [edi], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
call esi
push edi
push 0
push ebx
push 0x10007330
push 0
push 0
mov dword [ebx + 0x1c], eax
call fcn.1014dabc
add esp, 0x18
mov dword [ebx + 0x10], eax
push 0
push 0
push 1
push 0
call esi
push edi
push 0
push ebx
push 0x10007370
push 0
push 0
mov dword [ebx + 0x20], eax
call fcn.1014dabc
add esp, 0x18
mov dword [ebx + 0x14], eax
push 0
push 0
push 1
push 0
call esi
push edi
push 0
push ebx
push 0x100073b0
push 0
push 0
mov dword [ebx + 0x24], eax
call fcn.1014dabc
add esp, 0x18
mov dword [ebx + 0x18], eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret