joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ec0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426480]
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.00408d85
mov dword [ebp - 0x14], eax
cmp dword [0x826360], esi
jne 0x416fb3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417093
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417093
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417093
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x826360], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x826364], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x826368], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x826370], eax
test eax, eax
je 0x416fb0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x82636c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416fd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416fcb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x416fed
push 4
pop eax
jmp 0x417095
cmp dword [ebp - 0x14], esi
je 0x416fed
push dword [0x826360]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416fd2
mov eax, dword [0x82636c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41704b
cmp dword [0x826370], edi
je 0x41704b
push eax
call ebx
push dword [0x826370]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41704b
test eax, eax
je 0x41704b
call ecx
test eax, eax
je 0x417040
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 0x417040
test byte [ebp - 8], 1
jne 0x41704b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41707b
mov eax, dword [0x826364]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
call eax
mov esi, eax
test esi, esi
je 0x417078
mov eax, dword [0x826368]
cmp eax, edi
je 0x417078
push eax
call ebx
test eax, eax
je 0x417078
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x826360]
call ebx
test eax, eax
je 0x417093
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417095
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406fb0
mov esp, ebp
pop ebp
ret
Function at 0x10003c9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101d4da0]
jne 0x10003ca6
repz ret
jmp fcn.10003f4d

Function at 0x100044f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101d4d80], 0
mov byte [0x101d4d84], 0
mov dword [0x101d4d74], 0x223a
mov dword [0x101d4d7c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [0x101d4d74], 0x23f6
mov eax, dword [0x101d4d7c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101d4d7c]
add eax, 1
mov dword [0x101d4d7c], eax
cmp eax, 0x100
jl 0x10004530
jmp 0x1000463a
mov eax, 0x100
mov dword [0x101d4d88], 0
mov ecx, dword [0x101d4d80]
mov edx, dword [0x101d4d7c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x101d4d88], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x101d4d80], edx
mov dword [0x101d4d74], 0x9d4
mov edx, dword [0x101d4d7c]
mov cl, byte [esi + edx]
mov byte [0x101d4d84], cl
mov dword [0x101d4d74], 0xfffff859
mov edx, dword [0x101d4d80]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dl, byte [eax + ecx]
mov esi, dword [0x101d4d7c]
mov byte [eax + esi], dl
mov dword [0x101d4d74], 0x1f37
mov dl, byte [0x101d4d84]
mov esi, dword [0x101d4d80]
mov byte [eax + esi], dl
mov esi, dword [0x101d4d74]
add esi, 0xfffffbe3
mov dword [0x101d4d74], esi
mov esi, dword [0x101d4d7c]
add esi, 1
mov dword [0x101d4d7c], esi
cmp esi, 0x100
jl 0x10004564
jmp 0x10004649
mov dword [0x101d4d7c], 0
jmp 0x10004564
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.10004660
xor ecx, ecx
mov dword [0x101d4d74], 0x26c3
mov edx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0xb8
mov edi, edx
add edi, esi
add edi, 0xb4
mov esi, dword [edi]
imul edi, eax, 0xb8
add edx, edi
add edx, 0x4a
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x134
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
je 0x100047df
jmp 0x100046ab
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
lea edx, section..data
imul esi, eax, 0xb8
mov edi, edx
add edi, esi
add edi, 0xb4
mov esi, dword [edi]
imul edi, eax, 0xb8
mov ebx, edx
add ebx, edi
add ebx, 0x2c
mov edi, dword [ebx]
imul ebx, eax, 0xb8
add edx, ebx
add edx, 0x4a
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edx
call fcn.100051c0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add eax, ecx
mov edx, dword [ebp - 0x50]
add edx, 1
cmp edx, 0x134
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
jne 0x100046fb
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.10005120
mov dword [0x101d4d78], 0xe79
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x15326
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x150000
mov ecx, dword [ebp - 0x4c]
add ecx, 0xcc88
mov dword [edx + 8], ecx
mov ecx, dword [0x101d4d78]
add ecx, 0x745
mov dword [0x101d4d74], ecx
mov dword [edx + 0xc], 0x2000
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [0x101c651e]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
call fcn.100052e0
mov dword [0x101d4d78], 0x1da2
mov dword [0x101d4d74], 0xbcc
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.10004230
mov ecx, eax
mov dword [0x101d4d94], eax
mov eax, esp
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
jmp 0x100046fb
Function at 0x10004d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x2a
lea ecx, [fcn.10004d40]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10004d69
mov eax, dword [ebp - 0xc]
mov dword [0x101d4d74], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jne 0x10004d8b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10004d59
mov eax, 0x1e0d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10004d69

Function at 0x10004f30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101d4d7c], 0
mov dword [0x101d4d80], 0
mov dword [0x101d4d8c], 0
mov dword [0x101d4d78], 0x1d00
mov dword [0x101d4d74], 0x24ab
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x10005096
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x101d4d7c]
mov esi, eax
add esi, 1
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x101d4d7c], edx
mov dword [0x101d4d74], 0x11eb
mov edi, dword [0x101d4d80]
mov ebx, dword [ebp - 0x1c]
movzx edx, byte [ebx + edx]
add edx, edi
mov eax, edx
cdq
idiv ecx
mov dword [0x101d4d80], edx
mov ecx, dword [0x101d4d74]
add ecx, 0x1cfe
mov dword [0x101d4d78], ecx
mov ecx, dword [0x101d4d7c]
mov cl, byte [ebx + ecx]
mov byte [0x101d4d84], cl
mov dword [0x101d4d74], 0x7d5
mov edx, dword [0x101d4d80]
mov cl, byte [ebx + edx]
mov edx, dword [0x101d4d7c]
mov byte [ebx + edx], cl
mov cl, byte [0x101d4d84]
mov edx, dword [0x101d4d80]
mov byte [ebx + edx], cl
mov dword [0x101d4d78], 0x2207
mov edx, dword [0x101d4d7c]
movzx edx, byte [ebx + edx]
mov edi, dword [0x101d4d80]
movzx edi, byte [ebx + edi]
add edi, edx
and edi, 0xff
mov dword [0x101d4d8c], edi
mov cl, byte [ebx + edi]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
movzx edx, byte [edx + edi]
mov dword [esp], edx
movzx edx, cl
mov dword [esp + 4], edx
mov dword [ebp - 0x28], esi
call fcn.10001000
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov byte [edx + esi], al
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
mov dword [ebp - 0x20], edi
jne 0x10004f97
mov eax, dword [0x101d4d74]
add eax, 0xfffff597
mov dword [0x101d4d74], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x101d4d74], 0x6a9
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101d4d78], 0x9a7
mov esi, dword [0x101d4d74]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
jmp 0x100055f5
mov dword [0x101d4d74], 0x144b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1000566b
jmp 0x100055a7
mov eax, 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1000568d
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1000568d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [0x101d4d74], ecx
mov dword [0x101d4d78], 0x85f
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x10005619
jmp 0x100055a7
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
jge 0x100055b1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffbee
mov edx, dword [ebp - 0x14]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
je 0x100055b1
jmp 0x100055d8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100055a7
mov dword [0x101d4d78], 0x18d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100055a7
mov dword [0x101d4d78], 0xfffff24c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1000556d
jmp 0x100055a7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x6c
je 0x1000558c
jmp 0x100055a7
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x4d1ece
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4e44ff
call fcn.004aef44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cba8f
mov eax, dword [0x51f03c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5262f8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004d1d07
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c6033
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a72f2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4d4820
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d484e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4d486c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4786
jmp 0x4d486c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d486c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4786
test edi, edi
mov eax, edi
jne 0x4d4856
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x36b900e6
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x546e6956
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x16a8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.016a81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x16a807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16a806a
add dl, dl
jne 0x16a8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16a80dc
xor eax, eax
add dl, dl
jne 0x16a8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x16a817d
add dl, dl
jne 0x16a80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16a80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16a80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16a80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x16a80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x16a8075
mov eax, 1
add dl, dl
jne 0x16a80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16a80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16a80e1
sub eax, ebx
mov ebx, 1
jne 0x16a8128
mov ecx, 1
add dl, dl
jne 0x16a810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16a8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16a8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16a8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16a813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16a814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x16a8136
cmp eax, 0x7d00
jae 0x16a816d
cmp eax, 0x500
jb 0x16a8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16a8075
cmp eax, 0x7f
ja 0x16a8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x16a8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x16a819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x16a8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x1002e08f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100075dc]
jne 0x1002e6f5
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10032ca0], eax
mov dword [0x10032c9c], ecx
mov dword [0x10032c98], edx
mov dword [0x10032c94], ebx
mov dword [0x10032c90], esi
mov dword [0x10032c8c], edi
mov word [0x10032cb8], ss
mov word [0x10032cac], cs
mov word [0x10032c88], ds
mov word [0x10032c84], es
mov word [0x10032c80], fs
mov word [0x10032c7c], gs
pushfd
pop dword [0x10032cb0]
mov eax, dword [ebp]
mov dword [0x10032ca4], eax
mov eax, dword [ebp + 4]
mov dword [0x10032ca8], eax
lea eax, [ebp + 8]
mov dword [0x10032cb4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10032bf0], 0x10001
mov eax, dword [0x10032ca8]
mov dword [0x10032ba4], eax
mov dword [0x10032b98], 0xc0000409
mov dword [0x10032b9c], 1
mov eax, dword [0x100075dc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10032ad8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10032be8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100075ec
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10032be8], 0
jne 0x1002e7e1
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401650
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x10], edx
push 8
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
ret 8

Function at 0x401690
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 8]
push ecx
push 1
lea edx, [esp + 0xf]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4016c2
xor al, al
add esp, 8
ret
xor eax, eax
cmp dword [esp + 4], 1
sete al
add esp, 8
ret
Function at 0x402e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4abd28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi + 4], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x34]
xor edi, edi
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], edi
mov dword [esi], vtable.rdrhelper::CRdrDiskImageHelper.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
cmp eax, edi
jne 0x402e93
mov eax, 0x200
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
lea eax, [esp + 0x28]
cmp ecx, edi
je 0x402eb0
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ecx
push edi
push eax
call edx
jmp 0x402eb4
mov dword [esp + 0x28], edi
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebp
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x28