joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b835
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x58]
lea ebx, [edi + 0x34]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x3d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x30], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41b8cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b8cd
jmp 0x41b8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41b8ad
lea esi, [edi + 4]
push ebx
call fcn.00427d6a
mov eax, esi
call fcn.00427d53
test al, al
jne 0x41b8b8
push 0xa
push dword [edi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41b87c
cmp dword [edi + 0x2c], 0
jne 0x41b8bf
mov eax, dword [edi + 0x28]
jmp 0x41b8cd
mov eax, 0xe0000008
jmp 0x41b8cd
mov edi, dword [edi + 0x28]
test edi, edi
jle 0x41b8cb
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x41c248
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push dword [esi + 0x58]
and dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x41c28a
call fcn.0041c350
test eax, eax
je 0x41c28d
jmp 0x41c29a
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x41c298
mov eax, dword [esi + 0x28]
jmp 0x41c29a
xor eax, eax
pop esi
pop ebp
ret 0x1c

Function at 0x41c581
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00431420
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x41c5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41c5e1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x41c5df
cmp eax, 4
je 0x41c5df
cmp eax, 1
je 0x41c5df
cmp eax, 2
je 0x41c5df
push 2
pop eax
jmp 0x41c5e1
xor eax, eax
leave
ret 8
Function at 0x421c5b
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x421c6c
mov al, 1
jmp 0x421cf0
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.004088e1
push 0x452ea0
lea eax, [ebp + 8]
call fcn.00404558
mov edi, dword [edi]
push dword [edi - 0xc]
lea eax, [ebp + 8]
push edi
call fcn.004022eb
mov edi, dword [ebp + 8]
cmp byte [esi + 1], bl
je 0x421cc9
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x421cde
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea eax, [edi - 0x10]
setne bl
call fcn.0040464c
mov al, bl
pop edi
pop ebx
pop ebp
ret 8

Function at 0x421ef1
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
mov edi, ecx
cmp byte [ebp + 0xc], bl
jne 0x421f28
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x421f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
jne 0x421f28
cmp byte [edi + 0x11], bl
je 0x421f7c
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0xc]
shr ecx, 1
xor ebx, ebx
mov word [edx + ecx*2], bx
test eax, eax
je 0x421f7c
cmp dword [ebp + 0xc], ebx
je 0x421f7c
push dword [edi + 0xc]
lea eax, [ebp + 8]
call fcn.00404558
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov eax, edi
call int.00409c66
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.0040464c
jmp 0x421f86
mov ecx, 0x459100
call fcn.00404631
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x421f8f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, eax
jne 0x421fa7
mov ecx, 0x459100
call fcn.00404631
jmp 0x421fd5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x421f9b
mov ecx, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
mov eax, esi
call fcn.00421ef1
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4230de
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
mov dword [ebp - 0x90], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
jne 0x423128
push eax
jmp 0x423162
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x42315d
cmp eax, dword [ebp + 0xc]
jbe 0x42315d
sub eax, dword [ebp + 0xc]
mov edi, 0x10000
push edi
mov dword [ebp - 0x8c], eax
call fcn.0043140a
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, ebx
jne 0x423179
push ebx
call fcn.00431415
pop ecx
cmp esi, ebx
je 0x423168
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x79], bl
call fcn.00401515
jmp 0x423198
mov esi, dword [ebp - 0x98]
push ebx
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4231f4
mov esi, dword [ebp - 0x84]
cmp esi, ebx
je 0x4231f4
mov eax, dword [ebp - 0x88]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x4231dc
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.004013a6
add dword [ebp - 0x88], esi
cmp byte [ebp - 0x79], bl
je 0x423192
lea esi, [ebp - 0x78]
call fcn.00401457
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.004014ce
push dword [ebp - 0x80]
mov bl, al
call fcn.00431415
cmp dword [ebp - 0x98], 0
pop ecx
je 0x423229
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x42316a

