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

Disassembly:
push 0x10
mov eax, 0x50b491
call fcn.004cea03
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xc8
push eax
jmp 0x48ff45
add dword [ebp - 0x10], 2
push esi
call fcn.004ce497
and dword [ebp - 0x14], 0
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.004822c3
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x48ff40
test eax, eax
je 0x48ff80
xor bl, bl
jmp 0x48fffd
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x48ffad
cmp eax, 2
je 0x48ffad
cmp eax, 7
je 0x48ffad
cmp eax, 4
jne 0x48ff7c
push dword [esi]
push 0x532dd0
push dword [ebp + 8]
call fcn.00407aa5
add esp, 0xc
jmp 0x48fffd
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 0x48ffc6
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x48ffc2
inc edi
mov dword [ebp - 0x10], edi
call fcn.00406abb
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.004480cf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00446330
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004ce497
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004ce9cc
ret

Function at 0x490015
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x50b4c4
call fcn.004cea03
push edx
lea ecx, [ebp - 0x10]
call fcn.004071c5
and dword [ebp - 4], 0
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d18c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x490103
sub esi, dword [ebp - 0x10]
sar esi, 1
js 0x490103
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00447e2c
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.0046a360
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 0
je 0x490098
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x1c], 0
je 0x4900e4
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 1
test eax, eax
jne 0x4900e8
inc ebx
cmp dword [ebp - 0x1c], eax
je 0x4900d3
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
jmp 0x490036
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4900f7
push dword [ebp - 0x1c]
call edi
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068c3
mov eax, ebx
call fcn.004ce9cc
ret
Function at 0x49032a
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x507538
call fcn.004cea03
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 - 0x10], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
jne 0x490363
mov edi, ebx
jmp 0x49036d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x49037f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
mov eax, edi
call fcn.004ce9cc
ret

Function at 0x490387
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x50b52b
call fcn.004cea03
mov esi, edx
mov edi, ecx
push 0x40
xor ebx, ebx
mov dword [ebp - 0x68], 0x44
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004cfc80
xorps xmm0, xmm0
mov dword [ebp - 0x14], ebx
add esp, 0xc
mov byte [ebp - 0x10], bl
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x4903cc
lea ecx, [ebp - 0x14]
call fcn.00497768
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [edi]
xor edx, edx
cmp dword [eax - 0xc], edx
cmove eax, edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x68]
push edx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49040d
mov esi, dword [ebp + 8]
test esi, esi
je 0x490435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x490435
cmp dword [ebp + 8], 0
je 0x49042a
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00497718
mov al, bl
call fcn.004ce9cc
ret
Function at 0x490449
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x50b580
call fcn.004cea03
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
lea eax, [ebp - 0x50]
push 0x38
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.004cfc80
mov esi, dword [ebp + 0xc]
mov eax, 0x400
mov edi, dword [edi]
add esp, 0xc
test esi, esi
mov dword [ebp - 0x54], 0x3c
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
call fcn.00475120
test al, al
je 0x49049c
add edi, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x44], edi
sete al
mov dword [ebp - 0x48], str.open
mov ecx, dword [ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
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 0x4904df
mov edx, dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00473d20
mov dword [ebp - 4], ebx
xor ebx, ebx
inc ebx
jmp 0x4904f2
push ecx
lea ecx, [ebp + 0x10]
call fcn.004071c5
push 2
mov dword [ebp - 4], 1
pop ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.004071c5
mov dword [ebp - 4], 3
test bl, 2
je 0x490512
lea ecx, [ebp + 0x10]
and ebx, 0xfffffffd
call fcn.004068c3
mov byte [ebp - 4], 4
test bl, 1
je 0x490523
lea ecx, [ebp + 0x18]
call fcn.004068c3
mov edi, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00475120
test al, al
je 0x490535
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 0x490556
test esi, esi
je 0x490552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor ebx, ebx
jmp 0x490586
test esi, esi
je 0x490575
cmp dword [ebp - 0x1c], 0
je 0x490584
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 0x490584
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.004068c3
mov al, bl
call fcn.004ce9cc
ret
Function at 0x49087b
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x50b641
call fcn.004cea37
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], ebx
je 0x4908a3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4908c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x490978
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 - 0x24]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x490918
call ebx
cmp eax, 0x7a
jne 0x490965
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.0048a60a
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x490965
cmp dword [ebp - 0x1c], 0
je 0x490965
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 0x490967
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 0x490969
call ebx
xor bl, bl
push esi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x28], 0
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x49098f
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, bl
call fcn.004ce9e1
ret

Function at 0x490997
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp - 4], 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 0x4909fd
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4909f1
cmp dword [ebp - 0x218], ebx
je 0x4909f7
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4909db
jmp 0x4909fd
mov esi, dword [ebp - 0x228]
test edi, edi
je 0x490a08
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cde67
mov esp, ebp
pop ebp
ret
Function at 0x490c98
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x10
mov eax, 0x50b6dc
call fcn.004cea03
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 - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x490d0c
cmp eax, 0x400
jae 0x490d8a
mov byte [ebp + eax], 0
mov ecx, edi
lea eax, [ebp]
push eax
call fcn.00476440
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push esi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x490cef
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x490d54
add eax, 0xfffffffe
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00447d83
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00446330
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x490d67
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
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.004cde67
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.004ce683
int3

Function at 0x49106c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
mov ecx, 0x573688
call fcn.0044dbd0
cmp byte [0x573690], 0
je 0x491093
push dword [0x573688]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4910c3
cmp dword [0x573688], 0
je 0x4910c3
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push 0x573684
push 0x4910e5
push ecx
push ecx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov ecx, 0x573694
call fcn.004251af
pop ebp
ret 4
Function at 0x4914c1
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0xa8
lea ebp, [esp - 4]
mov eax, dword [0x56d078]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push 8
mov eax, 0x50b7d8
call fcn.004cea03
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.00406bd2
xor ebx, ebx
lea ecx, [ebp - 0x10]
push str.tin9999.tmp
mov dword [ebp - 4], ebx
call fcn.00409ea5
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00474730
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068c3
push esi
push edi
lea ecx, [ebp]
call fcn.004915d3
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp + 0x78], ebx
push dword [ebp + edi*4 + 0x9c]
lea ecx, [ebp - 0x10]
call fcn.00409ea5
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00491bbf
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov esi, eax
call fcn.004068c3
test esi, esi
je 0x49158b
inc edi
cmp edi, 3
jl 0x49154e
jmp 0x49158d
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0048370d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068c3
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.004cde67
lea esp, [ebp + 0xac]
pop ebp
ret
Function at 0x4921cc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x50ba2b
call fcn.004cea03
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
cmp ebx, 0xffffffff
je 0x492215
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x492222
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49233b
and dword [ebp - 0x10], 0
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.0048a60a
mov esi, dword [ebp - 0x10]
test al, al
jne 0x492245
push 8
pop edi
jmp 0x49232c
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x492269
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49232c
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00409d89
mov eax, dword [ebp + 8]
test eax, eax
je 0x49232a
mov ecx, dword [ebp + 0xc]
push str.utf_8
mov byte [eax + esi], 0
call fcn.00452f4b
test eax, eax
jne 0x49229d
push 0xfde9
jmp 0x492320
mov ecx, dword [ebp + 0xc]
push str.utf_16
call fcn.00452f4b
test eax, eax
jne 0x4922cf
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.00406abb
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.004480cf
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
jmp 0x49230a
mov ecx, dword [ebp + 0xc]
push str.ISO_8859_1
call fcn.00452f4b
test eax, eax
jne 0x4922e7
push 0x6faf
jmp 0x492320
mov ecx, dword [ebp + 0xc]
push str.US_ASCII
call fcn.00452f4b
test eax, eax
jne 0x49231e
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.00493df4
mov byte [ebp - 4], 4
mov ecx, edi
push eax
call fcn.00446330
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004068c3
jmp 0x49232a
push 0
mov edx, edi
mov ecx, esi
call fcn.004713b0
pop ecx
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004ce497
and dword [ebp - 0x10], 0
pop ecx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x49234e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004ce9cc
ret 0xc
Function at 0x4927e6
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
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 0x492872
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x492874
jmp 0x49285d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x492862
push ebx
lea ecx, [edi + 0xc]
call fcn.0049b297
lea ecx, [edi + 0xc]
call fcn.0049b280
test al, al
jne 0x49287b
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x492830
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x492874
test eax, eax
jle 0x492872
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0xe0000008
jmp 0x492874

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x64]
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 0x492909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x49290b
jmp 0x4928f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4928f9
push ebx
lea ecx, [edi + 0xc]
call fcn.0049b297
lea ecx, [edi + 0xc]
call fcn.0049b280
test al, al
jne 0x492912
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x4928c7
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x49290b
test eax, eax
jle 0x492909
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 0xe0000008
jmp 0x49290b
Function at 0x492b16
Capabilities:
Connect network resource

Disassembly:
push 0x38
mov eax, 0x50bb32
call fcn.004cea03
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x14]
call fcn.00406bd2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406bd2
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
xor esi, esi
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
call fcn.00473d20
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x492b62
mov eax, dword [ecx]
call dword [eax]
test edi, edi
je 0x492bad
push 0x20
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004cfc80
mov eax, dword [ebp - 0x18]
xor ecx, ecx
and dword [ebp - 0x34], 0
inc ecx
add esp, 0xc
mov dword [ebp - 0x40], ecx
cmp dword [eax - 4], ecx
jle 0x492b96
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00406708
mov eax, dword [ebp - 0x18]
and dword [ebp - 0x28], 0
push 0
push edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
jne 0x492bca
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
call fcn.00474fd0
mov esi, eax
pop ecx
test esi, esi
je 0x492c76
cmp esi, 0x52e
je 0x492be3
cmp esi, 0x56
je 0x492be3
cmp esi, 0x89a
jne 0x492c7e
push str.Local_Network_Server
lea ecx, [ebp + 0x10]
call fcn.00409ea5
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.00406bd2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0
call fcn.00493bf8
mov bl, al
mov byte [ebp - 4], 3
neg bl
lea ecx, [ebp + 0x14]
sbb bl, bl
call fcn.004068c3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004068c3
add bl, 1
jne 0x492c7e
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], 1
jle 0x492c56
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406708
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [ebx - 4], 1
jle 0x492b62
push dword [ebx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406708
mov ebx, dword [ebp - 0x10]
jmp 0x492b62
mov eax, dword [ebp + 0x18]
and dword [eax], 0
xor esi, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068c3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004068c3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068c3
mov eax, esi
call fcn.004ce9cc
ret 0x18
Function at 0x49389a
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.004cfc80
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4938d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4938e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4942bb
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x50bde9
call fcn.004cea03
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
cmp esi, 0xffffffff
je 0x494331
push ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
mov dword [ebp + 0xc], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494331
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x494331
mov bl, 1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x494344
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov al, bl
call fcn.004ce9cc
ret 8

Function at 0x49434e
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x50be14
call fcn.004cea03
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x494403
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x494401
xor esi, esi
mov dword [ebp + 8], esi
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0048a60a
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4943f0
mov edx, dword [ebp - 0x10]
mov ecx, esi
call fcn.004c9310
cmp eax, 4
jne 0x4943dc
lea eax, [ebx - 2]
shr eax, 1
push eax
lea eax, [esi + 2]
push eax
jmp 0x4943e5
cmp eax, 5
jne 0x4943f0
shr ebx, 1
push ebx
push esi
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00409e0a
xor ebx, ebx
push esi
mov byte [ebp - 4], bl
call fcn.004ce497
pop ecx
mov dword [ebp + 8], ebx
jmp 0x494403
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x494415
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
call fcn.004ce9cc
ret 4