joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1001c250
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001c16d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001c0ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x10028004]
ja 0x1001c0ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001c0ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001c110
jmp 0x1001c16d
cmp dword [ebp - 0x14], 0x10000
jne 0x1001c153
cmp dword [ebp - 0x18], 0x10000
jb 0x1001c153
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001c146
mov eax, dword [ebp - 8]
jmp 0x1001c16f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001c168
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1001c250
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001c0ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001c180
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1001c280
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001c245
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001c1c5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10028004]
ja 0x1001c1c5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001c195
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001c1eb
jmp 0x1001c245
cmp dword [ebp - 0x14], 0x10000
jne 0x1001c22e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001c22e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001c221
mov eax, dword [ebp - 8]
jmp 0x1001c247
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001c240
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1001c280
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001c195
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001d650
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10188094], eax
je 0x1001d66e
mov eax, 0x10dd
jmp 0x1001d74f
mov eax, dword [0x101880a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001d6ec
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001d6ca
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001d6ca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1001c700
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1001e900
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1001d676
mov dword [0x101880a4], 0
call fcn.1001cfe0
mov ecx, dword [0x101880a0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1001d739
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1001e900
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1001d704
mov dword [0x101880a0], 0
mov dword [0x10188094], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001dc30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10188098], 0
je 0x1001dc49
mov eax, dword [0x10188098]
jmp 0x1001dce9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001dc5b
xor eax, eax
jmp 0x1001dce9
push 8
call fcn.1001ed56
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001dcb1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001dc9a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1001e900
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10188098], eax
mov dword [0x1018809c], 0
mov eax, dword [ebp - 8]
jmp 0x1001dce9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001dccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001dc7b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x101880a0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x101880a0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x101e7cae
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1

