joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c3d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.0048aee0
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x49c445
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.004976a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x49c4f9
test eax, eax
jne 0x49c469
push 1
push eax
push esi
call fcn.0048aee0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x49c410
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.0048a5f0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49c494
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.0048abe0
add esp, 8
cmp ebx, 0xffffffff
jne 0x49c4ca
push str.Error_accept__ing_server_connect
push esi
call fcn.0048a5f0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.0048a690
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.004a3920
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.0048a5f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.00413a09
mov esp, ebp
pop ebp
ret

Function at 0x49e7c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x49e7ef
push str.Couldnt_set_desired_mode
push edx
call fcn.0048a5f0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x49e806
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0048a690
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x49e81d
push edi
call fcn.0049e300
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x49e831
push edi
call fcn.0049ddf0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x49e845
push edi
call fcn.0049e260
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x49e855
push edi
call fcn.0049e2e0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4a1990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0047d66f
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x4a19f4
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x4a19f4
lea eax, [ebp - 0x108]
push eax
call dword [0x4dbe2c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret

Function at 0x4a1a10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a1990
Function at 0x4a4b90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x4a5840
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4dbe20]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a586d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a58b4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4a58ba
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4a591b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4a58e0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4a5947
mov eax, dword [esi + 4]
push 1
push 0x4c9bd4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4c9bd5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4a5920
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a5970
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4a59a3
push 0x2e
push edi
call fcn.004641b0
add esp, 8
test eax, eax
je 0x4a59a1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4a63b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4d82a4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x4a6422
cmp dword [ebp - 0x118], 2
jg 0x4a6422
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00413a09
mov esp, ebp
pop ebp
ret

Function at 0x4a6480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4a64ac
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a649d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4a64e0
cmp dword [esi + 8], 0
jne 0x4a64d0
push 0x4bbf4c
push dword [eax + 8]
call fcn.00471865
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4a64d0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00471a48
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a6502
mov eax, dword [esi + 8]
test eax, eax
je 0x4a64fc
push eax
call fcn.0047102b
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x401194
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f004]
jne 0x40119e
repz ret
jmp fcn.00403867

Function at 0x40a0c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004057fa
and dword [ebp - 4], 0
cmp dword [0x422924], 0
mov ebx, eax
jne 0x40a174
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a225
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a225
push eax
call fcn.00405788
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x422924], eax
call esi
push eax
call fcn.00405788
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x422928], eax
call esi
push eax
call fcn.00405788
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42292c], eax
call esi
push eax
call fcn.00405788
pop ecx
mov dword [0x422934], eax
test eax, eax
je 0x40a174
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405788
pop ecx
mov dword [0x422930], eax
mov eax, dword [0x422930]
cmp eax, ebx
je 0x40a1cc
cmp dword [0x422934], ebx
je 0x40a1cc
push eax
call fcn.00405803
push dword [0x422934]
mov esi, eax
call fcn.00405803
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a1cc
test edi, edi
je 0x40a1cc
call esi
test eax, eax
je 0x40a1c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a1c3
test byte [ebp - 0xc], 1
jne 0x40a1cc
or dword [ebp + 0x10], 0x200000
jmp 0x40a205
mov eax, dword [0x422928]
cmp eax, ebx
je 0x40a205
push eax
call fcn.00405803
pop ecx
test eax, eax
je 0x40a205
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a205
mov eax, dword [0x42292c]
cmp eax, ebx
je 0x40a205
push eax
call fcn.00405803
pop ecx
test eax, eax
je 0x40a205
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x422924]
call fcn.00405803
pop ecx
test eax, eax
je 0x40a225
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a227
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ed60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401740
add esp, 0xc
push 0x105
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40edac
xor eax, eax
jmp 0x40ee0d
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0x420008
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 2]
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x114]
jae 0x40eddf
xor eax, eax
jmp 0x40ee0d
push str.CNMNPPM.DLL
lea eax, [ebp - 0x110]
push eax
push 0x420020
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004010b0
add esp, 0x14
test eax, eax
jne 0x40ee0b
mov eax, 1
jmp 0x40ee0d
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret

Function at 0x4104a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x4104da
push 0x2007000c
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4105d3
cmp dword [ebp + 0xc], 0
jne 0x4104f1
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x2007000c
xor eax, eax
jmp 0x4105d3
cmp dword [ebp + 0x10], 0
jne 0x410508
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000c
xor eax, eax
jmp 0x4105d3
cmp dword [ebp + 0x14], 0
jne 0x41051f
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], 0x2007000c
xor eax, eax
jmp 0x4105d3
cmp dword [ebp + 0x18], 0x3a98
jbe 0x410531
mov dword [ebp - 0xc], 0x7d0
jmp 0x410537
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1080]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1058]
call edx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410575
jmp 0x4105a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x45d
je 0x410589
jmp 0x4105a3
cmp dword [ebp - 0xc], 0
jne 0x410591
jmp 0x4105a3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
jbe 0x4105a1
jmp 0x4105a3
jmp 0x410549
cmp dword [ebp - 0x10], 0
jne 0x4105c8
cmp dword [ebp - 0x14], 0x45d
jne 0x4105be
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x2007000b
jmp 0x4105c8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0x2007000c
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x411c50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push str.CNMSHARE_MUTEX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411c77
xor eax, eax
jmp 0x411c86
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x414ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0
push 0x505
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x414b33
jmp 0x414baf
push 0x105
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 8], 0
je 0x414b73
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 1]
cmp ecx, 0x505
jbe 0x414b75
jmp 0x414baf
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x118]
push eax
push str._s_s
push 0x505
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004010b0
add esp, 0x14
test eax, eax
je 0x414b9f
jmp 0x414baf
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x120], 0
je 0x414bce
cmp dword [ebp - 0x120], 0
je 0x414bce
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x414be0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x414c1a
push 0x2007000a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414db8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1028], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1040], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 1
jne 0x414c47
mov eax, 1
jmp 0x414db8
push str.SETUPAPI.DLL
call fcn.00414ae0
add esp, 4
mov dword [ebp - 0x10], eax
push 0x421618
call fcn.00414ae0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x414d7d
cmp dword [ebp - 4], 0
je 0x414d7d
push str.SetupDiGetClassDevsA
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x102c], eax
push str.SetupDiEnumDeviceInterfaces
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1030], eax
push str.SetupDiDestroyDeviceInfoList
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1034], eax
push str.SetupDiOpenDeviceInterfaceRegKey
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1038], eax
push str.SetupDiGetDeviceInterfaceDetailA
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x103c], eax
push str.CancelIo
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1044], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x102c], 0
je 0x414d74
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1030], 0
je 0x414d74
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1034], 0
je 0x414d74
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1038], 0
je 0x414d74
mov eax, dword [ebp + 8]
cmp dword [eax + 0x103c], 0
je 0x414d74
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1044], 0
je 0x414d74
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1028], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x1040], edx
mov dword [ebp - 8], 1
jmp 0x414d7b
mov dword [ebp - 8], 0
jmp 0x414d84
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x414db5
cmp dword [ebp - 0x10], 0
je 0x414d9a
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
je 0x414daa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x2007000c
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x414dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00401740
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x414e16
push 0x2007000c
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414fec
push 0x120c8
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414e3e
push 0x20070005
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414fec
mov edx, dword [ebp - 4]
mov dword [edx], 0x424a5055
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x156
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10a4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20a8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20ac], 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x120c0], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x120c4], 0
push 0x34
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x1048
push ecx
call fcn.00401740
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x107c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1080], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
cmp dword [ebp - 0x9c], 4
jne 0x414f25
cmp dword [ebp - 0x90], 1
jne 0x414f25
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 1
jmp 0x414f86
cmp dword [ebp - 0x9c], 5
jne 0x414f4c
cmp dword [ebp - 0x98], 0
jne 0x414f4c
cmp dword [ebp - 0x90], 2
jne 0x414f4c
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 2
jmp 0x414f86
cmp dword [ebp - 0x9c], 5
jne 0x414f73
cmp dword [ebp - 0x98], 0
jbe 0x414f73
cmp dword [ebp - 0x90], 2
jne 0x414f73
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 4
jmp 0x414f86
cmp dword [ebp - 0x9c], 5
jbe 0x414f86
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x414fae
cmp dword [ebp - 4], 0
je 0x414f9f
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x20070006
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414fec
mov edx, dword [ebp - 4]
push edx
call fcn.00414be0
add esp, 4
test eax, eax
jne 0x414fdd
cmp dword [ebp - 4], 0
je 0x414fce
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x2007000c
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x414fec
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret
Function at 0x416110
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416172
jmp 0x416257
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x10]
cmp eax, 0x4e20
jbe 0x416190
jmp 0x416257
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x1000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415350
add esp, 0x14
test eax, eax
jne 0x4161b6
jmp 0x416257
cmp dword [ebp - 0x20], 0
jne 0x4161da
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 8
jle 0x4161d0
jmp 0x416257
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41617b
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
jne 0x416214
cmp dword [ebp - 0x20], 3
jae 0x4161ef
jmp 0x416257
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 1]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jbe 0x416214
jmp 0x416257
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jae 0x416221
jmp 0x416257
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
push eax
call fcn.00401320
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
ja 0x416252
mov dword [ebp - 0x14], 1
jmp 0x416257
jmp 0x41617b
cmp dword [ebp - 8], 0
je 0x41626d
cmp dword [ebp - 8], 0
je 0x41626d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x41627d
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x416287
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 0x2007000c
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x416eb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00401740
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x416f12
cmp dword [ebp - 0x9c], 5
jne 0x416f12
cmp dword [ebp - 0x98], 0
jne 0x416f12
mov eax, 1
jmp 0x416f14
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401194
mov esp, ebp
pop ebp
ret