joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0017
Capabilities:
Parse pe header

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

Function at 0x4c07bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x58c990
push str.._data_usercfginfo.dat
mov edi, ecx
call fcn.005621eb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c0860
push ebx
push esi
push 1
lea ebx, [edi + 0x10]
push 0x2c
push ebx
call fcn.00562797
push esi
call fcn.005620b0
mov ecx, ebx
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c07fd
sub ecx, edx
je 0x4c082c
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 0x4c081b
sub ecx, dword [ebp - 4]
lea eax, [esi + edx]
cmp eax, ecx
jb 0x4c080f
lea ebx, [edi + 0x24]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0834
sub ecx, edx
je 0x4c085f
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 0x4c084f
sub ecx, edi
lea eax, [esi + edx]
cmp eax, ecx
jb 0x4c0846
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c0ffb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x66e240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x58ca1c
push str.._data_usercfginfo.dat
mov esi, ecx
call fcn.005621eb
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 0x4c10a1
xor edx, edx
lea ecx, [ebp - 0x30]
mov esi, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c103c
sub ecx, edi
je 0x4c1060
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 0x4c1053
sub ecx, edi
cmp esi, ecx
jb 0x4c1047
lea ecx, [ebp - 0x1c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1066
sub ecx, esi
je 0x4c108a
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 0x4c107d
sub ecx, esi
cmp edx, ecx
jb 0x4c1071
push ebx
push 1
lea eax, [ebp - 0x30]
push 0x2c
push eax
call fcn.00562aae
push ebx
call fcn.005620b0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00560d94
mov esp, ebp
pop ebp
ret

Function at 0x4c11ee
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.005623bc
push dword [ebp + 0x10]
lea eax, [edi + 0x24]
push eax
call fcn.005623bc
add esp, 0x10
test esi, esi
je 0x4c1223
mov ecx, edi
call fcn.004c0ffb
jmp 0x4c122e
push str.._data_usercfginfo.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c13ff
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x6aa794]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov esi, ecx
xor ebx, ebx
xor edi, edi
inc ebx
mov ecx, 0x6aa78c
push edi
mov dword [eax + 0xc], ebx
push edi
cmp dword [esi + 0x10], edi
je 0x4c1432
push 3
mov dword [0x6aa822], ebx
call fcn.004ee697
mov dword [esi + 0x10], edi
jmp 0x4c1439
push 2
call fcn.004ee697
cmp dword [0x5d0954], edi
pop edi
pop esi
jne 0x4c1454
mov dword [0x5d0954], ebx
mov ecx, 0x5d08b8
pop ebx
jmp fcn.00514cae
pop ebx
ret
Function at 0x4ecca5
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 0x4eccd2
xor eax, eax
jmp 0x4ecd1f
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 0x4eccf7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4eccce
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 0x4ecd16
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 0x4f442c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x66e240]
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 0x4f4508
push 0x58c990
push ebx
call fcn.005621eb
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 0x4f4466
cmp dword [edi + 4], 0
je 0x4f4508
push 2
xor esi, esi
push esi
push dword [edi + 4]
call fcn.005628d2
push dword [edi + 4]
call fcn.00567929
push esi
push esi
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.005628d2
add esp, 0x1c
mov ecx, edi
call fcn.004f3bd8
push dword [edi + 4]
lea esi, [edi + 0x18]
push 1
push 0xc
push esi
call fcn.00562797
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.0040d030
test eax, eax
jne 0x4f451d
xor esi, esi
push esi
push 0x3d
push str.MHFile.cpp
call fcn.0040f180
push ebx
lea eax, [ebp - 0x104]
push str.Bin_File_Version_Error_____s
push eax
call fcn.005623bc
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.00560d94
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x132]
call fcn.0040d019
test eax, eax
je 0x4f45b6
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.0055fc34
mov dword [edi + 0x26], eax
pop ecx
test eax, eax
jne 0x4f4559
push eax
push 0x4e
push str.MHFile.cpp
call fcn.0040f180
add esp, 0xc
jmp 0x4f4508
push esi
push 0
push eax
call fcn.00561d60
add esp, 0xc
lea ecx, [edi + 0x132]
push dword [edi + 0x1c]
push esi
push dword [edi + 0x26]
push dword [edi + 4]
call fcn.0040ceb6
test eax, eax
jne 0x4f45a4
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call fcn.005623bc
add esp, 0xc
lea eax, [ebp - 0x204]
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
jmp 0x4f4502
push dword [edi + 4]
call fcn.005620b0
and dword [edi + 4], 0
xor ebx, ebx
pop ecx
inc ebx
jmp 0x4f4626
push dword [edi + 4]
xor ebx, ebx
lea eax, [edi + 0x24]
inc ebx
push ebx
push ebx
push eax
call fcn.00562797
add esp, 0x10
cmp dword [edi + 0x20], 0
je 0x4f45eb
push dword [edi + 0x20]
call fcn.0055fc34
push dword [edi + 4]
mov dword [edi + 0x26], eax
push dword [edi + 0x20]
push ebx
push eax
call fcn.00562797
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x25]
push ebx
push ebx
push eax
call fcn.00562797
push dword [edi + 4]
call fcn.005620b0
and dword [edi + 4], 0
add esp, 0x14
mov ecx, edi
call fcn.004f3b8e
test eax, eax
je 0x4f4508
mov ecx, edi
call fcn.004f3b18
test eax, eax
je 0x4f4508
mov dword [edi + 0x2a], ebx
mov eax, ebx
jmp 0x4f450a
Function at 0x4f7005
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x1f2], 0
je 0x4f7080
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4f7080
xor ecx, ecx
mov esi, 0x6ab580
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
cmp eax, 1
je 0x4f7080
mov esi, dword [ebp + 8]
push edi
mov edi, 0x6ab568
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, 0x6ab574
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 [0x6ab564], eax
mov eax, dword [ebp + 0x14]
mov dword [0x5d058c], eax
lea eax, [ebp + 0x10]
push eax
xor eax, eax
mov dword [0x6ab560], edx
push eax
push eax
push 0x4f72db
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
test eax, eax
jne 0x4f7088
mov ecx, 0x6ab580
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 0x4f7082

Function at 0x4f79b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x66e240]
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 0x4f79d5
movsx eax, byte [esi]
push eax
call fcn.00567b8d
pop ecx
test eax, eax
je 0x4f7a4e
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x4f7ab9
mov ecx, dword [esi + 0xc]
xor edi, edi
cmp dword [ecx], edi
je 0x4f7a4e
movsx eax, word [esi + 0xa]
push eax
push dword [ecx]
lea eax, [ebp - 0x110]
push eax
call fcn.005612c0
add esp, 0xc
push dword [ebp - 0x110]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x58c95c
push eax
call fcn.005623bc
mov eax, dword [esi + 0xc]
add esp, 0xc
inc edi
lea ecx, [eax + edi*4]
cmp dword [ecx], 0
jne 0x4f7a0c
lea eax, [ebp - 0x104]
push eax
push 0x20
push 0x6b55e0
call fcn.00567c93
imul eax, dword [0x6b5638], 0x32
add esp, 0xc
mov esi, dword [ebp + 0xc]
add eax, dword [0x6b5634]
imul eax, eax, 0x5e
cmp si, word [eax + 0x68bde2]
jne 0x4f7a9c
cmp dword [0x6b5614], 0
je 0x4f7a9c
cmp dword [0x6b5630], 0
jne 0x4f7a9c
mov ecx, 0x6b5608
call fcn.00531c6a
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.00560d94
mov esp, ebp
pop ebp
ret 8
Function at 0x514ba4
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 0x514bd6
xor eax, eax
jmp 0x514c32
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 0x514bf8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x514bd2
cmp dword [ebp - 8], 0x61208
jne 0x514bef
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 0x514bef
cmp dword [ebp - 4], 0xc0
ja 0x514c29
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 0x514cae
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 0x514d0f
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 0x5234b2
Capabilities:
Get common file path

Disassembly:
push 0x110
mov eax, 0x589ca2
call fcn.00560e5c
mov esi, ecx
push 2
push 2
lea ecx, [esi + 4]
mov dword [ebp - 0x11c], esi
call fcn.0052345a
and dword [ebp - 4], 0
lea ecx, [esi + 5]
call fcn.0052551b
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.00406951
pop ecx
push eax
lea eax, [ebp - 0x114]
mov ebx, 0x5d0cd0
push eax
mov ecx, ebx
call fcn.004067ab
mov edi, str.mydata_
push edi
call fcn.00406951
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.0042327a
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.0040e3a9
mov ecx, esi
call fcn.00524bdf
and dword [esi + 0x21], 0
mov eax, esi
call fcn.00560e1a
ret

Function at 0x523647
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x589d92
call fcn.00560e29
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.005605ae
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.00567c93
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x524157
push edi
push edi
call fcn.0056841b
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066d3
call fcn.00560e06
ret 0x1c
Function at 0x5236b8
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x589d92
call fcn.00560e29
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.005605ae
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.00567c93
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x524334
push edi
push edi
call fcn.0056841b
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066d3
call fcn.00560e06
ret 0x1c

Function at 0x523729
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x524508
push eax
push eax
call fcn.0056841b
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x52399f
Capabilities:
Copy file

Disassembly:
push 0x4c
mov eax, 0x589d65
call fcn.00560e5c
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 [0x6b535c]
mov eax, ecx
mov esi, dword [0x6b5358]
sub eax, esi
cdq
mov dword [ebp - 0x44], 0x18
idiv dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x523a9c
cmp esi, ecx
je 0x523a9c
push 0xffffffffffffffff
push ebx
push 0x5d0cd0
lea ecx, [ebp - 0x28]
call fcn.00406717
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040e3a9
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0052403f
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0046b5f1
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004066d3
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
add eax, 0xffffffe8
push eax
call fcn.00423173
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
cmp dword [esi + 0x14], 0x10
jb 0x523a60
mov eax, dword [esi]
jmp 0x523a62
mov eax, esi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x523a88
push esi
lea eax, [ebp - 0x54]
mov ecx, 0x6b5358
push eax
call fcn.00524f8d
mov esi, dword [eax]
mov eax, dword [0x6b535c]
jmp 0x523a94
add esi, dword [ebp - 0x44]
mov eax, dword [0x6b535c]
cmp esi, eax
je 0x523a9c
cmp esi, eax
jne 0x5239f7
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004066d3
lea ecx, [ebp - 0x50]
call fcn.004158f1
call fcn.00560e1a
ret

Function at 0x523ab5
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x589d92
call fcn.00560e29
mov esi, ecx
xor edi, edi
push 0x105
mov dword [ebp - 4], edi
call fcn.005605ae
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.00567c93
mov ecx, dword [esi + 0x21]
mov al, byte [ebp + 0x20]
push edi
push edi
mov byte [ecx + 0x104], al
push dword [esi + 0x21]
push 0x524954
push edi
push edi
call fcn.0056841b
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004066d3
call fcn.00560e06
ret 0x1c
Function at 0x523b26
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x589db5
call fcn.00560e29
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [0x6b535c]
mov eax, edi
mov esi, dword [0x6b5358]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
and dword [ebp - 4], 0
test eax, eax
je 0x523b7b
cmp esi, edi
je 0x523b75
push ecx
pop ebx
push 0
push 1
mov ecx, esi
call fcn.004066d3
add esi, ebx
cmp esi, edi
jne 0x523b5b
mov esi, dword [0x6b5358]
mov ebx, dword [ebp - 0x10]
mov dword [0x6b535c], esi
cmp byte [ebp + 0x20], 0
lea eax, [ebp + 8]
je 0x523bd8
push 0x6b5358
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040e3a9
mov ecx, ebx
call fcn.00525246
mov ecx, dword [0x6b535c]
mov eax, ecx
mov esi, dword [0x6b5358]
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
test eax, eax
je 0x523be7
cmp esi, ecx
je 0x523be7
cmp dword [esi + 0x14], 0x10
jb 0x523bc3
mov eax, dword [esi]
jmp 0x523bc5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, edi
cmp esi, dword [0x6b535c]
jne 0x523bb9
jmp 0x523be7
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.004066d3
call fcn.00560e06
ret 0x1c
Function at 0x523f31
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x66e240]
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 0x524007
test edi, edi
je 0x524007
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x523fff
cmp byte [ebp - 0x25c], 0
je 0x523fff
lea esi, [ebp - 0x25c]
push 0x59baf4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x523ff7
push 0x59baf8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x523ff7
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 0x524007
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.00567e97
add esp, 0xc
test eax, eax
je 0x52401c
add esi, 4
cmp byte [esi], 0
jne 0x523f86
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.00560d94
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 0x524009

Function at 0x52469f
Capabilities:
Enumerate processes

Disassembly:
push 0x15c
mov eax, 0x589f3f
call fcn.00560e5c
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 0x52473b
lea eax, [ebp - 0x168]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x524730
push dword [ebp - 0x160]
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0052474c
push eax
lea ecx, [ebp - 0x28]
call fcn.00483dc7
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004066d3
cmp dword [ebp - 0x18], 0
jbe 0x524723
lea eax, [ebp - 0x28]
mov ecx, 0x6b5358
push eax
call fcn.00415971
lea eax, [ebp - 0x168]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x5246ea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004066d3
call fcn.00560e1a
ret
Function at 0x52474c
Capabilities:
Get process image filename

Disassembly:
push 0x228
mov eax, 0x589f72
call fcn.00560e5c
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x230], al
push 0x58f3f0
mov dword [ebp - 4], eax
call fcn.00406951
pop ecx
push eax
push 0x58f3f0
lea ecx, [ebp - 0x230]
call fcn.004067ab
push esi
push 0
push 0x400
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x52481a
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x5247da
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x52481a
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00523f31
push esi
test eax, eax
je 0x5247d2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
push eax
call fcn.00406951
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.004067ab
xor ebx, ebx
mov dword [edi + 0x14], 0xf
lea eax, [ebp - 0x230]
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.00415676
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004066d3
mov eax, edi
call fcn.00560e1a
ret 8

Function at 0x524bdf
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x58a064
call fcn.00560e5c
xor ebx, ebx
push 0xf
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005254e4
mov edx, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
cmovae esi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp edx, 0x10
cmovae ecx, edi
add eax, ecx
cmp esi, eax
je 0x524cc2
mov bl, byte [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x44], bl
push dword [ebp - 0x44]
call fcn.005254bf
cmp bl, 0x5c
je 0x524c67
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, edi
dec eax
add eax, ecx
cmp esi, eax
jne 0x524cbc
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.00423173
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0056868a
pop ecx
pop ecx
test eax, eax
je 0x524ca6
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00568648
pop ecx
test eax, eax
jne 0x524cc4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax], bl
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
inc esi
jmp 0x524c23
mov bl, 1
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.004066d3
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004066d3
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004066d3
mov al, bl
call fcn.00560e1a
ret 0x18