Function at 0x101e82b6
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 [0x101fe364], 0
mov byte [0x101fe368], 0
mov dword [0x101fe358], 0x1f87
mov dword [0x101fe360], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101e8318
xor eax, eax
mov dword [0x101fe358], 0xd51
mov dword [0x101fe360], 0
mov dword [ebp - 0x20], eax
jmp 0x101e8340
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101fe360]
add eax, 1
mov dword [0x101fe360], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101e8318
jmp 0x101e82fd
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101fe36c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101fe358], 0x17de
mov edi, dword [0x101fe364]
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 [0x101fe36c], esi
mov dword [0x101fe35c], 0x51e
mov dword [0x101fe358], 0xffffe312
mov eax, esi
cdq
idiv ecx
mov dword [0x101fe364], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101fe368], cl
mov dword [0x101fe358], 0x1980
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov esi, dword [0x101fe358]
add esi, 0x1ff7
mov dword [0x101fe35c], esi
mov cl, byte [0x101fe368]
mov esi, dword [0x101fe364]
mov byte [ebx + esi], cl
mov dword [0x101fe358], 0x5e6
mov esi, dword [0x101fe35c]
add esi, 0xfffffd1a
mov dword [0x101fe35c], esi
mov esi, dword [0x101fe360]
add esi, 1
mov dword [0x101fe360], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101e8340
mov dword [0x101fe358], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101e8440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101fe358], 0xeb4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x101e852f
lea eax, str.j1f_
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101fe35c], 0xe6d
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], ecx
call fcn.101e82b6
mov eax, dword [ebp - 0x13c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x148]
mov dword [esp + 0xc], edx
call fcn.101e8dc8
xor eax, eax
mov dword [0x101fe358], 0x1e27
mov ecx, dword [ebp - 0x144]
add ecx, 0x383f4
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x112c00
mov ecx, dword [ebp - 0x144]
add ecx, 0x10fe3
mov dword [edx + 8], ecx
mov ecx, dword [0x101fe358]
add ecx, 0xffffe53e
mov dword [0x101fe358], ecx
mov dword [edx + 0xc], 0x2000
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0x48
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add esi, ebx
add esi, 0x44
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x1b5
mov ecx, esi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x14c], edx
jne 0x101e852f
mov eax, dword [ebp - 0x14c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101ea4ab]
mov dh, byte [eax + 0x101ea47c]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x14c], ecx
jne 0x101e8590
lea eax, [ebp - 0x12c]
mov dword [0x101fe358], 0xf0b
mov dword [ebp - 0x150], eax
call fcn.101e9283
mov dword [esp], eax
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], eax
call fcn.101e8003
mov ecx, eax
mov dword [0x101fe378], eax
mov eax, esp
mov edx, dword [ebp - 0x148]
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, dword [0x101fe35c]
add edx, 0xffffd942
mov dword [0x101fe358], edx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0x48
mov esi, dword [edi]
imul edi, eax, 0xb4
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add edx, ebx
add edx, 0x44
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.101e87c2
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
add edx, 1
cmp edx, 0x1b5
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
je 0x101e8474
jmp 0x101e8643
Function at 0x101e884e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [0x101fe35c], 0x26de
mov dword [ebp - 0x10], eax
call fcn.101e7e95
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x101fe35c], 0xe73
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 0x101e889e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101fe358], 0x16bd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x101e892e
jmp 0x101e8964
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x24]
add edx, 0x1c
mov esi, dword [ebp - 0x1c]
add esi, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
add eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
add edx, dword [eax + esi*4]
mov dword [0x101fe358], 0x22a3
mov dword [ebp - 0x30], edx
jmp 0x101e892e
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 [ebp - 0x34], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edx
jmp 0x101e8939
mov eax, dword [ebp - 0x30]
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
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 - 0x54], eax
mov byte [ebp - 0x55], bh
mov byte [ebp - 0x56], cl
je 0x101e89b3
jmp 0x101e897e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add eax, dword [eax + ecx + 0x24]
mov dword [ebp - 0x5c], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
jmp 0x101e8912
mov eax, dword [ebp - 0x54]
add eax, 1
mov cl, byte [ebp - 0x55]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x56]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x61], ch
mov al, byte [ebp - 0x61]
test al, 1
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x50], ecx
jne 0x101e8939
jmp 0x101e89b3
mov al, byte [ebp - 0x56]
test al, 1
jne 0x101e88d8
jmp 0x101e89c0
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x48]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], eax
jb 0x101e8912
jmp 0x101e892e
Function at 0x101e8a34
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101fe358], 0x1927
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x101e8b03
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, 1
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 0x6c
mov dword [ebp - 0x1c], eax
je 0x101e8b78
jmp 0x101e8b71
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x101e8b1b
jmp 0x101e8b71
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [0x101fe358], 0x9f6
cmp eax, 0x104
setl cl
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x29], cl
mov al, byte [ebp - 0x29]
test al, 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], edx
jne 0x101e8b03
jmp 0x101e8a9b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x2a], dl
mov al, byte [ebp - 0x2a]
test al, 1
jne 0x101e8b5e
jmp 0x101e8b71
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
je 0x101e8a9b
jmp 0x101e8ab2
mov dword [0x101fe358], 0x21a9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101e8b71
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101e8b71
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x64
je 0x101e8ae7
jmp 0x101e8b71
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x101e8a6d
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x101e8b78
mov eax, dword [ebp - 0x1c]
add esp, 0x30
pop ebp
ret
Function at 0x101e8b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101ea4ab]
mov dl, byte [eax + 0x101ea47c]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x101e8bc8
jmp 0x101e8b98
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [0x101fe358], 0x1372
mov dword [ebp - 0x34], eax
call fcn.101e9283
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101e8003
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x101e8bc0
mov eax, dword [ebp - 0x38]
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 ecx, dword [0x101fe358]
add ecx, 0xffffdbc9
mov dword [0x101fe358], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.101e81af
xor eax, eax
mov ecx, dword [0x101fe358]
add ecx, 0xffffe005
mov dword [0x101fe35c], ecx
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x50], ecx
mov dword [0x101fe358], 0x19c4
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x34], ecx
add ecx, 0x26e6
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x101e8ca5
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101e8dc8
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 dword [0x101fe360], 0
mov dword [0x101fe364], 0
mov dword [0x101fe370], 0
mov ebx, dword [0x101fe35c]
add ebx, 0xfffff338
mov dword [0x101fe358], ebx
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101e8f46
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101fe358], 0x20d1
mov dword [0x101fe35c], 0x7e7
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101fe360], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101fe364], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101fe368], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101fe368]
mov edx, dword [0x101fe364]
mov byte [edi + edx], cl
mov dword [0x101fe35c], 0x2664
mov edx, dword [0x101fe360]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101fe364]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101fe370], ebx
mov dword [0x101fe358], 0x1fb1
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x101fe375], ch
mov byte [0x101fe376], cl
xor ch, cl
mov byte [0x101fe374], ch
mov dword [0x101fe358], 0x251f
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
mov dword [0x101fe35c], 0x13d3
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x101e8f46
mov eax, dword [0x101fe360]
mov ecx, dword [0x101fe364]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x101e8e33
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101e9082
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [0x101fe358], 0x1f19
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101e8440
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x5c], 0x112c00
mov ecx, dword [0x101fe344]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x101fe348]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x101fe34c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x18], eax
lea eax, [0x101e89ed]
mov ecx, dword [0x101fe350]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x101fe354]
mov dword [esp + 0x7c], ecx
mov dword [0x101fe35c], 0x4bf
mov dword [esp + 0x14], eax
jmp 0x101e9190
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101e915a
jmp 0x101e91a3
lea eax, [esp + 0x30]
mov dword [0x101fe35c], 0x341
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101e8b80
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 8], eax
jmp 0x101e91b7
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov dword [0x101fe35c], 0xe73
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
call fcn.101e8a34
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x101e9124
jmp 0x101e91b7
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x101e910e
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x101e9190
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x412d02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x412d11
pop dword [ebp - 0x3c]
mov eax, 0xeb0aeb10
sub eax, 0xeac9bdff
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4e899
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xf630954
add ecx, 0xf09d37f6
xor edi, edi
add edi, eax
mov esi, 0xe822028a
add esi, 0x18268b76
add esi, dword [ebp - 0x3c]
mov ebx, 0xaed5e7ae
sub dword [ebp - 4], eax
mov edx, dword [esi]
sub dword [ebp - 0x30], 0x6d32f02d
xor edx, ebx
sub dword [ebp - 0x20], eax
mov dword [edi], edx
add dword [ebp - 0x24], eax
add edi, 4
add esi, 4
loop 0x412d67
add eax, 0xf7fb
mov ebx, eax
add eax, 0xac66e11
sub eax, 0xac66e0c
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret