joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b7f
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.00425710
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
call fcn.0040204b
add esp, 0x14
test eax, eax
je 0x405ca7
lea eax, [ebp + 0x18]
push eax
push 0x42d4bc
push 1
push ebx
push 0x42d4cc
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x405caa
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x42d4ec
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x405c9c
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], ebx
mov esi, eax
je 0x405c2c
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp esi, ebx
jl 0x405c93
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x405c47
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x405c6a
mov eax, dword [ebp - 4]
mov esi, str..lnk
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea edx, [ebp - 0x20c]
push edx
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405caa
mov esi, dword [ebp + 0x1c]
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x405f35
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
mov word [ebp - 0x410], di
call fcn.00425710
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00425710
add esp, 0x18
push 0x104
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
add eax, 0xcf4
lea ecx, [ebp - 0x208]
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, di
jne 0x405f97
push 0x42fc38
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
leave
ret 4
Function at 0x408538
Capabilities:
Create thread

Disassembly:
mov eax, 0x42c608
call fcn.0042c0d8
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x10c]
push 0x11
call fcn.00403969
mov eax, dword [esi + 0xf0]
mov dword [0x440384], eax
mov ecx, dword [esi + 0x10c]
xor eax, eax
inc eax
add esp, 0x10
test byte [ecx + 0x56be], al
je 0x40857d
mov dword [0x440388], eax
mov eax, dword [esi + 0x10c]
test byte [eax + 0x56be], 2
je 0x408596
mov dword [0x440388], 2
push 0x928
call fcn.0041fb86
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x4085bf
push dword [esi + 0x10c]
mov eax, dword [0x440388]
call fcn.00406d2c
jmp 0x4085c1
xor eax, eax
mov edi, 0x440060
mov esi, edi
mov ecx, eax
sub esi, eax
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x4085cc
lea ecx, [eax + 0x208]
mov esi, 0x440268
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x4085e7
lea ecx, [eax + 0x410]
mov esi, 0x44036c
sub esi, ecx
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x4085fe
cmp eax, ebx
je 0x408617
push eax
call fcn.0041fc06
pop ecx
push ebx
push ebx
push edi
push 0x408638
push ebx
push ebx
call fcn.00420836
mov ecx, dword [ebp - 0xc]
add esp, 0x18
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40881f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.percentDownloadedMutex
push 1
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40886b
cmp dword [ebp + 0xc], ebx
je 0x40885e
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0xc]
mov dword [0x43f724], eax
jmp 0x408864
mov dword [0x43f724], ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4088de
cmp edi, dword [ebp + 0xc]
jne 0x4088de
mov eax, dword [esi + 0x100]
push ebx
push ebx
push dword [esi + 0x10c]
mov dword [esi + 0xfc], eax
push 9
mov byte [esi + 0x109], 1
mov byte [esi + 0x108], bl
call fcn.00403969
add esp, 0x10
mov ecx, esi
call fcn.0040813d
cmp dword [esi + 0xd4], ebx
mov dword [ebp - 4], ebx
jle 0x40893c
lea edi, [esi + 0xac]
mov ecx, dword [edi]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x24]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [esi + 0xd4]
jl 0x4088be
mov edi, dword [ebp + 8]
jmp 0x40893c
cmp edi, 0xffffffff
jne 0x40890f
or dword [esi + 0xfc], edi
push ebx
push ebx
push dword [esi + 0x10c]
mov byte [esi + 0x109], 1
push dword [ebp + 0xc]
mov byte [esi + 0x108], 1
call fcn.00403969
add esp, 0x10
mov dword [ebp + 0xc], ebx
jmp 0x40893c
cmp byte [0x4407ea], bl
jne 0x408930
push ebx
push ebx
push dword [esi + 0x10c]
push 8
call fcn.00403969
add esp, 0x10
mov byte [0x4407ea], 1
mov byte [esi + 0x109], bl
mov byte [esi + 0x108], bl
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], eax
call fcn.004087b0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40908c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x24], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push str.SetEntriesInAclA
push esi
mov dword [ebp - 0x18], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x14], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, eax
je 0x40920a
cmp dword [ebp - 0x18], ebx
je 0x40920a
cmp dword [ebp - 0x14], ebx
je 0x40920a
cmp edi, ebx
je 0x40920a
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x40920a
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x409152
cmp dword [ebp - 0x10], ebx
jne 0x4091e4
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], 0x10000000
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x4091d2
push ebx
push dword [ebp - 8]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x409214
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4094ef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x430390
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4095e4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4095e4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
push ebx
jne 0x4095e8
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4095e4
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], eax
push 0x1c
xor eax, eax
inc eax
push ecx
push eax
push dword [ebp - 4]
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], 0x860
mov dword [ebp - 0x24], 0x440d
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4095db
test byte [ebp - 0x18], 1
jne 0x4095db
movzx edx, word [ebp - 0x44]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp - 0x51]
mov ecx, edx
mov edi, eax
not ecx
shl edi, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
xor edi, ecx
shl edx, 2
not eax
not ecx
xor edx, eax
xor edx, ecx
mov dword [esi + 4], edx
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4095db
cmp dword [ebp - 0xc], ebx
jbe 0x4095db
mov edx, dword [ebp - 0x20]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
jmp 0x4095bb

Function at 0x409898
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4098a6
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ebp + 8]
call fcn.0040965e
mov edi, eax
cmp edi, ebx
je 0x4098f5
cmp dword [ebp + 0xc], ebx
push esi
push dword [ebp + 0x10]
push 1
push ebx
je 0x4098de
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4098e5
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor ecx, ecx
cmp eax, ebx
sete cl
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x409b5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x114]
cmp eax, 0xffffffff
je 0x409b96
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409b92
cmp dword [ebp - 4], esi
je 0x409b92
xor eax, eax
inc eax
jmp 0x409bbb
xor eax, eax
jmp 0x409bbb
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x118]
jb 0x409ba5
xor al, al
jmp 0x409bbb
mov ecx, dword [esi]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.004253a0
add esp, 0xc
add dword [esi + 4], edi
mov al, 1
pop esi
leave
ret 4

Function at 0x40a86d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [ebp - 4], eax
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x18], eax
call ebx
mov ecx, dword [esi + 0x18]
mov ebx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x25c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x270], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esi + 0x234], ebx
mov dword [esi + 0x258], ecx
mov dword [esi + 0x250], 0x4080d8
mov dword [esi + 0x254], eax
call fcn.0042039d
cmp dword [ebp + 0x10], edi
pop ecx
jne 0x40a8db
xor eax, eax
jmp 0x40a8e4
push dword [ebp + 0x10]
call fcn.004018c0
pop ecx
cmp dword [ebp + 0x14], edi
mov dword [esi + 0x238], eax
je 0x40a905
push edi
call fcn.0042039d
push dword [ebp + 0x14]
call fcn.004018c0
pop ecx
pop ecx
mov dword [esi + 0x23c], eax
push dword [ebp + 0x18]
lea eax, [esi + 0x244]
push 0x42f258
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push edi
call fcn.0042039d
add esp, 0x10
cmp dword [ebp + 0x1c], edi
jne 0x40a92c
xor eax, eax
jmp 0x40a935
push dword [ebp + 0x1c]
call fcn.004018c0
pop ecx
mov dword [esi + 0x260], eax
lea eax, [esi + 8]
push eax
push edi
push esi
push 0x40a96a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
pop edi
pop ebx
leave
ret 0x18
Function at 0x40aa24
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
lea edi, [esi + 0x28]
call fcn.0040b637
lea edi, [esi + 0x12c]
call fcn.0040b637
mov ecx, dword [esi + 0x268]
xor ebx, ebx
cmp ecx, ebx
je 0x40aa75
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40aa53
sub eax, edi
je 0x40aa75
push 5
push ebx
push dword [esi + 0x26c]
push ecx
push ebx
push dword [esi + 0x274]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [esi + 0x20]
push ebx
call fcn.0040b532
mov edi, dword [esi + 0x27c]
cmp edi, ebx
mov dword [esi + 0x24], ebx
jne 0x40aaad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push dword [esi + 0x254]
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [esi + 0x250]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
xor ebx, ebx
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40aa8b
push esi
mov ebx, edi
call fcn.0040b2f6
test eax, eax
je 0x40aad3
mov edi, dword [edi + 0x610]
test edi, edi
jne 0x40aaab
jmp 0x40aa8b
push edi
lea eax, [ebp - 0x104]
push str.StartDownloadFiles_failed_for_file:__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40aaa7
Function at 0x40b2f6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebx + 0x614], 0
push esi
push edi
mov byte [ebp - 1], 0
jne 0x40b3fb
push 0x103
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00425710
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push dword [eax + 0x264]
mov esi, 0x42f2a4
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
push 0x10
push str.systemcomponents
push ebx
call fcn.00420170
add esp, 0x28
test eax, eax
jne 0x40b379
lea eax, [ebx + 0x11]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x264]
lea eax, [ebp - 0x10c]
push esi
push eax
call edi
add esp, 0x10
lea edi, [ebp - 0x10c]
call fcn.0040b637
test eax, eax
jne 0x40b38f
xor eax, eax
jmp 0x40b445
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b3fb
shr eax, 4
not eax
and eax, 1
je 0x40b3fb
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.0040b58c
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebx + 0x208]
call fcn.0040b553
test eax, eax
jne 0x40b3d6
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.0042039d
cmp byte [ebp - 1], 0
pop ecx
je 0x40b3fb
cmp dword [ebx + 0x614], esi
jne 0x40b3fb
push esi
push dword [ebx + 0x60c]
call fcn.0040b532
jmp 0x40b40d
mov esi, dword [ebp + 8]
mov edi, ebx
call fcn.0040b44b
test eax, eax
je 0x40b388
cmp byte [ebx], 0
je 0x40b442
mov esi, dword [ebp + 8]
lea edx, [ebx + 0x208]
push edx
add esi, 0x230
mov ecx, dword [esi]
mov eax, dword [ecx]
push str.hash
push ebx
call dword [eax + 0x20]
push dword [ebx + 0x608]
mov ecx, dword [esi]
mov eax, dword [ecx]
push str.version
push ebx
call dword [eax + 0x24]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x40b4a4
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push 0
push dword [esi + 0x1c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b4ba
xor al, al
jmp 0x40b52e
mov eax, dword [esp + 8]
add dword [esi + 0x10], eax
test ebx, ebx
push edi
mov edi, dword [esi + 0x10]
je 0x40b4cc
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x14]
xor edx, edx
mov eax, ecx
mov ebx, 0xc8
div ebx
cmp edi, eax
jbe 0x40b52b
push dword [esi + 0x254]
add dword [esi + 0x24], edi
mov eax, dword [esi + 0x24]
and dword [esi + 0x10], 0
push 1
shr ecx, 0xa
push ecx
shr eax, 0xa
push eax
call dword [esi + 0x250]
push str.bytesDownloadedMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b52b
mov eax, dword [esi + 0x24]
push edi
mov dword [0x43f720], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop ebx
ret 4
Function at 0x40b58c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
jne 0x40b5c5
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push edi
push edi
push 4
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
jne 0x40b611
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0xc]
call ebx
mov eax, esi
jmp 0x40b5c0
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00401ad1
push 0x20
call fcn.0041fa52
mov dword [ebx], eax
add esp, 0xc
mov edi, eax
lea ebx, [ebp - 0x1c]
call fcn.0040c9c5
jmp 0x40b5f4

