joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc5b3
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0x270
mov eax, 0x5f46e0
call fcn.005e5612
call fcn.004616fa
push eax
lea eax, [ebp - 0x27c]
call fcn.004250cb
push 0x65a2b8
lea ecx, [ebp - 0x27c]
call fcn.004617e2
pop ecx
or dword [ebp - 0x274], 0xffffffff
mov ebx, dword [ebp - 0x27c]
lea eax, [ebx - 0x10]
call fcn.0040ae7a
add eax, 0x10
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x278]
call fcn.00461888
mov ecx, eax
lea esi, [ebp - 0x270]
call fcn.00408123
mov eax, 0x65a2c4
test eax, 0xffff0000
jne 0x4dc634
movzx eax, ax
push eax
mov eax, esi
push eax
call fcn.004cf5a2
jmp 0x4dc641
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004dd17f
mov esi, dword [ebp - 0x270]
push dword [esi - 0xc]
push esi
lea eax, [ebp - 0x278]
call fcn.004496c2
lea eax, [esi - 0x10]
call fcn.0040acc3
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x4dc7cc
push 4
pop edi
mov ecx, 0x6524f0
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4dc6b6
test dx, dx
je 0x4dc6b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4dc6b6
add eax, edi
add ecx, edi
test dx, dx
jne 0x4dc692
xor eax, eax
jmp 0x4dc6bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4dc7a5
mov ecx, 0x6524f4
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4dc6f2
test dx, dx
je 0x4dc6ee
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4dc6f2
add eax, edi
add ecx, edi
test dx, dx
jne 0x4dc6ce
xor eax, eax
jmp 0x4dc6f7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4dc7a5
test byte [ebp - 0x26c], 0x10
jne 0x4dc7a5
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dc715
sub eax, edx
sar eax, 1
cmp eax, 5
jl 0x4dc7a5
push edi
push str..srx
lea eax, [ebp + eax*2 - 0x248]
push eax
call fcn.00438eec
add esp, 0xc
test eax, eax
jne 0x4dc7a5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x240]
call fcn.00445200
test eax, eax
je 0x4dc7a5
lea eax, [ebx - 0x10]
call fcn.0040ae7a
add eax, 0x10
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004dd119
mov esi, dword [ebp - 0x270]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4dc796
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.0040acc3
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4dc687
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x274], 0xffffffff
or dword [ebp - 4], 0xffffffff
jmp 0x4dc7fe
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
call fcn.0040acc3
lea eax, [ebx - 0x10]
call fcn.0040acc3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040acc3
call fcn.005e564b
ret 4
Function at 0x4dc827
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4dc851
xor eax, eax
inc eax
jmp 0x4dc92a
and dword [ebp - 0x214], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4dc860
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x4dc87d
xor eax, eax
jmp 0x4dc929
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x4dc922
push 0x62d6d4
push esi
call fcn.005d5fcd
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4dc8af
push 0x624804
push esi
call fcn.005d5fcd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4dc922
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x4dc914
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00402394
push esi
push ebx
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00419d2b
add esp, 0x1c
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4dc90e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], 1
cmp eax, 0xb7
je 0x4dc914
mov dword [ebp - 0x214], esi
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x4dc889
mov eax, dword [ebp - 0x214]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4dc937
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor cl, cl
push edi
cmp eax, 2
je 0x4dc94c
cmp eax, 4
jne 0x4dc94e
mov cl, 1
lea edx, [eax - 1]
cmp edx, 0x30
ja 0x4dc96b
test cl, cl
jne 0x4dc96b
mov ecx, dword [ebp + 8]
push eax
call fcn.004dc512
xor eax, eax
inc eax
jmp 0x4dca6a
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4dca68
call fcn.004616fa
push eax
lea eax, [ebp - 4]
call fcn.004250cb
push 5
push 0x65a2b8
lea eax, [ebp - 4]
call fcn.004496c2
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4dc9bb
push ebx
call fcn.004dc827
pop ecx
test eax, eax
jne 0x4dc9bb
lea eax, [ebx - 0x10]
call fcn.0040acc3
mov eax, edi
jmp 0x4dca6a
mov eax, dword [0x6bbe20]
mov ecx, 0x6bbe20
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Skin_d.srx
lea ecx, [ebp - 8]
call fcn.004617e2
mov esi, dword [ebp - 8]
pop ecx
pop ecx
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.004496c2
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
jne 0x4dca17
push edi
push edi
push 2
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
cmp eax, edi
je 0x4dca58
push dword [ebp + 8]
mov eax, esi
call fcn.004612cd
cmp eax, edi
je 0x4dca58
push dword [eax]
mov ecx, dword [ebp + 8]
call fcn.004dc512
test eax, eax
je 0x4dca58
push ecx
lea eax, [esi - 0x10]
mov edi, esp
call fcn.0040ae7a
add eax, 0x10
mov dword [edi], eax
call fcn.004dc5b3
lea eax, [esi - 0x10]
call fcn.0040acc3
xor edi, edi
inc edi
jmp 0x4dc9ac
lea eax, [esi - 0x10]
call fcn.0040acc3
lea eax, [ebx - 0x10]
call fcn.0040acc3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4dcbb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x5f5ff4
call fcn.005e5612
mov esi, ecx
mov dword [ebp - 0x278], esi
call fcn.004dcb6e
push esi
mov eax, str.res:__SKIN_DEFAULT_SKIN
call fcn.004612cd
or ebx, 0xffffffff
mov dword [ebp - 0x270], ebx
mov ecx, 0x6bbe20
mov eax, dword [0x6bbe20]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x274], eax
call fcn.004616fa
push eax
push str._sSkin.
lea ecx, [ebp - 0x274]
call fcn.004617e2
pop ecx
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x4dcd1b
push 4
pop edi
mov ecx, 0x6524f0
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4dcc65
test dx, dx
je 0x4dcc61
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4dcc65
add eax, edi
add ecx, edi
test dx, dx
jne 0x4dcc41
xor eax, eax
jmp 0x4dcc69
sbb eax, eax
sbb eax, ebx
test eax, eax
je 0x4dccf4
mov ecx, 0x6524f4
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4dcca0
test dx, dx
je 0x4dcc9c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4dcca0
add eax, edi
add ecx, edi
test dx, dx
jne 0x4dcc7c
xor eax, eax
jmp 0x4dcca4
sbb eax, eax
sbb eax, ebx
test eax, eax
je 0x4dccf4
test byte [ebp - 0x26c], 0x10
jne 0x4dccf4
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dccba
sub eax, edx
sar eax, 1
cmp eax, 5
jl 0x4dccf4
push edi
push str..srx
lea eax, [ebp + eax*2 - 0x248]
push eax
call fcn.00438eec
add esp, 0xc
test eax, eax
jne 0x4dccf4
push esi
lea eax, [ebp - 0x240]
call fcn.004612cd
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4dcc36
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 4], ebx
jmp 0x4dcd4c
mov dword [esi + 0x20], 1
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
call fcn.0040acc3
call fcn.005e564b
ret

Function at 0x4dcd67
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [0x6bbe20]
mov ecx, 0x6bbe20
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 4], esi
test edi, edi
je 0x4dcdd1
cmp word [edi], 0
je 0x4dcdd1
call fcn.004616fa
mov esi, eax
call fcn.0042513c
push eax
push esi
lea eax, [ebp - 4]
call fcn.0040aa23
push edi
push str.Skin_s
lea ecx, [ebp - 4]
call fcn.004617e2
mov esi, dword [ebp - 4]
pop ecx
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dcdd1
xor edi, edi
inc edi
lea eax, [esi - 0x10]
call fcn.0040acc3
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
jmp 0x4dcdc3
Function at 0x4e0173
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test esi, esi
je 0x4e0249
test ebx, ebx
je 0x4e0249
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.00402394
and dword [ebp - 0x400c], 0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4e0249
cmp eax, 0x3fff
ja 0x4e0249
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e0249
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x62d6d4
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4e0249
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
mov eax, 0x102
push eax
push eax
push ebx
call fcn.00413268
xor eax, eax
add esp, 0x20
inc eax
jmp 0x4e024b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret

Function at 0x4e0633
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
xor esi, esi
lea eax, [ebp - 0x212]
push esi
push eax
mov edi, ecx
call fcn.00402394
add esp, 0xc
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x4e06ba
mov edi, 0x104
push edi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x4e06ba
push edi
lea eax, [ebp - 0x214]
push eax
push esi
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x4e06ba
mov word [ebp - 0x214], ax
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
call fcn.0040bead
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4e97e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [edi + 0xa4]
push 0x6bb848
call fcn.004609af
cmp eax, esi
jne 0x4e9945
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
push str.IsShowSkinTip
mov dword [ebp - 0x20], ebx
call fcn.0050ecbf
pop ecx
lea eax, [edi + 0xe00]
pop ecx
mov dword [ebp - 0x20], eax
call fcn.00483698
push ecx
mov eax, esp
mov dword [eax], str.NEW_SKIN
push ecx
mov eax, esp
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [eax], str.SKIN
call fcn.0044208d
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x1c], ebx
cmp eax, ebx
je 0x4e9937
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x63ec60
push 0x624e80
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4e992a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x170]
mov eax, dword [eax + 4]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x138]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
sar esi, 1
push 0xd
add esi, eax
lea eax, [edi + 0xe68]
push 0x65b020
add ebx, 0xfffffffb
call fcn.0040aa23
push dword [ebp - 0x24]
push dword [0x6bb728]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp + 8], 0
push ebx
push esi
push 0x3a98
push 6
push dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x20]
je 0x4e991b
push 0x65b03c
jmp 0x4e9920
push 0x65b05c
push dword [edi + 4]
call fcn.004dde23
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4e9937
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x28], ebx
je 0x4e9945
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4
Function at 0x4eefa7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push ebx
push esi
push 0x60
push eax
call dword [ecx + 0x24]
push ecx
mov eax, esp
mov dword [eax], str.NEW_SKIN
push ecx
xor ebx, ebx
mov eax, esp
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [eax], str.SKIN
call fcn.0044208d
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
push dword [0x6bb728]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [0x6bcd28]
lea edx, [ebp - 4]
push edx
mov esi, 0x63ec60
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [ecx]
push 0x65b9c0
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push dword [edi + 0x30]
push 0x1450
push eax
call dword [ecx + 0x44]
mov eax, dword [edi + 0x24]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4ef069
mov ecx, dword [eax]
push 0x25d
push 0x391
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x177
push 0x392
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
lea ecx, [edi + 0x28]
push ecx
push esi
push str.root
push eax
call dword [edx + 0xb4]
test eax, eax
js 0x4ef131
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x1c]
lea ecx, [edi + 4]
call fcn.004a3eb1
mov eax, dword [edi + 0x28]
lea edx, [ebp - 0xc]
push edx
push esi
push str.restore
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x4ef0ce
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
xor edx, edx
cmp dword [edi + 0xbc], ebx
sete dl
push edx
push 0x3ff
push eax
call dword [ecx + 0x78]
mov eax, dword [edi + 0x28]
lea edx, [ebp - 8]
push edx
push esi
push str.backup
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x4ef105
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
xor edx, edx
cmp dword [edi + 0xbc], ebx
sete dl
push edx
push 0x3ff
push eax
call dword [ecx + 0x78]
mov ecx, dword [0x6bcc44]
mov eax, dword [ecx]
push ebx
push ebx
push 0x518
call dword [eax + 4]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4ef124
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4ef131
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x4ef13e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x1c], ebx
je 0x4ef14c
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x4f2e94
Capabilities:
Check for time delay via gettickcount
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp esi, edi
je 0x4f2fc8
cmp word [esi], di
je 0x4f2fc8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4f2fc8
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00402394
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4f2ef1
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x4f2f17
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x6524bc
jmp 0x4f2f24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_d.tmp
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00413268
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push 2
push edi
push 3
mov edi, 0x40000000
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
je 0x4f2fc8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
xor eax, eax
push eax
push eax
push 4
push eax
push 3
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4f2fc8
and dword [ebp - 0x214], 0
push 0
lea eax, [ebp - 0x214]
push eax
push 1
lea eax, [ebp - 0x20d]
push eax
push esi
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x4f2fca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x4f46c3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], eax
xor eax, eax
mov esi, ecx
push edi
mov dword [ebx + 0x1b0], eax
mov dword [ebx + 0x1b4], eax
cmp esi, eax
je 0x4f48e6
cmp word [esi], ax
je 0x4f48e6
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4f48e6
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
push 3
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.00419d2b
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x4f48e6
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4f48e6
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x238]
mov ecx, eax
and ecx, 0x3fffffff
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp - 0x234]
shrd eax, ecx, 0x1e
fild dword [ebp - 0x230]
fmul qword [0x676670]
mov dword [ebp - 0x230], eax
shr ecx, 0x1e
push ecx
fild dword [ebp - 0x230]
push ecx
faddp st(1)
fld qword [0x606ec8]
fcomp st(1)
fnstsw ax
test ah, 5
lea eax, [ebp - 0x18]
jp 0x4f4805
fstp qword [esp]
push str._.2f
push eax
call fcn.004f68e6
add esp, 0x10
push 0x20
pop eax
push 0x47
jmp 0x4f4821
fmul qword [0x676668]
fstp qword [esp]
push str._.2f
push eax
call fcn.004f68e6
add esp, 0x10
push 0x20
pop eax
push 0x4d
cmp word [ebp - 0x12], 0x2e
jne 0x4f4840
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0x10], ax
push 0x42
pop eax
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 0xc], ax
jmp 0x4f4856
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x42
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push eax
call fcn.00402394
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov dword [ebx + 0x1b0], ecx
mov dword [ebx + 0x1b4], eax
mov dx, word [esi]
add esp, 0xc
mov word [ebx + 0x1b8], dx
cmp eax, dword [ebx + 0x1ac]
jb 0x4f48b3
ja 0x4f48a8
cmp ecx, dword [ebx + 0x1a8]
jbe 0x4f48b3
lea eax, [ebp - 0x18]
push eax
push 0x65c380
jmp 0x4f48bd
push 0x65c388
push 0x640018
lea eax, [ebp - 0x228]
push eax
call fcn.004b4d7f
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x22c]
call fcn.004250cb
mov eax, dword [ebp - 0x22c]
jmp 0x4f48f8
mov esi, dword [ebp - 0x22c]
mov ecx, 0x6bbe20
call fcn.00408123
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 8
Function at 0x4f4f6d
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x32c0
call fcn.00405ecb
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x3284], eax
mov dword [ebp - 0x3280], ebx
cmp dword [eax + 0x1a0], ebx
je 0x4f5118
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
lea edx, [ebp - 0x3280]
push edx
push 0x6548fc
push 0x65c2ac
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4f5108
xor eax, eax
mov esi, 0x1046
push esi
mov word [ebp - 0x1054], ax
lea eax, [ebp - 0x1052]
push ebx
push eax
call fcn.00402394
mov eax, dword [ebp - 0x3280]
mov ecx, dword [eax]
add esp, 0xc
mov edi, 0x824
push edi
lea edx, [ebp - 0x1054]
push edx
push eax
call dword [ecx + 0x14]
push 0x3c
lea eax, [ebp - 0x32c0]
push ebx
push eax
call fcn.00402394
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x30e4], ax
lea eax, [ebp - 0x30e2]
push ebx
push eax
mov dword [ebp - 0x32c0], 0x3c
call fcn.00402394
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x209c], ax
lea eax, [ebp - 0x209a]
push ebx
push eax
call fcn.00402394
lea eax, [ebp - 0x30e4]
mov dword [ebp - 0x32b0], eax
lea eax, [ebp - 0x209c]
mov dword [ebp - 0x3294], eax
lea eax, [ebp - 0x1054]
add esp, 0xc
mov dword [ebp - 0x32ac], edi
mov dword [ebp - 0x3290], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4f507e
sub eax, ecx
lea ecx, [ebp - 0x32c0]
push ecx
sar eax, 1
push ebx
push eax
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4f50c2
cmp dword [ebp - 0x32b4], 3
je 0x4f5108
cmp dword [ebp - 0x32b4], 4
je 0x4f5108
cmp dword [ebp - 0x32b4], 1
je 0x4f5108
lea edi, [ebp - 0x327c]
call fcn.004ff2e9
push 0x20
push 0x6252b0
push 0x65c4ec
mov esi, edi
call fcn.004ff43c
mov eax, dword [ebp - 0x3284]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
call fcn.004ff3cf
mov eax, dword [ebp - 0x3280]
cmp eax, ebx
je 0x4f5104
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4f511b
mov eax, dword [ebp - 0x3280]
cmp eax, ebx
je 0x4f5118
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4