joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9bc
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.00409a20
add esp, 0xc
lea edx, [ebp - 0x804]
mov dword [ebp - 0x9b4], edx
cmp dword [ebp + 0x14], 0
je 0x404c4d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9b4], eax
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov eax, dword [ebp - 0x9b4]
mov word [eax + ecx], dx
mov dword [ebp - 0x808], 0
mov dword [ebp - 0x9b0], 0
mov dword [ebp - 0x9bc], 0
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x9b8], eax
cmp dword [ebp - 0x9b8], 0
je 0x404ca7
xor eax, eax
jmp 0x404da1
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0xffffffff
jne 0x404cc7
xor eax, eax
jmp 0x404da1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x404d07
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x808], eax
push 2
push 4
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x9ac], eax
cmp dword [ebp - 0x9ac], 0
jne 0x404d14
jmp 0x404d75
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp - 0x9ac]
mov eax, dword [edx + 0xc]
mov ecx, dword [ecx + eax]
mov edx, dword [ecx]
mov dword [ebp - 0x814], edx
mov eax, 2
mov word [ebp - 0x818], ax
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404d6b
jmp 0x404d75
mov dword [ebp - 0x9b0], 1
cmp dword [ebp - 0x9b0], 0
jne 0x404d9b
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
je 0x404d9b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x9b0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4050bb
jmp 0x405180
mov dword [ebp - 8], 0
jmp 0x4050cd
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x4050ea
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
not ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
mov byte [edx], cl
jmp 0x4050c4
mov eax, dword [ebp + 0x10]
add eax, 7
push eax
call fcn.00407567
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
movzx edx, word [ebp + 0x10]
add edx, 5
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, 1
shl ecx, 1
add ecx, dword [ebp - 4]
mov edx, dword [0x41af10]
mov dword [ecx], edx
mov al, byte [0x41af14]
mov byte [ecx + 4], al
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, 1
imul eax, eax, 7
add eax, dword [ebp - 4]
push eax
call fcn.0040a680
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 7
mov dword [ebp + 0x10], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x405175
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
je 0x405179
jmp 0x405180
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4051b4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040795b
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x4051a7
mov dword [ebp - 0x1c], 0
jmp 0x4051b4
mov dword [ebp - 4], 0x8123
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x405c70
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040cc20
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x100c], 0
mov dword [ebp - 0x1010], 0
push 0x418de0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call fcn.004061cc
add esp, 0xc
cmp dword [ebp - 0x100c], 0
jne 0x405cc3
xor eax, eax
jmp 0x405d78
push 0
push 4
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x405ce6
xor eax, eax
jmp 0x405d78
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x405d52
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x405d1f
jmp 0x405d52
mov eax, dword [ebp - 0x100c]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.00406784
add esp, 0x10
mov eax, dword [ebp - 0x1010]
add eax, dword [ebp - 0x1014]
mov dword [ebp - 0x1010], eax
jmp 0x405ce6
mov ecx, dword [ebp - 0x100c]
push ecx
call fcn.004065b6
add esp, 4
mov edx, dword [ebp - 0x1010]
cmp edx, dword [ebp - 0x1008]
jae 0x405d73
xor eax, eax
jmp 0x405d78
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405e34
mov esp, ebp
pop ebp
ret
Function at 0x4108b6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00407cfa
mov dword [ebp - 0x14], eax
cmp dword [0x41bd84], edi
jne 0x4109a7
push 0x800
push edi
push 0x4155c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x410934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410a87
push 0x4155c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410a87
push 0x4155e0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410a87
push eax
call ebx
push 0x4155ec
push esi
mov dword [0x41bd84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4155fc
push esi
mov dword [0x41bd88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x415610
push esi
mov dword [0x41bd8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd94], eax
test eax, eax
je 0x4109a4
push 0x41562c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41bd90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4109cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4109bf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4109e1
push 4
pop eax
jmp 0x410a89
cmp dword [ebp - 0x14], edi
je 0x4109e1
push dword [0x41bd84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4109c6
mov eax, dword [0x41bd90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x410a3f
cmp dword [0x41bd94], esi
je 0x410a3f
push eax
call ebx
push dword [0x41bd94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410a3f
test eax, eax
je 0x410a3f
call ecx
test eax, eax
je 0x410a34
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410a34
test byte [ebp - 8], 1
jne 0x410a3f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x410a6f
mov eax, dword [0x41bd88]
cmp eax, esi
je 0x410a6c
push eax
call ebx
test eax, eax
je 0x410a6c
call eax
mov edi, eax
test edi, edi
je 0x410a6c
mov eax, dword [0x41bd8c]
cmp eax, esi
je 0x410a6c
push eax
call ebx
test eax, eax
je 0x410a6c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41bd84]
call ebx
test eax, eax
je 0x410a87
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x410a89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e34
leave
ret
Function at 0x40686f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x4068ad
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406883
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x40687e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4068da
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4068bb
not eax
pop ebp
ret 0xc

Function at 0x4395b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.ORN1
lea edi, [esi - 0x26000]
push edi
or ebp, 0xffffffff
jmp 0x4395d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4395d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4395c8
mov eax, 1
add ebx, ebx
jne 0x4395eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4395e0
jne 0x4395fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4395e0
xor ecx, ecx
sub eax, 3
jb 0x439610
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x439682
mov ebp, eax
add ebx, ebx
jne 0x43961b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x439628
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43964c
inc ecx
add ebx, ebx
jne 0x439638
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43962d
jne 0x439649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43962d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43966c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43965d
jmp 0x4395ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43966c
add edi, ecx
jmp 0x4395ce
pop esi
mov edi, esi
mov ecx, 0x2d9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43968a
cmp byte [edi], 6
jne 0x43968a
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 0x43968f
lea edi, [esi + 0x37000]
mov eax, dword [edi]
or eax, eax
je 0x4396fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a12c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a1a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4396bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a1a8]
or eax, eax
je 0x4396f8
mov dword [ebx], eax
add ebx, 4
jmp 0x4396d9
call dword [esi + 0x3a1ac]
popal
jmp 0x40cdd3
Function at 0x100169b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a1f4]
push ebx
xor ebx, ebx
cmp eax, 2
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
mov dword [ebp - 4], ebx
jne 0x10017be
lea eax, [ebp - 4]
push eax
call fcn.01001606
test eax, eax
jne 0x10017ac
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10017be
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x10017a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10017a0
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x100179f
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1001798
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001798
cmp dword [esi], ebx
jbe 0x100178f
lea edi, [esi + 4]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001784
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x100176b
jmp 0x100178f
xor eax, eax
inc eax
mov dword [0x100a1f4], eax
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
jmp 0x10017bb
cmp dword [ebp - 4], ebx
je 0x10017bb
mov dword [0x100a1f4], 1
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10018c5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor esi, esi
test eax, eax
jne 0x10018f1
push esi
push 0x10
push esi
push esi
push 0x4f5
jmp 0x1001946
lea eax, [ebp - 0x10]
push eax
push 0x1001254
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
push esi
jne 0x1001930
push 0x10
push esi
push esi
push 0x4f6
jmp 0x1001946
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1001950
push esi
push 0x10
push esi
push esi
push 0x4f7
push esi
call fcn.010038f8
xor eax, eax
jmp 0x1001953
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x1001956
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a2e0], 0
je 0x1001999
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001999
push 0x100a2e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001b9b
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
xor ebx, ebx
cmp byte [0x100a2e0], bl
je 0x1001c8c
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001c8c
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x344]
push eax
push ebx
push ebx
mov esi, 0x100a2e0
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001c82
push edi
push 0x40
pop ecx
mov byte [ebp - 0x10c], bl
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
je 0x1001c3e
push 0x1001251
lea eax, [ebp - 0x10c]
push eax
call fcn.01005bb8
push 0x100ac44
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x344]
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x344]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
Function at 0x1001c8f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001db4
cmp byte [ebx], 0
je 0x1001db4
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x104]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100128c
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1001db2
push ebx
lea eax, [ebp - 0x104]
push eax
call edi
test byte [ebp - 0x244], 0x10
lea eax, [ebp - 0x218]
je 0x1001d61
push 0x1001288
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001d8a
push 0x1001284
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001d8a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x1001251
lea eax, [ebp - 0x104]
push eax
call fcn.01005bb8
lea eax, [ebp - 0x104]
push eax
call fcn.01001c8f
jmp 0x1001d8a
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001cf3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001def
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001e5d
push esi
push 0x1001290
lea eax, [ebp - 0x104]
push eax
call fcn.01005bb8
lea eax, [ebp - 0x104]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001e5c
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1001e62
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001eab
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001ea2
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x1001eb3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f00
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1001ef7
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1001f5b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f78
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1001f7b
and eax, 0x10
ret 4

Function at 0x1002091
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
and byte [eax], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp byte [edi], 0x23
jne 0x10021a4
inc edi
movsx eax, byte [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push edi
mov bl, al
call esi
push eax
call esi
cmp bl, 0x53
mov edi, eax
je 0x100219c
cmp bl, 0x57
je 0x100218e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10012a0
lea eax, [ebp - 0x10c]
mov ebx, 0x104
push eax
mov dword [ebp - 8], ebx
call esi
push edi
lea eax, [ebp - 0x10c]
push eax
call fcn.01005bb8
lea eax, [ebp + 0x10]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10021b4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push 0x1001251
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002183
cmp dword [ebp + 0xc], 2
jne 0x1002176
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1002176
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call esi
jmp 0x100217c
cmp dword [ebp + 0xc], 1
jne 0x1002183
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10021ae
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10021b4
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x10021a8
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 4], 0
jne 0x10021bd
push edi
push dword [ebp + 8]
call fcn.01005bb8
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc