joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402112
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x460]
push edi
mov edi, dword [esp + 0x18]
add ebx, edi
xor ecx, ecx
cmp eax, 1
mov dword [esi + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x402140
cmp eax, 2
jne 0x4021d1
lea eax, [esp + 0xc]
push eax
push edi
push ebx
mov ecx, esi
call section..text
test al, al
je 0x4021bf
mov ecx, esi
call fcn.00401cc0
test al, al
je 0x402205
cmp dword [esi + 0x460], 4
je 0x40222f
cmp dword [esi + 0x24], 8
jb 0x402179
mov eax, dword [esi + 0x10]
jmp 0x40217c
lea eax, [esi + 0x10]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4021af
pop edi
mov dword [esi + 0x464], 6
pop esi
xor al, al
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x460], 3
jmp 0x4021d1
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x4021d1
mov dword [esi + 0x460], 2
cmp dword [esi + 0x460], 3
jne 0x40222f
mov eax, dword [esi]
push 0
lea edx, [esp + 0x1c]
push edx
sub edi, ecx
push edi
add ecx, ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40220e
mov ecx, esi
mov dword [esi + 0x464], 7
call fcn.004019c0
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 8
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 4]
jne 0x40222f
mov ecx, esi
call fcn.004019c0
mov dword [esi + 0x460], 5
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret 8

Function at 0x402350
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x449260]
push esi
mov dword [esp + 0x414], eax
push 0x208
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.launch.ini
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 4]
push eax
push 0
push str.EnableProxy
push str.ECO_LAUNCH
call esi
mov ecx, dword [esp + 0x41c]
mov dword [ecx], eax
mov eax, dword [esp + 0x424]
mov ecx, dword [esp + 0x420]
lea edx, [esp + 4]
push edx
push eax
push ecx
push 0x43b7b0
push str.ProxyAddress
push str.ECO_LAUNCH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 4]
push edx
push 0
push str.ProxyPort
push str.ECO_LAUNCH
call esi
mov ecx, dword [esp + 0x428]
mov dword [ecx], eax
mov ecx, dword [esp + 0x414]
pop esi
call fcn.00417c0f
add esp, 0x414
ret
Function at 0x402d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402d7d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402d9e
cmp esi, eax
jae 0x402d77
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402d90
cmp esi, eax
jae 0x402d77
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402df0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x449260]
push esi
mov esi, dword [esp + 0x214]
push esi
mov dword [esp + 0x210], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402e74
lea eax, [esp + 4]
push esi
push eax
call fcn.00417d96
add esp, 8
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 4]
push edx
push esi
call fcn.00417ea4
add esp, 8
test eax, eax
je 0x402e5e
lea eax, [esp + 4]
push eax
call fcn.00402df0
add esp, 4
test al, al
je 0x402e74
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402e74
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
call fcn.00417c0f
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
mov al, 1
pop esi
call fcn.00417c0f
add esp, 0x20c
ret
Function at 0x4031e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x126c
call fcn.00418b40
mov eax, dword [0x449260]
push ebx
push esi
push edi
mov dword [esp + 0x1274], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0x402fd0
push 0x402fc0
push 0x402fb0
push 0x402fa0
push 0x402f90
push 0x402f80
push 0x402f70
call fcn.00425d4f
mov esi, eax
add esp, 0x24
test esi, esi
mov dword [esp + 0x10], esi
je 0x40339e
xor eax, eax
mov word [esp + 0xa70], 0
mov ecx, 0x1ff
lea edi, [esp + 0xa72]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov byte [esp + 0x670], 0
mov ecx, 0xff
lea edi, [esp + 0x671]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x270], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x271]
rep stosd dword es:[edi], eax
push str._temp
push str._s.cab
stosw word es:[edi], ax
lea ecx, [esp + 0xa78]
push 0x3ff
push ecx
stosb byte es:[edi], al
call fcn.00418acf
add esp, 0x10
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xa74]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403395
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
lea ebx, [ebx]
lea ecx, [esp + 0x4c]
push ecx
push 0x43b7bc
lea edx, [esp + 0xa78]
push 0x3ff
push edx
call fcn.00418acf
add esp, 0x10
push 0
push 0
push 0x400
lea eax, [esp + 0x67c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0xa84]
push ecx
push 0
call edi
push eax
call esi
push 0
push 0
push 0x400
lea edx, [esp + 0x27c]
push edx
push 0xffffffffffffffff
push str._temp
push 0
call edi
push eax
call esi
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x402fe0
push 0
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x684]
push edx
push eax
call fcn.00426cae
add esp, 0x1c
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4032e0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
push esi
call fcn.00426544
add esp, 4
mov ecx, dword [esp + 0x1274]
mov al, 1
call fcn.00417c0f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403710
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x449260]
push edi
mov dword [esp + 0x218], eax
lea eax, [esp + 0x10]
push str._temp
push eax
mov dword [esp + 0x10], ecx
call fcn.00417d96
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [esp + 0x10]
push str.info.txt
push edx
call fcn.00417d6c
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 4], edi
jne 0x403794
xor al, al
pop edi
mov ecx, dword [esp + 0x214]
call fcn.00417c0f
add esp, 0x218
ret
push ebp
push esi
push 0
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.0042cc63
add esp, 4
push 0
lea edx, [esp + 0x18]
push edx
mov ebp, eax
push esi
push ebp
push edi
mov byte [esi + ebp], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4037fb
test ebp, ebp
je 0x4037dc
push ebp
call fcn.0042cc68
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor al, al
pop edi
mov ecx, dword [esp + 0x214]
call fcn.00417c0f
add esp, 0x218
ret
push ebx
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jle 0x403898
lea eax, [ebx + ebx + 2]
push eax
call fcn.0042cc63
add esp, 4
push ebx
mov esi, eax
lea ecx, [ebx + 1]
mov edx, ecx
shr ecx, 2
push esi
xor eax, eax
push 0xffffffffffffffff
mov edi, esi
rep stosd dword es:[edi], eax
push ebp
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [esp + 0x14]
push esi
add ecx, 0x534
call fcn.00431989
test esi, esi
je 0x403867
push esi
call fcn.0042cc68
add esp, 4
mov edi, dword [esp + 0x10]
test ebp, ebp
pop ebx
je 0x403879
push ebp
call fcn.0042cc68
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x220]
pop esi
pop ebp
mov al, 1
pop edi
call fcn.00417c0f
add esp, 0x218
ret
mov ecx, dword [esp + 0x14]
push 0x43b7b0
add ecx, 0x534
call fcn.00431989
jmp 0x40386b
Function at 0x404920
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x439f18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.00430dd0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edi, [esi + 0x6c4]
push eax
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.0042f964
lea ecx, [esp + 8]
push 0x43bd28
push ecx
call fcn.004046e0
add esp, 8
test al, al
je 0x4049b2
push 0
push str._temp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
mov ecx, edi
call fcn.00431a3f
mov eax, dword [esi + 0x4ec]
test eax, eax
je 0x4049f6
dec eax
mov dword [esi + 0x4ec], eax
jne 0x4049f6
mov dword [esi + 0x4e8], 0
jmp 0x4049f6
lea edx, [esp + 8]
push 0x43bd1c
push edx
call fcn.004046e0
add esp, 8
test al, al
je 0x4049f6
push 0
mov ecx, edi
call fcn.00431a3f
push str.LAUNCH_OUTPUTLOG_GAMESTART
mov ecx, 0x4b72a0
call fcn.0040b790
push eax
lea ecx, [esi + 0x584]
call fcn.00431989
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14c]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x404a1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404ee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x439f84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00432091
push fcn.00402650
push fcn.00402730
push 0x10
push 4
lea eax, [esp + 0x30]
mov edi, 1
push eax
mov dword [esp + 0x7c], edi
call fcn.00418dd5
push 0
push 0
push str.upsv.lst
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 2
call fcn.004320a7
test eax, eax
jne 0x404f6e
mov esi, dword [esp + 0x70]
push 0x43b7b0
mov ecx, esi
call fcn.00404d70
push fcn.00402650
push 0x10
push 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edi
push ecx
jmp 0x405055
push ebp
xor ebp, ebp
xor edi, edi
lea esi, [esp + 0x24]
jmp 0x404f80
push esi
lea ecx, [esp + 0x14]
call fcn.004324c7
test eax, eax
je 0x404fb4
push 0x43bd30
push esi
call fcn.004046e0
add esp, 8
test al, al
jne 0x404fb4
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x404fb4
inc edi
add esi, 4
cmp edi, 0x10
jl 0x404f80
jmp 0x404fb6
mov ebp, edi
lea ecx, [esp + 0x10]
call fcn.0043242c
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
call fcn.00418da6
add esp, 4
call fcn.00418db3
cdq
idiv ebp
mov esi, dword [esp + edx*4 + 0x24]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
pop ebp
jl 0x405001
cmp eax, dword [esi]
jne 0x405001
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405036
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 2
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
jne 0x405016
call fcn.00402570
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
add ecx, ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x70]
push fcn.00402650
add eax, 0x10
push 0x10
mov dword [esi], eax
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 1
push eax
mov byte [esp + 0x78], 1
call fcn.00418d46
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 0
call fcn.00432468
mov ecx, dword [esp + 0x60]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 4
Function at 0x405090
Capabilities:
Access peb ldr_data
Delete directory
Delete file
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x439fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
lea ecx, [esp + 0xc]
call fcn.0040fe44
push str._temp
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.00404d70
mov eax, dword [esp + 4]
push 0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.0040fed9
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0040fb51
test esi, esi
je 0x4051a2
push str..
lea ecx, [esp + 8]
call fcn.00404a30
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x14]
call fcn.0040fed9
test eax, eax
je 0x40517f
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea esp, [esp]
lea ecx, [esp + 0x10]
call fcn.0040fc21
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0040fe07
test eax, eax
jne 0x40517a
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [edx + 0x38]
test eax, eax
jne 0x40517a
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004100d8
mov eax, dword [eax]
push eax
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40517a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
jne 0x405120
pop edi
lea ecx, [esp + 0xc]
call fcn.0040fb51
push str._temp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4051a2
push 0x43bd34
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x4051c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040fe6a
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x405250
Capabilities:
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x439fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.004375f6
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 4]
call fcn.00404d70
push str..exe
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00404a30
push 0x43bd68
lea ecx, [esp + 8]
call fcn.00404400
mov eax, dword [esp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.00404090
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4052d0
mov ecx, dword [esp]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 4]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405340
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x439fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.004375f6
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 8]
call fcn.00404d70
push str..exe
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.00404a30
push 0x43bd68
lea ecx, [esp + 4]
call fcn.00404400
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call fcn.00404090
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp]
add eax, 0xfffffff0
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405410
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x439fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
call fcn.004375f6
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 4]
call fcn.00404d70
push str..exe
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00404a30
push 0x43bd68
lea ecx, [esp + 8]
call fcn.00404400
mov eax, dword [esp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.00404090
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x10], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4054a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4055d0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.00405090
lea ecx, [esi + 0x74]
call fcn.004019c0
push 0xa
push 0
push 0
push 0x43bd74
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
Function at 0x4076e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x449260]
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00417d96
add esp, 8
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esp + 0x218]
test eax, eax
je 0x407725
push eax
lea eax, [esp + 8]
push eax
jmp 0x40772f
push str.eco.ver
lea ecx, [esp + 8]
push ecx
call fcn.00417d6c
add esp, 8
push ebx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40777a
or eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
call fcn.00417c0f
add esp, 0x210
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4077a2
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20c]
call fcn.00417c0f
add esp, 0x210
ret
lea eax, [esi + 1]
push edi
push eax
call fcn.0042cc63
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [edi + esi], 0
mov ecx, dword [esp + 0xc]
xor eax, eax
test ecx, ecx
jle 0x4077d5
nop
inc eax
cmp eax, ecx
jl 0x4077d0
push edi
call fcn.004179d0
add esp, 4
test eax, eax
jne 0x4077e7
or esi, 0xffffffff
jmp 0x4077e9
mov esi, eax
test edi, edi
je 0x4077f6
push edi
call fcn.0042cc68
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00417c0f
add esp, 0x210
ret

Function at 0x407820
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx + 0x28]
cmp eax, 0xffffffff
je 0x407862
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407850
mov dword [eax], esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
pop esi
je 0x407867
cmp eax, 0x2733
je 0x407867
xor al, al
ret 0xc
mov al, 1
ret 0xc

Function at 0x407870
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x407890
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4078a6
cmp eax, 0x2733
je 0x4078a6
xor al, al
ret 0xc
mov al, 1
ret 0xc

Function at 0x407960
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x449260]
mov dword [esp + 0x190], eax
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
push 2
mov byte [esi + 5], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x43b7b0
mov dword [esi + 0x28], 0xffffffff
call fcn.00416f06
add esp, 4
push eax
push 0x43b7b0
lea ecx, [esi + 8]
call fcn.00401a30
mov ecx, dword [esp + 0x194]
mov dword [esi + 0x24], 0
mov al, 1
pop esi
call fcn.00417c0f
add esp, 0x194
ret
Function at 0x407c70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x449260]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
mov dword [esp + 0x238], eax
mov esi, ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x407cbf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x407d4b
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00417d96
add esp, 8
push 0x43c56c
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x2c]
push edx
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407d0d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push edi
call esi
xor al, al
jmp 0x407d4b
mov edx, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
push edx
push edi
call ebp
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov al, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00417c0f
add esp, 0x210
ret 4