Function at 0x423bad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x423c0f
push dword [ebp - 4]
call fcn.00404492
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.00402073
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00409c48
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x424fc6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2e
mov esi, ebx
mov edi, eax
call fcn.00408c55
test eax, eax
jg 0x424fe8
mov al, 1
jmp 0x425147
mov ecx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00408d62
mov eax, dword [0x459100]
mov esi, 0x459100
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.0040971d
add esp, 0x14
cmp dword [edi + 0x10], 0
je 0x425033
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0xc]
push eax
call fcn.0040f8a6
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call 0x40a3f5
test al, al
je 0x42506b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x425112
mov eax, dword [0x459100]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00410150
mov eax, dword [0x459100]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea esi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00422de0
mov eax, dword [ebp - 8]
mov ebx, dword [eax - 0xc]
pop ecx
push 0x5c
lea esi, [ebp - 8]
call fcn.00408c55
mov ecx, ebx
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.004106dc
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0040971d
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040464c
push 0
lea eax, [ebp - 0xc]
call fcn.00416e60
pop ecx
lea eax, [ebx - 0x10]
mov byte [ebp - 1], 0
call fcn.0040464c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [esi - 0x10]
call fcn.0040464c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
je 0x42512e
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42522e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx + 0x10], eax
cmp dword [eax], edi
je 0x425265
push edi
push edi
push edi
push edi
lea esi, [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
call fcn.00408e41
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x42548d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x18], esi
cmp dword [eax], edi
je 0x4252bb
mov edi, ebx
call fcn.004252f9
mov ebx, dword [ebx + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
call fcn.0040c0b5
add esi, eax
adc dword [ebp - 0xc], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x18]
xor edi, edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4252e5
mov ebx, dword [ebp - 4]
cmp esi, edi
je 0x4252e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4252f2
cmp esi, edi
je 0x4252f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425aa6
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop edi
push edi
mov esi, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00431420
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x28], 0x64
mov dword [ebp - 0x3c], edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x425af0
mov ecx, 0x459100
call fcn.00404631
jmp 0x425afd
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, esi
call fcn.004106c5
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x426284
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push ecx
xor esi, esi
mov eax, esp
push str.WSS_ADMIN_WPG
mov edi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.00404558
mov ecx, edi
call fcn.00426172
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
mov dword [ebp - 0x70], esi
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
call fcn.00404558
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], eax
call int.00409c66
mov ebx, eax
add ebx, 0x10
push 0x44a8d0
xor ecx, ecx
lea esi, [ebp - 0x58]
mov dword [ebp - 0x60], ebx
call fcn.00408c24
test eax, eax
jl 0x426347
mov ecx, dword [edi - 0xc]
sub ecx, eax
lea eax, [ebp - 0x80]
push eax
dec ecx
mov eax, esi
call fcn.004106dc
lea edi, [ebp - 0x60]
call fcn.004088e1
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.0040464c
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
jmp 0x426365
push edi
push esi
call fcn.0040904e
test eax, eax
je 0x42639c
push ebx
push esi
call fcn.0040904e
test eax, eax
je 0x42639c
mov esi, dword [esi + 4]
test esi, esi
jne 0x42634c
push 0x449abc
lea eax, [ebp - 0x58]
push eax
call 0x40aaed
test eax, eax
je 0x42639c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
call fcn.00426211
mov edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x4263e8
mov esi, dword [ebp - 0x6c]
jmp 0x4263dd
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 0x5c]
call fcn.0040464c
lea edi, [ebp - 0x6c]
call fcn.0042676a
mov al, 1
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
add ebp, 0x1b8
leave
ret
push dword [esi]
push edi
call fcn.0040904e
test eax, eax
je 0x4263ee
mov esi, dword [esi + 4]
test esi, esi
jne 0x4263ce
mov edi, dword [edi + 4]
test edi, edi
jne 0x426397
mov byte [ebp - 0x51], 0
jmp 0x4263f2
mov byte [ebp - 0x51], 1
lea edi, [ebp - 0x7c]
call fcn.0042676a
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 0x5c]
call fcn.0040464c
lea edi, [ebp - 0x6c]
call fcn.0042676a
mov al, byte [ebp - 0x51]
jmp 0x4263b6

Function at 0x426667
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x1c
push 0x80000000
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x426688
xor al, al
jmp 0x4266a5
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x426684
cmp dword [ebp - 0x18], 4
je 0x4266a3
cmp dword [ebp - 0x18], 2
jne 0x426684
mov al, 1
leave
ret 4
Function at 0x42a2b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x3f7
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 0
push eax
mov dword [ebp - 4], eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
xor edi, edi
push edi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
add esi, 0x88
push dword [esi]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
mov eax, dword [ebp - 0x18]
push 0x222
push edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x14]
call fcn.0040eb9d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42fe2b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
push ebx
push edi
mov edi, ecx
jne 0x42fe69
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00404535
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.004088e1
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
inc ecx
mov eax, esi
call fcn.004106dc
mov edi, 0x44a8d0
push edi
push eax
call fcn.0040904e
test eax, eax
mov eax, dword [ebp - 0x218]
setne bl
add eax, 0xfffffff0
call fcn.0040464c
test bl, bl
je 0x42fec7
push edi
push esi
call fcn.00402105
push str.AI_WSP_
push esi
call fcn.00402105
mov edi, dword [ebp - 0x214]
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.004022eb
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi - 0x10]
call fcn.0040464c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004313fb
leave
ret
Function at 0x430236
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov edi, edx
push dword [edi]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43026c
mov ecx, 0x459100
call fcn.00404631
jmp 0x4302f4
mov edi, dword [edi]
push 0x4538f4
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0043544f
add esp, 0xc
mov ecx, 0x459100
test eax, eax
jne 0x430262
mov eax, dword [0x459100]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x4302bb
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004354d6
add esp, 0xc
test eax, eax
je 0x4302c8
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402105
push dword [ebp - 0x58]
call fcn.004354a2
pop ecx
test eax, eax
je 0x430299
push ebx
push dword [ebp - 0x58]
call fcn.0043560e
pop ecx
lea ebx, [ebp - 0x5c]
call fcn.00409074
mov edi, dword [ebp - 0x5c]
add edi, 0xfffffff0
mov eax, edi
call int.00409c66
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.0040464c
pop ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004313fb
add ebp, 0x78
leave
ret
Function at 0x4305f2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.SOFTWAREMicrosoftShared_ToolsWeb_Server_Extensions_
lea eax, [ebp - 4]
call fcn.00404558
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022eb
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x430653
mov esi, dword [ebp + 8]
mov ecx, 0x459100
call fcn.00404631
lea eax, [edi - 0x10]
call fcn.0040464c
mov eax, esi
jmp 0x43073c
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.Location
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [0x459100]
mov ebx, 0x459100
mov ecx, ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
cmp dword [ebp - 0xc], 0xea
mov dword [ebp + 0xc], edi
jne 0x4306ce
push dword [ebp - 8]
lea esi, [ebp + 0xc]
call fcn.00404492
lea eax, [ebp - 8]
push eax
call fcn.00402073
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Location
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
call fcn.00409c48
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x43071c
cmp dword [edi - 0xc], esi
je 0x43071c
push str.BINSTSADM.EXE
lea eax, [ebp + 0xc]
push eax
call fcn.00402105
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43071c
lea esi, [edi - 0x10]
mov eax, esi
call int.00409c66
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, edi
jmp 0x43073b
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.00404631
lea eax, [edi - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4308e7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4308fd
xor al, al
jmp 0x43096a
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x430932
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x430936
xor al, al
jmp 0x430968
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00432640
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x4313fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457090]
jne 0x431405
repz ret
jmp fcn.004359ac
Function at 0x40148e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x44a950]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401523
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e0
cmp dword [ebp + 0x10], ebx
jne 0x401517
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040148e
test eax, eax
jne 0x4014f2
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004061a1
cmp eax, ebx
je 0x40152a
push ebx
push dword [0x44a950]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x44a950], ebx
jne 0x401520
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401520
jmp 0x401523