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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004985e2

Function at 0x4989ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00498765

Function at 0x49e497
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049dc1b

Function at 0x49e4a2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049de5a

Function at 0x49f002
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049eecf

Function at 0x4a78bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x4e1518]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a78fc
cmp byte [edx], 0xa
jne 0x4a78fc
or byte [eax + edi + 0x28], 4
jmp 0x4a7901
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x4a79f2
mov al, byte [ebx]
cmp al, 0x1a
je 0x4a79d3
cmp al, 0xd
je 0x4a792a
mov byte [esi], al
inc esi
inc ebx
jmp 0x4a79c8
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x4a794a
cmp byte [eax], 0xa
jne 0x4a793f
push 2
mov byte [esi], 0xa
pop eax
jmp 0x4a7945
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x4a79c8
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a79c1
cmp dword [ebp - 0x14], 0
je 0x4a79c1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e1518]
test byte [eax + edi + 0x28], 0x48
je 0x4a7998
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x4a7988
mov byte [esi], dl
jmp 0x4a79c4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e1518]
mov byte [eax + edi + 0x2a], dl
jmp 0x4a79c4
cmp byte [ebp - 1], 0xa
jne 0x4a79aa
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4a79aa
mov byte [esi], 0xa
jmp 0x4a7947
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a9559
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a79c5
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x4a7913
jmp 0x4a79f2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e1518]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a79ed
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a79f2
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a79fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x4e1518]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4a7a41
cmp word [edx], bx
jne 0x4a7a41
or byte [edi + eax + 0x28], 4
jmp 0x4a7a46
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4a7b9a
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4a7b7a
cmp ax, word [ebp - 0x10]
je 0x4a7a7f
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4a7b6f
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4a7aa5
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4a7a95
push ecx
pop eax
push 4
jmp 0x4a7a9a
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4a7b69
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a7b60
cmp dword [ebp - 0x18], 0
je 0x4a7b60
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x4e1518]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4a7b2c
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4a7af0
mov word [esi], ax
jmp 0x4a7b24
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x4e1518]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x4e1518]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x4e1518]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4a7b6f
cmp word [ebp - 4], ax
jne 0x4a7b41
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4a7b41
mov word [esi], ax
add esi, 2
jmp 0x4a7b6f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a9559
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a7b6c
jmp 0x4a7b63
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4a7a5f
jmp 0x4a7b9a
mov ecx, dword [ecx*4 + 0x4e1518]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4a7b91
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4a7b9a
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458cd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
jmp 0x458cea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458ce0
mov eax, 1
add ebx, ebx
jne 0x458d03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x458d14
jne 0x458d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458d33
dec eax
add ebx, ebx
jne 0x458d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x458cf8
add ebx, ebx
jne 0x458d2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x458d85
xor ecx, ecx
sub eax, 3
jb 0x458d4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x458dba
sar eax, 1
mov ebp, eax
jmp 0x458d56
add ebx, ebx
jne 0x458d56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458d24
inc ecx
add ebx, ebx
jne 0x458d64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458d24
add ebx, ebx
jne 0x458d71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x458d66
jne 0x458d82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x458d66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x458da4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x458d96
jmp 0x458ce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x458da4
add edi, ecx
jmp 0x458ce6
pop esi
mov edi, esi
mov ecx, 0xe02
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x458dc2
cmp byte [edi], 9
jne 0x458dc2
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 0x458dc7
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x458e36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c280]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c2e4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x458df4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c2e8]
or eax, eax
je 0x458e30
mov dword [ebx], eax
add ebx, 4
jmp 0x458e11
call dword [esi + 0x5c2f8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x458e67
cmp al, 0xef
ja 0x458e5a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x458e3c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x458e49
mov ebp, dword [esi + 0x5c2ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x458e9b
sub esp, 0xffffff80
jmp 0x40bc5f
Function at 0x40127b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
jmp 0x40131c
mov edx, edi
call fcn.004011e2
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040267d
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
jmp 0x40135a
or bl, 1
idiv ebx
mov edx, dword [0x404050]
mov ebx, esi
add edx, eax
mov eax, 0x404054
call fcn.004011e2
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x40338d
push eax
sub edi, fcn.00402b27
push edi
push fcn.00402b27
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x4012be
mov eax, fcn.00402b27
mov ebx, esi
jmp 0x4012a6
sub ebp, 0x82
mov esi, eax
mov ebx, dword [0x404050]
cdq
jmp 0x4012cf
call fcn.00401fff
lea eax, [esi + 0x1c000]
lea ebx, [ebp - 2]
test esi, esi
je 0x40136e
add eax, eax
dec esi
and esi, 0x404054
mov edx, eax
mov eax, esi
call fcn.00402b27
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
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
mov ebx, 0x40de38
nop
mov ecx, 0x3ea0753
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x2e9979cf
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
push edi
xor edi, edi
cmp dword [0x2edcacc], 0x594
mov dword [ebp - 8], eax
jne 0x40103b
push edi
lea eax, [ebp - 0x830]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x806f18]
mov dword [ebp - 0x20], eax
mov eax, dword [0x806f1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00401000
mov eax, dword [0x806f20]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x806f24]
add esi, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2edcacc], 0xc
mov dword [ebp - 4], eax
jne 0x4010b6
push edi
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2edcacc]
cmp eax, 0xfa9
jne 0x4010d2
mov dword [0x2edcac8], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010ed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x2edc47c], edi
mov ecx, dword [ebp - 0xc]
mov edx, ebx
lea eax, [esi + ebx]
shr edx, cl
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [0x2edcac4], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [esi + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x24]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub ebx, dword [ebp - 4]
add esi, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x401076
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4049b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x806410]
jne 0x4049c2
repz ret
jmp fcn.004079dc

Function at 0x40760e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401d2a
and dword [ebp - 4], 0
cmp dword [0x808f34], 0
mov ebx, eax
jne 0x4076bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407770
push eax
call fcn.00401cb8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x808f34], eax
call esi
push eax
call fcn.00401cb8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x808f38], eax
call esi
push eax
call fcn.00401cb8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x808f3c], eax
call esi
push eax
call fcn.00401cb8
pop ecx
mov dword [0x808f44], eax
test eax, eax
je 0x4076bf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401cb8
pop ecx
mov dword [0x808f40], eax
mov eax, dword [0x808f40]
cmp eax, ebx
je 0x407717
cmp dword [0x808f44], ebx
je 0x407717
push eax
call fcn.00401d33
push dword [0x808f44]
mov esi, eax
call fcn.00401d33
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407717
test edi, edi
je 0x407717
call esi
test eax, eax
je 0x40770e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40770e
test byte [ebp - 0xc], 1
jne 0x407717
or dword [ebp + 0x10], 0x200000
jmp 0x407750
mov eax, dword [0x808f38]
cmp eax, ebx
je 0x407750
push eax
call fcn.00401d33
pop ecx
test eax, eax
je 0x407750
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407750
mov eax, dword [0x808f3c]
cmp eax, ebx
je 0x407750
push eax
call fcn.00401d33
pop ecx
test eax, eax
je 0x407750
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x808f34]
call fcn.00401d33
pop ecx
test eax, eax
je 0x407770
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407772
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x407ef8
mov ecx, 0x259071c1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x77640d7b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001370
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10025e01
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10030050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CCrashHandler.0
push str.Uninstall_n
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0xc]
xor ebx, ebx
mov byte [esi + 0x44], bl
mov edx, dword [0x100325c4]
xor eax, eax
cmp edx, ebx
jle 0x100013ef
mov edi, dword [0x100325bc]
cmp dword [edi + eax*4], ecx
je 0x100013e5
add eax, 1
cmp eax, edx
jl 0x100013d7
jmp 0x100013ef
cmp eax, 0xffffffff
je 0x100013ef
call fcn.100039c0
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x1000140f
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x38]
push ecx
call fcn.10004730
mov edx, dword [esi + 0x34]
push edx
call fcn.1001274b
add esp, 8
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x10001438
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x28]
push ecx
call fcn.10004730
mov edx, dword [esi + 0x24]
push edx
call fcn.1001274b
add esp, 8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x10001461
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x18]
push ecx
call fcn.10004730
mov edx, dword [esi + 0x14]
push edx
call fcn.1001274b
add esp, 8
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x10001920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10026468
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x10030050]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov eax, edi
call fcn.10001a50
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.10002ee0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.10002ee0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x34], 1
call fcn.100036e0
lea esi, [edi + 0x30]
mov ebx, eax
mov byte [esp + 0x28], 2
call fcn.10003570
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100019c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100019e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001a08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10001a30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100070e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x100070f3
push 0x80004005
call fcn.10001020
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10007100
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x10007250
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x124
mov eax, dword [0x10030050]
xor eax, esp
mov dword [esp + 0x120], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x134]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x100072be
test ecx, ecx
je 0x100072b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x100072cc
test ecx, ecx
je 0x10007371
push ecx
jmp 0x1000736b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x1000733e
jmp 0x10007300
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.10007250
mov edi, eax
test edi, edi
jne 0x1000738d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x10007300
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007355
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007371
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10012810
add esp, 0x124
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000739c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10007373
Function at 0x10007d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10007d87
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007db8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10007db4
cmp esi, eax
jae 0x10007db8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10007da4
cmp esi, eax
jb 0x10007dbe
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10008560
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1002bdec
call edi
call fcn.10001210
mov esi, eax
cmp dword [esi + 0xc], 0
je 0x100085c8
push ebx
push str.::Install_n
call edi
cmp byte [esi + 0x44], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
je 0x100085a1
push str.Uninstall_n
call edi
mov eax, dword [esi + 4]
push eax
call ebx
mov byte [esi + 0x44], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0x100011b0
mov dword [esi + 8], ecx
mov dword [esi + 0x4c], edx
call ebx
push 1
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov byte [esi + 0x44], 1
mov eax, esi
pop ebx
pop edi
pop esi
ret