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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5276
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x526c39
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00526ac0
mov dword [ebp - 0x18], 0x62c488
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp byte [ebp + 0x14], 0
je 0x526bfe
test eax, eax
setne bl
jmp 0x526c03
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x62c488
test eax, eax
je 0x526c23
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
push 0x5c
push dword [edi]
call fcn.00591bd6
mov esi, eax
add esp, 8
mov ebx, 3
test esi, esi
je 0x526d3b
sub esi, dword [edi]
sar esi, 1
js 0x526d3b
push esi
push 0
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
call fcn.0040ea80
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x10]
mov dl, byte [ebp + 0xc]
call fcn.00526ac0
mov edi, eax
mov dword [ebp - 0x18], 0x62c488
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x526cfc
lea edx, [esi + 1]
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
sub eax, edx
push eax
push edx
lea eax, [ebp + 0xc]
push eax
call fcn.0040ea80
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov ebx, eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x526cff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x526cff
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x62c488
test edi, edi
je 0x526d1c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x526d3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x526d5a
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5275a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x69001c]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x5276ea
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x5275e4
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x5275d5
xor eax, eax
mov edx, esi
mov word [esi], ax
xor cl, cl
sub esi, 2
xor al, al
xor bl, bl
cmp word [esp + 0x20], 0x5c
jne 0x52760f
cmp word [esp + 0x22], 0x5c
jne 0x52760f
cmp word [esi], 0x5c
mov bl, 1
setne cl
jmp 0x52761e
cmp word [esi], 0x5c
mov edi, 1
movzx eax, al
cmove eax, edi
cmp word [esp + 0x24], 0x5c
lea edi, [esp + 0x24]
je 0x527639
nop word [eax + eax]
add edi, 2
cmp word [edi], 0x5c
jne 0x527630
test cl, cl
jne 0x527643
test al, al
je 0x527658
jmp 0x527650
mov esi, edx
mov eax, 0x5c
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x5276bf
cmp word [esi], 0x5c
jne 0x52768d
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
jbe 0x5276a6
cmp word [esi], 0x5c
je 0x5276a6
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x527695
cmp esi, edi
jb 0x5276ea
test bl, bl
jne 0x5276b2
cmp esi, edi
jne 0x5276b5
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x527661
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x14]
ja 0x5276ea
jb 0x5276d3
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x10]
jae 0x5276ea
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x5282c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.005916f0
push 0xffffffffffffffff
push 0x5f56cd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x1c], eax
jne 0x528318
xor al, al
jmp 0x5283a6
mov ecx, eax
call fcn.004ea3f0
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x528398
mov esi, dword [ebp - 0x10]
call fcn.00409c60
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040eb90
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.004fa910
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x528395
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
inc edi
test ebx, ebx
je 0x528321
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.0059046a
lea esp, [ebp + 0x8004]
pop ebp
ret 8
Function at 0x5286e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f57dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.00590d25
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0050d960
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x52879d
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.00590d25
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0050d960
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x528760
test eax, eax
jne 0x5287cc
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x5287d0
cmp eax, 2
je 0x5287d0
cmp eax, 7
je 0x5287d0
cmp eax, 4
jne 0x5287cc
push dword [esi]
push 0x62e350
push dword [ebp + 8]
call fcn.00408c40
add esp, 0xc
jmp 0x528821
xor bl, bl
jmp 0x528823
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
cmp word [esi + edi*2], cx
jne 0x5287f1
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], cx
je 0x5287e7
inc edi
mov dword [ebp - 0x10], edi
call fcn.00409c60
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040eb90
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041b220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004098b0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00590d25
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
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 0x528980
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5885
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.00409460
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.00591bd6
mov edi, eax
add esp, 8
test edi, edi
je 0x528af0
sub edi, esi
sar edi, 1
js 0x528af0
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040e960
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.004fb620
mov dword [ebp - 0x20], 0x62c488
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x528ab1
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x528a8f
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x62c488
test eax, eax
je 0x528a67
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5289c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5289c1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x62c488
test eax, eax
je 0x528aaf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x528ad1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x62c488
test eax, eax
je 0x528ad1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x528af0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x528b0f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x528da0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f596d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x528dfe
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x68]
movlpd qword [ebp - 0x64], xmm0
push eax
push 0
push 0
push dword [ebp + 0x10]
xor eax, eax
movlpd qword [ebp - 0x5c], xmm0
push 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x68], 0x44
movups xmmword [ebp - 0x24], xmm0
cmp dword [ecx - 0xc], eax
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x528e7c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x528e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x528eaf
cmp byte [ebp + 0xc], 0
je 0x528ea3
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x528ea6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x528ea3
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x528ed9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x10]
xor edx, edx
test eax, eax
mov al, byte [ebp + 0xb]
cmovne ecx, edx
mov byte [ebp - 0x10], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x529590
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5b75
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x61675c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5295fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x5296ba
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x52964b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x52969e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.0051dad0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x52969e
cmp dword [ebp - 0x1c], 0
je 0x52969e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5296a4
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x5296a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00590d25
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x61675c
test eax, eax
je 0x5296dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
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.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x529d90
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x5f5c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x61675c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x529e3b
cmp eax, 0x400
jae 0x529f0c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.005006d0
jmp 0x529e05
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x529ec9
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e7d0
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x529eaa
cmp dword [ebx + 0xc], 0
jl 0x529e9f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x529e9f
call fcn.00409460
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x529e98
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x529eaa
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004097d0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x529ec9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x61675c
test edi, edi
je 0x529ee9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0059046a
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.00590b6a
int3
Function at 0x52a720
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5e5f
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push str.TEST
push 0
mov edx, str.tin9999.tmp
mov dword [ebp - 0x1c], str.http:__www.google.com
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.http:__www.yahoo.com
mov dword [ebp - 0x14], str.http:__www.example.com
call fcn.0040ad90
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd4]
push esi
push edi
call fcn.0052aa90
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x5c], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00416940
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
push dword [esi]
call fcn.00416940
mov byte [ebp - 4], 3
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004fa910
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0xd4]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.004ea3f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x52a852
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov eax, dword [ebp - 0xdc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x52a874
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x52a888
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x52a7a2
jmp 0x52a88a
mov bl, 1
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.0050ff90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004075e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
Function at 0x52cfd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f64dd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x69001c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00409c60
mov ecx, eax
test ecx, ecx
je 0x52d0e4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0052cf10
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x52d087
cmp dword [ebp + 0x10], eax
je 0x52d087
mov esi, 0x2ee2
jmp 0x52d09f
test esi, esi
jne 0x52d09f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x52d09d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x52d0ce
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00409920
int3