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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x48995e
cmp dword [ebp + 0x14], edi
je 0x48995e
cmp ecx, edi
jne 0x489965
call fcn.004915a0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048a020
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x489979
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x48999a
cmp ebx, 0xffffffff
je 0x489989
push ebx
push edi
push ecx
call fcn.0048bb20
add esp, 0xc
cmp esi, edi
je 0x489946
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x489946
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4899b6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4899bd
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x489aae
test word [esi + 0xc], 0x10c
je 0x489a11
mov eax, dword [esi + 4]
test eax, eax
je 0x489a11
jl 0x489b0f
cmp ebx, eax
mov edi, ebx
jb 0x4899e2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x489ab6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048bb9a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x489aa6
cmp ebx, dword [ebp - 0xc]
jb 0x489a7e
cmp dword [ebp - 0xc], 0
je 0x489a3b
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x489a30
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x489a37
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x489a46
mov eax, SysReAllocString
cmp ebx, eax
ja 0x489a46
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x489ae2
push eax
push dword [ebp - 8]
push esi
call fcn.0048dce0
pop ecx
push eax
call fcn.00496c1a
add esp, 0xc
test eax, eax
je 0x489b21
cmp eax, 0xffffffff
je 0x489b0f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x489aa6
push esi
call fcn.00496539
cmp eax, 0xffffffff
pop ecx
je 0x489b13
cmp dword [ebp - 4], 0
je 0x489ae2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4899c5
mov eax, dword [ebp + 0x14]
jmp 0x489960
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x489acd
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048bb20
add esp, 0xc
call fcn.004915a0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x489956
cmp dword [ebp + 0xc], 0xffffffff
je 0x489af8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048bb20
add esp, 0xc
call fcn.004915a0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x489956
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x489960
or dword [esi + 0xc], 0x10
jmp 0x489b13
Function at 0x48ede3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48ee10
call fcn.004915b3
mov dword [eax], esi
call fcn.004915a0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048a020
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48edec
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48ee3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004915c6
pop ecx
call fcn.004915a0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48ee66
test al, 1
je 0x48ee66
test byte [esp + 0xc], 2
je 0x48ee66
call fcn.004915b3
mov dword [eax], 5
call fcn.004915a0
mov dword [eax], 0xd
jmp 0x48ee36
xor eax, eax
pop esi
ret

Function at 0x490585
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d315c]
jne 0x49058f
repz ret
jmp fcn.0049f6fd

Function at 0x49a0d5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d3ee8]
je 0x49a0f0
inc edi
cmp edi, 0x17
jb 0x49a0e1
cmp edi, 0x17
jae 0x49a270
push ebp
push 3
call fcn.004a38df
cmp eax, 1
pop ecx
je 0x49a23c
push 3
call fcn.004a38df
test eax, eax
pop ecx
jne 0x49a124
cmp dword [0x4d3158], 1
je 0x49a23c
cmp ebx, 0xfc
je 0x49a26f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d82f0
push ebp
call fcn.0048efb1
add esp, 0xc
test eax, eax
je 0x49a15a
push esi
push esi
push esi
push esi
push esi
call fcn.00489f24
add esp, 0x14
push 0x104
mov esi, 0x4d8309
push esi
push 0
mov byte [0x4d840d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49a19e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048efb1
add esp, 0xc
test eax, eax
je 0x49a19e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00489f24
add esp, 0x14
push esi
call fcn.004890e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49a1e3
push esi
call fcn.004890e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d8604
push 0x4b1a24
sub ecx, eax
push ecx
push eax
call fcn.004a0c0d
add esp, 0x14
test eax, eax
je 0x49a1e3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00489f24
add esp, 0x14
jmp 0x49a1e5
xor esi, esi
push 0x4b1a20
push ebx
push ebp
call fcn.004a0f72
add esp, 0xc
test eax, eax
je 0x49a205
push esi
push esi
push esi
push esi
push esi
call fcn.00489f24
add esp, 0x14
push dword [edi*8 + 0x4d3eec]
push ebx
push ebp
call fcn.004a0f72
add esp, 0xc
test eax, eax
je 0x49a227
push esi
push esi
push esi
push esi
push esi
call fcn.00489f24
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a3722
add esp, 0xc
jmp 0x49a26f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49a26f
cmp ebp, 0xffffffff
je 0x49a26f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d3eec]
push dword [esi]
call fcn.004890e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a3722
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004940ad
xor ebx, ebx
cmp dword [0x4d8c48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a37f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a38d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a38d8
push eax
call fcn.0049403f
mov dword [esp], 0x4b1d4c
push edi
mov dword [0x4d8c48], eax
call esi
push eax
call fcn.0049403f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d8c4c], eax
call esi
push eax
call fcn.0049403f
mov dword [0x4d8c50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004900c4
test eax, eax
pop ecx
pop ecx
je 0x4a37c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00489f24
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a37f8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0049403f
cmp eax, ebx
pop ecx
mov dword [0x4d8c58], eax
je 0x4a37f8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049403f
pop ecx
mov dword [0x4d8c54], eax
mov eax, dword [0x4d8c54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a387d
cmp dword [0x4d8c58], ecx
je 0x4a387d
push eax
call fcn.004940b6
push dword [0x4d8c58]
mov esi, eax
call fcn.004940b6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a387d
cmp edi, ebx
je 0x4a387d
call esi
cmp eax, ebx
je 0x4a384a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a384a
test byte [ebp - 0x18], 1
jne 0x4a387d
lea eax, [ebp - 0x10]
push eax
call fcn.004900fb
test eax, eax
pop ecx
je 0x4a3865
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00489f24
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a3874
or dword [ebp + 0x10], 0x200000
jmp 0x4a38b8
or dword [ebp + 0x10], 0x40000
jmp 0x4a38b8
mov eax, dword [0x4d8c4c]
cmp eax, dword [ebp - 8]
je 0x4a38b8
push eax
call fcn.004940b6
cmp eax, ebx
pop ecx
je 0x4a38b8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a38b8
mov eax, dword [0x4d8c50]
cmp eax, dword [ebp - 8]
je 0x4a38b8
push eax
call fcn.004940b6
cmp eax, ebx
pop ecx
je 0x4a38b8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d8c48]
call fcn.004940b6
cmp eax, ebx
pop ecx
je 0x4a38d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a38da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4173d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 1], cl
sub edx, 0
inc edx
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x417411
inc esi
xor ecx, ecx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 1]
mov byte [ebp - 9], bl
xor dl, byte [ebp - 9]
mov ebx, dword [ebp + 8]
add ebx, ecx
mov edi, ebx
mov byte [edi], dl
inc ecx
inc eax
dec esi
jne 0x4173f6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xc62058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c621a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc6207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc6206a
add dl, dl
jne 0xc62089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc620dc
xor eax, eax
add dl, dl
jne 0xc62096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc6217d
add dl, dl
jne 0xc620a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc620b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc620bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc620c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc620d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc62075
mov eax, 1
add dl, dl
jne 0xc620ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc620f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc620e1
sub eax, ebx
mov ebx, 1
jne 0xc62128
mov ecx, 1
add dl, dl
jne 0xc6210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc62119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc62105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc62075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc6213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc6214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc62136
cmp eax, 0x7d00
jae 0xc6216d
cmp eax, 0x500
jb 0xc62168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc62075
cmp eax, 0x7f
ja 0xc62170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc62075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc6219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc62075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4011c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push eax
call fcn.00401120
add esp, 4
lea ecx, [esp + 4]
push str.cdusr_admin_vmaster.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
call fcn.00403f60
add esp, 4
test eax, eax
jne 0x4011fb
add esp, 0x104
ret
lea eax, [esp + 4]
push esi
push eax
call fcn.00404180
mov edx, dword [esp + 0x110]
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
push 0
push ecx
push 0x368
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x401310
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xb10
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipePrintQueueData
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40137e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xe7
jne 0x401364
push 0x61a8
push str..pipePrintQueueData
call ebp
test eax, eax
je 0x401371
jmp 0x401326
call edi
push eax
push str.Exiting..._Could_not_open_pipe___Error_d
jmp 0x4014a0
call edi
push eax
push str.Exiting..._Could_not_open_pipe__25_second_timeout____Error_d
jmp 0x4014a0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4013dd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x20]
push str.Exiting..._SetNamedPipeHandleState_failed___Error_d
push ecx
call fcn.0041408f
mov eax, dword [0x42a708]
lea edx, [esp + 0x28]
push 0x42a728
push edx
push eax
call fcn.004032b0
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
mov edx, dword [esp + 0xb24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0xa02
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401414
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Exiting..._WRITEFile_to_pipe_failed___Error_d
jmp 0x4014a0
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x124]
push 0xa02
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
test ebp, ebp
jne 0x401444
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xea
jne 0x401461
mov edi, dword [esp + 0xb28]
mov ecx, 0x280
lea esi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
movsw word es:[edi], word [esi]
jne 0x4014d1
jmp 0x401414
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
lea eax, [esp + 0x24]
push str.Logically_complete_but__fsuccess_and_error__d__cbRead_i
push eax
call fcn.0041408f
mov edx, dword [0x42a708]
lea ecx, [esp + 0x2c]
push 0x42a728
push ecx
push edx
call fcn.004032b0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push eax
push str.Exiting..._READFile_to_pipe_failed___Error_d
lea eax, [esp + 0x24]
push eax
call fcn.0041408f
mov edx, dword [0x42a708]
lea ecx, [esp + 0x28]
push 0x42a728
push ecx
push edx
call fcn.004032b0
add esp, 0x18
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb10
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb10
ret
Function at 0x4014f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x110]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00403e70
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
mov cl, byte [esp + eax + 0xf]
mov bl, 0x5c
cmp cl, bl
je 0x401569
lea edx, [esp + 0x10]
push edx
call ebp
mov byte [esp + eax + 0xf], bl
lea eax, [esp + 0x10]
push str.TEMP
push eax
call fcn.004140f0
add esp, 8
test eax, eax
je 0x4015f7
lea edx, [esp + 0x10]
lea ecx, [esp + 0x110]
sub eax, edx
push ecx
add eax, 4
push eax
lea eax, [esp + 0x18]
push 1
push eax
call section..text
mov edi, 0x41f1f0
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
mov esi, dword [esp + 0x214]
inc eax
lea edx, [esp + 0x10]
push eax
push edx
push esi
call fcn.00413d20
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x200
ret

Function at 0x403260
Capabilities:
Copy file
Move file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4032a2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call edi
push esi
call fcn.00403f60
add esp, 4
test eax, eax
jne 0x4032a2
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x403af0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x6c
push ebx
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x10], 0
call fcn.00401630
mov edi, str.cdusr_admin_temp_sql_error.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403f60
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
test eax, eax
jne 0x403b7e
lea ecx, [esp + 0x14]
push ecx
call fcn.00404100
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push edx
push 4
push eax
push esi
mov dword [esp + 0x20], 0xc8
call edi
push esi
call ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.004040a0
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push edx
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xc]
push 0
push 0
inc edx
push 0
push esi
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0xc], 0x5f5e0ff
jl 0x403bca
mov dword [esp + 0xc], 0xc8
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x14]
push 4
push edx
push esi
call edi
push esi
call ebx
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x6c
ret

Function at 0x403cd0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x23c
lea eax, [esp]
push esi
lea ecx, [esp + 0xa4]
push eax
push ecx
mov dword [esp + 0xc], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov cl, byte [esp + 0xa4]
mov al, 0x5c
cmp cl, al
jne 0x403d40
cmp byte [esp + 0xa5], al
jne 0x403d40
lea edx, [esp + 8]
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.00403e70
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00403db0
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 8]
push eax
push ecx
jmp 0x403d91
lea edx, [esp + 0xa4]
lea eax, [esp + 0x1a4]
push edx
push 0x41fc58
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1b0]
push ecx
push edx
call fcn.00403e70
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00403db0
add esp, 0x1c
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0xc]
push eax
mov esi, dword [esp + 0x24c]
push esi
call fcn.00413d20
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x23c
ret
Function at 0x403fc0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403fec
mov eax, 0xfffffff7
pop esi
ret
push 0x42988c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [0x42987c], eax
jne 0x40401f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40401a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff7
pop esi
ret
mov eax, dword [0x42987c]
push edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x404030
Capabilities:
Create directory

Disassembly:
sub esp, 0x140
mov ecx, 0x4f
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
mov esi, dword [esp + 0x14c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40407e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret

Function at 0x404300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3d0
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
call fcn.00401630
mov edi, str.cdusr_admin_vmaster.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403f60
add esp, 8
test eax, eax
jne 0x40435c
pop edi
pop esi
pop ebx
add esp, 0x3d0
ret
lea ecx, [esp + 0x10]
push ecx
call fcn.004040a0
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
lea eax, [esp + 0x74]
push 0
push edx
push 0x368
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp word [esp + 0xee], 1
pop edi
pop esi
sete al
pop ebx
add esp, 0x3d0
ret
Function at 0x405320
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0xb10
push esi
push edi
push eax
push ecx
call fcn.004043b0
push 0xa
mov esi, eax
call fcn.004042e0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 4
call edi
cmp esi, 0xfffffff7
jne 0x405383
mov ecx, 0x14d
xor eax, eax
lea edi, [esp + 0x5e4]
lea esi, [esp + 0x5e4]
rep stosd dword es:[edi], eax
mov ecx, 0x14d
lea edi, [esp + 8]
mov dword [esp + 0x5fc], 0xfffffff8
push 0xfffffffffffffff7
rep movsd dword es:[edi], dword [esi]
jmp 0x4053e6
mov edx, dword [esp + 0xb24]
push ebx
push 0x534
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00413d20
push 0xa
call fcn.004042e0
add esp, 0x10
push 4
call edi
push 0
lea ecx, [esp + 0x10]
push 0x534
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
push 0xa
mov ebx, eax
call fcn.004042e0
add esp, 4
push 4
call edi
cmp ebx, 0xffffffff
pop ebx
je 0x4053e5
push 0
lea edx, [esp + 0xc]
push 0x534
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
push esi
call fcn.004052f0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
lea eax, [esp + 4]
pop esi
add esp, 0xb10
ret