joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4414d2
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 0x44155e
push edi
push ebx
call fcn.004badc8
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 0x441552
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x50c8cc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x441552
cmp dword [ebp - 8], esi
je 0x441552
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 0x44155d
push edi
call fcn.004bbc06
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4423ae
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 0x4423e4
add dword [esi + 4], eax
jmp 0x4423f5
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x442406
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 4
call esi
push eax
push 0x511be4
lea ecx, [ebp - 0x30]
call fcn.0043e743
push 0x52929c
lea eax, [ebp - 0x30]
push eax
call fcn.004bce67
int3
Function at 0x44272f
Capabilities:
Get file attributes

Disassembly:
push 8
mov eax, 0x4f2752
call fcn.004bcefc
mov ebx, ecx
and dword [ebp - 4], 0
or edi, 0xffffffff
cmp dword [ebx + 0x20c], 0
je 0x4427ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
je 0x4427ef
test al, 0x10
jne 0x4427ef
call fcn.00420e9a
push eax
lea ecx, [ebp - 0x10]
call fcn.00423ea0
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp + 8]
call fcn.004c0735
pop ecx
pop ecx
test eax, eax
je 0x4427c1
sub eax, dword [ebp + 8]
sar eax, 1
cmp eax, edi
je 0x4427c1
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004312ab
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00425bd3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004209ab
jmp 0x4427cd
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00425bd3
mov esi, dword [ebp - 0x10]
mov edx, esi
push ecx
push ecx
push dword [ebp + 8]
mov ecx, dword [ebx + 0x20c]
call fcn.00447199
add esp, 0xc
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.004209ab
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004209ab
mov eax, edi
call fcn.004bceca
ret 4
Function at 0x442ed3
Capabilities:
Create thread
Get common file path

Disassembly:
push 0x230
mov eax, 0x4f28f4
call fcn.004bcf2f
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor ebx, ebx
mov word [esi + 8], 1
cmp ecx, eax
je 0x442eff
push 0xffffffffffffffff
push ebx
push eax
call fcn.00405560
xor eax, eax
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push ebx
push eax
call fcn.004bf1a0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x442f39
mov byte [esi + 9], 1
jmp 0x442f83
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004045b0
lea ecx, [esi + 0x48]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x442f64
push 0xffffffffffffffff
push ebx
push eax
call fcn.00405560
push ebx
push ebx
push esi
push 0x442f8e
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.004bcede
ret 4

Function at 0x44367d
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.004bf1a0
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x443734
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x44372d
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov ecx, dword [ebp - 0x228]
cmp ecx, ebx
je 0x443715
test ecx, ecx
je 0x443715
cmp ecx, 4
je 0x443715
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004bcb54
pop ecx
pop ecx
test eax, eax
je 0x443729
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4436ea
jmp 0x44372c
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x443951
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
mov eax, 0x4f2ab7
call fcn.004bcf2f
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], 0x511d44
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4439bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511d1c
lea ecx, [ebp - 0x38]
call fcn.0043e743
push 0x52929c
lea eax, [ebp - 0x38]
push eax
call fcn.004bce67
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 0x4439e6
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x511d2c
jmp 0x4439a5
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x443a16
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 0x511d0c
jmp 0x4439a5
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.004bcede
ret 4

Function at 0x444e25
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 0x444e41
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x444e65
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.004bf1a0
movzx eax, word [ebx*8 + 0x50d962]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x50d960]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x50d964]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x50d966]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x444ec8
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x444ed3
cmp ebx, 8
jl 0x444ed3
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 0x444f3a
cmp eax, 0xffffffff
je 0x444f3a
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x444f15
mov ecx, esi
call fcn.004450f5
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 0x444f1d
jmp 0x444f4a
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x445238
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 0x445436
cmp dword [esi + 0x6af90], 3
jb 0x4452b5
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 0x4452f2
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4452f2
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4452dc
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.00444f4f
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x4453c4
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.00444880
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x44538b
cmp dword [esi + 0x6af90], 3
jb 0x44538b
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 0x44532e
mov eax, dword [ebp - 8]
jmp 0x4453e1
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 0x4453e7
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00444880
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x445420
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4453ff
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x445401
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.00444688
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x445433
mov ecx, esi
call fcn.004450f5
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x44525a
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x445454
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.00444688
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446070
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x446154
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 + 0x50da90]
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 + 0x50da90]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x446321
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 0x446361
mov eax, 0x200
jmp 0x4464d9
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 0x446378
or esi, 2
test al, 4
je 0x44637f
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x446389
or esi, 0x10
test al, 0x20
je 0x446390
or esi, 0x20
test ecx, ecx
je 0x44639c
or esi, 0x40000000
jmp 0x4463a2
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x4463b2
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x446463
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 0x446460
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x446460
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 0x44645a
cmp eax, 0x454e
je 0x44645a
cmp eax, 0x454c
je 0x44645a
cmp eax, 0x4550
jne 0x446460
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x44646c
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x446475
mov dword [ecx], eax
test edi, edi
je 0x4464ae
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0044628c
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.0044628c
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.0044628c
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4464d7
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.004462b0
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.004bc11d
mov esp, ebp
pop ebp
ret
Function at 0x446511
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 0x446585
cmp dword [esi + 0x3c], 0
je 0x446543
cmp dword [esi + 0x40], edi
jae 0x44653d
push dword [esi + 0x3c]
call fcn.00481594
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x446553
lea eax, [edi + edi]
push eax
call fcn.0048156c
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.004beb50
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x446582
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.0044619e
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x446569
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4465b4
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4465a0
mov dword [esi + 0x14], 0x30000
jmp 0x4465d6
push edi
add ecx, edx
push ebx
push ecx
call fcn.004beb50
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x4465d8
mov eax, dword [esi + 4]
test eax, eax
je 0x4465cf
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 0x4465d8
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x446843
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 0x446899
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x4468d4
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.004beb50
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00446070
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x4468d6
cmp dword [edi + 0x7c], 0
je 0x4468cd
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 0x4468d4
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00446070
pop ecx
jmp 0x446892
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x447529
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 0x44765f
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 0x449e7e
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
Function at 0x44c840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0
mov dword [ebp - 0x208], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x55b51c]
mov esi, eax
test edx, edx
movzx ecx, di
push str.BINDATA
cmovne esi, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44c8f1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x44c8eb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x44c8eb
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
push 0x10
mov edi, eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x44c8db
lea ecx, [esi + 4]
mov dword [esi], 0x4f8a40
and dword [ecx], 0
push ecx
push edi
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x44c8dd
xor esi, esi
test edi, edi
je 0x44c8e7
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, esi
jmp 0x44c947
mov edi, dword [ebp - 0x208]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x44c945
xor eax, eax
push 0x1fc
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.004bf1a0
push esi
push edi
lea eax, [ebp - 0x204]
push str.Function:__s__image_id:_d__Last_error:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x204]
push 0
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc11d
mov esp, ebp
pop ebp
ret

Function at 0x44fd89
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x52de80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x55b9c0], 0
push esi
je 0x44fdad
xor eax, eax
jmp 0x44fe3a
mov al, byte [0x55b515]
xor esi, esi
movzx ecx, al
inc esi
test al, al
mov dword [0x554a44], 0x4bc250
lea eax, [ebp - 0x198]
mov dword [0x554a50], 0x4bbbce
push eax
cmove ecx, esi
mov dword [0x554a40], 0x4c03ef
push 0x101
mov dword [0x554a4c], 0x4c5408
mov dword [0x554a48], 0x4bc210
mov byte [0x55b515], cl
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44fe37
mov eax, dword [ebp - 0x198]
cmp al, 1
jne 0x44fe31
shr eax, 8
cmp al, 1
jne 0x44fe31
mov dword [0x55b9c0], esi
mov dword [0x55b9bc], 3
jmp 0x44fda6
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004bc11d
mov esp, ebp
pop ebp
ret