joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ec10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8e88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ecx + 0x6c]
mov dword [ecx + 0xc8], eax
lea eax, [ecx + 0x9c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00480980
push 0x682744
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00480930
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x47ec85
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
cmp eax, 1
sete bl
cmp ecx, 8
jb 0x47ecb2
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408200
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret
Function at 0x47ecd0
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x830], edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x818], 0xf
movsd qword [ebp - 0x838], xmm0
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x82c], 0
lea edx, [ebp - 0x82c]
mov dword [ebp - 4], 0
call fcn.0047eb40
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x83c], eax
call fcn.004a19d0
cmp dword [ebp - 0x818], 0x10
lea ecx, [ebp - 0x82c]
mov esi, eax
cmovae ecx, dword [ebp - 0x82c]
push ecx
push 0x2712
push esi
mov dword [ebp - 0x840], esi
call fcn.004a1a30
push 1
push 0x2c
push esi
call fcn.004a1a30
push 0x643e64
push 0x2734
push esi
call fcn.004a1a30
push 1
push 0x34
push esi
call fcn.004a1a30
push 1
push 0x2a
push esi
call fcn.004a1a30
push 0x14
push 0x44
push esi
call fcn.004a1a30
add esp, 0x48
mov ecx, edi
push 5
push 0
push str.https
call fcn.004805d0
test eax, eax
jne 0x47ede3
push eax
push 0x40
push esi
call fcn.004a1a30
push 0
push 0x51
push esi
call fcn.004a1a30
add esp, 0x18
push 0x1e
push 0xd
push esi
call fcn.004a1a30
push 0x1e
push 0x4e
push esi
call fcn.004a1a30
push 0x1e
push 0x5c
push esi
call fcn.004a1a30
push esi
call fcn.004a1a10
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x47ee3b
lea eax, [ebp - 0x838]
push eax
push 0x30000f
push esi
call fcn.004a19b0
push ebx
push 0x200002
push esi
call fcn.004a19b0
movsd xmm1, qword [ebp - 0x838]
add esp, 0x18
jmp 0x47ee46
xorps xmm1, xmm1
movsd qword [ebp - 0x838], xmm1
cmp dword [ebp - 0x830], 0
je 0x47eef3
movsd xmm0, qword [0x644f58]
comisd xmm0, xmm1
jbe 0x47eef3
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.005a4c30
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x47ee83
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x83c]
push eax
push 0
push ebx
push str.xd_getUrlFileSize_error:_d_http:_d_tic:_d_url:_s
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.00408890
add esp, 0x1c
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp word [ebp - 0x814], 0
jne 0x47eec8
xor ecx, ecx
jmp 0x47eee0
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47eed1
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x814]
push eax
call fcn.00406d90
push esi
call fcn.004a1990
add esp, 4
movsd xmm0, qword [ebp - 0x838]
mov eax, dword [ebp - 0x818]
movsd qword [ebp - 0x844], xmm0
cmp eax, 0x10
jb 0x47ef32
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.00407520
movsd xmm0, qword [ebp - 0x844]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret
Function at 0x47ef70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8f00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x9c]
push eax
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.00480980
push 0x68275c
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00480930
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47efe0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
push 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47f03e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0047ec10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
mov dword [esi + 0xd0], eax
setne bl
cmp ecx, 8
jb 0x47f08a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00408200
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret

Function at 0x47f0b0
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
push dword [edi + 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push edi
push 0x47f130
push 0
push 0
mov dword [edi + 0xd8], eax
call fcn.005b4d12
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
ret
Function at 0x47f170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8f38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6679c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
call fcn.0047f250
xor esi, esi
cmp dword [edi + 0xb4], esi
jbe 0x47f1ec
xor ebx, ebx
nop dword [eax]
mov eax, dword [edi + 0xc4]
push 0
push 0
add eax, ebx
push eax
push 0x47f110
push 0
push 0
call fcn.005b4d12
add esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [edi + 0xb8]
push eax
call fcn.00480390
inc esi
add ebx, 0x20
cmp esi, dword [edi + 0xb4]
jb 0x47f1b0
lea esi, [edi + 0x10c]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x47f233
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [edi + 0x9c]
mov dword [ebp - 0x1c], edi
mov edx, dword [ecx]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [edx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47f250
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0xbc]
sub eax, dword [esi + 0xb8]
sar eax, 2
test eax, eax
je 0x47f2a4
push ebx
nop dword [eax]
cmp byte [ebp + 8], 0
mov eax, dword [esi + 0xb8]
mov ebx, dword [eax + edi*4]
je 0x47f288
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xbc]
inc edi
sub eax, dword [esi + 0xb8]
sar eax, 2
cmp edi, eax
jb 0x47f270
pop ebx
mov eax, dword [esi + 0xb8]
pop edi
mov dword [esi + 0xbc], eax
pop esi
pop ebp
ret 4
Function at 0x47f930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x230], ecx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x238], edi
mov dword [ebp - 4], edi
call fcn.004a19d0
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x47fb58
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], edi
mov byte [ebp - 0x22c], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
lea ecx, [edi + 0x84]
call fcn.0047eb40
cmp dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push eax
push 0x2712
push esi
call fcn.004a1a30
push 0x47fb80
push 0x4e2b
push esi
call fcn.004a1a30
push ebx
push 0x2711
push esi
call fcn.004a1a30
push 0xf
push 0x5c
push esi
call fcn.004a1a30
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
push eax
push 0x15
push esi
call fcn.004a1a30
push 0xf
push 0xd
push esi
call fcn.004a1a30
add esp, 0x48
push 0xf
push 0x4e
push esi
call fcn.004a1a30
push 1
push 0x34
push esi
call fcn.004a1a30
push 0x14
push 0x44
push esi
call fcn.004a1a30
add esp, 0x24
lea ecx, [edi + 0x84]
push 5
push 0
push str.https
call fcn.004805d0
test eax, eax
jne 0x47fa6d
push eax
push 0x40
push esi
call fcn.004a1a30
push 0
push 0x51
push esi
call fcn.004a1a30
add esp, 0x18
mov eax, dword [edi + 0x134]
mov dword [ebx + 4], eax
xor eax, eax
mov ecx, dword [edi + 0x134]
shld eax, ecx, 0xa
push eax
shl ecx, 0xa
push ecx
push 0x75c2
push esi
call fcn.004a1a30
push esi
call fcn.004a1a10
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x47facb
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push 0x200002
push esi
call fcn.004a19b0
add esp, 0xc
cmp dword [ebp - 0x230], 0xc8
je 0x47facb
mov dword [ebx + 0x18], edi
push 0x200
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.005a4c30
push dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x18]
add eax, ecx
push eax
push ecx
push edi
push dword [ebx + 8]
lea eax, [ebp - 0x214]
push str.curl
push 0x100
push eax
call fcn.0047ddb0
add esp, 0x2c
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.004a1990
mov eax, dword [ebp - 0x218]
add esp, 4
cmp eax, 0x10
jb 0x47fb58
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.00407520
jmp 0x47fb58
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret 4
Function at 0x47fd40
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9030
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 0x9c]
mov dword [esi + 0xd0], 0xffffffff
push edi
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.00480980
push 0x68275c
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00480930
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x47fdc6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408200
xor eax, eax
mov dword [ebp - 0x2c], 7
push edi
lea edx, [esi + 0x6c]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x40], ax
call fcn.00480980
add esp, 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.005ba27e
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 8
jb 0x47fe30
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408200
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x47fe59
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret
Function at 0x481060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.005a4c30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x4810c4
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406540
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret

Function at 0x4810f0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx], vtable.MD5_CTX.0
xorps xmm0, xmm0
mov dword [ecx + 0x18], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
movups xmmword [ecx + 0x5c], xmm0
movups xmmword [ecx + 0x6c], xmm0
movups xmmword [ecx + 0x7c], xmm0
movups xmmword [ecx + 0x8c], xmm0
mov byte [ecx + 0x5c], 0x80
ret

Function at 0x481240
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
nop dword [eax]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x481260
mov edx, dword [esi + 0x14]
lea ebx, [esi + 0x5c]
shr edx, 3
mov ecx, 0x38
and edx, 0x3f
mov eax, 0x78
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovb eax, ecx
mov ecx, esi
push eax
push ebx
call fcn.00481170
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00481170
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 6]
nop dword [eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub edi, 1
jne 0x4812d0
xor eax, eax
mov edi, esi
xorps xmm0, xmm0
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
movups xmmword [ebx], xmm0
pop edi
movups xmmword [ebx + 0x10], xmm0
pop esi
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret 4
Function at 0x481a60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
mov eax, edx
push 3
push SysReAllocStringLen
push ecx
mov dword [eax], 0
mov dword [ebp - 4], eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x481ad3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x481b0f
cmp eax, 0xffffffff
je 0x481b0f
add eax, 8
push 0x6702a4
push eax
call fcn.0058c2c0
mov ebx, dword [ebp - 4]
mov ecx, eax
add esp, 8
mov dword [ebx], ecx
test ecx, ecx
jne 0x481adc
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 8
push eax
push 0
push ecx
call fcn.005a4c30
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [edi]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp ecx, dword [edi]
sete bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484060
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d94a9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x6679c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea esi, [edi + 8]
mov dword [edi], vtable.CMessageCallbackSink_class_CHttpDownloader_.0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00408260
mov dword [esi], eax
mov ecx, edi
mov dword [edi + 4], edi
mov dword [edi + 0x10], 0
call fcn.004855c0
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x48410f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x484107
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x48410f
push eax
call fcn.004024f0
mov byte [ebp - 4], 1
lea esi, [edi + 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00408260
mov dword [esi], eax
mov dword [edi + 0x34], vtable.ATL::CThreadPool_class_CHttpDownloader::CDownloadWorker__class_ATL::CRTThreadTraits__class_ATL::Win32WaitTraits_.0
xorps xmm0, xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
movups xmmword [edi + 0x48], xmm0
movq qword [edi + 0x58], xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x8ca0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x74], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x20]
mov dword [edi + 0x78], 0
push eax
lea ecx, [edi + 8]
mov dword [ebp - 0x14], 0x547
call fcn.00436de0
mov eax, dword [ebp - 0x20]
lea ecx, [edi + 8]
mov dword [eax + 0x14], 0x4845d0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x548
push eax
call fcn.00436de0
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [eax + 0x14], 0x4845d0
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x30]
mov ecx, 1
test eax, eax
cmove eax, ecx
sub esp, 8
mov dword [ebp - 0x30], eax
lea ecx, [edi + 0x34]
add eax, 2
push eax
push edi
call fcn.00484c80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x484bc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x484c5e
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x30]
mov ecx, edi
push 0
call fcn.00485140
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x484c3c
nop word [eax + eax]
test esi, esi
js 0x484c67
cmp esi, dword [edi + 0xc]
jge 0x484c67
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
jne 0x484c2e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esi, 1
jns 0x484c00
push dword [edi + 0x40]
call ebx
lea esi, [edi + 0x14]
mov dword [edi + 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4855c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x6679c4]
xor eax, esp
mov dword [esp + 0x838], eax
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48569f
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.005a4c30
push 0x800
lea eax, [esp + 0x48]
mov dword [esp + 0x18], 0x30
push 0
push eax
mov dword [esp + 0x34], 0x400000
call fcn.005a4c30
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x644294
lea eax, [esp + 0x40]
push 0x400
push eax
call fcn.0047ddb0
add esp, 0x10
mov dword [esp + 0x10], 0x485760
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4856b7
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret