joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bafa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004dbe60
push 0xffffffffffffffff
push 0x5198a3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x49bb4f
xor al, al
jmp 0x49bbc7
mov ecx, eax
call fcn.004571eb
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x49bbb9
mov esi, dword [ebp - 0x10]
call fcn.0040d33d
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040707c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00470350
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d148
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x49bb58
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x8004
leave
ret 4
Function at 0x49bdce
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x519927
call fcn.004db733
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004db27c
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x49be09
add dword [ebp - 0x10], 2
push esi
call fcn.004db27c
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0048ba1c
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x49bdfa
test eax, eax
je 0x49be41
xor eax, eax
mov bl, al
jmp 0x49befe
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x49be71
cmp eax, 2
je 0x49be71
cmp eax, 7
je 0x49be71
cmp eax, 4
jne 0x49be38
push dword [esi]
push 0x5425c8
push dword [ebp + 8]
call fcn.00411724
add esp, 0xc
jmp 0x49befe
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x49be8a
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49be86
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d33d
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040707c
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x49bef1
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49bee5
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49bee5
mov ecx, edi
call fcn.004070e1
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d645
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x49bef1
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d8ae
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004db27c
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004db6fc
ret

Function at 0x49bff9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x57f524
call fcn.0040dd59
cmp byte [0x57f52c], 0
je 0x49c020
push dword [0x57f528]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49c050
cmp dword [0x57f528], 0
je 0x49c050
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x57f520
push 0x49c072
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x57f530
call fcn.0040e086
pop ebp
ret 4
Function at 0x49c11b
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x51995a
call fcn.004db733
push edx
lea ecx, [ebp - 0x10]
call fcn.0040713a
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004dee27
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49c204
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x49c204
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406e54
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
push esi
call fcn.00473ae0
and dword [ebp - 0x18], 0
mov esi, 0x540310
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x18], 0
je 0x49c1e2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x49c1e9
inc ebx
cmp dword [ebp - 0x18], eax
je 0x49c1d1
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d148
jmp 0x49c13c
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0
je 0x49c1f8
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d148
mov eax, ebx
call fcn.004db6fc
ret

Function at 0x49c2dd
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x515a68
call fcn.004db733
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x533e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49c31c
mov edi, ebx
or esi, eax
jmp 0x49c326
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x533e68
test esi, esi
je 0x49c33f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004db6fc
ret
Function at 0x49c347
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x5199b2
call fcn.004db733
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004de980
mov dword [ebp - 0x6c], edi
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
add esp, 0xc
mov byte [ebp - 0x14], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
inc ebx
cmp byte [ebp + 0x10], 0
je 0x49c39e
call fcn.004a4573
mov eax, dword [0x57f328]
test eax, eax
je 0x49c39e
lea ecx, [ebp - 0x18]
push ecx
call eax
mov byte [ebp - 0x14], bl
mov ecx, dword [esi]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
mov edx, dword [edx]
xor eax, eax
cmp dword [ecx - 0xc], eax
push eax
push eax
push dword [ebp + 0xc]
push eax
push eax
push eax
cmovne eax, ecx
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49c3e4
mov esi, dword [ebp + 8]
test esi, esi
je 0x49c3e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor bl, bl
jmp 0x49c40a
cmp dword [ebp + 8], 0
je 0x49c401
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x49c430
call fcn.004a4573
mov ecx, dword [0x57f324]
test ecx, ecx
je 0x49c430
lea eax, [ebp - 0x18]
push eax
call ecx
mov byte [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.004db6fc
ret
Function at 0x49c43c
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x519a07
call fcn.004db733
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004de980
mov edi, dword [edi]
mov eax, 0x400
mov dword [ebp - 0x54], esi
add esp, 0xc
mov esi, dword [ebp + 0xc]
test esi, esi
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.0047a470
test al, al
je 0x49c48d
add edi, 8
mov ecx, dword [ebp - 0x14]
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
jne 0x49c4cf
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00478b50
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x49c4e2
push ecx
lea ecx, [ebp + 0x10]
call fcn.0040713a
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040713a
mov dword [ebp - 4], 3
test bl, 2
je 0x49c502
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040d148
mov byte [ebp - 4], 4
test bl, 1
je 0x49c513
lea ecx, [ebp + 0x18]
call fcn.0040d148
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0047a470
test al, al
je 0x49c525
add edi, 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x49c546
test esi, esi
je 0x49c542
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x49c576
test esi, esi
je 0x49c565
cmp dword [ebp - 0x1c], 0
je 0x49c574
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x1c], 0
je 0x49c574
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d148
mov al, bl
call fcn.004db6fc
ret
Function at 0x49c903
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x519ac8
call fcn.004db767
xor ebx, ebx
mov dword [ebp - 0x24], 0x533e68
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x49c940
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49c9f3
mov esi, ebx
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x49c98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49c9dc
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004950b5
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x49c9dc
cmp dword [ebp - 0x1c], 0
je 0x49c9dc
xor ecx, ecx
mov word [ebp - 0x14], 0x500
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x12
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x49c9e2
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x49c9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004db27c
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x533e68
je 0x49ca11
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004db711
ret

Function at 0x49ca19
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x57c080]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x49ca88
push ebp
mov ebp, 0x22c
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call fcn.004de980
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
pop ebp
jmp 0x49ca7e
cmp dword [esp + 0x24], ebx
je 0x49ca84
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49ca6c
jmp 0x49ca88
mov esi, dword [esp + 0x14]
test edi, edi
je 0x49ca93
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dab24
add esp, 0x230
ret
Function at 0x49cd54
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x519b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x533e68
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49cdf6
cmp eax, 0x400
jae 0x49ce99
mov byte [ebp + eax], bl
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.0047bba0
jmp 0x49cdbe
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x49ce5d
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406d83
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x49ce50
cmp dword [ebx + 0xc], 0
jl 0x49ce45
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x49ce45
call fcn.004070e1
mov ecx, ebx
mov esi, eax
call fcn.0040d645
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x49ce50
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d8ae
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x533e68
test esi, esi
je 0x49ce76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x404
leave
ret
call fcn.004db3ad
int3
Function at 0x49d50c
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x519c53
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.0040ce82
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.0040d92c
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00479930
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040d148
push esi
push edi
lea ecx, [ebp]
call fcn.0049d6eb
mov byte [ebp - 4], 2
lea edi, [ebp + 0x9c]
mov dword [ebp + 0x78], ebx
push dword [edi]
lea ecx, [ebp - 0x10]
call fcn.0040d92c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.0049dddc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040d148
test esi, esi
je 0x49d5f0
add edi, 4
lea eax, [ebp + 0xa8]
cmp edi, eax
jne 0x49d5b1
jmp 0x49d5f2
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0048d087
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d148
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.004dab24
add ebp, 0xac
leave
ret
Function at 0x49eb38
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x49ebcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49ebd8
jmp 0x49ebaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49ebb4
push ebx
lea ecx, [edi + 0xc]
call fcn.004a8a84
lea ecx, [edi + 0xc]
call fcn.004a8a6d
test al, al
jne 0x49ebc6
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x49eb82
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x49ebd8
test eax, eax
jle 0x49ebd6
mov dword [ebp], eax
jmp 0x49ebd6
mov eax, 0xe0000008
jmp 0x49ebd8
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x49ebdf
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x49ec6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49ec7a
jmp 0x49ec51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49ec56
push ebx
lea ecx, [edi + 0xc]
call fcn.004a8a84
lea ecx, [edi + 0xc]
call fcn.004a8a6d
test al, al
jne 0x49ec68
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x49ec24
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x49ec7a
test eax, eax
jle 0x49ec78
mov dword [ebp], eax
jmp 0x49ec78
mov eax, 0xe0000008
jmp 0x49ec7a
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x49ee71
Capabilities:
Connect network resource

Disassembly:
push 0x3c
mov eax, 0x519f55
call fcn.004db733
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
call fcn.0040ce82
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040ce82
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0x10]
call fcn.00478b50
mov byte [ebp - 4], 2
and dword [edi + 8], esi
and dword [edi + 4], esi
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x49eec6
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x49ef1f
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
push 0x20
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004de980
mov eax, dword [ebp - 0x18]
xor ecx, ecx
and dword [ebp - 0x38], 0
inc ecx
add esp, 0xc
mov dword [ebp - 0x44], ecx
cmp dword [eax - 4], ecx
jle 0x49ef03
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040d65d
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x2c], 0
push 0
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
jne 0x49ef3c
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
call fcn.0047a2f0
mov esi, eax
pop ecx
test esi, esi
je 0x49efe8
cmp esi, 0x52e
je 0x49ef55
cmp esi, 0x56
je 0x49ef55
cmp esi, 0x89a
jne 0x49eff0
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.0040d92c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040ce82
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
push 0
call fcn.004a00e1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0040d148
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040d148
test bl, bl
je 0x49eff0
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x49efc2
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d65d
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x49eec6
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d65d
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
jmp 0x49eec6
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d148
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d148
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d148
mov eax, esi
call fcn.004db6fc
ret 0x18
Function at 0x49fce0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004de980
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004de980
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0x18
mov dword [ebp - 0x3c], esi
push ecx
push edi
push edi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop edi
pop esi
test eax, eax
jne 0x49fd28
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49fd32
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
leave
ret 8

Function at 0x4a0404
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x51a166
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x57c080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0040ce82
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call fcn.0040ce82
lea eax, [ebp]
mov byte [ebp - 4], 1
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4a04a3
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4a04a3
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a04a3
lea eax, [ebp]
push eax
call fcn.004e0c26
pop ecx
push eax
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0040d8ae
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004dab24
add ebp, 0x20c
leave
ret