joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44176d
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 0x4417a4
xor al, al
jmp 0x4417d6
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 0x441905
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x52fe80]
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.004bf240
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 0x4419f1
cmp dword [ebp - 0x244], ebx
ja 0x4419f1
jb 0x44196e
cmp dword [ebp - 0x248], 0x40000000
ja 0x4419f1
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.004bf240
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.0044176d
test al, al
je 0x4419f1
lea esi, [ebp - 0x210]
cmp word [ebp - 0x210], bx
je 0x4419bd
mov ecx, esi
call fcn.00441754
test al, al
je 0x4419c7
add esi, 2
cmp word [esi], bx
jne 0x4419aa
mov dword [edi], 1
mov al, 1
jmp 0x4419f3
call fcn.004024f0
cmp eax, 3
jl 0x4419d7
cmp word [esi], 0x3f
je 0x4419f1
mov edx, dword [ebp - 0x248]
mov ecx, esi
call fcn.004417db
xor ecx, ecx
mov dword [edi], eax
test eax, eax
setne cl
mov al, cl
jmp 0x4419f3
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x441e6b
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 0x441ef7
push edi
push ebx
call fcn.004bae68
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 0x441eeb
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x50f8e4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x441eeb
cmp dword [ebp - 8], esi
je 0x441eeb
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 0x441ef6
push edi
call fcn.004bbca6
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44269a
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
mov eax, 0x4f302a
call fcn.004bcfcf
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 SysReAllocStringLen
mov dword [ebp - 4], ebx
push eax
mov dword [edi], 0x513c88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x442704
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x513c50
lea ecx, [ebp - 0x38]
call fcn.0042ad56
push 0x52b58c
lea eax, [ebp - 0x38]
push eax
call fcn.004bcf07
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 0x44272f
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x513c60
jmp 0x4426ee
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x44275f
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 0x513c74
jmp 0x4426ee
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.004bcf7e
ret 4
Function at 0x442af6
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4f30ad
call fcn.004bcf9c
mov ebx, ecx
and dword [ebp - 4], 0
or edi, 0xffffffff
cmp dword [ebx + 0x20c], 0
je 0x442bb6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x442bb6
test al, 0x10
jne 0x442bb6
call fcn.00420bd2
push eax
lea ecx, [ebp - 0x10]
call fcn.00423e41
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp + 8]
call fcn.004c07d5
pop ecx
pop ecx
test eax, eax
je 0x442b88
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, edi
je 0x442b88
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043195b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00425c4a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004206ab
jmp 0x442b94
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00425c4a
mov esi, dword [ebp - 0x10]
mov edx, esi
push ecx
push ecx
push dword [ebp + 8]
mov ecx, dword [ebx + 0x20c]
call fcn.0044740b
add esp, 0xc
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.004206ab
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004206ab
mov eax, edi
call fcn.004bcf6a
ret 4
Function at 0x44329a
Capabilities:
Create thread
Get common file path

Disassembly:
push 0x230
mov eax, 0x4f324f
call fcn.004bcfcf
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor ebx, ebx
mov word [esi + 8], 1
cmp ecx, eax
je 0x4432c6
push 0xffffffffffffffff
push ebx
push eax
call fcn.004072a0
xor eax, eax
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push ebx
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x443300
mov byte [esi + 9], 1
jmp 0x44334a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00406c40
lea ecx, [esi + 0x48]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x44332b
push 0xffffffffffffffff
push ebx
push eax
call fcn.004072a0
push ebx
push ebx
push esi
push 0x443352
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00402a40
call fcn.004bcf7e
ret 4

Function at 0x443a41
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x52fe80]
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.004bf240
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x443af8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x443af1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x443ad9
test ecx, ecx
je 0x443ad9
cmp ecx, 4
je 0x443ad9
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004bcbf4
pop ecx
pop ecx
test eax, eax
je 0x443aed
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x443aae
jmp 0x443af0
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.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x445097
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 0x4450b3
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4450d7
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.004bf240
movzx eax, word [ebx*8 + 0x50ef22]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x50ef20]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x50ef24]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x50ef26]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x44513a
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x445145
cmp ebx, 8
jl 0x445145
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 0x4451ac
cmp eax, 0xffffffff
je 0x4451ac
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x445187
mov ecx, esi
call fcn.00445367
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 0x44518f
jmp 0x4451bc
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4454aa
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 0x4456a8
cmp dword [esi + 0x6af90], 3
jb 0x445527
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 0x445564
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x445564
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x44554e
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.004451c1
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x445636
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.00444af2
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x4455fd
cmp dword [esi + 0x6af90], 3
jb 0x4455fd
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 0x4455a0
mov eax, dword [ebp - 8]
jmp 0x445653
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 0x445659
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00444af2
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x445692
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x445671
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x445673
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.004448fa
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4456a5
mov ecx, esi
call fcn.00445367
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x4454cc
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4456c6
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.004448fa
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4462e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4462ed
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4463a5
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 + 0x50f010]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
dec edi
jne 0x446308
pop edi
test esi, esi
je 0x4463be
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x50f010]
inc edx
dec esi
jne 0x4463a9
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4463c6
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 + 0x50f010]
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 + 0x50f010]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x446593
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x52fe80]
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 0x4465d3
mov eax, 0x200
jmp 0x44674b
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 0x4465ea
or esi, 2
test al, 4
je 0x4465f1
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x4465fb
or esi, 0x10
test al, 0x20
je 0x446602
or esi, 0x20
test ecx, ecx
je 0x44660e
or esi, 0x40000000
jmp 0x446614
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x446624
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x4466d5
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 0x4466d2
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x4466d2
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 0x4466cc
cmp eax, 0x454e
je 0x4466cc
cmp eax, 0x454c
je 0x4466cc
cmp eax, 0x4550
jne 0x4466d2
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4466de
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x4466e7
mov dword [ecx], eax
test edi, edi
je 0x446720
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004464fe
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.004464fe
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.004464fe
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x446749
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.00446522
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.004bc1bd
mov esp, ebp
pop ebp
ret
Function at 0x446783
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 0x4467f7
cmp dword [esi + 0x3c], 0
je 0x4467b5
cmp dword [esi + 0x40], edi
jae 0x4467af
push dword [esi + 0x3c]
call fcn.0048185e
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x4467c5
lea eax, [edi + edi]
push eax
call fcn.00481836
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004bebf0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4467f4
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.00446410
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x4467db
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x446826
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x446812
mov dword [esi + 0x14], 0x30000
jmp 0x446848
push edi
add ecx, edx
push ebx
push ecx
call fcn.004bebf0
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x44684a
mov eax, dword [esi + 4]
test eax, eax
je 0x446841
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 0x44684a
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x446ab5
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 0x446b0b
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x446b46
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.004bebf0
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.004462e2
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x446b48
cmp dword [edi + 0x7c], 0
je 0x446b3f
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 0x446b46
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.004462e2
pop ecx
jmp 0x446b04
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44779b
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 0x4478d1
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

Function at 0x44a0f0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 0
push 0
push 0x402
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret