joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d241
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jbe 0x1001d29c
mov ecx, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
shl bl, 1
sub edi, ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0x1c]
mov esi, edx
test esi, esi
jne 0x1001d270
push 1
pop esi
mov al, byte [edi + ecx]
xor al, bl
mov byte [ecx], al
xor eax, eax
test esi, esi
jbe 0x1001d28a
mov edx, dword [ebp + 0x18]
mov dl, byte [eax + edx]
xor byte [ecx], dl
inc eax
cmp eax, esi
jb 0x1001d27d
mov eax, dword [ebp - 4]
xor byte [ecx], al
inc eax
inc ecx
cmp eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
jb 0x1001d25f
pop edi
pop esi
pop ebx
mov ax, 1
leave
ret 0x18

Function at 0x1001de8e
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
push esi
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001df2d
cmp dword [ebp - 0x84], 2
jne 0x1001df2d
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1001dee2
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax]
test ax, ax
je 0x1001df2d
mov ecx, dword [esi + 4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
test ax, ax
je 0x1001df2d
push dword [esi + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x1001df27
mov eax, dword [ebp + 0x20]
push edi
push dword [ebp + 0x18]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x1c]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test di, di
pop edi
jne 0x1001df2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret

Function at 0x1001e32e
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
push 0x15
pop ecx
lea edi, [ebp - 0x54]
lea esi, [eax + 0xc]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x48]
cmp edx, 0x70000000
jbe 0x1001e380
mov ecx, dword [ebx + 8]
cmp dword [ecx + 4], edx
je 0x1001e366
mov dword [ecx + 4], edx
mov dword [ebx + 0xc], 0x10002
jmp 0x1001e387
push dword [eax + 8]
call fcn.1001c7b3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 0xc], 0x40010003
jmp 0x1001e387
mov dword [ebx + 0xc], 0x80010001
pop edi
pop esi
mov ax, 1
pop ebx
leave
ret

Function at 0x10025e11
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
je 0x10025e3b
mov esi, dword [esp + 0xc]
cmp esi, 8
jae 0x10025e3b
test esi, esi
mov al, 0x56
jbe 0x10025e35
xor byte [ecx], al
mov dl, 0x32
imul dl
inc ecx
add al, 0x34
dec esi
jne 0x10025e29
mov ax, 1
pop esi
ret
xor ax, ax
pop esi
ret
Function at 0x10027230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10050c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.10027030
mov eax, dword [esi + 8]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100272a2
mov edx, dword [esp + 0x34]
lea ecx, [edi + edx - 1]
mov edi, dword [esi + 4]
cmp ecx, edi
jae 0x1002729b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea esi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100272a2
mov word [esp + 0x1a], 0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10027070
lea ecx, [esp + 0xc]
call fcn.100270a0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x10029f91
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10050d28
call fcn.10035078
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.1002ba28
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.1002b7e6
lea ecx, [ebp - 0x18]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov word [esi], di
mov dword [esi + 0x38], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
call fcn.1002aeb6
Function at 0x1002c0f0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10050e9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], 0x10058b60
mov dword [esp + 0x18], esi
mov dword [0x1008aca4], ebx
mov dword [esi + 4], 0x10058b58
mov dword [esp + 0x24], ebx
mov dword [esi + 8], 0x10058b4c
lea ecx, [esi + 0x18]
mov byte [esp + 0x24], 1
call fcn.1001bb19
mov edi, 0x98386281
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], 0x10058b40
lea ecx, [esi + 0x48]
mov byte [esp + 0x24], 2
call fcn.1001bb19
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x44], 0x10058b34
lea ecx, [esi + 0x68]
mov byte [esp + 0x24], 3
call fcn.1001bb19
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], ebx
mov dword [esi + 0x64], 0x10058b28
mov al, byte [esp + 0x13]
mov byte [esi + 0x84], al
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov cl, byte [esp + 0x13]
mov dword [esi + 0xb8], ebx
mov byte [esi + 0xb4], cl
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [esi + 0xc4]
mov byte [esp + 0x24], 6
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.100301c0
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
lea edi, [esi + 0xd4]
push 1
push ebx
mov byte [esp + 0x2c], 7
mov byte [edi], cl
mov ecx, edi
mov byte [edi + 1], dl
mov byte [edi + 8], bl
call fcn.10030b40
lea ecx, [esp + 0x14]
mov ebp, eax
call fcn.10041c95
cmp dword [0x1008acac], ebx
jne 0x1002c25b
mov eax, ebp
xor ebp, ebp
mov dword [0x1008acac], eax
mov dword [eax], ebx
mov eax, dword [0x1008acac]
mov dword [eax + 8], ebx
mov ecx, dword [0x1008aca8]
inc ecx
mov dword [0x1008aca8], ecx
lea ecx, [esp + 0x14]
call fcn.10041d31
cmp ebp, ebx
je 0x1002c27e
push ebp
call fcn.10034d76
add esp, 4
mov ecx, dword [0x1008acac]
push ebx
push ecx
mov ecx, edi
call fcn.10030b40
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], eax
mov dword [edi + 0xc], ebx
mov dword [eax], eax
mov edi, dword [edi + 4]
mov eax, esi
mov dword [edi + 8], edi
mov dword [esi], 0x10058b24
mov dword [esi + 4], 0x10058b1c
mov dword [esi + 8], 0x10058b10
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10031860
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10051168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov bl, byte [esp + 0x30]
push ebp
push esi
push edi
push 0x10
mov word [esp + 0x14], 0x79b9
mov dword [esp + 0x18], 0x20
mov byte [esp + 0x1c], bl
call fcn.10034d81
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov ecx, 8
test eax, eax
je 0x100318b1
mov word [eax], 0
add eax, 2
dec ecx
jne 0x100318a8
lea edi, [esi + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, eax
sub esp, 0x10
xor ecx, 0x1e93
mov dword [esp + 0x40], 0
mov word [esi], cx
mov ecx, edx
xor ecx, 0x9eed
mov dword [esp + 0x4c], esp
mov word [esi + 2], cx
mov ecx, dword [esp + 0x54]
mov ebp, ecx
xor ebp, 0x2092
mov word [esi + 4], bp
mov ebp, eax
xor ebp, ecx
xor ecx, 0x7210
xor ebp, 0x5635
mov word [esi + 6], bp
mov ebp, eax
xor ebp, 0x3491
xor eax, edx
mov word [esi + 8], bp
mov ebp, edx
xor ebp, 0xdab6
xor eax, 0x7644
mov word [esi + 0xa], bp
mov ebp, esp
mov word [esi + 0xc], cx
mov word [esi + 0xe], ax
test esi, esi
mov byte [ebp], bl
jne 0x10031948
xor eax, eax
jmp 0x1003194e
mov eax, edi
sub eax, esi
sar eax, 1
test eax, eax
jge 0x10031954
xor eax, eax
lea edx, [eax + eax]
push edx
call fcn.10034d81
add esp, 4
cmp esi, edi
mov dword [ebp + 4], eax
mov ecx, esi
je 0x1003197d
test eax, eax
je 0x10031973
mov dx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
cmp ecx, edi
jne 0x10031969
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
call fcn.10031ef0
push esi
call fcn.10034d76
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x100319b0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10051188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov bl, byte [esp + 0x30]
push ebp
push esi
push edi
push 0x10
mov word [esp + 0x14], 0x79b9
mov dword [esp + 0x18], 0x20
mov byte [esp + 0x1c], bl
call fcn.10034d81
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov ecx, 8
test eax, eax
je 0x10031a01
mov word [eax], 0
add eax, 2
dec ecx
jne 0x100319f8
lea edi, [esi + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, eax
sub esp, 0x10
xor ecx, 0x1e93
mov dword [esp + 0x40], 0
mov word [esi], cx
mov ecx, edx
xor ecx, 0x9eed
mov dword [esp + 0x4c], esp
mov word [esi + 2], cx
mov ecx, dword [esp + 0x54]
mov ebp, ecx
xor ebp, 0x2092
mov word [esi + 4], bp
mov ebp, eax
xor ebp, ecx
xor ecx, 0x7210
xor ebp, 0x5635
mov word [esi + 6], bp
mov ebp, eax
xor ebp, 0x3491
xor eax, edx
mov word [esi + 8], bp
mov ebp, edx
xor ebp, 0xdab6
xor eax, 0x7644
mov word [esi + 0xa], bp
mov ebp, esp
mov word [esi + 0xc], cx
mov word [esi + 0xe], ax
test esi, esi
mov byte [ebp], bl
jne 0x10031a98
xor eax, eax
jmp 0x10031a9e
mov eax, edi
sub eax, esi
sar eax, 1
test eax, eax
jge 0x10031aa4
xor eax, eax
lea edx, [eax + eax]
push edx
call fcn.10034d81
add esp, 4
cmp esi, edi
mov dword [ebp + 4], eax
mov ecx, esi
je 0x10031acd
test eax, eax
je 0x10031ac3
mov dx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
cmp ecx, edi
jne 0x10031ab9
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
call fcn.10032530
push esi
call fcn.10034d76
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x10038e39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1007da00
cmp edx, dword [eax]
je 0x10038e5b
add eax, 8
inc ecx
cmp eax, 0x1007da90
jl 0x10038e4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1007da00]
jne 0x10038f89
mov eax, dword [0x10092128]
cmp eax, 1
je 0x10038f63
test eax, eax
jne 0x10038e8c
cmp dword [0x1009212c], 1
je 0x10038f63
cmp edx, 0xfc
je 0x10038f89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10038ec3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10033710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10033800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10038f06
lea eax, [ebp - 0x1a4]
push eax
call fcn.10033800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10059098
push edi
call fcn.10034460
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10033710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10033720
lea eax, [ebp - 0xa0]
push 0x10059078
push eax
call fcn.10033720
push dword [esi + 0x1007da04]
lea eax, [ebp - 0xa0]
push eax
call fcn.10033720
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1003b805
add esp, 0x2c
pop edi
jmp 0x10038f89
lea eax, [ebp + 8]
lea esi, [esi + 0x1007da04]
push 0
push eax
push dword [esi]
call fcn.10033800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x8681f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d7000]
push edi
or ebp, 0xffffffff
jmp 0x868212
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x868219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x868208
mov eax, 1
add ebx, ebx
jne 0x86822b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86823c
jne 0x86825b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86825b
dec eax
add ebx, ebx
jne 0x868248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x868220
add ebx, ebx
jne 0x868257
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8682ad
xor ecx, ecx
sub eax, 3
jb 0x868273
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8682e2
sar eax, 1
mov ebp, eax
jmp 0x86827e
add ebx, ebx
jne 0x86827e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86824c
inc ecx
add ebx, ebx
jne 0x86828c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86824c
add ebx, ebx
jne 0x868299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86828e
jne 0x8682aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86828e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8682cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8682be
jmp 0x86820e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8682cc
add edi, ecx
jmp 0x86820e
pop esi
mov edi, esi
mov ecx, 0x69f8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8682ea
cmp byte [edi], 0xe
jne 0x8682ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8682ef
lea edi, [esi + 0x45f000]
mov eax, dword [edi]
or eax, eax
je 0x868367
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46cb94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46ccd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x86831c
mov ecx, edi
jns 0x86834b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x46ccd8]
or eax, eax
je 0x868361
mov dword [ebx], eax
add ebx, 4
jmp 0x868339
call dword [esi + 0x46cce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x868398
cmp al, 0xef
ja 0x86838b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x86836d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x86837a
mov ebp, dword [esi + 0x46ccdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8683cc
sub esp, 0xffffff80
jmp 0x4af4e0
Function at 0x4012f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Ensuring_registry_prerequisites_n
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftSystemCertificatesTrustedPublisherCertificates
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40136a
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0
push 0x3300
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push str.Error_Installing_Certificates..._n
call esi
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.trustedpublisher
push 0x24000
push 0
push 0
push 9
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
push str.Installing_all_certifcates..._n
mov ebx, eax
call esi
call section..text
push 2
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401998
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4088a8
call fcn.00401cb4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x409678
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x401759
cmp eax, esi
jne 0x40174c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x40175c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401733
xor esi, esi
inc esi
mov eax, dword [0x409674]
cmp eax, esi
jne 0x40176f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40179e
mov eax, dword [0x409674]
test eax, eax
jne 0x401798
mov dword [0x409674], esi
push 0x4020c4
push 0x4020b8
call fcn.004016a2
pop ecx
pop ecx
test eax, eax
je 0x40179e
jmp 0x4018c6
mov dword [0x40933c], esi
mov eax, dword [0x409674]
cmp eax, esi
jne 0x4017c2
push 0x4020b4
push 0x4020ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x409674], 2
test ebx, ebx
jne 0x4017ce
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x40967c], 0
je 0x4017f2
push 0x40967c
call fcn.00401be4
pop ecx
test eax, eax
je 0x4017f2
push 0
push 2
push 0
call dword [0x40967c]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40184e
test al, al
je 0x40180c
cmp dword [ebp - 0x1c], 0
jne 0x40184e
mov al, byte [esi]
test al, al
je 0x40181c
cmp al, 0x20
ja 0x40181c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40180c
test byte [ebp - 0x3c], 1
je 0x401828
movzx eax, word [ebp - 0x38]
jmp 0x40182b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x409338], eax
cmp dword [0x40932c], 0
jne 0x4018a2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x40185d
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401870
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4017f9
cmp dword [0x40933c], 0
jne 0x4018b1
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409338]
jmp 0x4018d2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401cf9
ret
call fcn.00401de3
jmp 0x4016f9
Function at 0x4010bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40114d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4010f6
cmp dword [ebp - 8], 2
jne 0x40114c
push esi
mov esi, dword [ebp + 0xc]
call fcn.00401a5f
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00401960
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x401134
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x401144
push eax
call fcn.00454255
pop ecx
mov edx, esi
call fcn.00401685
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x401154
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x48972a
call fcn.0045cbb7
mov ebx, ecx
push dword [ebp + 0x10]
call fcn.00454506
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004544c6
pop ecx
call fcn.004544d3
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fmul qword [0x49bd08]
fdiv qword [0x49bd00]
fadd qword [0x49bcf0]
call fcn.00486fe0
cmp eax, esi
jle 0x4011a8
xor al, al
call fcn.0045cc8f
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401860
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00401860
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00401860
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040145f
add esp, 0xc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040154a
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040154a
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jne 0x40122a
add eax, 0xfffffff0
call fcn.0040154a
jmp 0x4011a0
mov eax, dword [0x4afd74]
mov ecx, 0x4afd74
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.0041abb7
test eax, eax
jbe 0x40129e
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.0040178d
mov eax, edi
push eax
call fcn.00441b1c
pop ecx
mov eax, ebx
call fcn.0041abb7
cmp esi, eax
jb 0x401270
call fcn.0045446b
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.0040173c
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012a2
mov eax, ebx
inc esi
call fcn.0041abb7
cmp esi, eax
jb 0x40124c
mov bl, 1
jmp 0x4012a4
xor bl, bl
lea eax, [edi - 0x10]
call fcn.0040154a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040154a
mov al, bl
jmp 0x4011a2