joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x73000]
push edi
or ebp, 0xffffffff
jmp 0x4c4ae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c4ae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4ad8
mov eax, 1
add ebx, ebx
jne 0x4c4afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c4b0c
jne 0x4c4b1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4b1c
dec eax
add ebx, ebx
jne 0x4c4b18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c4af0
xor ecx, ecx
sub eax, 3
jb 0x4c4b34
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c4ba6
sar eax, 1
mov ebp, eax
jmp 0x4c4b3f
add ebx, ebx
jne 0x4c4b3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4c4b4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4c4b70
inc ecx
add ebx, ebx
jne 0x4c4b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c4b51
jne 0x4c4b6d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c4b51
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c4b90
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c4b81
jmp 0x4c4ade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c4b90
add edi, ecx
jmp 0x4c4ade
pop esi
mov edi, esi
mov ecx, 0x2b76
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c4bae
cmp byte [edi], 7
jne 0x4c4bae
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 eax, ebx
loop 0x4c4bb3
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c4c2b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc4064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c4be0
mov ecx, edi
jns 0x4c4c0f
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 + 0xc4068]
or eax, eax
je 0x4c4c25
mov dword [ebx], eax
add ebx, 4
jmp 0x4c4bfd
call dword [esi + 0xc406c]
popal
jmp 0x46dba8
Function at 0x1003d78
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov edi, 0x80000002
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyTransactedW]
mov esi, eax
cmp esi, ebx
je 0x1003dea
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f5a
test dword [eax + 0x1c], 0x800
je 0x1003f5a
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003219
jmp 0x1003f5a
push ebx
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteTreeW]
mov esi, eax
cmp esi, ebx
je 0x1003e24
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f5a
test dword [eax + 0x1c], 0x800
je 0x1003f5a
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x14
jmp 0x1003dda
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x1003e77
cmp esi, 2
jne 0x1003e4a
xor esi, esi
jmp 0x1003f5a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f5a
test dword [eax + 0x1c], 0x800
je 0x1003f5a
push dword [ebp + 8]
push esi
push 0x10012a8
push 0x15
jmp 0x1003dda
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call fcn.01004588
mov edi, 0x103
jmp 0x1003eda
cmp esi, ebx
jne 0x1003f2c
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01003ae8
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, ebx
jne 0x1003f5a
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.01004588
mov esi, eax
cmp esi, edi
jne 0x1003e91
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
mov edi, 0x10013f8
push edi
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x1003f5a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f5a
test dword [eax + 0x1c], 0x800
je 0x1003f5a
push edi
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100328c
jmp 0x1003f5a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003f5a
test dword [eax + 0x1c], 0x800
je 0x1003f5a
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push 0x10012a8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003359
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1003f6a
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x1003f74
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004588
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0x40
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 4]
call fcn.0100455a
test eax, eax
jl 0x1004621
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.01004528
test eax, eax
jl 0x1004621
test edi, edi
je 0x10045cf
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1004625
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0xea
je 0x100459a
test esi, esi
jne 0x100460d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x1004619
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret 0xc
mov esi, eax
jmp 0x100460d
push 8
pop esi
jmp 0x100460d

Function at 0x1004b31
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1011a88
call fcn.01004f44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1016198
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1004946
cmp eax, esi
jne 0x1004939
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1004949
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004920
xor esi, esi
inc esi
mov eax, dword [0x1016194]
cmp eax, esi
jne 0x100495c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004997
mov eax, dword [0x1016194]
test eax, eax
jne 0x1004991
mov dword [0x1016194], esi
push 0x10011b4
push 0x10011a8
call fcn.0100489d
pop ecx
pop ecx
test eax, eax
je 0x1004997
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004a61
mov dword [0x1015e38], esi
mov eax, dword [0x1016194]
cmp eax, esi
jne 0x10049bb
push 0x10011a4
push 0x100119c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1016194], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10049c8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10161a4], ebx
je 0x10049e9
push 0x10161a4
call fcn.01004eb9
pop ecx
test eax, eax
je 0x10049e9
push ebx
push 2
push ebx
call dword [0x10161a4]
push dword [0x1015e20]
push dword [0x1015e24]
push dword [0x1015e1c]
call fcn.010040fd
add esp, 0xc
mov dword [0x1015e34], eax
cmp dword [0x1015e28], ebx
jne 0x1004a47
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1015e38], ebx
jne 0x1004a55
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1015e34]
call fcn.01004f89
ret
call fcn.01005091
jmp 0x10048fe
Function at 0x1008067
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
xor ebx, ebx
cmp dword [0x1021134], ebx
je 0x10081f2
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push 0x1002270
push 0x80000001
mov dword [0x1021134], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10081f2
push esi
push edi
push 4
pop esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x10017a8
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10080f0
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x10081e7
cmp dword [ebp - 0xc], esi
jne 0x10081e7
cmp dword [ebp - 0x10], ebx
jne 0x10081e7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001780
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1008132
cmp dword [ebp - 0xc], esi
je 0x1008135
mov dword [ebp - 8], ebx
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
push 5
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x10081ad
push 0x5c
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.msvcrt.dll_memset
mov eax, dword [0x10218f8]
add esp, 0xc
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x60
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0x8e
mov dword [ebp - 0x60], 0xfffd
mov dword [ebp - 0x5c], 0x8f
mov dword [ebp - 0x58], 0x90
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], 0x91
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
push esi
cmp dword [ebp - 0x18], ebx
je 0x10081d3
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001780
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10081e7
lea eax, [ebp - 8]
push eax
push esi
push ebx
push 0x1001780
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100949d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x10094e1
mov eax, dword [section..data]
cmp eax, section..data
je 0x10094d7
test byte [eax + 0x1c], 4
je 0x10094d7
push 0x10018ac
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009390
mov eax, 0x80070057
jmp 0x10095ae
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0x14], ebx
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x1009553
mov eax, dword [esi]
cmp eax, ebx
je 0x1009516
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi], ebx
push dword [ebp + 0x14]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x1009553
mov eax, dword [section..data]
cmp eax, section..data
je 0x100954c
test byte [eax + 0x1c], 4
je 0x100954c
push dword [ebp + 0x14]
push 0x10018ac
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010086d5
mov dword [ebp - 4], 0x8007000e
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
jl 0x1009587
cmp dword [ebp - 0xc], ebx
jne 0x1009587
mov esi, dword [esi]
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, ebx
je 0x1009587
jle 0x1009584
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
pop edi
cmp eax, ebx
je 0x1009594
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10095a0
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.01009404
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x14
Function at 0x100bd24
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
mov edi, dword [sym.imp.msvcrt.dll_wcscspn]
and dword [ebp - 4], 0
mov ebx, 0x1001c0c
push ebx
push esi
call edi
pop ecx
pop ecx
mov ecx, esi
lea edx, [ecx + 2]
mov dword [ebp - 0xc], edx
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x100bd5a
sub ecx, dword [ebp - 0xc]
jmp 0x100be03
lea ecx, [esi + eax*2]
cmp word [ecx], 0x2c
jne 0x100bdda
cmp dword [ebp - 4], 0
jne 0x100bde5
lea esi, [esi + eax*2]
test esi, esi
je 0x100be0d
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp + 0xc]
push 0x1001c08
push dword [ebp + 8]
mov dword [eax], esi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100be3b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x100be31
mov eax, dword [section..data]
cmp eax, section..data
je 0x100be31
test byte [eax + 0x1c], 4
je 0x100be31
push 0x1001b20
push 0x33
jmp 0x100be26
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov dword [ebp - 4], eax
lea esi, [ecx + 2]
push ebx
push esi
call edi
pop ecx
pop ecx
mov ecx, esi
lea edx, [ecx + 2]
mov dword [ebp - 0xc], edx
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x100bdf6
sub ecx, dword [ebp - 0xc]
sar ecx, 1
cmp ecx, eax
ja 0x100bd6c
mov eax, dword [section..data]
cmp eax, section..data
je 0x100be31
test byte [eax + 0x1c], 4
je 0x100be31
push 0x1001b20
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009390
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [section..data]
cmp eax, section..data
je 0x100be31
test byte [eax + 0x1c], 4
je 0x100be31
push 0x1001b20
push 0x34
jmp 0x100be26

Function at 0x100c190
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
cmp eax, edi
je 0x100c1bf
xor ecx, ecx
cmp cx, word [eax]
je 0x100c1bf
cmp eax, esi
jbe 0x100c1bf
mov word [eax - 2], cx
jmp 0x100c1c1
xor eax, eax
push 1
push edi
push eax
push esi
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x100c215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x100c215
cmp eax, edi
jle 0x100c1ee
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x100c215
test byte [eax + 0x1c], 4
je 0x100c215
push edi
push 0x1001b20
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010086d5
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100d0d5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x102171c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 2
push 0x1001b30
push 0
push esi
mov edi, ecx
mov dword [ebp - 0x208], 0x200
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jle 0x100d12b
and eax, 0xffff
or eax, 0x80070000
test eax, eax
mov ecx, edi
jl 0x100d141
lea eax, [ebp - 0x204]
push eax
call fcn.0100bbf9
test eax, eax
jge 0x100d147
mov ecx, edi
push esi
call fcn.0100c222
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101a181
leave
ret 4
Function at 0x100e8df
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
call fcn.0100e7f1
mov ebx, eax
test ebx, ebx
jne 0x100e952
and dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1002270
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100e952
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1001f38
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100e948
cmp dword [ebp - 8], esi
jne 0x100e948
cmp dword [ebp - 0x10], eax
je 0x100e948
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x100e95c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov edi, 0x1001f54
push edi
push eax
call esi
push edi
push 0
call esi
push edi
push 0
mov ebx, eax
call esi
add esp, 0x18
push ebx
push 0x1001c80
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100e99e
test esi, esi
jne 0x100e99e
inc eax
jmp 0x100e9a0
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e9a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push 0x1001fe0
xor ebx, ebx
mov dword [ebp - 8], edi
call sub.slc.dll_SLGetWindowsInformationDWORD
test eax, eax
jl 0x100ea3e
cmp dword [ebp - 8], 1
jne 0x100ea3e
call fcn.0100e7f1
mov ebx, eax
cmp ebx, edi
jne 0x100ea3e
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001f80
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ea3e
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1001f5c
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ea34
cmp dword [ebp - 0xc], esi
jne 0x100ea34
cmp dword [ebp - 0x14], edi
je 0x100ea34
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret