joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a75a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x57c074]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x49a782
xor al, al
jmp 0x49a8a4
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x49a7a1
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x49a792
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x49a7d5
cmp word [esp + 0x22], di
jne 0x49a7d5
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x49a7e1
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x49a802
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49a7f6
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x49a80c
test al, al
je 0x49a81f
jmp 0x49a817
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x49a88c
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49a864
cmp word [esi], cx
je 0x49a86c
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x49a85c
cmp esi, edi
jb 0x49a77b
cmp byte [esp + 0xf], 0
jne 0x49a87f
cmp esi, edi
jne 0x49a882
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49a828
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x49a8a0
jb 0x49a8a2
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x49a8a2
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9b30
mov esp, ebp
pop ebp
ret
Function at 0x49af8e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004dae60
push 0xffffffffffffffff
push 0x518bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c074]
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 0x49afe3
xor al, al
jmp 0x49b05b
mov ecx, eax
call fcn.00456e1f
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 0x49b04d
mov esi, dword [ebp - 0x10]
call fcn.0040d439
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004070fd
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.004701a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d22d
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x49afec
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.004d9b30
lea esp, [ebp + 0x8004]
pop ebp
ret 4
Function at 0x49b262
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x518c59
call fcn.004da733
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.004da275
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x49b29d
add dword [ebp - 0x10], 2
push esi
call fcn.004da275
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0048b121
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 0x49b28e
test eax, eax
je 0x49b2d5
xor eax, eax
mov bl, al
jmp 0x49b392
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x49b305
cmp eax, 2
je 0x49b305
cmp eax, 7
je 0x49b305
cmp eax, 4
jne 0x49b2cc
push dword [esi]
push 0x541590
push dword [ebp + 8]
call fcn.0041186f
add esp, 0xc
jmp 0x49b392
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 0x49b31e
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49b31a
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d439
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.004070fd
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 0x49b385
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49b379
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49b379
mov ecx, edi
call fcn.00407162
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d743
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x49b385
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d9ac
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004da275
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004da6fc
ret

Function at 0x49b48e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x57f59c
call fcn.0040de3a
cmp byte [0x57f5a4], 0
je 0x49b4b5
push dword [0x57f5a0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x49b4e5
cmp dword [0x57f5a0], 0
je 0x49b4e5
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x57f598
push 0x49b507
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x57f5a8
call fcn.0040e16d
pop ebp
ret 4
Function at 0x49b5b2
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x518c8c
call fcn.004da733
push edx
lea ecx, [ebp - 0x10]
call fcn.004071bb
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004dde17
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49b69b
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x49b69b
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406ec6
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.00473770
and dword [ebp - 0x18], 0
mov esi, 0x53f300
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 0x49b679
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 0x49b680
inc ebx
cmp dword [ebp - 0x18], eax
je 0x49b668
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d22d
jmp 0x49b5d3
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], 0
je 0x49b68f
push dword [ebp - 0x18]
call edi
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d22d
mov eax, ebx
call fcn.004da6fc
ret

Function at 0x49b774
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x514e58
call fcn.004da733
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], 0x532e68
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x49b7b3
mov edi, ebx
or esi, eax
jmp 0x49b7bd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x532e68
test esi, esi
je 0x49b7d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, edi
call fcn.004da6fc
ret
Function at 0x49b7de
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x518ce4
call fcn.004da733
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.004dd970
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 0x49b835
call fcn.004a3947
mov eax, dword [0x57f378]
test eax, eax
je 0x49b835
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 0x49b87b
mov esi, dword [ebp + 8]
test esi, esi
je 0x49b877
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor bl, bl
jmp 0x49b8a1
cmp dword [ebp + 8], 0
je 0x49b898
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 0x49b8c7
call fcn.004a3947
mov ecx, dword [0x57f374]
test ecx, ecx
je 0x49b8c7
lea eax, [ebp - 0x18]
push eax
call ecx
mov byte [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
mov al, bl
call fcn.004da6fc
ret
Function at 0x49b8d3
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x518d39
call fcn.004da733
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.004dd970
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.0047a030
test al, al
je 0x49b924
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 0x49b966
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00478830
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x49b979
push ecx
lea ecx, [ebp + 0x10]
call fcn.004071bb
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.004071bb
mov dword [ebp - 4], 3
test bl, 2
je 0x49b999
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.0040d22d
mov byte [ebp - 4], 4
test bl, 1
je 0x49b9aa
lea ecx, [ebp + 0x18]
call fcn.0040d22d
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0047a030
test al, al
je 0x49b9bc
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 0x49b9dd
test esi, esi
je 0x49b9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x49ba0d
test esi, esi
je 0x49b9fc
cmp dword [ebp - 0x1c], 0
je 0x49ba0b
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 0x49ba0b
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.0040d22d
mov al, bl
call fcn.004da6fc
ret
Function at 0x49bd85
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x518dfa
call fcn.004da767
xor ebx, ebx
mov dword [ebp - 0x24], 0x532e68
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 0x49bdc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49be75
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 0x49be11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x49be5e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00494578
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 0x49be5e
cmp dword [ebp - 0x1c], 0
je 0x49be5e
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 0x49be64
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 0x49be66
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004da275
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x532e68
je 0x49be93
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
mov al, bl
call fcn.004da711
ret

Function at 0x49be9b
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x57c074]
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 0x49bf0a
push ebp
mov ebp, 0x22c
lea eax, [esp + 0x10]
push ebp
push esi
push eax
call fcn.004dd970
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 0x49bf00
cmp dword [esp + 0x24], ebx
je 0x49bf06
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49beee
jmp 0x49bf0a
mov esi, dword [esp + 0x14]
test edi, edi
je 0x49bf15
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.004d9b30
add esp, 0x230
ret
Function at 0x49c1c4
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x14
mov eax, 0x518e8f
call fcn.004da733
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], 0x532e68
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 0x49c251
cmp eax, 0x400
jae 0x49c2f4
mov byte [ebp + eax], bl
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.0047b600
jmp 0x49c219
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x49c2b8
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406df5
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x49c2ab
cmp dword [ebx + 0xc], 0
jl 0x49c2a0
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x49c2a0
call fcn.00407162
mov ecx, ebx
mov esi, eax
call fcn.0040d743
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x49c2ab
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d9ac
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x532e68
test esi, esi
je 0x49c2d1
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.004d9b30
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.004da3a6
int3
Function at 0x49c957
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x518f85
call fcn.004da733
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.0040cf67
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.0040da2c
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00479510
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040d22d
push esi
push edi
lea ecx, [ebp]
call fcn.0049cb24
mov byte [ebp - 4], 2
lea edi, [ebp + 0x9c]
mov dword [ebp + 0x78], ebx
push dword [edi]
lea ecx, [ebp - 0x10]
call fcn.0040da2c
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.0049d215
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.0040d22d
test esi, esi
je 0x49ca27
add edi, 4
lea eax, [ebp + 0xa8]
cmp edi, eax
jne 0x49c9e8
jmp 0x49ca29
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0048c5eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d22d
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.004d9b30
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x49df78
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 0x49e00d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49e018
jmp 0x49dfef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49dff4
push ebx
lea ecx, [edi + 0xc]
call fcn.004a7e0b
lea ecx, [edi + 0xc]
call fcn.004a7df4
test al, al
jne 0x49e006
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x49dfc2
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x49e018
test eax, eax
jle 0x49e016
mov dword [ebp], eax
jmp 0x49e016
mov eax, 0xe0000008
jmp 0x49e018
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 0x49e01f
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 0x49e0af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49e0ba
jmp 0x49e091
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49e096
push ebx
lea ecx, [edi + 0xc]
call fcn.004a7e0b
lea ecx, [edi + 0xc]
call fcn.004a7df4
test al, al
jne 0x49e0a8
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x49e064
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x49e0ba
test eax, eax
jle 0x49e0b8
mov dword [ebp], eax
jmp 0x49e0b8
mov eax, 0xe0000008
jmp 0x49e0ba
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 0x49e2b1
Capabilities:
Connect network resource

Disassembly:
push 0x3c
mov eax, 0x519287
call fcn.004da733
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
call fcn.0040cf67
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040cf67
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.00478830
mov byte [ebp - 4], 2
and dword [edi + 8], esi
and dword [edi + 4], esi
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x49e306
mov eax, dword [ecx]
call dword [eax]
test ebx, ebx
je 0x49e35f
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.004dd970
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 0x49e343
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040d75b
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 0x49e37c
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
call fcn.00479ed0
mov esi, eax
pop ecx
test esi, esi
je 0x49e428
cmp esi, 0x52e
je 0x49e395
cmp esi, 0x56
je 0x49e395
cmp esi, 0x89a
jne 0x49e430
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.0040da2c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040cf67
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.0049f523
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
mov bl, al
call fcn.0040d22d
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040d22d
test bl, bl
je 0x49e430
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
jle 0x49e402
push dword [ebx - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040d75b
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x49e306
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d75b
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
jmp 0x49e306
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d22d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0040d22d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d22d
mov eax, esi
call fcn.004da6fc
ret 0x18
Function at 0x49f120
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.004dd970
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.004dd970
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 0x49f168
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x49f172
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8