joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404eeb
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x44305d
call fcn.004420ed
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x404f4b
call fcn.004051e3
test al, al
jne 0x404f4b
push str.__
lea ecx, [ebp - 0x10]
call fcn.00402a4c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004015d8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401759
jmp 0x404f5c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x404f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.004420b6
ret

Function at 0x4053c5
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x4432be
call fcn.004420ed
mov esi, ecx
call fcn.00405092
test al, al
je 0x4053e3
xor eax, eax
jmp 0x40550a
mov ecx, esi
call fcn.004051a0
xor ebx, ebx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.00405227
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00402bb2
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401706
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x28]
inc edi
dec eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
cmp eax, edi
jle 0x4054ef
lea ecx, [esi - 0x10]
call fcn.00401706
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x44bff8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040145f
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402bb2
lea ecx, [ebp - 0x1c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004015d8
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x405493
cmp byte [ebp - 0xd], 0
je 0x4054d9
push 0x44bff8
lea ecx, [ebp - 0x14]
call fcn.0040145f
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.00402bb2
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004015d8
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401759
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x20]
jge 0x4054ef
jmp 0x405437
cmp dword [ebp - 0x18], 1
jle 0x4054e7
lea ecx, [ebp - 0x14]
call fcn.00404eeb
lea ecx, [edi - 0x10]
call fcn.00401759
lea ecx, [esi - 0x10]
call fcn.00401759
lea ecx, [ebp - 0x2c]
call fcn.00402dd9
xor eax, eax
cmp ebx, 0xb7
cmovne eax, ebx
call fcn.004420b6
ret
Function at 0x405510
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405547
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x405547
mov dword [edi], eax
mov bl, 1
test esi, esi
je 0x405552
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x4056f0
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x4432f6
call fcn.00442121
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
call fcn.004092ae
mov ebx, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x459e60]
cmp eax, dword [ecx + 4]
jle 0x40575b
push 0x459e60
call fcn.0042ea97
cmp dword [0x459e60], 0xffffffff
pop ecx
jne 0x40575b
and dword [ebp - 4], 0
sub esp, 0x10
mov ecx, 0x459e68
push 0
push 0xa
call fcn.00409128
or dword [ebp - 4], 0xffffffff
push 0x459e60
call fcn.0042ea58
pop ecx
push ecx
push 0x459e68
mov ecx, ebx
call fcn.0040930e
test al, al
je 0x40585a
push edi
call fcn.00405870
test al, al
je 0x40585a
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.0042fde0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0042fde0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x44bffc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.004058f4
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], 1
call fcn.004098fc
mov eax, dword [0x4598d4]
test eax, eax
je 0x405813
lea ecx, [ebp - 0x42c]
push ecx
call eax
mov byte [ebp - 0x428], 1
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [esi + 4], al
jne 0x405831
push edi
mov ecx, esi
call fcn.004058f4
mov dword [ebp - 4], 2
cmp byte [ebp - 0x428], 0
je 0x405866
call fcn.004098fc
mov eax, dword [0x4598d0]
test eax, eax
je 0x405866
lea ecx, [ebp - 0x42c]
push ecx
call eax
jmp 0x405866
push edi
mov ecx, esi
call fcn.004058f4
mov byte [esi + 4], 0
mov eax, esi
call fcn.004420cb
ret 4
Function at 0x405870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.00405a9a
mov ecx, edi
mov ebx, eax
call fcn.00405a9a
cmp eax, ebx
jae 0x4058b9
xor al, al
jmp 0x4058e1
test ebx, ebx
je 0x4058df
lea eax, [ebp - 0x20c]
sub edi, eax
lea eax, [edi + esi*2]
mov ax, word [ebp + eax - 0x20c]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x4058b5
inc esi
cmp esi, ebx
jb 0x4058c5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e8fb
mov esp, ebp
pop ebp
ret 4

Function at 0x4059ce
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x443326
call fcn.004420ed
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004056f0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x405a6b
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c85
mov esi, dword [ebp - 0x10]
test al, al
jne 0x405a1c
push 8
pop edi
jmp 0x405a73
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x405a6b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x44bff8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x405a73
cmp dword [ebp - 0x20], 0
je 0x405a73
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x405a5d
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x405a73
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x405a73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp byte [ebp - 0x28], 0
je 0x405a82
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.0042e92f
pop ecx
push esi
call fcn.0042e92f
pop ecx
mov eax, edi
call fcn.004420b6
ret

Function at 0x405c41
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x407926
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x407972
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x40799d
shr ecx, 2
test cl, 1
je 0x4079a5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4079d4
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x4079d4
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407b49
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x45800c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor ebp, ebp
push 0x30
pop esi
push esi
mov ebx, ecx
push ebp
push ebx
call fcn.0042fde0
push 0x110
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0x114
push ebp
push eax
call fcn.0042fde0
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407ba8
cmp dword [esp + 0x14], 6
jae 0x407bab
push 0x2c
pop esi
mov dword [ebx], esi
mov esi, dword [esp + 0x138]
mov dword [ebx + 4], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], 1
test esi, esi
je 0x407bcc
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x458cf4]
mov eax, ebx
pop edi
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x138]
pop esi
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0x11c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e8fb
add esp, 0x118
ret 0x18
Function at 0x408b54
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea esi, [eax + 1]
push esi
call fcn.0040157b
push esi
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.004049e4
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x408cf7
Capabilities:
Create service
Modify service

Disassembly:
push 0x10
mov eax, 0x44360c
call fcn.004420ed
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
test eax, eax
jne 0x408d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
jmp 0x408db7
mov ecx, dword [edi + 0x28]
mov esi, ecx
push ebx
push ebx
push ebx
mov eax, dword [ecx]
mov edi, ecx
push ebx
push ebx
call dword [eax + 0xc]
push eax
mov eax, dword [esi]
mov ecx, esi
push 1
push 3
push 0x10
push 0xf01ff
call dword [eax + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov edi, dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi]
je 0x408d88
cmp dword [esi], 0
je 0x408d86
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x14]
mov dword [esi], ebx
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x408d96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x408db7
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x14]
test edi, edi
je 0x408dc2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
call fcn.004420b6
ret 4

Function at 0x40907d
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4090b0
xor al, al
jmp 0x4090fe
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x4090f6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40910f
cmp dword [ebp - 0x24], esi
je 0x4090fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
cmp eax, 0x7530
ja 0x40910f
cmp dword [ebp - 0x24], esi
jne 0x4090bf
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042e8fb
mov esp, ebp
pop ebp
ret 8
xor al, al
jmp 0x4090fd
Function at 0x40934c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x454
mov eax, 0x4436f1
call fcn.00442121
xor edi, edi
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x448], edi
lea eax, [ebp - 0x44c]
mov dword [ebp - 4], edi
push eax
push 0x20119
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409506
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], edi
push eax
push edi
push edi
push str.CurrentMajorVersionNumber
push dword [ebp - 0x44c]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x458], 4
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
push edi
push edi
push str.CurrentMinorVersionNumber
push dword [ebp - 0x44c]
call esi
mov ecx, dword [ebp - 0x444]
test ecx, ecx
jne 0x409444
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push str.CurrentVersion
push dword [ebp - 0x44c]
call esi
lea ecx, [ebp - 0x30]
call fcn.00405a9a
cmp eax, 3
jne 0x40943e
movzx ecx, word [ebp - 0x30]
movzx eax, word [ebp - 0x2c]
sub ecx, 0x30
sub eax, 0x30
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x450], eax
jmp 0x409444
mov ecx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x450]
mov dword [0x4599ec], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [0x4599e8], ecx
push eax
push edi
push edi
push str.CurrentBuildNumber
push dword [ebp - 0x44c]
mov dword [ebp - 0x45c], 0x208
call esi
test eax, eax
jne 0x40949f
or dword [ebp - 0x454], 0xffffffff
lea edx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x440]
call fcn.00409a8d
pop ecx
mov dword [0x4599f0], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push str.CSDVersion
push dword [ebp - 0x44c]
call esi
test eax, eax
jne 0x4094f7
push ecx
lea edx, [ebp - 0x238]
mov ecx, 0x4599f8
call fcn.00405aaa
pop ecx
lea ecx, [ebp - 0x238]
call fcn.00405a9a
movzx eax, word [ebp + eax*2 - 0x23a]
sub eax, 0x30
mov dword [0x4599f4], eax
call fcn.00408a7d
mov byte [0x459afd], al
call fcn.00409521
cmp dword [ebp - 0x44c], 0
je 0x40951b
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004420cb
ret
Function at 0x40a760
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x44387b
call fcn.004420ed
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
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 0x40a7a8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40a7b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40a8d2
mov dword [ebp - 0x10], ebx
inc eax
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c85
mov esi, dword [ebp - 0x10]
test al, al
jne 0x40a7d5
push 8
pop ebx
jmp 0x40a8cb
push ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a7f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40a8cb
mov ecx, dword [ebp + 0x10]
call fcn.0040292e
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a8cb
mov ecx, dword [ebp + 0xc]
push str.utf_8
mov byte [eax + esi], bl
call fcn.00403f4a
test eax, eax
jne 0x40a82a
push 0xfde9
jmp 0x40a8c0
mov ecx, dword [ebp + 0xc]
push str.utf_16
call fcn.00403f4a
test eax, eax
jne 0x40a870
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.0040268c
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.0040245d
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.004023ce
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov edi, dword [ebp - 0x1c]
jmp 0x40a8cb
mov ecx, dword [ebp + 0xc]
push str.ISO_8859_1
call fcn.00403f4a
test eax, eax
jne 0x40a888
push 0x6faf
jmp 0x40a8c0
mov ecx, dword [ebp + 0xc]
push str.US_ASCII
call fcn.00403f4a
test eax, eax
jne 0x40a8bf
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.0040c43d
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.004023ce
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
jmp 0x40a8cb
push ebx
mov edx, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040438c
pop ecx
push esi
call fcn.0042e92f
pop ecx
test edi, edi
je 0x40a8dd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.004420b6
ret 0xc
Function at 0x40acab
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x4438c9
call fcn.004420ed
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.0040c356
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp + 0x10], eax
cmp byte [ebx + 0x40], cl
mov byte [ebx + 0x10], 1
cmovne ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.0040268c
push eax
lea ecx, [ebp - 0x10]
call fcn.004024c1
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0040ac08
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40ad28
cmp dword [ebp + 0xc], eax
mov ecx, 0x2ee2
cmovne esi, ecx
test esi, esi
jne 0x40ad3e
mov esi, dword [ebx + 4]
cmp esi, dword [edi]
je 0x40ad3c
mov ecx, edi
call fcn.0040c356
mov dword [edi], esi
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401759
mov eax, esi
call fcn.004420b6
ret 0x10

Function at 0x40ad53
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 0x40addf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40ade1
jmp 0x40adca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40adcf
push ebx
lea ecx, [edi + 0xc]
call fcn.0040c555
lea ecx, [edi + 0xc]
call fcn.0040c53e
test al, al
jne 0x40ade8
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x40ad9d
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x40ade1
test eax, eax
jle 0x40addf
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, 0xe0000008
jmp 0x40ade1
Function at 0x40adef
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 0x40ae76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40ae78
jmp 0x40ae61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40ae66
push ebx
lea ecx, [edi + 0xc]
call fcn.0040c555
lea ecx, [edi + 0xc]
call fcn.0040c53e
test al, al
jne 0x40ae7f
push 0xa
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x40ae34
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x40ae78
test eax, eax
jle 0x40ae76
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 0xe0000008
jmp 0x40ae78
Function at 0x40b0a9
Capabilities:
Connect network resource

Disassembly:
push 0x40
mov eax, 0x443957
call fcn.004420ed
mov esi, ecx
mov dword [ebp - 0x24], esi
call fcn.0040268c
push eax
lea ecx, [ebp - 0x14]
call fcn.004024c1
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040268c
push eax
lea ecx, [ebp - 0x10]
call fcn.004024c1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, ebx
call fcn.00404ea2
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x40b0fb
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], 0
je 0x40b148
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0042fde0
xor eax, eax
mov dword [ebp - 0x3c], ebx
inc eax
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp dword [esi - 4], eax
jle 0x40b12f
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00401487
mov esi, dword [ebp - 0x18]
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
push dword [ebp + 0x14]
mov dword [ebp - 0x30], ebx
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
jne 0x40b165
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
call fcn.004050b2
mov edi, eax
pop ecx
test edi, edi
je 0x40b224
cmp edi, 0x52e
je 0x40b17e
cmp edi, 0x56
je 0x40b17e
cmp edi, 0x89a
jne 0x40b22f
push str.Local_Network_Server
lea ecx, [ebp - 0x20]
call fcn.00402a4c
mov byte [ebp - 4], 3
call fcn.0040268c
push eax
lea ecx, [ebp - 0x1c]
call fcn.004024c1
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push ebx
call fcn.0040c1d8
mov ecx, dword [ebp - 0x1c]
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00401759
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
add bl, 1
jne 0x40b22b
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
cmp dword [eax - 4], 1
jle 0x40b200
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00401487
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x40b21d
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401487
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
xor ebx, ebx
jmp 0x40b0fe
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jmp 0x40b22d
mov ebx, edi
mov edi, ebx
lea ecx, [esi - 0x10]
call fcn.00401759
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401759
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401759
mov eax, edi
call fcn.004420b6
ret 0x18