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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x440d3b
xor al, al
jmp 0x440d6d
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.PagingFiles
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x440e9c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x24c]
push ebx
push eax
mov edi, ecx
call fcn.004bf4f0
add esp, 0xc
mov dword [ebp - 0x250], 0x40
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x440f88
cmp dword [ebp - 0x244], ebx
ja 0x440f88
jb 0x440f05
cmp dword [ebp - 0x248], 0x40000000
ja 0x440f88
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004bf4f0
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.00440d04
test al, al
je 0x440f88
lea esi, [ebp - 0x210]
cmp word [ebp - 0x210], bx
je 0x440f54
mov ecx, esi
call fcn.00440ceb
test al, al
je 0x440f5e
add esi, 2
cmp word [esi], bx
jne 0x440f41
mov dword [edi], 1
mov al, 1
jmp 0x440f8a
call fcn.00401f10
cmp eax, 3
jl 0x440f6e
cmp word [esi], 0x3f
je 0x440f88
mov edx, dword [ebp - 0x248]
mov ecx, esi
call fcn.00440d72
xor ecx, ecx
mov dword [edi], eax
test eax, eax
setne cl
mov al, cl
jmp 0x440f8a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x441402
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ecx], esi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [edx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x44148e
push edi
push ebx
call fcn.004bb10a
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x441482
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x50c8fc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x441482
cmp dword [ebp - 8], esi
je 0x441482
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test edi, edi
je 0x44148d
push edi
call fcn.004bbf48
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4422de
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push eax
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x442314
add dword [esi + 4], eax
jmp 0x442325
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x442336
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret 4
call esi
push eax
push 0x511c1c
lea ecx, [ebp - 0x30]
call fcn.0043e673
push 0x5292dc
lea eax, [ebp - 0x30]
push eax
call fcn.004bd1b7
int3
Function at 0x44265f
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4f2a8f
call fcn.004bd24c
mov ebx, ecx
and dword [ebp - 4], 0
or edi, 0xffffffff
cmp dword [ebx + 0x20c], 0
je 0x44271f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x44271f
test al, 0x10
jne 0x44271f
call fcn.00420e4a
push eax
lea ecx, [ebp - 0x10]
call fcn.00423e50
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp + 8]
call fcn.004c0a85
pop ecx
pop ecx
test eax, eax
je 0x4426f1
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, edi
je 0x4426f1
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004311d8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00425b83
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042095b
jmp 0x4426fd
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00425b83
mov esi, dword [ebp - 0x10]
mov edx, esi
push ecx
push ecx
push dword [ebp + 8]
mov ecx, dword [ebx + 0x20c]
call fcn.004470c6
add esp, 0xc
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.0042095b
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0042095b
mov eax, edi
call fcn.004bd21a
ret 4
Function at 0x442e03
Capabilities:
Create thread
Get common file path

Disassembly:
push 0x230
mov eax, 0x4f2c31
call fcn.004bd27f
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor ebx, ebx
mov word [esi + 8], 1
cmp ecx, eax
je 0x442e2f
push 0xffffffffffffffff
push ebx
push eax
call fcn.004055a0
xor eax, eax
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push ebx
push eax
call fcn.004bf4f0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x442e69
mov byte [esi + 9], 1
jmp 0x442eb3
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004045f0
lea ecx, [esi + 0x48]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x442e94
push 0xffffffffffffffff
push ebx
push eax
call fcn.004055a0
push ebx
push ebx
push esi
push 0x442ebb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00402120
call fcn.004bd22e
ret 4

Function at 0x4435aa
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x234], ecx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], esi
push esi
push eax
call fcn.004bf4f0
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x443661
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x44365a
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x443642
test ecx, ecx
je 0x443642
cmp ecx, 4
je 0x443642
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004bcea4
pop ecx
pop ecx
test eax, eax
je 0x443656
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x443617
jmp 0x443659
xor esi, esi
inc esi
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x44387e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
mov eax, 0x4f2df4
call fcn.004bd27f
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
or dword [edi + 0xc], 0xffffffff
mov dword [ebp - 0x3c], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push eax
mov dword [edi], vtable.KBufFileSendData.0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4438e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511d64
lea ecx, [ebp - 0x38]
call fcn.0043e673
push 0x5292dc
lea eax, [ebp - 0x38]
push eax
call fcn.004bd1b7
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x443913
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511d40
jmp 0x4438d2
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x443943
push dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x10]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511d54
jmp 0x4438d2
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xc], eax
mov eax, edi
mov dword [edi + 8], esi
call fcn.004bd22e
ret 4

Function at 0x444d52
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
push esi
push edi
mov esi, ecx
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x444d6e
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x444d92
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.004bf4f0
movzx eax, word [ebx*8 + 0x50d9a2]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x50d9a0]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x50d9a4]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x50d9a6]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x444df5
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x444e00
cmp ebx, 8
jl 0x444e00
mov eax, dword [ebp + 8]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x444e67
cmp eax, 0xffffffff
je 0x444e67
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x444e42
mov ecx, esi
call fcn.00445022
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x444e4a
jmp 0x444e77
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x445165
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x445363
cmp dword [esi + 0x6af90], 3
jb 0x4451e2
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x44521f
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x44521f
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x445209
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.00444e7c
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x4452f1
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.004447ad
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x4452b8
cmp dword [esi + 0x6af90], 3
jb 0x4452b8
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x44525b
mov eax, dword [ebp - 8]
jmp 0x44530e
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 8]
jmp 0x445314
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.004447ad
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x44534d
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x44532c
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x44532e
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004445b5
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x445360
mov ecx, esi
call fcn.00445022
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x445187
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x445381
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
mov edx, edi
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.004445b5
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445f9d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x445fa8
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x446060
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
dec edi
jne 0x445fc3
pop edi
test esi, esi
je 0x446079
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50dad0]
inc edx
dec esi
jne 0x446064
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x446081
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x50dad0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x50dad0]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x44624e
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push ebx
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x44628e
mov eax, 0x200
jmp 0x446406
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov edx, eax
and edx, ecx
push 0
pop esi
cmovne esi, ecx
test al, 2
je 0x4462a5
or esi, 2
test al, 4
je 0x4462ac
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x4462b6
or esi, 0x10
test al, 0x20
je 0x4462bd
or esi, 0x20
test ecx, ecx
je 0x4462c9
or esi, 0x40000000
jmp 0x4462cf
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x4462df
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x446390
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x44638d
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x44638d
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x446387
cmp eax, 0x454e
je 0x446387
cmp eax, 0x454c
je 0x446387
cmp eax, 0x4550
jne 0x44638d
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x446399
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4463a2
mov dword [ecx], eax
test edi, edi
je 0x4463db
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004461b9
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.004461b9
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.004461b9
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x446404
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.004461dd
movzx eax, word [ebp - 0x3c]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x40]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc45f
mov esp, ebp
pop ebp
ret
Function at 0x44643e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x4464b2
cmp dword [esi + 0x3c], 0
je 0x446470
cmp dword [esi + 0x40], edi
jae 0x44646a
push dword [esi + 0x3c]
call fcn.004814b9
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x446480
lea eax, [edi + edi]
push eax
call fcn.00481491
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004beea0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4464af
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.004460cb
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x446496
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4464e1
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4464cd
mov dword [esi + 0x14], 0x30000
jmp 0x446503
push edi
add ecx, edx
push ebx
push ecx
call fcn.004beea0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x446505
mov eax, dword [esi + 4]
test eax, eax
je 0x4464fc
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x446505
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x446770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4467c6
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x446801
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.004beea0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00445f9d
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x446803
cmp dword [edi + 0x7c], 0
je 0x4467fa
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446801
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00445f9d
pop ecx
jmp 0x4467bf
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x447456
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
mov edi, ecx
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov byte [edi + 0x5c], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x44758c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XL_Init
push eax
call esi
push str.XL_UnInit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.XL_CreateTask
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.XL_DeleteTask
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.XL_StartTask
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.XL_StopTask
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.XL_QueryTaskInfoEx
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.XL_DelTempFile
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.XL_SetSpeedLimit
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.XL_SetUploadSpeedLimit
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.XL_SetProxy
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.XL_SetUserAgent
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.XL_ParseThunderPrivateUrl
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push str.XL_Determine3GNetType
push dword [edi]
mov dword [edi + 0x34], eax
call esi
push str.XL_GetFileSizeWithUrl
push dword [edi]
mov dword [edi + 0x38], eax
call esi
push str.XL_SetFileIdAndSize
push dword [edi]
mov dword [edi + 0x3c], eax
call esi
push str.XL_SetAdditionInfo
push dword [edi]
mov dword [edi + 0x40], eax
call esi
push str.XL_CreateTaskByURL
push dword [edi]
mov dword [edi + 0x44], eax
call esi
push str.XL_CreateTaskByThunder
push dword [edi]
mov dword [edi + 0x48], eax
call esi
push str.XL_CreateBTTaskByThunder
push dword [edi]
mov dword [edi + 0x4c], eax
call esi
push str.XL_AddServerResourceEx
push dword [edi]
mov dword [edi + 0x50], eax
call esi
push str.XL_SetThreadNum
push dword [edi]
mov dword [edi + 0x54], eax
call esi
mov dword [edi + 0x58], eax
mov byte [edi + 0x5c], 1
pop esi
mov eax, edi
pop edi
pop ebp
ret 4