joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45d3f3
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45d427
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45d45a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d45a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x45e602
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x479faf
call fcn.00444d58
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45e6df
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x45e66c
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47db68
mov esi, 0x47db60
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004023fe
push 0x490dd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00457440
lea ecx, [ebp - 0x40]
call fcn.0045e247
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x45e72e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x47db68
mov esi, 0x47db60
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.004023fe
push 0x490dd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00457440
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401f95
cmp dword [ebp - 0x10], 0
je 0x45e747
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45e747
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45f2c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45f2df
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45f314
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x45f31c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x45f332
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45f367
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45f36f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x45f383
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45f3b7
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.004601bf
test al, al
jne 0x45f3ea
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0045ad43
lea eax, [ebp - 0x4c]
push 0x48ae98
push eax
call fcn.00446365
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45f3ea
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.004554aa
lea eax, [ebp - 0x48]
push 0x489c50
push eax
call fcn.00446365
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x45fc9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040b257
xor ebx, ebx
cmp eax, 1
jne 0x45fd3a
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45fd27
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x45fcfe
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x45fd27
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x45fd3a
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x45fd3a
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045f779
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x46045f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x460497
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x4604a3
mov eax, dword [esi + 0x5c]
jmp 0x4604ec
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x4604ea
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x4604c8
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x4604ac
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x4609d1
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0045f955
add esp, 0x14
test eax, eax
je 0x460a0f
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x460a13
cmp eax, 0x12c
jae 0x460a13
mov al, 1
jmp 0x460a29
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x460ef9
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
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
ret
Function at 0x4619b1
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
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 0x461a18
call esi
cmp eax, 0x3f0
jne 0x461a0b
lea eax, [ebp - 4]
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 0x461a14
push 1
jmp 0x461a37
cmp eax, ebx
je 0x461a36
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x461a36
call esi
cmp eax, 0x7a
je 0x461a46
push ebx
push dword [ebp - 4]
call fcn.004619a2
pop ecx
pop ecx
jmp 0x461b3d
push dword [ebp - 8]
call fcn.00444d77
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x20]
push esi
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x461a8c
push ebx
push dword [ebp - 4]
call fcn.004619a2
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x461a84
push esi
call fcn.00444394
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x461b3d
lea eax, [ebp - 0x10]
push eax
mov al, byte [ebp + 8]
neg al
push ebx
push ebx
sbb eax, eax
push ebx
and al, 0xfd
push ebx
push ebx
add eax, 0x223
push ebx
push eax
push 0x20
lea eax, [ebp - 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x461ad6
push ebx
push dword [ebp - 4]
call fcn.004619a2
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x461ad1
push esi
call fcn.00444394
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x461b3d
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 0xc], bl
jbe 0x461b15
lea eax, [esi + 4]
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x461b02
add dword [ebp + 8], 8
inc edi
cmp edi, dword [esi]
jb 0x461ae5
jmp 0x461b15
cmp byte [ebp + 0xc], bl
je 0x461b11
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0xc], bl
jne 0x461b15
mov byte [ebp - 0xc], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004619a2
cmp byte [ebp - 0x20], bl
pop ecx
pop ecx
mov byte [ebp + 0xb], al
je 0x461b3a
push esi
call fcn.00444394
pop ecx
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461baf
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x461c01
push eax
call fcn.00444d77
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x461c01
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x491150
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x461c05
xor al, al
jmp 0x461c66
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x461c64
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00444d77
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x461c64
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x461c52
mov al, 1
pop ebx
leave
ret 4

Function at 0x46580e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4658e0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00444d77
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x4658e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.00465f9e
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.00465f48
mov edi, 0x498d98
push edi
call fcn.004450c0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00403ccb
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.00465332
push eax
push 0
mov ecx, esi
call fcn.004654a7
test eax, eax
je 0x4658e0
mov ecx, esi
call fcn.00465332
push eax
push 9
mov ecx, esi
call fcn.004654a7
test eax, eax
je 0x4658e0
push esi
mov ecx, esi
call fcn.00465782
test eax, eax
jne 0x4658e4
xor eax, eax
jmp 0x4658ee
push edi
call fcn.00444394
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x465a13
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x47a96c
call fcn.00444d58
sub esp, 0x5c
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp edi, eax
je 0x465b04
push ebx
push esi
and dword [ebp - 0x14], 0
mov eax, dword [edi + 4]
and dword [ebp - 4], 0
test eax, eax
jne 0x465a4b
mov eax, 0x47b5c0
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0040175f
mov ecx, dword [ebp + 0xc]
push 0xf003f
mov byte [ebp - 4], 1
mov esi, dword [ecx]
mov ecx, eax
call fcn.0040198d
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00417ceb
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401bc2
test bl, bl
jne 0x465ae0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.00465a13
cmp dword [edi + 0x14], 0
jne 0x465ae0
mov eax, dword [edi + 4]
test eax, eax
jne 0x465aad
mov eax, 0x47b5c0
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040175f
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov esi, dword [ecx]
mov ecx, eax
call fcn.0040198d
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
je 0x465af3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add edi, 0x38
cmp edi, dword [eax + 0x30]
jne 0x465a37
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x467b97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x467bba
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x4c]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00466ea9
add esp, 0x18
test eax, eax
je 0x467c5f
push dword [edi]
call fcn.00444d77
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x44]
call fcn.0045c7e9
cmp byte [ebp - 0xc], bl
je 0x467c03
push dword [ebp - 8]
call fcn.00444394
pop ecx
mov eax, dword [esi + 0x48]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00466ea9
add esp, 0x18
test eax, eax
je 0x467c5f
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x48]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x467c6c
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.004670f9
add esp, 0x18
test eax, eax
jne 0x467c6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x54], eax
xor al, al
jmp 0x467c86
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x467c84
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x469940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield15.0Professional
push SysFreeString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4699ca
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4699bf
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x4699b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x4699ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x10007342
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10185d40
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x101f2714], 1
jge 0x10185daf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10185d85
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10185d85
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185d62
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185d9b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x10185da2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10185e9f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10185e70
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10185e65
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10185e59
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10185e60
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x10185e9f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x10185e9a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185e83
mov eax, dword [ebx + 8]
jmp 0x10185e9f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10185e91
xor eax, eax
jmp 0x10185e9f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185dcf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10007f8b
Capabilities:
Print debug messages

Disassembly:
jmp 0x1007dc5f
push esi
mov esi, ecx
call fcn.100086e3
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x101a9ca0
call fcn.10003e45
test eax, eax
jns 0x1007dcae
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007dca7
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x101f1a50], 1
mov eax, esi
pop esi
ret
Function at 0x1002b9c0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
cmp dword [0x101eea20], 1
je 0x1002b9db
cmp dword [0x101eea20], 4
jne 0x1002ba03
push 0
push 0
push 0
push 0x1000452f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x101eea20], 0
jne 0x1002ba16
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10067940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x101eb26c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x100679ad
push str.WSAStartup_failed
push 0x101ef2c4
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x1f0]
call fcn.10003288
push 0x101e3560
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.10009700
movzx eax, word [ebp - 0x198]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
jne 0x100679d8
movzx eax, word [ebp - 0x198]
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x100679ff
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Invalid_WinSock_version
lea ecx, [ebp - 0x1fc]
call fcn.10006d4d
push 0x101e358c
lea eax, [ebp - 0x1fc]
push eax
call fcn.10009700
mov eax, dword [ebp - 8]
mov byte [eax], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000407a
mov esp, ebp
pop ebp
ret

Function at 0x10073e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100740d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10073f6d
mov edx, dword [ebp - 4]
cmp edx, dword [0x101eb1b0]
jb 0x10073eda
mov eax, dword [ebp - 4]
cmp eax, dword [0x101eb1b4]
ja 0x10073eda
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10073eaa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10004188
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x10073eff
jmp 0x10073f6d
cmp dword [ebp - 0x14], 0x10000
jne 0x10073f53
cmp dword [ebp - 0x18], 0x10000
jb 0x10073f53
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10073f36
mov eax, dword [ebp - 8]
jmp 0x10073f6f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10073f46
xor eax, eax
jmp 0x10073f6f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10073f68
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100740d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10073eaa
xor eax, eax
mov esp, ebp
pop ebp
ret