Function at 0x40b637
Capabilities:
Create directory
Get file attributes

Disassembly:
cmp byte [edi], 0
je 0x40b65f
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x40b649
cmp al, 0x2f
jne 0x40b658
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x40b63f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x40b66d
Capabilities:
Read file on windows

Disassembly:
push edi
push 0x4304e0
push dword [esp + 0xc]
call fcn.00420eb8
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x40b68b
and dword [ebx], eax
or eax, 0xffffffff
pop edi
ret
push esi
push 2
push 0
push edi
call fcn.0042140f
push edi
call fcn.0042131a
push 0
push 0
push edi
mov esi, eax
call fcn.0042140f
lea eax, [esi + 1]
push eax
call fcn.004202da
push edi
push esi
push 1
push eax
mov dword [ebx], eax
call fcn.00421167
add esp, 0x30
cmp esi, eax
je 0x40b6d1
push dword [ebx]
call fcn.00420bf6
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x40b6da
push edi
call fcn.00421506
pop ecx
mov eax, esi
pop esi
pop edi
ret
Function at 0x40bc58
Capabilities:
Check if file exists
Check internet connectivity via wininet
Create http request
Get file attributes
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
or dword [ebx + 8], 0xffffffff
sub esp, 0x198
push esi
push edi
push 0x25
xor esi, esi
lea edi, [ebx + 0xc]
pop eax
mov dword [ebx], fcn.0040ec79
mov dword [ebx + 4], esi
call fcn.0040d037
lea eax, [esp + 0x10]
push eax
push 0x101
mov dword [ebx + 0x14], 0xc8
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
call sub.WSOCK32.dll_WSAStartup
push esi
push esi
push esi
push esi
push 0x43059c
mov byte [ebx + 0x20], 0
mov byte [ebx + 0x124], 0
mov dword [ebx], fcn.0040ec79
mov byte [ebx + 0x330], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0x104
lea edi, [ebx + 0x22c]
push esi
push edi
mov dword [ebx + 0x33c], eax
mov dword [ebx + 0x334], esi
call fcn.00425710
add esp, 0xc
push esi
call fcn.00406cdd
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40bceb
mov esi, str.upgrade_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x22c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40bd13
xor esi, esi
xor eax, eax
jmp 0x40bd18
and eax, 0x10
xor esi, esi
cmp eax, esi
setg al
mov byte [ebx + 0x332], al
push esi
lea eax, [esp + 0x10]
push eax
mov byte [ebx + 0x331], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edi, eax
lea eax, [esp + 8]
push eax
call sub.SensApi.dll_IsNetworkAlive
cmp edi, esi
je 0x40bd52
cmp eax, esi
jne 0x40bd59
mov byte [ebx + 0x331], 0
pop edi
mov dword [ebx + 0x228], esi
mov dword [ebx + 0x338], esi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret