joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a41a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [fcn.1000a41a]
mov dword [0x10193764], 0x1060
mov ecx, dword [0x10193760]
mov edx, ecx
add edx, 0x1bd4
add ecx, 0xc29
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
je 0x1000a472
jmp 0x1000a481
mov eax, dword [ebp - 0x14]
mov dword [0x10193764], eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x1000a462
mov eax, dword [ebp - 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
jmp 0x1000a44d

Function at 0x1000a4ae
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10193760], 0x13a8
mov dword [0x1019376c], 0
mov byte [0x10193770], 0
mov edi, dword [0x10193764]
add edi, 0xffffea5b
mov dword [0x10193764], edi
mov dword [0x10193768], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10193764]
add eax, 0xfffff29d
mov dword [0x10193760], eax
mov eax, dword [0x10193768]
add eax, 1
mov dword [0x10193768], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000a505
xor eax, eax
mov dword [0x10193760], 0x119a
mov dword [0x10193768], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x10193774], 0
mov dword [0x10193760], 0x21a0
mov edi, dword [0x1019376c]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x10193774], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x1019376c], edx
mov dword [0x10193764], 0xd15
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10193770], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x10193760], 0x18ab
mov cl, byte [0x10193770]
mov esi, dword [0x1019376c]
mov byte [ebx + esi], cl
mov esi, dword [0x10193768]
add esi, 1
mov dword [0x10193768], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1000a553
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000a695
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1018e611]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x10193764], 0x780
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1000a606
mov eax, dword [0x10193760]
add eax, 0x23bd
mov dword [0x10193760], eax
call fcn.1000afa9
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000a15a
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1000a7b9
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10193760], 0x1a85
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000a30f
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x10193764], 0xffffea19
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x58], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 4], ecx
mov dword [0x10193760], 0x24ae
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1000a7b9
mov eax, dword [0x10193764]
mov ecx, dword [ebp - 0x44]
add ecx, 0x2756
add eax, 0xffffec01
mov dword [0x10193764], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x1000a864
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x10193760], 0xacb
mov dword [ebp - 0x10], eax
call fcn.1000b36e
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1000a8aa
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x10193764], 0x6ce
mov esi, dword [edx + eax + 0x24]
mov dword [0x10193760], 0xfffffca0
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x1000a9dd
jmp 0x1000a947
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], eax
jb 0x1000a957
jmp 0x1000a9dd
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x10193760], 0x1919
mov dword [ebp - 0x34], edi
jmp 0x1000a9dd
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [0x10193760], 0xacb
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1000a9cd
mov al, byte [ebp - 0x51]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x52]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x1000a97b
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1000a91f
jmp 0x1000a8f6
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000b0cd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x10193764], 0x1a0e
mov dword [ebp - 4], 0
mov dword [0x10193760], 0x7d0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x10193760]
add edx, 0xfffffa13
mov dword [0x10193760], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x10193764], 0x19a
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1000b140
mov eax, 1
mov dword [0x10193760], 0x26a1
mov dword [ebp - 0x14], eax
jmp 0x1000b274
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x1000b1da
mov eax, dword [ebp - 0x1c]
mov ecx, 0xffffec88
mov dword [0x10193760], 0x2b1
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x1000b1fa
jmp 0x1000b1c8
mov eax, 0xffffee12
mov dword [0x10193760], 0x43b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x24], eax
je 0x1000b254
jmp 0x1000b1c8
mov eax, 0x1137
mov dword [0x10193760], 0x2760
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x24], eax
je 0x1000b213
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [0x10193764], eax
mov dword [ebp - 0x14], ecx
jmp 0x1000b274
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000b140
jmp 0x1000b15a
mov eax, 0xffffec88
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x24], eax
je 0x1000b1a7
jmp 0x1000b1c8
mov eax, 0x1137
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x24], eax
jne 0x1000b1c8
mov eax, 0xfffff83a
mov dword [0x10193760], 0xe63
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x24], eax
je 0x1000b180
jmp 0x1000b1c8
mov eax, 0xffffee12
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x1000b129
jmp 0x1000b1c8
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret
Function at 0x1000b4e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x1541
mov dword [0x10193768], 0
mov dword [0x1019376c], 0
mov dword [0x10193778], 0
mov dword [0x10193760], 0x1541
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x1000b676
jmp 0x1000b571
mov eax, dword [0x1019376c]
mov ecx, dword [0x10193760]
mov edx, dword [0x10193768]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
mov ebx, edx
add ebx, 1
add eax, 0xffffe50f
add esi, 1
mov dword [0x10193760], eax
mov eax, esi
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x10193768], edx
mov dword [0x10193764], 0x1c5a
mov esi, dword [ebp - 0x24]
movzx esi, byte [esi + edx]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x1019376c], edx
mov dword [0x10193760], 0xe53
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10193770], cl
mov dword [0x10193764], 0x1303
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10193770]
mov edx, dword [0x1019376c]
mov byte [edi + edx], cl
mov edx, dword [0x10193760]
mov ecx, edx
add ecx, 0x1414
mov dword [0x10193760], ecx
mov ecx, dword [0x10193768]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x1019376c]
movzx esi, byte [edi + esi]
add esi, ecx
mov ecx, edx
add ecx, 0xfffff366
mov dword [0x10193760], ecx
and esi, 0xff
mov dword [0x10193778], esi
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
mov ch, byte [esi + edi]
add edx, 0xffffe34d
mov dword [0x10193760], edx
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x30], ebx
jne 0x1000b551
mov dword [0x10193764], 0xaeb
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401207
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], edx
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [0x41a2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a2fc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], eax
call fcn.00401200
mov ebx, dword [ebp - 4]
add ebx, 0x23f
cmp dword [0xec5424], 0x14
jne 0x401261
push edx
lea eax, [ebp - 0x830]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a300]
mov edx, dword [0x41a304]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
mov dword [ebp - 4], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xec5424], 0xfa9
mov dword [ebp - 0x10], eax
mov eax, dword [0xec5420]
cmove eax, dword [ebp - 4]
and dword [ebp - 4], 0
cmp dword [0xec5424], 0x3eb
mov dword [0xec5420], eax
mov eax, dword [0xec5378]
cmove eax, dword [ebp - 4]
mov dword [0xec5378], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], edx
and dword [ebp - 0xc], 0
mov dword [0xec541c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub esi, eax
mov dword [ebp - 0x14], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
mov edx, esi
lea ebx, [ebx + 0x61c88647]
shr edx, cl
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
xor edx, eax
mov eax, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0x24]
sub edi, eax
mov dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jne 0x40127d
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc29
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419f20]
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.00409680
mov dword [ebp - 0x14], eax
cmp dword [0x820c18], esi
jne 0x40cd1c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cdfc
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cdfc
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cdfc
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x820c18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x820c1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x820c20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x820c28], eax
test eax, eax
je 0x40cd19
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x820c24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cd41
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cd34
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cd56
push 4
pop eax
jmp 0x40cdfe
cmp dword [ebp - 0x14], esi
je 0x40cd56
push dword [0x820c18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cd3b
mov eax, dword [0x820c24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cdb4
cmp dword [0x820c28], edi
je 0x40cdb4
push eax
call ebx
push dword [0x820c28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cdb4
test eax, eax
je 0x40cdb4
call ecx
test eax, eax
je 0x40cda9
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 0x40cda9
test byte [ebp - 8], 1
jne 0x40cdb4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cde4
mov eax, dword [0x820c1c]
cmp eax, edi
je 0x40cde1
push eax
call ebx
test eax, eax
je 0x40cde1
call eax
mov esi, eax
test esi, esi
je 0x40cde1
mov eax, dword [0x820c20]
cmp eax, edi
je 0x40cde1
push eax
call ebx
test eax, eax
je 0x40cde1
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x820c18]
call ebx
test eax, eax
je 0x40cdfc
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cdfe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404007
mov esp, ebp
pop ebp
ret
Function at 0x4011fb
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x40138c
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov dword [0x402084], 0xffffffff
mov eax, dword [0x402084]
mov dword [0x402088], eax
call dword [sym.imp.MSVCRT20.dll___p__fmode]
mov ecx, dword [0x404018]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT20.dll___p__commode]
mov ecx, dword [0x404014]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT20.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40208c], eax
call fcn.0040138b
call fcn.00401378
push 0x404030
push 0x40402c
call sub.MSVCRT20.dll__initterm
add esp, 8
mov eax, dword [0x404010]
push eax
mov eax, dword [0x40400c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT20.dll___getmainargs]
add esp, 0x14
push 0x404028
push 0x404024
call sub.MSVCRT20.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT20.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4012d7
mov al, byte [ebp - 0x3c]
inc esi
mov al, byte [esi]
test al, al
je 0x4012cf
cmp al, 0x22
jne 0x4012c4
cmp byte [esi], 0x22
jne 0x4012e1
inc esi
jmp 0x4012e1
cmp al, 0x20
jbe 0x4012e1
inc esi
cmp byte [esi], 0x20
ja 0x4012db
cmp byte [esi], 0
je 0x4012f1
cmp byte [esi], 0x20
ja 0x4012f1
inc esi
cmp byte [esi], 0
jne 0x4012e6
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
mov eax, 0xa
je 0x401314
movzx eax, word [ebp - 0x54]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT20.dll_exit]
jmp 0x401352
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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 0x1001b4a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001b76
xor esi, esi
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001bcd
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x10012dc
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001bb7
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001bcd
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001bd7
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.01003ce8
xor eax, eax
jmp 0x1001bda
push 1
pop eax
pop esi
leave
ret

Function at 0x1001bdd
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
je 0x1001be9
push 2
pop eax
jmp 0x1001bee
call fcn.01001b20
cmp eax, 2
jne 0x1001c36
test byte [esp + 4], 4
je 0x1001bff
push 6
pop eax
jmp 0x1001c16
push 4
push 0x40
push 0
push 0x10012b8
push 0x522
push 0
call fcn.01003ce8
cmp eax, 6
jne 0x1001c36
cmp word [0x100bc04], 0
jne 0x1001c31
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x1001c36
call fcn.01001b4a
ret 4

Function at 0x1001c39
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a300], 0
je 0x1001c7c
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c7c
push 0x100a300
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001e73
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100a300], bl
je 0x1001f6b
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f6b
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
mov esi, 0x100a300
push ebx
push esi
mov dword [ebp - 8], 0x238
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001f61
mov al, byte [0x10012b8]
push edi
push 0x40
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001f1c
lea eax, [ebp - 0x10c]
push 0x10012b8
push eax
call fcn.01005a84
lea eax, [ebp - 0x10c]
push 0x100ae84
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret