joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f9f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a45f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
push ebx
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x10]
push ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x24], ebx
mov byte [esi + 0x20], al
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x30]
push ebx
mov byte [esp + 0x1c], 2
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov dword [esi + 0x44], ebx
mov byte [esi + 0x40], al
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0xb]
lea ecx, [esi + 0x50]
push ebx
mov byte [esp + 0x1c], 4
mov byte [ecx], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0xb]
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esi + 0x60], al
mov al, byte [esp + 0xb]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], 1
push ebx
mov byte [esi + 0x74], cl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
push ebx
mov byte [esi + 0x84], dl
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
push ebx
mov byte [esi + 0x94], al
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
push ebx
mov dword [esi + 0xa8], ebx
mov word [esi + 0xa4], bx
mov byte [esi + 0xa6], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x475150
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x475168
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00475470
test eax, eax
jne 0x475185
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00475470
cmp eax, 1
je 0x4751ea
mov ecx, esi
call fcn.00475470
cmp eax, 2
je 0x4751ea
mov ecx, esi
call fcn.00475470
cmp eax, 3
je 0x4751ea
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4751d2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00435d70
push eax
call dword [sym.imp.WS2_32.dll_send]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x38]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc

Function at 0x475200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x475218
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00475470
test eax, eax
jne 0x475235
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.00475470
cmp eax, 1
je 0x47529a
mov ecx, esi
call fcn.00475470
cmp eax, 2
je 0x47529a
mov ecx, esi
call fcn.00475470
cmp eax, 3
je 0x47529a
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x475282
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00435d70
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x34]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x4752b0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4752d4
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x24]
mov esi, eax
jmp 0x475354
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x475324
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x475319
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0xc], eax
jmp 0x475324
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 4]
lea edx, [esp + 8]
push 0x10
push edx
mov word [esp + 0x12], ax
call fcn.00435d70
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
test esi, esi
jne 0x475365
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47536e
push 2
mov ecx, edi
call fcn.004756d0
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x475380
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x47539e
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x20]
mov esi, eax
jmp 0x4753c1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [edi + 4]
call fcn.00435d70
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4753d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4753db
push 2
mov ecx, edi
call fcn.004756d0
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x4755f0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x47562a
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x475623
push 1
mov ecx, esi
call fcn.004756d0
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 4]
push eax
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
call fcn.0045c440
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.0045d1b0
test eax, eax
jne 0x475661
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x475696
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x402
push edx
call fcn.0045d2c0
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x475696
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push 0x10
push eax
call fcn.0045c3e0
test eax, eax
jne 0x4756b1
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov edi, 1
mov ecx, esi
push edi
call fcn.004756d0
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x47ad90
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
xor eax, eax
mov esi, dword [ecx + 0x4a7910]
xor edx, edx
mov dx, word [eax + 0x4a790e]
sub eax, 2
shr esi, 8
add edx, esi
mov dword [ecx + 0x50aa44], edx
add ecx, 4
cmp eax, 0xfffffe00
jg 0x47ad95
pop esi
ret

Function at 0x47adc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov al, byte [0x50ae45]
test al, al
jne 0x47add5
mov byte [0x50ae45], 1
call fcn.0047ad90
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, 0xfffffffe
test esi, esi
jbe 0x47ae07
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4a7910]
xor eax, edx
inc ecx
dec esi
jne 0x47ade8
pop ebx
pop esi
ret

Function at 0x47ae10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a505e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0045c140
xor edi, edi
mov dword [esi + 0x2c], 0x4a76a8
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x1c]
mov dword [esi + 0x30], 0x4a751c
mov dword [esi + 0x34], edi
mov byte [esi + 0x68], al
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov cl, byte [esp + 0x1c]
push 0x1c
mov byte [esp + 0x18], 2
mov byte [esi + 0xac], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x20]
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0xb0], eax
lea ecx, [esi + 0x44]
mov dword [esi + 0xb4], edi
xor eax, eax
mov dword [esi], 0x4a7d5c
mov dword [esi + 0x2c], 0x4a7d28
mov dword [esi + 0x30], 0x4a7d18
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edi
mov word [esi + 0x40], di
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x58], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x47ceb0
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
sub esp, 0x81c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0x58]
test eax, eax
jne 0x47cecc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x47cedc
push ebx
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, ebx
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x47cefe
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
je 0x47cf14
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x47cf2a
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 1
jne 0x47cf42
mov eax, ecx
lea edi, [esi + 0x60]
lea ecx, [esp + 0xc]
push edi
push ebx
push 0
push 0
push ecx
push 0
push 2
push eax
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x47cf6c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x81c
ret
lea ecx, [esi + 0x70]
lea eax, [esi + 0x7c]
lea edx, [esp + 0x28]
mov dword [esi + 0x74], 1
mov dword [ecx], 0
mov dword [esi + 0x78], eax
mov dword [eax], 0x800
mov dword [esi + 0x80], 2
mov dword [esi + 0x84], edx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x47cfa8
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esi + 0x88]
push edi
push edx
add esi, 0x68
push ecx
push esi
push 0
push 0
push 0
push 0
push 0x10
push eax
push 0
push ebx
call sub.Secur32.dll_InitializeSecurityContextA
xor ecx, ecx
pop edi
test eax, eax
setge cl
pop esi
mov eax, ecx
pop ebx
add esp, 0x81c
ret
Function at 0x47dad0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
cmp esi, 0x40
jle 0x47db27
lea eax, [esp + 0xfc]
push eax
call fcn.0049e4b0
mov ecx, dword [esp + 0x168]
push esi
lea edx, [esp + 0x104]
push ecx
push edx
call fcn.0049e0a0
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0049e370
add esp, 0x18
lea ebx, [esp + 8]
mov esi, 0x10
jmp 0x47db2e
mov ebx, dword [esp + 0x164]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x78]
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea edx, [esp + 0xc0]
push ebx
push edx
call edi
push esi
lea eax, [esp + 0x88]
push ebx
push eax
call edi
add esp, 0x18
xor eax, eax
pop edi
mov cl, byte [esp + eax + 0xb8]
mov bl, byte [esp + eax + 0x74]
xor cl, 0x36
xor bl, 0x5c
mov byte [esp + eax + 0xb8], cl
mov byte [esp + eax + 0x74], bl
inc eax
cmp eax, 0x40
jl 0x47db72
lea ecx, [esp + 0x18]
push ecx
call fcn.0049e4b0
lea edx, [esp + 0xbc]
push 0x40
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0049e0a0
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x16c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0049e0a0
mov esi, dword [esp + 0x188]
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.0049e370
lea edx, [esp + 0x3c]
push edx
call fcn.0049e4b0
lea eax, [esp + 0x9c]
push 0x40
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0049e0a0
push 0x10
lea edx, [esp + 0x50]
push esi
push edx
call fcn.0049e0a0
add esp, 0x40
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0049e370
add esp, 8
pop esi
pop ebx
add esp, 0x150
ret

Function at 0x47e8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a52c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [str.HTTP_]
mov dl, byte [esp + 0x30]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov cx, word [0x4c3658]
xor eax, eax
push edi
mov word [esp + 0x14], cx
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
cmp edi, 9
jae 0x47e95d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push 5
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x47e98c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
lea ecx, [esi + 0x10]
lea edx, [esi + 0xc]
push ecx
add esi, 8
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 1
push edi
push ebx
call fcn.0047e9c0
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8
Function at 0x483160
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x483172
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call fcn.004837b0
add esp, 4
test eax, eax
je 0x48327c
cmp dword [esi + 0x58], 0xffffffff
jne 0x4831ea
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x483195
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 4
push 0
push 5
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x58], eax
jne 0x4831ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetMemSize__open_file_fail__error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
mov dword [esi + 0x50], 0x7e2f
mov dword [esi + 0x54], 0x1b4
xor eax, eax
pop edi
pop esi
xor edx, edx
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x58]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48323a
call ebx
test eax, eax
je 0x48323a
call ebx
push eax
mov eax, dword [esi + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetSize__get_file_size_fail_call_GetFileSize___error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
call ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x1bd
pop edi
xor eax, eax
pop esi
xor edx, edx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0
push ecx
call fcn.00499c50
xor ecx, ecx
add eax, edi
adc edx, ecx
test edx, edx
jg 0x483280
jl 0x48325a
test eax, eax
jae 0x483280
mov edx, dword [esi + 0x60]
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetSize__file_size_is_too_huge
push 0x4c89f8
call fcn.00453c20
add esp, 0xc
call ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x1c5
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x483290
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
cmp eax, 0xffffffff
je 0x4832a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x58], 0xffffffff
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4832b6
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x483500
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
jne 0x483538
mov eax, dword [esi + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_pBuffer_can_not_be_NULL
push 0x4c89f8
call fcn.00453c20
add esp, 0xc
mov eax, 0x7e2d
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x21b
pop edi
pop esi
pop ebx
ret 8
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x48356b
mov ecx, dword [esi + 0x60]
push ecx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__parameter_nNumber_must_greater_than_zero
push 0x4c89f8
call fcn.00453c20
add esp, 0xc
mov eax, 0x7e2e
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x221
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0x5c], 0xffffffff
jne 0x4835cf
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x48357d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 2
push 0
push 5
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x5c], eax
jne 0x4835cf
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov edx, dword [esi + 0x60]
push eax
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__open_file_fail__error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
call edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x22c
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0x10]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x5c]
lea edx, [esp + 0x14]
push 0
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x483611
mov eax, dword [esp + 0x14]
test eax, eax
je 0x483611
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ecx, dword [esi + 0x60]
push eax
push ecx
push str.TaskID___u_exception_raised_in_method_CFileMgr::SetMemFile__read_from_file_fail_call_WriteFile___error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
call edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x237
pop edi
pop esi
pop ebx
ret 8
Function at 0x483650
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x483662
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call fcn.004837b0
add esp, 4
test eax, eax
je 0x483771
cmp dword [esi + 0x5c], 0xffffffff
jne 0x4836da
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x483685
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 4
push 0
push 5
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x5c], eax
jne 0x4836da
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
mov eax, dword [esi + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetTorrentSize__open_file_fail__error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
call edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x247
pop edi
xor eax, eax
pop esi
xor edx, edx
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48372a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x48372a
call ebx
push eax
mov eax, dword [esi + 0x60]
push eax
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetTorrentSize__get_file_size_fail_call_GetFileSize___error_code_is__d
push 0x4c89f8
call fcn.00453c20
add esp, 0x10
call ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x250
pop edi
xor eax, eax
pop esi
xor edx, edx
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0xc]
push 1
push 0
push 0
push ecx
call fcn.00499c50
xor ecx, ecx
add eax, edi
adc edx, ecx
test edx, edx
jg 0x483775
jl 0x48374a
test eax, eax
jae 0x483775
mov edx, dword [esi + 0x60]
push edx
push str.TaskID___u_exception_raised_in_method_CFileMgr::GetTorrentSize__file_size_is_too_huge
push 0x4c89f8
call fcn.00453c20
add esp, 0xc
mov ecx, esi
call fcn.00483650
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0x258
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
pop ecx
ret