joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540116
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6fb1f8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x54015c
cmp word [ebx], dx
jne 0x54015c
or byte [eax + edi + 0x28], 4
jmp 0x540161
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5402c4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5402a4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5401a2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5401d8
cmp eax, edx
jae 0x5401e6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x54017d
jmp 0x5402c4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54029f
cmp dword [ebp - 0x18], 0
je 0x54029f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6fb1f8]
test byte [eax + edi + 0x28], 0x48
je 0x540275
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x540239
mov word [esi], cx
jmp 0x540270
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6fb1f8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6fb1f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6fb1f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5402c4
pop eax
cmp word [ebp - 4], ax
jne 0x540285
cmp esi, ebx
jne 0x540285
mov word [esi], ax
jmp 0x5402c1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005410c2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5402c4
push 0xd
pop eax
jmp 0x540280
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6fb1f8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5402be
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5402c4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x54ead9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push edi
xor edi, edi
test eax, eax
je 0x54eca6
cmp word [eax], di
je 0x54eca6
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x54eca2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x54ec98
push ebx
push ebp
call fcn.005510db
mov ebx, eax
test ebx, ebx
je 0x54ec97
push esi
push 2
pop eax
cmp ebp, 0xffffffff
cmovne eax, ebp
push eax
push dword [esp + 0x20]
call fcn.0054e3bc
mov esi, eax
test esi, esi
je 0x54ec8d
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi + 0x2c], ebx
cmove eax, esi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esi + 0x40], edi
push eax
push edi
mov dword [esi + 0x14], edi
push dword [0x6f9e98]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x54ebb3
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x54ebbf
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.0058e780
mov edx, dword [esp + 0x2c]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x54ebe2
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.0058e040
mov dword [esp + 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x54ec7c
push edi
lea ecx, [esp + 0x24]
push ecx
push ebp
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
jne 0x54ec6c
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x54ec35
push ecx
push dword [esp + 0x18]
call fcn.00551186
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jl 0x54ec3f
push 1
jmp 0x54ec40
push edi
push ecx
push ebx
call fcn.0058e370
add esp, 0xc
test eax, eax
je 0x54ec60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x54ebd7
jmp 0x54ec8a
push ebx
call fcn.0058e350
pop ecx
mov dword [esi + 0x18], eax
jmp 0x54ec83
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x54ec8a
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.00551232
mov dword [esi + 0x2c], edi
push ebx
call fcn.0058e4b0
pop ecx
mov edi, esi
pop esi
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x54eca8
xor eax, eax
pop edi
pop ebp
pop ecx
pop ecx
ret 0xc
Function at 0x54fc8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x54fcc9
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x54fccb
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x5517ab
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x551846
push edi
push 0x6fcdd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6fb540]
test edi, edi
je 0x551819
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x551812
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x6fb540
call fcn.00586570
pop ecx
pop ecx
jmp 0x551814
mov edi, dword [edi]
test edi, edi
jne 0x5517e7
pop ebp
mov esi, dword [0x6f6c20]
push 0x10
push 0x6fb540
lea eax, [esi + 1]
mov dword [0x6f6c20], eax
call fcn.005865b0
pop ecx
pop ecx
push 0x6fcdd8
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x551874
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00551648
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6fcdd8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6fb540]
jmp 0x5518a5
cmp dword [esi + 0xc], edi
je 0x5518ab
mov esi, dword [esi]
test esi, esi
jne 0x55189e
jmp 0x5518c3
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6fb540
call fcn.00586570
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x553fc4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x554019
push dword [esp + 0x10]
push 0x553f43
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x6fb548]
test edi, edi
je 0x554072
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x554011
cmp byte [edi + 0x10], 0
je 0x554011
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x553fed
jmp 0x554072
mov edi, dword [0x6fb548]
test edi, edi
je 0x554072
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x55406b
cmp byte [edi + 0x11], 0
je 0x554044
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x55405b
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x6fb548
call fcn.00586570
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x554026
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x570098
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0x6fce0c]
call fcn.00585cb1
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x5701d5
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x5700fe
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x5700f3
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x570138
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x570192
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x570192
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x57011f
jmp 0x570192
test ax, ax
je 0x5701a5
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x57018e
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x570183
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x570183
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x570183
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x57016c
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x570145
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x5701ac
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x5701b6
test ebp, ebp
jne 0x5701dd
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x5700e3
test ebp, ebp
jne 0x5701f2
mov eax, ebx
jmp 0x5701f8
test edi, edi
je 0x5701f2
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x5701f8
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x570338
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push dword [0x6fce0c]
xor esi, esi
call fcn.00585cb1
mov ebp, eax
cmp dword [ebp + 8], esi
je 0x570362
push dword [ebp + 8]
push esi
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x5703bb
push ebx
mov ebx, edi
cmp word [edi], si
je 0x570388
push ebx
call fcn.005369db
pop ecx
lea ebx, [ebx + eax*2]
add ebx, 2
cmp word [ebx], si
jne 0x570376
sub ebx, edi
add ebx, 2
push ebx
push esi
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
test eax, eax
je 0x5703b3
push ebx
push edi
push eax
call fcn.00541970
mov dword [ebp + 0xc], esi
add esp, 0xc
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x570420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x5704df
cmp dword [esp + 0x24], 2
je 0x5704df
push 0x2000
push ebp
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x5704ae
cmp dword [esp + 0x18], 2
jne 0x5704ca
cmp dword [esp + 0x28], 0xffffffff
je 0x570472
cmp ebp, dword [esp + 0x28]
jae 0x5704ca
add ebp, 2
test ebx, ebx
jne 0x570497
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x5704ca
cmp ax, 0xd
je 0x5704ae
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x57045e
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0063bb00
jmp 0x570571
push eax
push 0
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x5704fd
cmp ebp, dword [esp + 0x28]
jae 0x570555
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x570555
cmp dword [esp + 0x18], 1
jne 0x570555
inc ebp
test ebx, ebx
jne 0x570542
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x570555
cmp al, 0xd
je 0x5704f0
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x5704f0
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x57056c
call fcn.0063b7f0
jmp 0x570571
call fcn.0063ba20
push esi
push 0
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x570d53
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6fce2c]
call fcn.00585cb1
mov edi, dword [eax + 0x24]
test edi, edi
je 0x570e11
cmp dword [edi + 8], 1
je 0x570e11
mov edi, dword [edi + 0xc]
test edi, edi
je 0x570e11
mov al, byte [edi]
cmp al, 0x20
je 0x570d8c
cmp al, 9
jne 0x570d8f
inc edi
jmp 0x570d82
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.005875a0
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x570de0
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x570dfc
cmp cx, dx
je 0x570dfc
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x570df4
cmp cx, dx
jne 0x570e00
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x570de7
push ebp
call fcn.005369db
pop ecx
sub ebx, eax
push ebx
call fcn.00587750
jmp 0x570de0
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00587730
Function at 0x571c2a
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x571c8c
cmp word [esi], di
je 0x571c8c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.005b0960
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.005b0bf0
add esp, 0x10
test eax, eax
jne 0x571c8b
push 0x2c
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x5777b2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [0x6fced0]
xor esi, esi
call fcn.00585cb1
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x577869
cmp dword [ebp + 0xc], esi
je 0x577869
push edi
push 0x60
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov edi, eax
or dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.00652028
push dword [ebp + 0xc]
mov dword [edi + 8], eax
call fcn.00652028
push dword [ebp + 0x14]
mov dword [edi + 0xc], eax
call fcn.00652028
mov dword [edi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x24], eax
test al, 1
je 0x577858
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0x577a16
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x577850
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x577868
push edi
call fcn.005771d1
jmp 0x577867
push edi
call fcn.00577883
push edi
mov esi, eax
call fcn.005771d1
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x577883
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0063b8f0
push dword [edi + 0x40]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0063b8f0
mov dword [esp + 0x14], eax
call fcn.005f6ab0
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x5779e2
push ebx
push pe_nt_image_headers32
push 2
push ebx
push eax
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5779d4
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x5778fc
push 1
push 0x34
push esi
call fcn.005f9c90
add esp, 0xc
mov eax, dword [0x6fb780]
test eax, eax
je 0x577914
push eax
push 0x2714
push esi
call fcn.005f9c90
add esp, 0xc
mov eax, dword [0x6fb784]
test eax, eax
je 0x577945
cmp dword [0x6fb788], ebx
je 0x577945
push eax
push 0x27bf
push esi
call fcn.005f9c90
push dword [0x6fb788]
push 0x27c0
push esi
call fcn.005f9c90
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.005f9c90
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.005f9c90
push 0x577a25
push 0x4e2b
push esi
call fcn.005f9c90
push edi
push 0x2711
push esi
call fcn.005f9c90
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.005f9c90
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.005f9c90
add esp, 0x48
push 1
push 0x63
push esi
call fcn.005f9c90
push esi
call fcn.005f6b50
add esp, 0x10
test eax, eax
jne 0x5779bf
cmp dword [edi + 4], 0xfffffffb
push 1
pop eax
cmovne ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x5779d4
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.005f6a70
mov ebp, dword [esp + 0x14]
xor eax, eax
pop ecx
inc eax
cmp ebx, eax
jne 0x5779ef
mov dword [edi + 4], 0xfffffffe
jmp 0x5779fe
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push ebp
call fcn.0063b8e0
push dword [esp + 0x14]
call fcn.0063b8e0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x577e7f
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x6fced0]
xor edi, edi
call fcn.00585cb1
mov ebx, eax
cmp dword [ebp + 0xc], edi
je 0x577f69
push esi
push 0x60
push 8
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], 1
call fcn.00652028
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call fcn.00652028
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x577f59
test ebx, ebx
je 0x577f27
push ebx
push edi
push dword [0x6f9e98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x577f22
push ebx
push dword [ebp + 0x10]
push eax
call fcn.00541970
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x577f50
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x577f71
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x577f4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x577f66
cmp dword [ebp + 0xc], edi
jne 0x577f66
push esi
call fcn.005771d1
pop ecx
jmp 0x577f68
mov eax, dword [ebp + 0x10]
push esi
mov dword [esi + 0x48], eax
call fcn.00577a65
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x18

Function at 0x5789b4
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x578907
push 0x10
push 0x2c
call fcn.005863bb
push 0
push 0
push 8
mov dword [0x6fb7a4], eax
call fcn.00585d1c
cmp word [0x6fb79c], 0
mov dword [0x6fcedc], eax
jne 0x578a94
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x6fb79c], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6fb7a8], eax
test eax, eax
je 0x578a94
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68d2fc
push eax
call esi
push 0x68d308
push dword [0x6fb7a8]
mov dword [0x6fb78c], eax
call esi
push str.getnameinfo
push dword [0x6fb7a8]
mov dword [0x6fb790], eax
call esi
push str.WSAStringToAddressA
push dword [0x6fb7a8]
mov dword [0x6fb794], eax
call esi
cmp dword [0x6fb78c], 0
mov ecx, eax
mov dword [0x6fb798], ecx
pop esi
je 0x578a94
cmp dword [0x6fb790], 0
je 0x578a94
cmp dword [0x6fb794], 0
je 0x578a94
mov eax, dword [0x6fb7a0]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x6fb7a0], eax
add esp, 0x190
ret
Function at 0x578ba2
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x578d0b
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x578cee
sub eax, 1
jne 0x578d0b
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.00578b5b
pop ecx
test eax, eax
je 0x578c19
cmp byte [esp + 0x23a], 1
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
jne 0x578c4f
inc edi
jmp 0x578c4f
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x578d0b
mov ecx, dword [esp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x14]
inc edx
cmp byte [esp + 0x356], dl
cmove edi, edx
sub ecx, 3
je 0x578cea
sub ecx, 1
je 0x578ce6
sub ecx, 1
je 0x578cc8
sub ecx, 1
je 0x578c8c
sub ecx, 4
jne 0x578d0b
test eax, eax
jne 0x578d0b
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x578d0b
sub eax, 0
je 0x578cbb
sub eax, 1
je 0x578cae
sub eax, 1
je 0x578ca7
sub eax, 1
jne 0x578d0b
push 0x69
pop esi
push 0x64
jmp 0x578cc0
push 0x5a
pop esi
push 0x5f
jmp 0x578cb3
push 0x50
pop esi
push 0x55
test edi, edi
pop eax
cmove esi, eax
jmp 0x578d0b
push 0x4b
pop esi
push 0x46
test edi, edi
pop eax
cmovne esi, eax
jmp 0x578d0b
sub eax, 0
je 0x578ce2
sub eax, 1
je 0x578cde
sub eax, 1
jne 0x578d0b
push 0x41
pop esi
push 0x3c
jmp 0x578cc0
push 0x3c
jmp 0x578d0a
push 0x32
jmp 0x578d0a
push 0x14
jmp 0x578d0a
push 5
jmp 0x578d0a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x578d08
cmp eax, 0xa
je 0x578d04
cmp eax, 0x5a
jne 0x578d0b
push 0x28
jmp 0x578d0a
push 0x1e
jmp 0x578d0a
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret