joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.100207f3
add esp, 4
cmp eax, ebx
je 0x10001324
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.100207f3
add esp, 4
cmp eax, ebx
je 0x10001300
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.100206ba
push 0x100425d0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x10039384
call fcn.10021901
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.100206ba
push 0x100425d0
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0x10039384
call fcn.10021901
int3

Function at 0x100087d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100087eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10008822
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1000881e
jmp 0x10008810
cmp esi, eax
jae 0x10008822
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10008810
cmp esi, eax
jb 0x10008829
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10009dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009ea9
mov edx, dword [ebp - 4]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1003dea0
mov esi, 1
push edx
mov dword [ebp - 0xc], esi
call edi
cmp eax, 2
jne 0x10009e22
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x10009e7a
cmp dword [ebp - 0xc], esi
jne 0x10009e9d
mov eax, dword [ebp - 8]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020192
mov esi, eax
mov eax, dword [ebp - 8]
inc eax
push eax
push 0
push esi
call fcn.10021fb0
mov eax, dword [ebp - 4]
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push 0x1003dea0
push eax
call edi
push esi
test eax, eax
je 0x10009e8c
call fcn.1002093d
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.10007c90
push esi
call fcn.1002093d
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a840
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10046ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x10046a68
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0xb
push 0x1003df30
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.100082b0
push 0x26
push 0x1003df48
lea ecx, [ebp - 0x18]
call fcn.100082b0
push 0x18
push 0x1003df98
lea ecx, [ebp - 0x14]
call fcn.100082b0
lea eax, [ebp - 0x34]
push eax
push 0x100091a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov bl, byte [ebp - 0x34]
lea esi, [ebp - 0x34]
call fcn.1000a930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100202b1
mov esp, ebp
pop ebp
ret

Function at 0x1000ab00
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036008
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10046ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1003dff4
lea ecx, [ebp - 0x38]
call fcn.10007be0
mov eax, dword [ebp - 0x38]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1000ab56
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1000ab56
mov bl, 1
jmp 0x1000ab58
xor bl, bl
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000ab77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1000ab7f
mov al, 1
jmp 0x1000abd3
lea esi, [ebp - 0x34]
call fcn.10009480
push 0xf
push 0x1003e018
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.100082b0
push 0
push 0x1003e0f0
lea ecx, [ebp - 0x18]
call fcn.100082b0
push 8
push 0x1003e038
lea ecx, [ebp - 0x14]
call fcn.100082b0
mov ecx, esi
push ecx
push 0x100091a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov bl, byte [ebp - 0x34]
call fcn.1000a930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100202b1
mov esp, ebp
pop ebp
ret
Function at 0x1000be00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003616d
mov eax, dword fs:[0]
push eax
mov eax, 0x5018
call fcn.10022500
mov eax, dword [0x10046ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x5018], eax
mov dword [ebp - 0x5024], esi
mov dword [ebp - 4], 2
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
push 0x5000
lea eax, [ebp - 0x5010]
push esi
push eax
mov dword [ebp - 0x5024], 1
call fcn.10021fb0
mov edx, dword [0x10046a68]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x10046a68
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x5014], edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ecx
push 0x2800
lea edx, [ebp - 0x5010]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor eax, eax
mov dword [ebp - 0x501c], eax
lea ebx, [ebp + eax*2 - 0x5010]
movzx eax, word [ebx]
test ax, ax
je 0x1000bf17
mov ebx, dword [edi - 0xc]
lea esi, [ebx + 1]
mov ecx, eax
mov dword [ebp - 0x5020], ecx
test esi, esi
js 0x1000bff0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x1000bef8
push esi
lea ecx, [ebp - 0x5014]
call fcn.10008360
mov edi, dword [ebp - 0x5014]
mov dx, word [ebp - 0x5020]
mov word [edi + ebx*2], dx
cmp esi, dword [edi - 8]
jg 0x1000bff0
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x1000bf4e
lea esi, [ebp - 0x5014]
call fcn.1000b7c0
test al, al
je 0x1000bf48
mov ecx, esi
push ecx
mov ecx, dword [ebp - 0x5018]
call fcn.10008ca0
push 0x1003cb58
mov ecx, esi
call fcn.1000b6d0
mov edi, dword [ebp - 0x5014]
jmp 0x1000bf4e
cmp word [ebx], 0
je 0x1000bf66
mov eax, dword [ebp - 0x501c]
inc eax
mov dword [ebp - 0x501c], eax
cmp eax, 0x2800
jl 0x1000beb0
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000bf86
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000bfa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000bfcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x5018]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100202b1
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.10008840
int3
Function at 0x1000c000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037890
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x10046ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x10049e64], al
jne 0x1000c050
or dword [0x10049e64], eax
push 0x100383c0
mov dword [0x10049e68], 0x1003e1d0
call fcn.10020a6b
add esp, 4
mov eax, dword [0x10049e18]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.1001abb0
push 0x1003e128
push eax
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 4], 0
call fcn.10007d60
add esp, 0x14
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c09b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x10049e18]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.1001abb0
push 0x1003e144
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.10007d60
add esp, 0x14
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c0e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call esi
test eax, eax
je 0x1000c110
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x10049e68
call fcn.1001c9c0
test eax, eax
je 0x1000c110
lea ecx, [ebp - 0x10]
call fcn.1000ca00
jmp 0x1000c122
mov eax, dword [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x1000c122
lea ecx, [ebp - 0x14]
call fcn.1000c5d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000c16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000df90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036b10
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10046ca0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov esi, ecx
push 0x24
xor ebx, ebx
mov ebp, 0xf
push 0x1003e200
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.10004dc0
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x84], ebx
call fcn.10004420
push 0x1003e1f4
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x90], 1
call fcn.10004420
add esp, 0x18
mov edi, eax
mov ecx, esi
mov byte [esp + 0x78], 2
call fcn.10020621
mov byte [esp + 0x78], 3
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], 0x10039960
mov dword [esi + 0xc], 6
push ebx
mov dword [ecx + 0x14], ebp
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.10005260
mov edi, 0x10
cmp dword [esp + 0x48], edi
jb 0x1000e070
mov eax, dword [esp + 0x34]
push eax
call fcn.100202a6
add esp, 4
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x64], edi
jb 0x1000e08f
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100202a6
add esp, 4
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], edi
jb 0x1000e0ae
mov edx, dword [esp + 0x18]
push edx
call fcn.100202a6
add esp, 4
mov eax, esi
mov dword [esi], 0x100399c8
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100202b1
add esp, 0x68
ret 4
Function at 0x100121f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036dd9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10046ca0]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], esi
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], 2
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov ecx, dword [esp + 0x28]
mov dl, byte [esp + 0x30]
mov byte [esp + 0x20], 5
mov dword [esi + 0x24], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
mov dword [esi], 0x1003e7a4
mov dword [esi + 4], 0x1003e864
mov byte [esi + 0x28], dl
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.10005260
push 0xffffffffffffffff
lea ecx, [esi + 0x50]
mov byte [esp + 0x24], 6
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.10005260
mov eax, dword [esp + 0x34]
mov byte [esp + 0x20], 7
cmp eax, ebx
jge 0x100122b1
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
je 0x100122cc
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], eax
jmp 0x100122d3
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xc], ecx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100202b1
add esp, 0x14
ret 0x18
Function at 0x10014850
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [eax + 0x8c]
push edi
add ecx, 8
mov edi, 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003ce40]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d040]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d240]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1003d440]
mov eax, dword [ecx - 0x14]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003cf40]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d140]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d340]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1003d540]
xor edx, ebx
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003ce40]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d040]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d240]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1003d440]
mov eax, dword [ecx - 0xc]
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1003cf40]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d140]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1003d340]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1003d540]
xor esi, ebx
dec edi
jne 0x10014872
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x1001a3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001a422
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1001a3f1
cmp eax, 2
jne 0x1001a40c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x1001a41c
test eax, eax
je 0x1001a417
test al, 1
jne 0x1001a40c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x1001a41c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1001a430
Capabilities:
Create process on windows

Disassembly:
push 0
push 0x10039398
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 0x1f
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x1001a9a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10046ca0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.10021fb0
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001aa10
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call fcn.1000d640
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100202b1
mov esp, ebp
pop ebp
ret

Function at 0x1001acb0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10046ca0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.10021fb0
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.10007be0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100202b1
mov esp, ebp
pop ebp
ret
Function at 0x1001b530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035040
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x10046a68]
mov edx, dword [eax + 0xc]
mov ecx, 0x10046a68
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.1001b470
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10008140
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001b5b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x18]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001b61b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b630
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035070
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10046ca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.1001b470
mov ecx, dword [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, esi
mov ebx, eax
call fcn.10007e40
cmp ebx, 0xffffffff
je 0x1001b75a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020192
mov ecx, dword [ebp - 0x10]
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
xor edx, edx
mov word [edi + ebx*2], dx
test edi, edi
jne 0x1001b6ea
xor eax, eax
jmp 0x1001b6ff
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b6f0
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.100082b0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.10007ce0
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10008140
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001b74a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, esi
call fcn.10019e60
push edi
call fcn.1002093d
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001b780
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret