joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404230
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58a732
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x138]
lea eax, [esp + 0x18]
push eax
call fcn.004030f0
xor ebx, ebx
mov dword [esp + 0x130], ebx
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebx
je 0x4042ae
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00406760
mov dword [esp + 0x130], 0xffffffff
lea edx, [esp + 0x18]
push edx
jmp 0x404446
mov edi, 0x5d2d34
lea esi, [esp + 0x14]
call fcn.004065f0
mov byte [esp + 0x130], 1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
je 0x4043e2
push 0x103
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], bl
call fcn.004add60
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push 0x103
lea ecx, [esp + 0x28]
push ecx
push 0x5d2b98
push str.datapath
push str.server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
jmp 0x404320
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404320
sub eax, edx
je 0x4043e2
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
je 0x4043e2
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404345
sub eax, edx
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004033b0
push 0x104
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004add60
mov eax, dword [esp + 0x20]
add esp, 0xc
push str.PushCmdTask.ini
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
cmp eax, ebx
jne 0x404398
mov byte [esp + 0x130], bl
lea edx, [esp + 0x14]
push edx
jmp 0x4043ee
lea eax, [esp + 0x20]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4043a0
sub eax, edx
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
mov byte [esp + 0x130], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4043f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4043f3
mov byte [esp + 0x130], bl
lea ecx, [esp + 0x14]
push ecx
call fcn.00403090
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], ebx
jne 0x40442b
mov edi, str.TasksCmdTask.ini
lea esi, [esp + 0x14]
call fcn.004065f0
mov byte [esp + 0x130], 3
lea ebx, [esp + 0x18]
call fcn.00406760
mov byte [esp + 0x130], 0
mov eax, esi
push eax
call fcn.00403090
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00406760
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call fcn.00403090
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004a314d
add esp, 0x120
ret 4
Function at 0x407600
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cx, word [0x5d3050]
mov dl, byte [0x5d3052]
lea ebx, [esp + 0x10]
mov word [esp + 0x10], cx
mov byte [esp + 0x12], dl
call fcn.00491270
mov esi, eax
test esi, esi
je 0x407666
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
lea ecx, [ecx]
cmp byte [esi], 0
je 0x407666
push str.reload
push esi
call edi
test eax, eax
je 0x407661
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x407640
pop edi
pop esi
pop ebx
add esp, 8
ret
call fcn.00406ca0
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x407670
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0xc
call fcn.004912c0
test eax, eax
jne 0x4076b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERR__CreateLowLevelDACL_failed__err_d
mov esi, 0x602250
call fcn.00409e30
add esp, 8
xor eax, eax
pop esi
add esp, 0xc
ret
push str.GlobalDsEventRldcfgProxy
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x601e44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x601e44]
push eax
push ecx
push str.create_event_rldcfg__handle__u__err_d
mov esi, 0x602250
call fcn.00409e30
add esp, 0xc
cmp dword [0x601e44], 0
je 0x407719
push 0
push 0
push 0
push 0x406ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x407719
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x601e44], eax
pop esi
setne al
add esp, 0xc
ret

Function at 0x407730
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x584f7a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, str.360EntPublish_reload.log
lea esi, [esp + 0xc]
call fcn.004065f0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [esp + 0xc]
push 1
mov esi, 0x602250
call fcn.00409d40
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
call fcn.00407600
call esi
mov esi, 0x602250
call fcn.00409df0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
call fcn.00403090
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4077d0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x584f4a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
mov ecx, eax
call fcn.00408390
mov dword [esp + 0x10], 0
mov eax, dword [esp + 4]
call fcn.0040c520
test eax, eax
je 0x40783f
mov dword [esp + 0x10], 0xffffffff
lea edx, [esp + 4]
push edx
call fcn.00403090
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 4]
push eax
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x407ee0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58ff94
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
call fcn.00493a50
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00408390
xor esi, esi
mov dword [esp + 0x70], esi
mov edx, dword [eax]
push edx
push str._main__CmdLine_:_s
call fcn.004916b0
add esp, 8
mov dword [esp + 0x70], 0xffffffff
lea eax, [esp + 0x10]
push eax
call fcn.00403090
call fcn.004077d0
test eax, eax
je 0x407fa2
mov ecx, str._main__IsRunService
call fcn.004930a0
mov dword [0x601e4c], 1
call fcn.00496af0
test eax, eax
jne 0x407f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._main__srvFrame.RunService_Fail_err:_d
call fcn.004916b0
add esp, 8
mov ecx, str._main__Service_Exit
call fcn.004930a0
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], esi
call fcn.00407150
add esp, 4
cmp dword [esp + 0x10], esi
je 0x407fca
mov ecx, str._main__Exit
call fcn.004930a0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407730
lea edx, [esp + 0x14]
push edx
call fcn.00496e10
mov dword [esp + 0x70], 1
lea ebx, [esp + 0x14]
call fcn.00497550
test eax, eax
jne 0x408025
mov ecx, str._main__InstallAndStartService_fail
call fcn.004930a0
mov ecx, ebx
call fcn.00407870
mov esi, eax
mov dword [esp + 0x70], 0xffffffff
mov eax, ebx
push eax
call fcn.00408060
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str._main__Inst_And_Start_Service_OK__current_Exit
call fcn.004930a0
mov ecx, str._main__Non_Service_Process_Exit
call fcn.004930a0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
call fcn.00408060
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4080c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x584d53
mov eax, dword fs:[0]
push eax
sub esp, 0xa1c
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0xa18], eax
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0xa24]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x22a]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x20], esi
mov word [esp + 0x22c], ax
call fcn.004add60
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.Path
push 0x5d3920
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4081bc
cmp dword [esp + 0x10], edi
jne 0x4081bc
cmp dword [esp + 0xc], eax
jbe 0x4081bc
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4081bc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004add60
add esp, 0xc
push str.CrashReport.dll
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
lea ecx, [esp + 0x1c]
call fcn.00408390
jmp 0x4081c7
push esi
mov ecx, 0x5d3ab0
call fcn.00408390
mov dword [esp + 0xa2c], 0
mov dword [esp + 8], edi
mov eax, esi
mov ecx, dword [esp + 0xa24]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0xa18]
xor ecx, esp
call fcn.004a314d
add esp, 0xa28
ret
Function at 0x4089d0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58a66a
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
push 0x1ff
lea eax, [esp + 0x2d5]
push 0
push eax
mov byte [esp + 0x2dc], 0
call fcn.004add60
push 0x94
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x38], 0x1fe
call fcn.004add60
add esp, 0x18
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x408bea
cmp dword [esp + 0x2c], 5
jne 0x408bea
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x408a7a
cmp eax, 2
jne 0x408bea
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408bea
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2d4]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.Version
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408bea
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2d4]
call fcn.00402fe0
mov dword [esp + 0x4dc], 0
lea edx, [esp + 0x24]
push edx
mov ecx, 3
lea edx, [esp + 0x14]
call fcn.00408930
mov byte [esp + 0x4dc], 1
mov eax, dword [eax]
push 0x5d3a8c
push eax
call fcn.004a47ba
add esp, 8
test eax, eax
setge bl
mov byte [esp + 0x4dc], 0
lea eax, [esp + 0x24]
push eax
call fcn.00403090
test bl, bl
je 0x408b47
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4dc], 0xffffffff
lea edx, [esp + 0x10]
push edx
jmp 0x408be5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RASAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408bd5
push str.RasEnumEntriesA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x408b8e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x4dc], 0xffffffff
lea edx, [esp + 0x10]
push edx
jmp 0x408be5
push 0x210
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.004add60
add esp, 0xc
mov eax, 0x214
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xc4]
push eax
push 0
push 0
mov dword [esp + 0x2c], 0
call esi
mov dword [esp + 0x4dc], 0xffffffff
lea ecx, [esp + 0x10]
push ecx
call fcn.00403090
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004a314d
add esp, 0x4d0
ret

Function at 0x4096b0
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.004add60
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret
Function at 0x409a20
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x588e8a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [eax - 0xc], edi
jne 0x409a84
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x4c]
push ecx
call fcn.00403090
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x38
ret 4
lea ebx, [esi + 4]
lea eax, [esp + 0x4c]
call fcn.00406760
mov ebx, dword [ebx]
push edi
push 0x8000000
push 3
push edi
push 7
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
jne 0x409ad7
mov dword [esp + 0x44], ebx
lea edx, [esp + 0x4c]
push edx
call fcn.00403090
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x38
ret 4
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, edi
je 0x409b11
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor edx, edx
xor ebp, ebp
or edx, ecx
or eax, ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x4c]
push eax
call fcn.00403090
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x38
ret 4

Function at 0x409bc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x409bcc
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x8000
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
test eax, eax
jbe 0x409bf6
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop ecx
ret
Function at 0x409c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x588e5d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea eax, [esi + 0x6c]
xor edi, edi
push eax
mov dword [esi + 0x48], edi
call fcn.00462370
mov dword [esp + 0x1c], edi
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x10]
push ecx
call ebx
lea edx, [esi + 0x54]
push edx
call ebx
mov eax, 1
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x38], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40ae50
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x40ae65
xor eax, eax
pop edi
pop ebx
add esp, 0x14
ret 8
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], edi
je 0x40aec2
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp edx, eax
jl 0x40aec2
jg 0x40aea1
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x40aec2
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8
Function at 0x40b930
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x587efa
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov ebx, 1
mov dword [esp + 0x2c], ebx
lea eax, [eax + eax*4]
xor esi, esi
lea eax, [eax + eax + 1]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], eax
cmp eax, esi
jbe 0x40baa9
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea esp, [esp]
lea eax, [esp + 0x14]
push str..del
push eax
lea ecx, [esp + 0x40]
call fcn.0040a9e0
add esp, 8
mov byte [esp + 0x2c], 2
mov eax, dword [eax]
push eax
call edi
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ba7b
lea edx, [esp + 0x18]
push str..del
push edx
lea ecx, [esp + 0x40]
call fcn.0040a9e0
add esp, 8
mov byte [esp + 0x2c], 4
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebp
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push str..del
push ecx
lea ecx, [esp + 0x40]
call fcn.0040a9e0
add esp, 8
mov byte [esp + 0x2c], 6
mov eax, dword [eax]
push eax
call edi
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x38]
push ecx
call edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x40baa9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x3c]
add eax, ebx
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x20]
jb 0x40b990
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bace
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40d040
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x800c
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x8008], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8018]
xor ebx, ebx
push edi
mov edi, ecx
mov byte [edi], bl
mov byte [edi + 0x207], bl
cmp dword [ebp + 0x8008], ebx
jne 0x40d07d
xor eax, eax
jmp 0x40d12d
push esi
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [esp + 0x10], ebx
call fcn.0040cfe0
test eax, eax
je 0x40d09b
mov eax, 1
jmp 0x40d12c
mov eax, dword [ebp + 0x8000]
mov esi, dword [ebp + 0x8004]
sub esi, eax
cmp esi, ebx
jle 0x40d0d2
add eax, ebp
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004ad550
push esi
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.004ad550
add esp, 0x18
mov dword [ebp + 0x8004], esi
jmp 0x40d0d8
mov dword [ebp + 0x8004], ebx
mov ecx, dword [ebp + 0x8004]
push ebx
lea edx, [esp + 0x18]
push edx
mov eax, 0x8000
sub eax, ecx
push eax
lea eax, [ecx + ebp]
mov ecx, dword [ebp + 0x8008]
push eax
push ecx
mov dword [ebp + 0x8000], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d12c
mov edx, dword [esp + 0x14]
add dword [ebp + 0x8004], edx
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [ebp + 0x8000], ebx
call fcn.0040cfe0
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x8014]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a314d
add esp, 0x800c
ret 4

Function at 0x40d160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x585688
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
jb 0x40d194
mov eax, dword [ebx + 4]
jmp 0x40d197
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x40d236
push 0x6022f4
mov dword [esp + 0x18], 0x6022f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x60230c]
cmp eax, 0x1b7740
jbe 0x40d1e1
call fcn.0040dfb0
call esi
mov dword [0x60230c], eax
lea eax, [esp + 0x18]
push eax
call fcn.0040dff0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x6022ec]
cmp esi, ebp
je 0x40d202
cmp esi, dword [0x6022d4]
je 0x40d207
call fcn.004a35f3
cmp edi, ebx
je 0x40d221
test esi, esi
jne 0x40d24a
call fcn.004a35f3
cmp edi, dword [esi + 0x18]
jne 0x40d21e
call fcn.004a35f3
mov ebp, dword [edi + 0x28]
mov dword [esp + 0x28], 0xffffffff
push 0x6022f4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [esi]
jmp 0x40d214

Function at 0x40d400
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push esi
push 0x40dbe0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop ecx
ret