joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40176f
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov byte [ebp - 4], dl
mov dword [ebp - 8], ecx
cmp byte [0x4c38b9], dl
je 0x401853
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x418
push ecx
call esi
cmp byte [ebp - 4], bl
je 0x40181c
mov eax, dword [0x4c9224]
mov ecx, dword [eax + 0x1c]
cmp ecx, 0xffffffff
je 0x401850
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], 1
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
xor eax, eax
push 0x44
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x419
push dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0x13
mov byte [ebp - 0x18], 4
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call esi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push ebx
mov edi, 0x443
push edi
push dword [ebp - 8]
call esi
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
mov byte [0x4c38b9], 1
jmp 0x401850
push ebx
push 0x13
push 0x419
push dword [ebp - 8]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40184a
push ebx
push eax
mov edi, 0x416
push edi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
push ebx
dec eax
push eax
push edi
push dword [ebp - 8]
call esi
mov byte [0x4c38b9], bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.00401dea
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x401e8a
mov eax, 0x4945b8
push edi
push str.VirusGuard.exe
push eax
push 0x48ff58
call fcn.0043c748
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0x18
mov dword [ebp - 0x60], esi
pop edi
cmp dword [ebp - 0xc], ebx
jne 0x401ec9
mov eax, 0x4945b8
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push ebx
push 8
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x401eef
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x1c]
cmp byte [ebp - 8], bl
je 0x401eff
mov ecx, dword [ebp - 0xc]
call fcn.004444cc
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402433
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x40247b
push esi
push 0x7c
call fcn.00444d13
pop ecx
test eax, eax
je 0x402458
push dword [esp + 0xc]
mov ecx, eax
call fcn.00401f3f
mov esi, eax
jmp 0x40245a
xor esi, esi
mov eax, dword [esi + 0x24]
push dword [eax + 4]
mov ecx, esi
push 0x418
call fcn.0044f9fa
push 0
mov dword [edi + 0x14], esi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop edi
ret 4
Function at 0x4033ed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
jbe 0x4034a3
push ebx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [esi + 0x30]
push dword [ebp + 8]
shl edi, 2
mov ebx, dword [edi + eax]
lea ecx, [ebx + 8]
call fcn.00402d50
test al, al
jne 0x40345e
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x40342b
mov ebx, 0x4945b8
push 0x28
push dword [ebp + 8]
push ebx
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x403492
mov eax, dword [esi + 0x30]
mov eax, dword [edi + eax]
add eax, 8
mov eax, dword [eax]
test eax, eax
jne 0x403451
mov eax, 0x4945b8
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [esi + 0x30]
mov ebx, dword [edi + eax]
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
sub eax, dword [ebp - 4]
mov ecx, dword [esi + 0x30]
shl eax, 2
push eax
add ecx, edi
lea eax, [ecx + 4]
push eax
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
test ebx, ebx
je 0x40348f
mov ecx, ebx
call fcn.00410e5b
push ebx
call fcn.00444599
pop ecx
dec dword [ebp - 4]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x38]
jb 0x403404
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x410e8f
Capabilities:
Create directory

Disassembly:
push ebx
push esi
call fcn.00410ca2
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x410ea3
mov eax, 0x4945b8
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x410ebc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x410ebe
mov bl, 1
mov ecx, esi
call fcn.004444cc
pop esi
mov al, bl
pop ebx
ret

Function at 0x410f51
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ebx, 0x4945b8
test eax, eax
jne 0x410f6b
mov eax, ebx
mov ecx, dword [0x4c3a38]
push eax
call fcn.00402f35
mov dword [ebp - 4], eax
test eax, eax
jne 0x410fa0
mov ecx, dword [0x4c3a38]
call fcn.004198d7
mov eax, dword [esi]
test eax, eax
jne 0x410f91
mov eax, ebx
mov ecx, dword [0x4c3a38]
push eax
call fcn.00402f35
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
jne 0x410fa8
mov eax, ebx
push edi
mov ecx, eax
call fcn.0041395a
mov eax, dword [esi + 8]
mov edi, eax
test eax, eax
jne 0x410fbb
mov edi, ebx
mov ecx, dword [0x4c3a38]
push 2
lea eax, [ebp - 8]
push eax
call fcn.00419735
push eax
push edi
lea ecx, [ebp - 0xa8]
call fcn.00452f3a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x84]
test ecx, ecx
je 0x411011
push 0x43
call fcn.0043ad91
push eax
lea ecx, [ebp - 0x30]
call fcn.00452de6
lea ecx, [ebp - 0x30]
call fcn.00452b59
lea ecx, [ebp - 0x30]
test eax, eax
je 0x41100c
call fcn.00452afa
jmp 0x411063
call fcn.00452afa
lea ecx, [ebp - 0xa8]
call fcn.00453109
mov edi, eax
test edi, edi
je 0x411063
push 0x100
lea edx, [ebp - 0x2a8]
mov ecx, edi
call fcn.00468e66
mov eax, dword [esi]
test eax, eax
jne 0x41103c
mov eax, ebx
push 0
push 0
push edi
lea ecx, [ebp - 0x2a8]
push ecx
push eax
push str.The_install_of__s_failed._n__s__d_.
call fcn.0043c748
add esp, 0x10
push eax
push dword [0x4c90b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esi + 8]
pop edi
test eax, eax
jne 0x41106d
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, esi
call fcn.00410e3a
push esi
call fcn.00444599
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.00452d60
xor ecx, ecx
call fcn.004444cc
pop esi
pop ebx
leave
ret
Function at 0x412380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
lea eax, [ebp - 0x410]
push eax
mov esi, 0x104
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x618]
push eax
push 0
push 0x4916e4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x4123e0
call sub.MSVCRT.dll_rand
push eax
call sub.MSVCRT.dll_rand
push eax
push str.c:_u_u.tmp
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0043c67f
add esp, 0x14
test edi, edi
je 0x41244b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4123e9
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x208]
call fcn.00411c42
mov eax, edi
mov edx, edi
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x412414
sub eax, edx
lea edi, [ebp - 0x208]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x412428
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x208]
jmp 0x412451
lea ecx, [ebp - 0x618]
call fcn.00444cbc
pop edi
pop esi
leave
ret

Function at 0x41245a
Capabilities:
Create directory

Disassembly:
push esi
call fcn.00410ca2
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0x40
call fcn.00444d13
pop ecx
test eax, eax
je 0x412482
mov ecx, eax
call fcn.00411c9c
mov ecx, eax
jmp 0x412484
xor ecx, ecx
push esi
mov dword [0x4c3a38], ecx
call fcn.004197eb
mov ecx, 0x4c3a98
pop esi
jmp fcn.00411a2d

Function at 0x4148e3
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, ecx
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x414919
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x414919
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call edi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x416730
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x416738
xor al, al
jmp 0x416753
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov edx, eax
xor edx, 3
mov dl, byte [edx + ecx]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x14
jne 0x41673b
mov al, 1
pop esi
ret 4

Function at 0x416756
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov edx, dword [esp + 8]
mov ecx, eax
xor ecx, 3
mov cl, byte [ecx + edx]
mov edx, dword [esp + 4]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x14
jne 0x416758
ret 8
Function at 0x419c06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x419c50
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
test eax, eax
je 0x419c4c
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x184
call esi
push eax
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.004890f7
add esp, 0x20
call esi
jmp 0x419c80
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x419c7e
push eax
push dword [ebp + 0xc]
mov esi, 0x490
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x188
push esi
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.004890f7
add esp, 0x20
mov eax, esi
jmp 0x419c80
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x41c0e5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [edi + 0x10]
push ebx
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [eax], ebx
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
cmp dword [ecx + 8], ebx
je 0x41c1ef
mov dword [ebp - 8], ebx
mov esi, dword [ecx]
add esi, dword [ebp - 8]
test byte [esi + 0x21], 4
je 0x41c18b
cmp byte [esi + 0x20], bl
je 0x41c1c9
push dword [esi + 4]
mov ecx, dword [edi + 0x10]
push dword [esi]
add ecx, 0x2c
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call fcn.0041bf68
cmp eax, 0xffffffff
jne 0x41c17d
push ebx
push 1
push ebx
push dword [ebp - 0x10]
mov eax, esi
push dword [edi + 0x10]
push 1
call fcn.00419dbc
cmp eax, 0xffffffff
je 0x41c209
push dword [esi + 4]
mov eax, dword [0x4c594c]
push dword [esi]
mov dword [esi + 0x14], eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x30]
push dword [esi + 8]
mov ecx, dword [edi + 0x10]
add ecx, 0x2c
push eax
call fcn.0041bf68
cmp eax, ebx
jne 0x41c20d
and byte [esi + 0x21], 0xfb
jmp 0x41c1c9
cmp byte [esi + 0x20], bl
jne 0x41c1c9
cmp byte [0x4c3fd2], bl
je 0x41c1c9
push ebx
push 1
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x10]
mov eax, esi
push ebx
call fcn.00419dbc
cmp eax, 0xffffffff
jne 0x41c1d4
mov eax, dword [ebp - 0x14]
cmp eax, 0xdf
je 0x41c1c5
cmp eax, 2
je 0x41c1c5
cmp eax, 3
jne 0x41c20d
or byte [esi + 0x21], 4
mov al, byte [esi + 0x21]
shr al, 2
and al, 1
or byte [ebp - 1], al
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x34
cmp eax, dword [ecx + 8]
jne 0x41c10f
cmp byte [ebp - 1], bl
jne 0x41c209
mov ecx, dword [edi + 0x10]
add ecx, 0x2c
call fcn.00445522
mov ecx, dword [edi + 0x10]
call fcn.0041e98f
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x41c209
Function at 0x41c6b6
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, ecx
mov esi, str.kernel32
mov edx, str.TryEnterCriticalSection
mov ecx, esi
call fcn.00445bc7
push str.ntdll
mov dword [0x4c3f78], eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.NtSetInformationFile
push eax
mov dword [0x4c3f68], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, str.SetFileValidData
mov ecx, esi
mov dword [0x4c6f28], eax
call fcn.00445bc7
xor esi, esi
mov dword [0x4c3f74], eax
cmp eax, esi
je 0x41c720
push 2
pop edx
mov ecx, str.SeManageVolumePrivilege
call fcn.00445edc
mov byte [0x4c3f9c], al
push esi
push esi
push esi
push esi
mov dword [0x4c3fb8], esi
mov dword [0x4c3fbc], 0x4c3fb8
mov dword [0x4c3fc8], esi
mov dword [0x4c3fcc], 0x4c3fc8
mov dword [0x4c3fc0], esi
mov dword [0x4c3fc4], 0x4c3fc0
mov dword [0x4c3fb0], esi
mov dword [0x4c3fb4], 0x4c3fb0
mov dword [0x4c3f98], esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, 0x4929cc
mov ecx, 0x4c3f7c
mov dword [0x4c3f94], eax
call fcn.0041e49c
mov edx, 0x4929c8
mov ecx, 0x4c5dac
call fcn.0041e49c
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x8000000
jae 0x41c7ae
mov ecx, 0x800000
jmp 0x41c7bc
shr eax, 4
mov ecx, 0x2000000
cmp eax, ecx
jae 0x41c7bc
mov ecx, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x41c69d
push esi
push esi
push str.IOThread
mov dword [0x4c3fa0], ecx
mov byte [edi], 1
call fcn.0041e32e
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret

Function at 0x41c8c7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x41c940
cmp word [ebx + 8], 2
jne 0x41c91d
cmp word [ebx + 0xa], 4
jne 0x41c91d
mov esi, dword [ebx + 0xc]
jmp 0x41c917
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041c860
mov dword [edi], eax
test eax, eax
je 0x41c93b
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x41c8fb
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x41c966
push 8
pop eax
jmp 0x41c966
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x41c966
dec ecx
je 0x41c961
dec ecx
je 0x41c95a
dec ecx
jmp 0x41c966
mov eax, 0x2afb
jmp 0x41c966
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x41cf40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4c4118], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x41cafe
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x41cd88
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0041cac9
jne 0x41d09c
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x41d092
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41cf9c
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41cfb7
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
mov esi, str.ws2_32
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x41cffa
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41cff6
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x41d051
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x41cffc
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41d016
mov esi, str.wship6
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x41d08f
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x41d04d
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d08f
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x41d06e
inc edi
cmp edi, 3
jl 0x41d053
jmp 0x41d077
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x41d08f
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x4b6d5c], ecx
add eax, 8
cmp eax, 0x18
jl 0x41d07d
pop esi
pop ebx
pop edi
mov dword [0x4c4118], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4b6d5c]
leave
ret 4
Function at 0x41e32e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, dword [esi]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 8]
mov edi, 0x4c4380
mov ecx, edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call fcn.0041e1e0
push dword [0x4c53c0]
mov ecx, dword [0x4c53b8]
push 0
lea edx, [ebp - 8]
call fcn.00405408
mov esi, eax
mov eax, dword [0x4c53c0]
cmp eax, dword [0x4c53bc]
jb 0x41e398
mov ecx, 0x4c53b8
call fcn.0041e170
mov eax, dword [0x4c53c0]
mov ecx, dword [0x4c53b8]
sub eax, esi
inc dword [0x4c53c0]
shl eax, 3
shl esi, 3
add ecx, esi
push eax
push ecx
add ecx, 8
push ecx
call sub.MSVCRT.dll_memmove
mov eax, dword [0x4c53b8]
mov ecx, dword [ebp - 4]
mov dword [esi + eax], ebx
mov eax, dword [0x4c53b8]
mov dword [esi + eax + 4], ecx
add esp, 0xc
mov ecx, edi
call fcn.0041e25e
mov eax, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x41e98f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x18]
push dword [esi + 0x14]
push str.uTorrentPartFile__LX.dat
call fcn.0043c748
mov ecx, dword [esi + 0x1c]
add esp, 0xc
mov edx, eax
call fcn.00444ef3
mov ecx, eax
pop esi
jmp fcn.0043b350

