joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a507
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push 0x44
mov eax, 0x4d9c1a
call fcn.004a199a
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x50], 0x3c
inc eax
lea ecx, [ebp - 0x50]
push eax
mov dword [ebp - 0x10], eax
call fcn.0049aa6b
xor esi, esi
lea ecx, [ebp - 0x50]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call fcn.0049b20c
test eax, eax
je 0x49a54f
lea eax, [ebp - 0x50]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov eax, dword [ebp - 0x44]
mov ecx, 0x800000
push 2
pop edx
sub eax, 1
je 0x49a5b2
sub eax, 1
je 0x49a5af
sub eax, 1
je 0x49a5a6
sub eax, 1
je 0x49a598
mov eax, 0x2ee6
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x64
push dword [ebp + 0x1c]
push dword [ebp + 8]
call fcn.0049a73b
jmp 0x49a6ce
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], 3
or edi, ecx
jmp 0x49a5b5
mov dword [ebp - 0x10], 3
jmp 0x49a5b2
mov dword [ebp - 0x10], edx
mov edi, dword [ebp + 0x18]
test ecx, edi
jne 0x49a5d6
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
jmp 0x49a6ce
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
je 0x49a5fb
push dword [ebp - 0x40]
push dword [ebx + 0x98]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x49a5fb
mov ecx, ebx
call fcn.00411370
mov eax, dword [ebx + 0x94]
cmp dword [eax + 4], esi
jne 0x49a64f
push eax
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
pop ecx
push dword [ebp - 0x40]
mov dword [ebx + 0x98], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x18]
inc ecx
add eax, ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
pop ecx
push dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x18], esi
je 0x49a691
push dword [ebp - 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp + 0x1c]
mov eax, dword [ebx + 0x94]
mov ebx, dword [ebp + 0x18]
push edi
push esi
push esi
push esi
push ebx
push 0x4ddda8
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov edi, eax
call fcn.004a104b
pop ecx
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x49a6ce
mov esi, edi
lea ecx, [ebp - 0x50]
call fcn.0049a8eb
mov eax, esi
call fcn.004a1963
ret 0x18
Function at 0x49acc9
Capabilities:
Create http request
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x83c], eax
call fcn.004115f0
cmp eax, 1
jne 0x49adc1
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49adb6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
mov dword [ebp - 0x830], 4
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
mov dword [ebp - 0x830], 0x824
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
cmovne ecx, edx
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
mov dword [ebp - 0x834], ecx
call esi
movzx ecx, byte [ebp - 0x828]
xor edx, edx
mov esi, dword [ebp - 0x838]
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.00438c50
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 4]
test eax, eax
mov dword [edi + 4], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x49ae33
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x49ae73
test byte [ebp - 4], 0x41
je 0x49ae73
push edi
push dword [ebx + 0x78]
call dword [sym.imp.WININET.dll_InternetAutodial]
test eax, eax
jne 0x49ae73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
xor al, al
jmp 0x49af59
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x49aea0
push eax
cmp dword [ebx + 0x40], edi
je 0x49ae8f
push str.Range:_bytes_d__r_n
jmp 0x49ae94
push str.Range:_bytes_d_
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebx + 0x40], edi
je 0x49aeb1
push dword [ebx + 0x40]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
cmp dword [ebx + 4], edi
jne 0x49af16
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push dword [ebx + 0x50]
jmp 0x49aee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49af0a
mov eax, dword [ebx + 0x50]
test eax, 0x100
je 0x49af0a
and eax, 0xfffffeff
push ebx
mov dword [ebx + 0x50], eax
push eax
push dword [ebx + 0x44]
mov esi, dword [ebx + 0x30]
mov edi, dword [ebx]
call fcn.004aa644
pop ecx
push eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x3c]
push esi
call dword [edi + 0x2c]
test eax, eax
je 0x49aec6
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x49af47
mov eax, dword [ebx]
lea ecx, [ebx + 0xc]
push 0
push ecx
mov ecx, ebx
jmp 0x49af4e
cmp byte [ebp + 8], 0
je 0x49af56
lea esi, [ebx + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
push dword [ebx + 0x44]
call fcn.004aa644
pop ecx
push eax
push dword [ebx + 0x44]
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov ecx, ebx
mov eax, dword [ebx]
je 0x49af4c
call dword [eax + 0x28]
jmp 0x49af58
push edi
push esi
push dword [ebx + 0x28]
call dword [eax + 8]
jmp 0x49af58
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49b007
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
and dword [edi + 0x24], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
jbe 0x49b1c3
cmp dword [edi + 0x5c], 0x2710
jbe 0x49b041
cmp dword [edi + 0x54], 0
je 0x49b041
mov ecx, edi
call fcn.0049b344
imul eax, eax, 0xf
jmp 0x49b046
mov eax, 0x5dc
xor esi, esi
inc esi
test eax, eax
cmovne esi, eax
cmp byte [edi + 0x90], 0
je 0x49b063
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x49b070
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x49b0b9
mov eax, dword [edi]
lea ecx, [edi + 0xc]
push 0
push ecx
push dword [edi + 0x28]
mov ecx, edi
call dword [eax + 8]
test al, al
je 0x49b1ce
cmp byte [edi + 0x90], 0
je 0x49b0d4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
jmp 0x49b0e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x49b1c3
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [edi + 0x4c], eax
add dword [edi + 0x54], eax
add dword [edi + 0x60], eax
sub esi, dword [ebp - 0x20]
mov eax, esi
sbb ebx, dword [ebp - 0x1c]
or eax, ebx
jne 0x49b10e
push 5
pop esi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push esi
call fcn.004a1c10
mov ecx, dword [edi + 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x88]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x49b165
mov edx, dword [ebp - 8]
jg 0x49b13b
cmp edx, eax
jb 0x49b165
push ebx
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.004a1b30
mov esi, ebx
pop ebx
add dword [edi + 0x5c], eax
add dword [edi + 0x68], eax
push 0
push 0x3e8
push esi
push ecx
mov dword [ebp - 0xc], edx
call fcn.004a1a80
mov esi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push esi
call fcn.004a1c10
push dword [edi + 0x8c]
push dword [edi + 0x88]
push edx
push eax
call fcn.004a1a80
add dword [edi + 0x58], eax
mov ecx, 0x3e8
add dword [edi + 0x64], eax
cmp dword [edi + 0x58], ecx
jbe 0x49b1a3
mov eax, dword [edi + 0x58]
xor edx, edx
div ecx
add dword [edi + 0x5c], eax
mov dword [edi + 0x58], edx
cmp dword [edi + 0x64], ecx
jbe 0x49b1b5
mov eax, dword [edi + 0x64]
xor edx, edx
div ecx
add dword [edi + 0x68], eax
mov dword [edi + 0x64], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x49b026
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
jmp 0x49b1c5
Function at 0x49b20c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
call fcn.0049aa6b
push esi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x49b2d5
inc dword [esi + 8]
xor ecx, ecx
mov eax, dword [esi + 8]
push ebx
push 2
pop ebx
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
inc dword [esi + 0x14]
xor ecx, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
inc dword [esi + 0x20]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
inc dword [esi + 0x28]
xor ecx, ecx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
inc dword [esi + 0x30]
xor ecx, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x30]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
inc dword [esi + 0x38]
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x38]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
add esp, 0x18
mov dword [esi + 0x34], eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x49b2dd
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 4
call fcn.0049adf3
movzx edi, al
test al, al
je 0x49b314
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x49b326
or dword [ebp - 4], 0xffffffff
jmp 0x49b32c
mov eax, dword [esi + 0x48]
add dword [ebp - 4], eax
mov ecx, esi
call fcn.0049a88c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b344
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x6c]
xor edi, edi
cmp eax, 0x7530
jbe 0x49b381
mov eax, dword [esi + 0x60]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], edi
call ebx
mov dword [esi + 0x6c], eax
mov ecx, dword [esi + 0x5c]
test ecx, ecx
jne 0x49b38d
mov eax, dword [esi + 0x54]
jmp 0x49b3d9
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x49b3d7
or eax, 0xffffffff
mov edi, dword [esi + 0x54]
xor edx, edx
div ebx
cmp edi, eax
jbe 0x49b3af
shr edi, 1
shr ecx, 1
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], ecx
mov eax, dword [esi + 0x54]
xor edx, edx
mov ecx, dword [esi + 0x5c]
imul eax, ebx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x49b393
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49eb42
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0x500
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49ebb8
call esi
cmp eax, 0x3f0
jne 0x49eb9b
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x49ebb1
push 1
push dword [ebp - 0x10]
call fcn.0049eca0
pop ecx
pop ecx
jmp 0x49ec90
test eax, eax
jne 0x49ebb8
push ebx
jmp 0x49eba2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x49ebde
push ebx
push dword [ebp - 0x10]
call fcn.0049eca0
jmp 0x49ec8d
call esi
cmp eax, 0x7a
jne 0x49ebd0
push dword [ebp - 0x14]
call fcn.004a1386
pop ecx
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x49ec06
push ebx
jmp 0x49ec77
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x49ec03
mov edi, ebx
mov byte [ebp - 0x18], bl
cmp dword [esi], ebx
jbe 0x49ec6b
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x49ec56
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x49ec3d
jmp 0x49ec6b
cmp byte [ebp + 0xc], 0
je 0x49ec67
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x18], 0
jne 0x49ec6b
mov byte [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0049eca0
pop ecx
pop ecx
push 0xc
push esi
mov bl, al
call fcn.004a1725
mov al, bl
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a103a
mov esp, ebp
pop ebp
ret

Function at 0x49ef4a
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and 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 0x49f715
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x49f738
xor al, al
jmp 0x49f7d2
push eax
call fcn.004a1050
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49f731
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4e7a30
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49f731
push esi
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push edi
push 0xd
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x49f7d0
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 2
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1050
xor edx, edx
mov dword [ebx + 0x38], eax
pop ecx
cmp dword [ebx + 0x3c], edx
jbe 0x49f7d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x49f7be
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4afd0a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af9b8
Function at 0x10001410
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1008700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push edi
movq qword [ebp - 0x1c], xmm0
mov edi, ebx
mov dword [ebp - 0x14], 0
nop dword [eax]
mov al, byte [edi]
cmp al, 0xc3
je 0x1000147a
cmp al, 0xc2
je 0x10001471
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.10001080
add edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10001462
cmp eax, 0xffffffff
je 0x1000146d
mov esi, edi
sub esi, ebx
cmp esi, 5
jb 0x10001440
jmp 0x1000147f
xor esi, esi
jmp 0x1000147f
mov esi, edi
sub esi, ebx
add esi, 3
jmp 0x1000147f
mov esi, edi
sub esi, ebx
inc esi
push 0x40
push 0x3000
lea eax, [esi + 5]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push dword [ebp - 0xc]
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [ebp - 0xc]
push edi
call fcn.10045830
mov eax, dword [ebp - 0xc]
add edi, esi
sub eax, edi
push esi
add eax, 0xfffffffb
add eax, esi
mov byte [edi], 0xe9
mov esi, dword [ebp - 0xc]
push 0x90
push esi
mov dword [edi + 1], eax
call fcn.10045670
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov ecx, dword [ebp - 4]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe9
mov dword [esi + 1], eax
xor ecx, ebp
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.100427b4
mov esp, ebp
pop ebp
ret
Function at 0x100053b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100053fa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x30
push 0
push 0x100891e4
call fcn.10045670
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [0x10089210], 0xfffffffb
call fcn.10003810
push 0
push 0
push 0
push 0x10004f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100056c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100057a6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10005795
jg 0x10005700
test edx, edx
je 0x10005795
nop dword [eax]
call fcn.10006f30
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10005754
jg 0x10005717
test esi, esi
je 0x10005754
cmp ebx, eax
jg 0x10005727
jl 0x10005721
cmp edi, esi
jae 0x10005727
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10045830
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10005779
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x1000578f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10005700
jl 0x1000578f
test edi, edi
jne 0x10005700
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x100057ce
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x100057d4
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x1000583c
jg 0x100057e9
test esi, esi
je 0x1000583c
test edx, edx
jl 0x10005837
jg 0x100057f3
test eax, eax
je 0x10005837
cmp edi, edx
jg 0x10005807
jl 0x100057fd
cmp esi, eax
jae 0x10005807
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.10045830
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x1000583f
mov ebx, dword [ebp + 8]
jmp 0x10005849
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x10005862
jg 0x10005849
test esi, esi
je 0x10005862
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10005862
push eax
push esi
push 1
push ebx
call fcn.100494fe
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc