joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a046f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
call esi
push eax
push str._d__r_n
call fcn.00561ffd
pop ecx
pop ecx
call esi
sub eax, dword [edi + 0xa07]
cmp eax, 0x7530
jb 0x4a04d1
call esi
mov dword [edi + 0xa07], eax
mov ecx, 0x6a89e0
mov eax, dword [0x6b1000]
mov dword [ebp - 0xf], eax
lea eax, [ebp - 0x28]
push 0x21
push eax
mov word [ebp - 0x27], 0xa00
mov byte [ebp - 0x25], 0xea
call fcn.004f4f2e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret

Function at 0x4a290e
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
cmp eax, 0x25
ja 0x4a29c7
je 0x4a29b1
sub eax, 8
je 0x4a29a4
dec eax
je 0x4a2995
sub eax, 4
je 0x4a2973
sub eax, 4
je 0x4a296b
sub eax, 0x12
je 0x4a295e
dec eax
jne 0x4a2a5a
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x3e], edi
je 0x4a2a5a
call fcn.00461446
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.00461420
jmp 0x4a2a5a
mov dword [esi + 0xc], edi
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.00461964
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x36]
test ecx, ecx
je 0x4a2a5a
push 8
call fcn.004b7059
jmp 0x4a2a5a
mov ecx, 0x5ce238
call fcn.004be10f
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.004617d3
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x3e], edi
je 0x4a2a5a
call fcn.00461451
jmp 0x4a2a5a
sub eax, 0x26
je 0x4a2a52
dec eax
je 0x4a2a48
dec eax
je 0x4a2a3e
sub eax, 6
je 0x4a2a34
sub eax, 0x28
jne 0x4a2a5a
cmp dword [esi + 0xc], eax
je 0x4a2a5a
push edi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4a2a5a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a2a5a
call fcn.00407326
push edi
cmp dword [eax], 0
jne 0x4a2a1d
call dword [sym.imp.USER32.dll_GetClipboardData]
push eax
call fcn.00407326
mov ecx, eax
call fcn.0045397b
jmp 0x4a2a23
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [esi + 4]
push eax
call fcn.00461c9a
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.0046161b
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.004613c0
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.004614c1
jmp 0x4a2a5a
mov ecx, dword [esi + 4]
call fcn.00461536
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4bcfb2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
pop ebp
jmp fcn.004ada60

Function at 0x4bd758
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x58a9b0
push str.._data_usercfginfo.dat
mov edi, ecx
call fcn.0055f14b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4bd7fb
push ebx
push esi
push 1
lea ebx, [edi + 0x10]
push 0x2c
push ebx
call fcn.0055f6f7
push esi
call fcn.0055f010
mov ecx, ebx
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd798
sub ecx, edx
je 0x4bd7c7
push 0xfffffffffffffff0
pop esi
mov edx, ebx
sub esi, edi
add byte [edx], 0x9d
mov ecx, ebx
inc edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd7b6
sub ecx, dword [ebp - 4]
lea eax, [esi + edx]
cmp eax, ecx
jb 0x4bd7aa
lea ebx, [edi + 0x24]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd7cf
sub ecx, edx
je 0x4bd7fa
push 0xffffffffffffffdc
pop esi
mov edx, ebx
sub esi, edi
add byte [edx], 0x9d
mov ecx, ebx
inc edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd7ea
sub ecx, edi
lea eax, [esi + edx]
cmp eax, ecx
jb 0x4bd7e1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bdf96
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x58aa3c
push str.._data_usercfginfo.dat
mov esi, ecx
call fcn.0055f14b
pop ecx
pop ecx
push 0xb
mov ebx, eax
lea edi, [ebp - 0x30]
add esi, 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x4be03c
xor edx, edx
lea ecx, [ebp - 0x30]
mov esi, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bdfd7
sub ecx, edi
je 0x4bdffb
add byte [ebp + esi - 0x30], 0x63
lea ecx, [ebp - 0x30]
inc esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bdfee
sub ecx, edi
cmp esi, ecx
jb 0x4bdfe2
lea ecx, [ebp - 0x1c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be001
sub ecx, esi
je 0x4be025
add byte [ebp + edx - 0x1c], 0x63
lea ecx, [ebp - 0x1c]
inc edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4be018
sub ecx, esi
cmp edx, ecx
jb 0x4be00c
push ebx
push 1
lea eax, [ebp - 0x30]
push 0x2c
push eax
call fcn.0055fa0e
push ebx
call fcn.0055f010
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret

Function at 0x4be189
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, ecx
lea eax, [edi + 0x10]
mov dword [edi + 0x38], esi
push eax
call fcn.0055f31c
push dword [ebp + 0x10]
lea eax, [edi + 0x24]
push eax
call fcn.0055f31c
add esp, 0x10
test esi, esi
je 0x4be1be
mov ecx, edi
call fcn.004bdf96
jmp 0x4be1c9
push str.._data_usercfginfo.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4be399
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x6a77f4]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov esi, ecx
xor ebx, ebx
xor edi, edi
inc ebx
mov ecx, 0x6a77ec
push edi
mov dword [eax + 0xc], ebx
push edi
cmp dword [esi + 0x10], edi
je 0x4be3cc
push 3
mov dword [0x6a7882], ebx
call fcn.004eb5f8
mov dword [esi + 0x10], edi
jmp 0x4be3d3
push 2
call fcn.004eb5f8
cmp dword [0x5ce954], edi
pop edi
pop esi
jne 0x4be3ee
mov dword [0x5ce954], ebx
mov ecx, 0x5ce8b8
pop ebx
jmp fcn.00511e24
pop ebx
ret
Function at 0x4e9c06
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e9c33
xor eax, eax
jmp 0x4e9c80
push esi
lea eax, [ebp + 8]
push eax
push 0x498
lea eax, [ebx + 0x49c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e9c58
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e9c2f
push esi
lea eax, [ebp + 8]
push eax
push 0xa8
lea eax, [ebx + 0x9dc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e9c77
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4f137f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x4f145b
push 0x58a9b0
push ebx
call fcn.0055f14b
pop ecx
pop ecx
lea edx, [edi + 0x2e]
mov dword [edi + 4], eax
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4f13b9
cmp dword [edi + 4], 0
je 0x4f145b
push 2
xor esi, esi
push esi
push dword [edi + 4]
call fcn.0055f832
push dword [edi + 4]
call fcn.005648c9
push esi
push esi
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.0055f832
add esp, 0x1c
mov ecx, edi
call fcn.004f0b2b
push dword [edi + 4]
lea esi, [edi + 0x18]
push 1
push 0xc
push esi
call fcn.0055f6f7
mov eax, dword [esi]
lea ecx, [edi + 0x132]
sub eax, dword [edi + 0x1c]
add esp, 0x10
sub eax, dword [edi + 0x20]
push eax
call fcn.0040d019
test eax, eax
jne 0x4f1470
xor esi, esi
push esi
push 0x3d
push str.MHFile.cpp
call fcn.0040f147
push ebx
lea eax, [ebp - 0x104]
push str.Bin_File_Version_Error_____s
push eax
call fcn.0055f31c
add esp, 0x18
lea eax, [ebp - 0x104]
push esi
push esi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x132]
call fcn.0040d002
test eax, eax
je 0x4f1509
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.0055cb9e
mov dword [edi + 0x26], eax
pop ecx
test eax, eax
jne 0x4f14ac
push eax
push 0x4e
push str.MHFile.cpp
call fcn.0040f147
add esp, 0xc
jmp 0x4f145b
push esi
push 0
push eax
call fcn.0055ecc0
add esp, 0xc
lea ecx, [edi + 0x132]
push dword [edi + 0x1c]
push esi
push dword [edi + 0x26]
push dword [edi + 4]
call fcn.0040ce9f
test eax, eax
jne 0x4f14f7
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call fcn.0055f31c
add esp, 0xc
lea eax, [ebp - 0x204]
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
jmp 0x4f1455
push dword [edi + 4]
call fcn.0055f010
and dword [edi + 4], 0
xor ebx, ebx
pop ecx
inc ebx
jmp 0x4f1579
push dword [edi + 4]
xor ebx, ebx
lea eax, [edi + 0x24]
inc ebx
push ebx
push ebx
push eax
call fcn.0055f6f7
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x4f153e
push dword [edi + 0x20]
call fcn.0055cb9e
push dword [edi + 4]
mov dword [edi + 0x26], eax
push dword [edi + 0x20]
push ebx
push eax
call fcn.0055f6f7
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x25]
push ebx
push ebx
push eax
call fcn.0055f6f7
push dword [edi + 4]
call fcn.0055f010
and dword [edi + 4], 0
add esp, 0x14
mov ecx, edi
call fcn.004f0ae1
test eax, eax
je 0x4f145b
mov ecx, edi
call fcn.004f0a6b
test eax, eax
je 0x4f145b
mov dword [edi + 0x2a], ebx
mov eax, ebx
jmp 0x4f145d
Function at 0x4f3f95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x1f2], 0
je 0x4f4010
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4f4010
xor ecx, ecx
mov esi, 0x6a85e0
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
je 0x4f4010
mov esi, dword [ebp + 8]
push edi
mov edi, 0x6a85c8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, 0x6a85d4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x1f2]
mov dword [0x6a85c4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5ce58c], eax
lea eax, [ebp + 0x10]
push eax
xor eax, eax
mov dword [0x6a85c0], edx
push eax
push eax
push 0x4f426b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
test eax, eax
jne 0x4f4018
mov ecx, 0x6a85e0
xchg dword [ecx], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4f4012

Function at 0x4f4c28
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebp - 0x104]
mov edx, esi
sub edi, esi
mov al, byte [edx]
mov byte [edi + edx], al
inc edx
test al, al
jne 0x4f4c4d
movsx eax, byte [esi]
push eax
call fcn.00564b2d
pop ecx
test eax, eax
je 0x4f4cc6
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x4f4d31
mov ecx, dword [esi + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x4f4cc6
movsx eax, word [esi + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x110]
push eax
call fcn.0055e220
add esp, 0xc
push dword [ebp - 0x110]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x58a97c
push eax
call fcn.0055f31c
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
lea ecx, [eax + edi*4]
cmp dword [ecx], 0
jne 0x4f4c84
lea eax, [ebp - 0x104]
push eax
push 0x20
push 0x6b2640
call fcn.00564c33
imul eax, dword [0x6b2698], 0x32
add esp, 0xc
mov esi, dword [ebp + 0xc]
add eax, dword [0x6b2694]
imul eax, eax, 0x5e
cmp si, word [eax + 0x689de2]
jne 0x4f4d14
cmp dword [0x6b2674], 0
je 0x4f4d14
cmp dword [0x6b2690], 0
jne 0x4f4d14
mov ecx, 0x6b2668
call fcn.0052f011
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x104]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
xor ecx, ecx
mov dword [ebx + 0x14], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 8
Function at 0x511d1a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push str.._ini_GameOption.opt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x511d4c
xor eax, eax
jmp 0x511da8
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x511d6e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x511d48
cmp dword [ebp - 8], 0x61208
jne 0x511d65
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push 0xc0
add eax, 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x511d65
cmp dword [ebp - 4], 0xc0
ja 0x511d9f
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x511e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push str.._ini_GameOption.opt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x511e85
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x61208
push eax
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0xc0
lea eax, [ebx + 4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x520507
Capabilities:
Get common file path

Disassembly:
push 0x110
mov eax, 0x586dda
call fcn.0055ddbc
mov esi, ecx
push 2
push 2
lea ecx, [esi + 4]
mov dword [ebp - 0x11c], esi
call fcn.005204af
and dword [ebp - 4], 0
lea ecx, [esi + 5]
call fcn.00522570
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
push eax
call fcn.0040695b
pop ecx
push eax
lea eax, [ebp - 0x114]
mov ebx, 0x5cecd0
push eax
mov ecx, ebx
call fcn.004067b5
mov edi, str.mydata_
push edi
call fcn.0040695b
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.00423041
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0040e392
mov ecx, esi
call fcn.00521c34
and dword [esi + 0x21], 0
mov eax, esi
call fcn.0055dd7a
ret

Function at 0x52069c
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x586e30
call fcn.0055dd89
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.0055d518
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x21], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00564c33
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x5211ac
push edi
push edi
call fcn.005653bb
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066dd
call fcn.0055dd66
ret 0x1c
Function at 0x52070d
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x586e30
call fcn.0055dd89
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.0055d518
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x21], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00564c33
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x521389
push edi
push edi
call fcn.005653bb
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066dd
call fcn.0055dd66
ret 0x1c

Function at 0x52077e
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x52155d
push eax
push eax
call fcn.005653bb
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x5209f4
Capabilities:
Copy file

Disassembly:
push 0x4c
mov eax, 0x586ec0
call fcn.0055ddbc
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov ecx, dword [0x6b23bc]
mov eax, ecx
mov esi, dword [0x6b23b8]
sub eax, esi
cdq
mov dword [ebp - 0x44], 0x18
idiv dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x520af1
cmp esi, ecx
je 0x520af1
push 0xffffffffffffffff
push ebx
push 0x5cecd0
lea ecx, [ebp - 0x28]
call fcn.00406721
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040e392
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00521094
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0046852c
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004066dd
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
add eax, 0xffffffe8
push eax
call fcn.00422f3a
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x520ab5
mov eax, dword [esi]
jmp 0x520ab7
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x520add
push esi
lea eax, [ebp - 0x54]
mov ecx, 0x6b23b8
push eax
call fcn.00521fe2
mov esi, dword [eax]
mov eax, dword [0x6b23bc]
jmp 0x520ae9
add esi, dword [ebp - 0x44]
mov eax, dword [0x6b23bc]
cmp esi, eax
je 0x520af1
cmp esi, eax
jne 0x520a4c
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004066dd
lea ecx, [ebp - 0x50]
call fcn.004156dc
call fcn.0055dd7a
ret

Function at 0x520b0a
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x586e30
call fcn.0055dd89
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.0055d518
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov dword [esi + 0x21], eax
cmovae ecx, dword [ebp + 8]
push ecx
push 0x104
push eax
call fcn.00564c33
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x5219a9
push edi
push edi
call fcn.005653bb
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066dd
call fcn.0055dd66
ret 0x1c
Function at 0x520b7b
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x586eed
call fcn.0055dd89
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [0x6b23bc]
mov eax, edi
mov esi, dword [0x6b23b8]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
and dword [ebp - 4], 0
test eax, eax
je 0x520bd0
cmp esi, edi
je 0x520bca
push ecx
pop ebx
push 0
push 1
mov ecx, esi
call fcn.004066dd
add esi, ebx
cmp esi, edi
jne 0x520bb0
mov esi, dword [0x6b23b8]
mov ebx, dword [ebp - 0x10]
mov dword [0x6b23bc], esi
cmp byte [ebp + 0x20], 0
lea eax, [ebp + 8]
je 0x520c2d
push 0x6b23b8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040e392
mov ecx, ebx
call fcn.0052229b
mov ecx, dword [0x6b23bc]
mov eax, ecx
mov esi, dword [0x6b23b8]
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x520c3c
cmp esi, ecx
je 0x520c3c
cmp dword [esi + 0x14], 0x10
jb 0x520c18
mov eax, dword [esi]
jmp 0x520c1a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, edi
cmp esi, dword [0x6b23bc]
jne 0x520c0e
jmp 0x520c3c
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004066dd
call fcn.0055dd66
ret 0x1c
Function at 0x520f86
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x52105c
test edi, edi
je 0x52105c
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x521054
cmp byte [ebp - 0x25c], 0
je 0x521054
lea esi, [ebp - 0x25c]
push 0x599dc0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x52104c
push 0x599dc4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x52104c
mov al, byte [esi]
mov byte [ebp - 0x260], al
mov al, byte [esi + 1]
mov byte [ebp - 0x25f], al
lea eax, [ebp - 0x68]
push 0x64
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 0x25e], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x52105c
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.00564e37
add esp, 0xc
test eax, eax
je 0x521071
add esi, 4
cmp byte [esi], 0
jne 0x520fdb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x264]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x52105e

Function at 0x5216f4
Capabilities:
Enumerate processes

Disassembly:
push 0x15c
mov eax, 0x58703b
call fcn.0055ddbc
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x168], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x521790
lea eax, [ebp - 0x168]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x521785
push dword [ebp - 0x160]
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.005217a1
push eax
lea ecx, [ebp - 0x28]
call fcn.00434e41
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004066dd
cmp dword [ebp - 0x18], 0
jbe 0x521778
lea eax, [ebp - 0x28]
mov ecx, 0x6b23b8
push eax
call fcn.0041575c
lea eax, [ebp - 0x168]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x52173f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004066dd
call fcn.0055dd7a
ret