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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4f8
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
xor ebx, ebx
mov dword [ebp - 0x488], eax
cmp eax, ebx
je 0x4830b7
cmp dword [ebp + 0x7c], ebx
je 0x4830b7
push 0x64
lea eax, [ebp + 8]
push ebx
push eax
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x470]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x483095
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x474], ebx
push ebx
jmp 0x48306e
lea eax, [ebp - 0x47c]
push eax
push 1
push ebx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x483050
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x480]
push eax
push ebx
push 0x4cdd50
push dword [ebp - 0x47c]
mov dword [ebp - 0x480], 1
mov dword [ebp - 0x484], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x483044
push 0x64
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00492200
lea eax, [ebp - 0x46c]
push 0x64
push eax
lea ecx, [ebp - 0x5c]
call fcn.00482e0c
add esp, 0x14
test eax, eax
je 0x483044
cmp byte [ebp + 8], bl
je 0x483035
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x483044
lea eax, [ebp - 0x5c]
push eax
push 0x64
lea eax, [ebp + 8]
push eax
call fcn.00482533
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x474]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x474]
push dword [ebp - 0x470]
mov dword [ebp - 0x478], 0x104
call esi
test eax, eax
je 0x482f96
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp + 8], bl
je 0x4830b7
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x7c]
push dword [ebp - 0x488]
call fcn.00482533
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x4830b9
xor eax, eax
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x70
leave
ret
Function at 0x483261
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ebx, ebx
je 0x48337b
cmp dword [ebp + 8], 0x20
jb 0x48337b
mov esi, 0x400
push esi
lea eax, [ebp - 0x504]
push 0
push eax
mov dword [ebp - 0x50c], 1
mov dword [ebp - 0x508], esi
call fcn.00492200
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x4cdd88
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x48337b
lea eax, [ebp - 0x504]
push eax
call fcn.004924a0
pop ecx
cmp eax, 0x40
jne 0x48337b
push edi
push 0x20
lea eax, [ebp - 0x504]
push eax
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push eax
call fcn.00482565
lea eax, [ebp - 0x4e4]
push eax
push edi
lea eax, [ebp - 0x104]
push eax
call fcn.00482533
push esi
lea eax, [ebp - 0x504]
push 0
push eax
call fcn.00492200
lea eax, [ebp - 0x504]
push esi
push eax
lea ecx, [ebp - 0x84]
call fcn.0048263c
add esp, 0x14
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop edi
test eax, eax
jne 0x48337b
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
push ebx
call fcn.00482533
neg eax
sbb eax, eax
inc eax
jmp 0x48337d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048c64c
leave
ret

Function at 0x483828
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00492200
mov esi, dword [ebp + 0xc]
push 0x2454
push 0
push esi
call fcn.00492200
lea eax, [esi + 8]
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x2148]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x48]
mov dword [ebp - 0x10], eax
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2348]
mov dword [ebp - 0x20], eax
mov eax, 0x80
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
lea ecx, [esi + 0x1048]
push dword [ebp + 8]
mov dword [ebp - 8], ecx
lea ecx, [esi + 0x2048]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x18], ecx
call fcn.00492919
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4838fe
mov eax, dword [ebp - 0x30]
cmp eax, 3
je 0x4838da
cmp eax, 4
je 0x4838da
cmp eax, 1
jne 0x4838fe
mov cx, word [ebp - 0x24]
and dword [esi + 0x2448], 0
and dword [esi + 0x244c], 0
or dword [esi + 0x2450], 0xffffffff
mov dword [esi + 4], eax
xor eax, eax
mov word [esi], cx
inc eax
jmp 0x483900
xor eax, eax
pop esi
leave
ret
Function at 0x484010
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call fcn.00492200
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call fcn.00492919
mov edi, eax
add esp, 0x10
push 2
add edi, edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
neg eax
push eax
push dword [esi + 8]
call ebx
push 0
lea eax, [ebp - 0x7c]
push eax
push edi
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x7c]
jne 0x4840df
lea eax, [ebp - 0x78]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.004928e2
pop ecx
pop ecx
test eax, eax
jne 0x4840df
push 1
xor edi, edi
push edi
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x7c]
push eax
push dword [esi + 8]
call ebx
push edi
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x80]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
push 1
add eax, ecx
push edi
neg eax
push eax
push dword [esi + 8]
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x194
leave
ret
Function at 0x485039
Capabilities:
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0xfc4]
mov eax, 0x1044
call fcn.004933d0
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0xfc0], eax
push ebx
push esi
mov esi, dword [ebp + 0xfcc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x4ce0f4
cmp dword [edi + 0x2480], ebx
je 0x48507e
mov dword [ebp - 0x48], str.POST
xor eax, eax
push 0xffe
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push ebx
push eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x58], 0x4ce0e0
mov dword [ebp - 0x54], ebx
call fcn.00492200
mov eax, dword [esi + 0x20]
lea ecx, [eax + 0x1048]
push ecx
add eax, 0x48
push eax
push 0x4d8de4
lea eax, [ebp - 0x40]
push 0x7ff
push eax
call fcn.0048e74d
add esp, 0x20
mov eax, 0x8400c300
cmp dword [edi + 0x62acc], ebx
je 0x4850d6
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x4850e4
or eax, 0x803000
push esi
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x48]
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x4851ba
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x48]
push ecx
push 2
push eax
mov dword [ebp - 0x48], 0x3a98
call edi
push 4
lea eax, [ebp - 0x50]
push eax
push 0x41
push dword [esi + 0x1c]
mov dword [ebp - 0x50], 1
call edi
push 0x28
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00492200
xor ecx, ecx
push 2
pop edx
mov eax, 0x5168
mul edx
seto cl
mov dword [ebp - 0x80], edi
neg ecx
or ecx, eax
push ecx
call fcn.0048bc2e
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x48519b
push 0xa2d0
push ebx
push edi
call fcn.00492200
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
push dword [ebp - 0x44]
push 0xa2cf
push edi
push esi
call fcn.0048399f
push edi
mov dword [ebp - 0x78], edi
call fcn.00492919
pop ecx
mov dword [ebp - 0x74], eax
push esi
push 1
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov dword [ebp - 0x44], eax
cmp edi, ebx
je 0x4851ba
push edi
call fcn.0048cd90
pop ecx
mov ecx, dword [ebp + 0xfc0]
mov eax, dword [ebp - 0x44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0xfc4
leave
ret 4
Function at 0x4851d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push 2
xor edi, edi
lea esi, [ebx + 0x26fc]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push edi
push edi
push dword [ebx + 8]
sar eax, 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 8], edi
je 0x48529d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call edi
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 4], 0
sar eax, 2
mov dword [ebp - 0x10], 4
test eax, eax
jbe 0x48526b
push dword [ebp - 4]
mov ecx, esi
call fcn.004843bd
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20
push dword [eax]
push dword [ebx + 8]
call edi
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add dword [ebp - 0x10], 0x20
inc dword [ebp - 4]
sar eax, 2
cmp dword [ebp - 4], eax
jb 0x48523d
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call edi
mov esi, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push esi
call fcn.00492919
pop ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
add eax, eax
push eax
push esi
push dword [ebx + 8]
call edi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x487a2c
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
add ecx, 0x26e4
call fcn.0048438e
mov esi, dword [eax]
push 0x28
pop ebx
push ebx
lea edi, [esi + 0x8044]
push 0
push edi
call fcn.00492200
mov dword [edi], ebx
mov edi, 0x8000
push edi
lea ebx, [esi + 0x40]
push 0
push ebx
call fcn.00492200
mov eax, dword [esi + 0x8040]
mov dword [esi + 0x8058], ebx
add esp, 0x18
lea ebx, [esi + 0x805c]
mov dword [ebx], edi
test eax, eax
je 0x487ab7
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
sbb edx, dword [eax + 0x1c]
sub ecx, dword [eax + 8]
sbb edx, dword [eax + 0xc]
add ecx, 1
mov eax, edx
adc eax, 0
test eax, eax
jb 0x487ab2
ja 0x487aac
cmp ecx, edi
jbe 0x487ab2
and dword [ebp - 8], 0
jmp 0x487af0
mov dword [ebp - 8], eax
jmp 0x487aee
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5d120]
mov edx, dword [eax + 0x5d124]
cmp ecx, 0xffffffff
jne 0x487acf
cmp edx, ecx
je 0x487af2
sub ecx, dword [eax + 0x5d130]
sbb edx, dword [eax + 0x5d134]
test edx, edx
jb 0x487aeb
ja 0x487ae5
cmp ecx, edi
jbe 0x487aeb
and dword [ebp - 8], 0
jmp 0x487af0
mov dword [ebp - 8], edx
mov edi, ecx
mov dword [ebx], edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x20]
xor edi, edi
inc edi
mov dword [esi + 0x28], 9
cmp dword [eax + 4], edi
je 0x487b51
push esi
push edi
lea eax, [esi + 0x8044]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x487b30
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, edi
jmp 0x487b4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x487b2c
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00487224
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
push dword [ebx]
push dword [esi + 0x8058]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x487b1f
Function at 0x489118
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push ebx
push eax
mov edi, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00492200
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.00492919
mov esi, eax
add esp, 0x10
push 2
add esi, esi
push ebx
mov eax, esi
neg eax
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x68]
push eax
push esi
lea eax, [ebp - 0x64]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x68]
jne 0x4892a6
lea eax, [ebp - 0x64]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call fcn.004928e2
pop ecx
pop ecx
test eax, eax
jne 0x4892a6
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push ebx
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0x68]
push eax
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x7c]
push 1
add ecx, eax
push ebx
neg ecx
push ecx
push dword [edi + 8]
call esi
push ebx
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x6c]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x6c], ebx
jbe 0x489276
lea esi, [edi + 0x5cfe0]
push ebx
lea ecx, [ebp - 0x68]
push ecx
push 0x20
lea eax, [esi - 8]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x10]
add dword [esi], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
adc dword [esi + 4], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [esi - 8], ebx
sbb ecx, dword [esi + 4]
add eax, 1
adc ecx, ebx
add dword [ebp - 0x78], eax
lea eax, [esi - 8]
mov dword [ebp - 0x80], eax
adc dword [ebp - 0x74], ecx
lea eax, [ebp - 0x80]
push eax
lea ecx, [edi + 0x26fc]
mov dword [esi - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00488fbc
inc dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
add esi, 0x20
cmp eax, dword [ebp - 0x6c]
jb 0x489212
mov ecx, dword [edi + 0x5d120]
sub ecx, dword [ebp - 0x78]
mov edx, dword [edi + 0x5d124]
sbb edx, dword [ebp - 0x74]
lea eax, [edi + 0x5d138]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, edx
mov dword [edi + 0x5d134], eax
xor eax, eax
mov dword [edi + 0x5d130], ecx
inc eax
jmp 0x4892a8
xor eax, eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c64c
add ebp, 0x1a8
leave
ret
Function at 0x489e82
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4f51d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x489ea5
xor eax, eax
inc eax
jmp 0x48a010
push ebx
lea ebx, [esi + 0x5d140]
push ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push 0x3a
mov word [ebp - 0xc], ax
pop eax
push 0x5c
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
push edi
mov word [ebp - 6], ax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x48a00d
mov ecx, dword [esi + 0x5d120]
mov eax, dword [esi + 0x5d124]
cmp ecx, 0xffffffff
jne 0x489f01
cmp eax, ecx
je 0x489f20
mov edx, dword [ebp - 0x10]
cmp edx, eax
ja 0x489f20
jb 0x489f11
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x489f20
mov dword [esi + 0x2470], 2
jmp 0x48a00d
push edi
push 0x20
push 4
push edi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x489ff7
cmp dword [esi + 0x2714], edi
je 0x489ff2
lea ebx, [esi + 0x26fc]
mov ecx, ebx
call fcn.00486fff
mov ecx, esi
call fcn.00489118
test eax, eax
jne 0x489ff2
lea eax, [esi + 0x2468]
cmp dword [eax], edi
ja 0x489f78
mov dword [eax], 5
push 0xa
pop ecx
cmp dword [eax], ecx
jbe 0x489f81
mov dword [eax], ecx
mov eax, dword [esi + 0x5d120]
mov ecx, dword [esi + 0x5d124]
add eax, 0xffffffff
mov dword [esi + 0x5cfe8], eax
lea eax, [esi + 0x5cfd8]
adc ecx, 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esi + 0x5cfec], ecx
push eax
mov ecx, ebx
mov dword [esi + 0x5cfe0], edi
mov dword [esi + 0x5cfe4], edi
call fcn.00488fbc
mov eax, dword [esi + 0x5d120]
mov edx, dword [esi + 0x5d124]
mov cl, 0x20
call fcn.00496d20
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x5d120]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
inc eax
jmp 0x48a00f
mov dword [esi + 0x2470], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2474], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048c64c
leave
ret
Function at 0x48a01e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x805c]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push esi
push edi
mov edi, ecx
jne 0x48a042
mov eax, dword [ebx]
mov dword [ebp + 8], eax
xor esi, esi
cmp dword [edi + 0x2714], esi
je 0x48a0e3
call fcn.00484010
mov esi, dword [ebx + 0x8040]
mov ecx, dword [esi + 8]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
adc eax, dword [esi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push dword [edi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48a092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48a11d
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48a11d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jne 0x48a11d
add dword [esi + 0x18], eax
lea eax, [edi + 0x5d130]
adc dword [esi + 0x1c], 0
mov ecx, dword [ebp - 4]
add dword [eax], ecx
push ecx
push ebx
adc dword [eax + 4], 0
mov ecx, edi
call fcn.004892c0
mov ecx, edi
call fcn.004851d7
xor eax, eax
inc eax
jmp 0x48a11f
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
lea eax, [ebx + 0x40]
push eax
push dword [edi + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48a11d
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x48a11d
lea eax, [edi + 0x5d130]
add dword [eax], ecx
push ecx
push ebx
adc dword [eax + 4], esi
mov ecx, edi
call fcn.004892c0
jmp 0x48a0de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48a126
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x26e4]
call fcn.0048438e
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
xor ebx, ebx
inc ebx
mov dword [esi + 0x28], 2
cmp dword [eax + 4], ebx
je 0x48a19f
cmp dword [edi + 0x2480], 0
je 0x48a18c
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x48a190
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, ebx
jmp 0x48a1c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x48a1c3
jmp 0x48a18c
cmp dword [esi], 0
jne 0x48a1b0
mov eax, dword [esi + 4]
test eax, eax
je 0x48a1b0
mov dword [esi + 0x18], eax
jmp 0x48a18c
and dword [esi + 0x28], 0
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.00489dae
test eax, eax
jne 0x48a18c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x48a6c3
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 0x26e4]
call fcn.0048438e
mov esi, dword [eax]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [eax + 4], 1
je 0x48a73a
cmp dword [edi + 0x2480], 0
je 0x48a76c
push dword [esi + 0xc]
and dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 8]
push eax
push dword [edi + 0x2484]
push dword [edi + 0x2480]
push dword [esi + 0x1c]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x48a728
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x48a76c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x3e5
neg eax
sbb eax, eax
inc eax
jmp 0x48a76f
cmp dword [esi], 0
jne 0x48a74b
mov eax, dword [esi + 4]
test eax, eax
je 0x48a74b
mov dword [esi + 0x18], eax
jmp 0x48a76c
push 1
push dword [ebp + 8]
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00489dae
test eax, eax
jne 0x48a76c
push dword [ebp + 8]
mov ecx, edi
call fcn.00487224
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x48af2e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x48af42
xor eax, eax
jmp 0x48afc6
push ebx
push edi
mov ebx, str.MetalinkFile
lea eax, [esi + 0x5d550]
push ebx
push eax
call fcn.0048d376
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48af7a
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00492919
lea eax, [edi + eax*2]
push eax
call fcn.0048d422
pop ecx
pop ecx
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.00485393
test eax, eax
je 0x48afc4
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2464], eax
cmp eax, edi
je 0x48afc1
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x48ae8c
push edi
push edi
mov dword [ebp - 4], edi
mov dword [esi + 0x5d118], 8
call fcn.0048ff7d
add esp, 0x18
mov dword [esi + 0xc], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48b1a0
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.0048b166
mov byte [esi], 0x80
pop esi
ret

Function at 0x48c64c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f51d0]
jne 0x48c656
repz ret
jmp fcn.00498bc5

Function at 0x49060e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x49063f
call fcn.00499aaf
mov dword [eax], esi
call fcn.00499a9c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048cf11
add esp, 0x14
push 0x16
pop eax
jmp 0x490694
test dword [ebp + 0xc], 0xfffffff9
jne 0x49061b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49066c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00499ac2
pop ecx
call fcn.00499a9c
mov eax, dword [eax]
jmp 0x490694
test al, 0x10
jne 0x490692
test al, 1
je 0x490692
test byte [ebp + 0xc], 2
je 0x490692
call fcn.00499aaf
mov dword [eax], 5
call fcn.00499a9c
mov dword [eax], 0xd
jmp 0x490663
xor eax, eax
pop esi
pop ebp
ret