Function at 0x41efe0
Capabilities:
Delete directory
Delete file

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 8], ebp
cmp dword [ebx + 8], ebp
je 0x41f0b8
push esi
push edi
mov esi, dword [ebx]
mov ecx, dword [ebx + 0x1c]
add esi, ebp
mov edx, dword [esi + 0x18]
push 0
call fcn.00444fb6
mov edi, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41f00c
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [esi + 0x18]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x41f022
sub eax, edx
sar eax, 1
sub ecx, eax
lea esi, [edi + ecx*2 - 2]
jmp 0x41f08d
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f08d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x41f08d
push 0
mov edx, str.thumbs.db
mov ecx, edi
call fcn.00444fb6
mov ecx, eax
call fcn.0043b350
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41f09b
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x41f08d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x41f09b
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, esi
jae 0x41f038
mov ecx, edi
call fcn.004444cc
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ebp, 0x34
cmp eax, dword [ebx + 8]
jne 0x41eff6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41fba3
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0
mov edi, ecx
call fcn.0041ee53
mov esi, dword [ebp + 8]
mov eax, dword [edi]
imul esi, esi, 0x34
add eax, esi
push eax
mov ecx, edi
call fcn.0041e970
mov dword [ebp - 0xc], eax
mov ebx, 0x4945b8
test eax, eax
jne 0x41fbd9
mov eax, ebx
mov ecx, eax
call fcn.004458a5
test al, al
je 0x41fc06
cmp dword [ebp - 0xc], 0
je 0x41fbed
mov ebx, dword [ebp - 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x41fc06
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41fc1b
mov ebx, dword [edi]
mov ecx, dword [ebp + 0xc]
add ebx, esi
call fcn.00444cbc
push eax
push ebx
mov ecx, edi
call fcn.0041fb15
mov ecx, dword [ebp - 0xc]
call fcn.004444cc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x41fe24
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, dword [esi + 0x1c]
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.004439a6
test al, al
je 0x41fe4e
mov eax, dword [esi + 0x1c]
jmp 0x41fe56
mov ecx, dword [esi + 0x1c]
call fcn.0044409a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00443e43
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.00443fea
push eax
mov ecx, esi
call fcn.0041fd8a
mov edi, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 8], ebx
jbe 0x41feea
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41feae
test al, 0x10
jne 0x41feb6
mov ecx, dword [ebp - 8]
dec ecx
cmp esi, ecx
je 0x41febc
test eax, 0x1000
jne 0x41fed4
test eax, 0x400
jne 0x41fed4
inc esi
cmp esi, dword [ebp - 8]
jb 0x41fe86
jmp 0x41fed7
mov byte [ebp - 1], 1
jmp 0x41fed7
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
setne byte [ebp - 1]
jmp 0x41fed7
mov byte [ebp - 1], bl
cmp dword [ebp - 8], ebx
jbe 0x41feea
mov ecx, dword [edi + ebx*4]
call fcn.004444cc
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41fedc
mov ecx, edi
call fcn.004444cc
mov ecx, dword [ebp - 0x1c]
call fcn.004444cc
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret