joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x120
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, 0xa
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x402762
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call ebp
dec edi
jne 0x402741
push 0
call fcn.004027d0
add esp, 4
mov edi, 0xa
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x402795
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call ebp
dec edi
jne 0x402774
push 0
lea eax, [esp + 0x30]
push 0x20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x4027c2
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.004024c0
add esp, 0xc
add esp, 0x120
ret

Function at 0x4027d0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [esp + 0x1c], ebx
call edi
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
push ebx
call edi
mov ebp, eax
test ebp, ebp
je 0x4028b5
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
mov edi, 5
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402846
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
dec edi
jne 0x402819
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402860
test dword [esi + 0xc], 0x100000
jne 0x402878
mov eax, dword [esi + 4]
push eax
jmp 0x402872
cmp eax, 1
jne 0x402878
test dword [esi + 0xc], 0x100000
je 0x402878
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push ebp
call ebx
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push ebp
call ebx
test eax, eax
jne 0x402814
mov ebx, 1
test esi, esi
je 0x4028c2
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x402920
Capabilities:
Read file on windows

Disassembly:
jmp 0x402930
push ecx
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
add ecx, 0x60
push 0x409178
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402957
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x402983
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea edi, [ebp + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x40299b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebp
push 1
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edi, dword [esp + 0x24]
add esp, 0x14
mov ecx, edi
push 0x409784
push 0x3f0
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push esi
push 0x3f0
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x402d40
Capabilities:
Create directory
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0
push str.c:proxyData
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call sub.SurfGd.dll_setProcessID
add esp, 4
mov ecx, esi
call fcn.00402ee0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x402b20
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
pop esi
pop ecx
ret
Function at 0x402dd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x409178
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402df4
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x402e2b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov esi, dword [esp + 0x18]
lea edi, [ebp + 1]
push edi
lea esi, [esi + esi*2]
shl esi, 2
mov dword [esi + 0x41a21c], ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 0x41a218], edx
jne 0x402e66
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x41a218]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esp + 0x28]
push ebx
add ecx, 3
mov dword [esi + 0x41a220], ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x403620
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 8], 1
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push 0
push ecx
push 0
push 0
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x124]
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 8

Function at 0x403690
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 8], 1
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea ecx, [esp]
push ecx
push 0
push 0
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x11c]
shl edx, 3
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 8

Function at 0x403700
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4037e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x1c
ret
Function at 0x4038a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
xor esi, esi
push edi
test ebp, ebp
mov dword [esp + 0x10], ecx
je 0x403905
mov edi, dword [esp + 0x20]
test edi, edi
jle 0x403905
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0x1388
push ebx
call fcn.00403620
test eax, eax
jle 0x403905
mov eax, edi
push 0
sub eax, esi
lea ecx, [esi + ebp]
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4038f8
add esi, eax
cmp esi, edi
jl 0x4038bf
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffffec
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffffeb
pop ebx
pop ecx
ret 0xc
Function at 0x404ef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
push esi
mov esi, dword [esp + 0x34]
add eax, esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], eax
mov byte [eax], 0
push 0x409260
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x404fc2
mov edx, ebx
sub edx, esi
cmp edx, 0x1f
jg 0x404fc2
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push 0x4092a4
push ecx
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
lea esi, [ebx + 2]
je 0x404fa4
mov ecx, dword [esp + 0x38]
lea edx, [esi + eax]
cmp edx, ecx
ja 0x404fb3
mov ecx, dword [esp + 0x40]
push ecx
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
lea esi, [esi + edx + 2]
jmp 0x404f16
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 0xc
Function at 0x1009ae8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x1009bb0
cmp word [esi], 0
je 0x1009bb0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xb4
jbe 0x1009b1d
push 0x6f
jmp 0x1009bb2
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x1009b2b
and word [eax], 0
xor eax, eax
cmp dword [ebp + 0xc], 1
push esi
setne al
mov edi, eax
call fcn.0103202c
test eax, eax
jne 0x1009b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009bba
lea eax, [ebp - 0x208]
push eax
push 0
push 0x1001acc
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1009b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1009bba
mov eax, 0x1b60
jmp 0x1009bba
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + edi*4]
shl eax, 3
cmp dword [eax + 0x103d54c], 0
je 0x1009bb8
lea ecx, [ebp + 8]
push ecx
push dword [eax + 0x103d550]
push esi
call fcn.0102635c
test eax, eax
jne 0x1009bba
cmp dword [ebp + 8], 1
jne 0x1009bb8
mov eax, 0x1b5f
jmp 0x1009bba
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x1009c7e
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
push esi
push edi
push dword [ebp + 8]
xor esi, esi
xor eax, eax
mov word [ebp - 0x680], si
mov ecx, 0x103
lea edi, [ebp - 0x67e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x680]
push 0x1001b0c
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1009cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x1009e42
push 0xc9
push 0x2a69c000
push esi
push dword [ebp + 0xc]
call fcn.0102e940
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x268]
mov edi, dword [ebp - 0x18]
xor edx, edx
xor ecx, ecx
or edx, eax
mov eax, dword [ebp - 0x14]
or esi, ecx
xor ebx, ebx
or ecx, edi
or eax, ebx
sub ecx, edx
sbb eax, esi
cmp eax, dword [ebp - 0xc]
jb 0x1009dd5
ja 0x1009d48
cmp ecx, dword [ebp - 0x10]
jbe 0x1009dd5
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x680]
push 0x1001a88
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009dd5
mov edi, dword [ebp + 0x10]
xor ebx, ebx
xor eax, eax
inc ebx
cmp edi, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ebx
jne 0x1009d8e
push 0x20
jmp 0x1009d93
push 0x40
lea eax, [ebp + 0xc]
pop esi
lea ecx, [ebp - 0x20]
push ecx
push eax
push edi
lea eax, [ebp - 0x680]
push eax
call fcn.01009bc0
test eax, eax
jne 0x1009db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1009dc4
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.01026bd9
cmp dword [ebp + 0xc], 0
je 0x1009dd8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1009dd8
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 1
jne 0x1009e39
mov esi, 0x103d5cc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + edi*4]
or dword [eax*8 + 0x103d568], 0xffffffff
or dword [eax*8 + 0x103d56c], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x103c10c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
cmp ebx, 0x12
sete al
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x1009e48
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
push esi
push edi
push dword [ebp + 8]
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x660], bx
mov ecx, 0x103
lea edi, [ebp - 0x65e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x660]
push 0x1001b20
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1009ef3
mov edx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x234]
xor eax, eax
xor edi, edi
or eax, edx
or ecx, edi
add esi, eax
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
adc ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1009ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x12
jne 0x1009ef3
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
inc eax
jmp 0x1009ef5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101199d
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, eax
push edi
mov dword [ebp - 4], 0x10
mov dword [ebx], eax
je 0x1011a03
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1011a01
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
lea eax, [ebp - 0x24]
push esi
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x10119fd
cmp word [esi], 0x5c
jne 0x1011a01
cmp word [esi + 2], 0x5c
jne 0x1011a01
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1011a01
xor eax, eax
jmp 0x1011a03
mov eax, esi
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
test eax, eax
jne 0x1011a4a
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov esi, eax
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test esi, esi
je 0x1011a58
and dword [ebx], 0
cmp esi, 0x6aa
je 0x1011a51
cmp esi, 0x6ab
je 0x1011a51
mov eax, 0xc0000017
jmp 0x1011a5a
mov eax, 0x4ba
jmp 0x1011a5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1011ad4
Capabilities:
Listen for remote procedure calls

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call fcn.01011a61
test eax, eax
jne 0x1011b2c
push edi
call fcn.01032977
test eax, eax
jne 0x1011b16
push eax
push eax
push 0xa
push 0x1001e88
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
mov edi, eax
test edi, edi
je 0x1011b16
push 1
push 0
push dword [esp + 0x14]
call dword [sym.imp.RPCRT4.dll_RpcServerUnregisterIf]
mov eax, edi
jmp 0x1011b2b
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov edi, eax
test edi, edi
jne 0x1011b04
pop edi
ret 8
Function at 0x1015767
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
cmp dword [0x103d538], esi
jne 0x101577e
xor eax, eax
inc eax
jmp 0x10157d3
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01014872
test eax, eax
jne 0x1015796
push 0xe
pop esi
jmp 0x10157c4
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 4]
push dword [0x103c19c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10157c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call fcn.01031b59
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x10157d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
cmp dword [0x103d53c], esi
jne 0x10157ef
xor eax, eax
inc eax
jmp 0x1015841
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.01014c61
test eax, eax
jne 0x1015804
push 0xe
pop esi
jmp 0x1015832
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp - 4]
push dword [0x103c198]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1015832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call fcn.01031b59
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4

Function at 0x1015946
Capabilities:
Delete file

Disassembly:
push 0xc
push 0x1002108
call fcn.0102e874
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
je 0x1015a5d
push 0x103c1e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x1015994
cmp dword [esi + 0x18], edi
jne 0x1015994
push 0x103c120
call fcn.0101acc3
jmp 0x1015a4c
cmp eax, 2
jne 0x10159a7
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1015a4c
cmp eax, 3
jne 0x1015a4c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x234], edi
je 0x10159dd
cmp dword [esi + 0x230], edi
je 0x10159e5
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10159dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x230], edi
jne 0x1015a4c
cmp dword [esi + 0x238], edi
je 0x1015a4c
mov ebx, 0x103c29c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
push 1
push 1
push 1
push dword [esi + 0x238]
call fcn.0101d6ac
or dword [ebp - 4], 0xffffffff
jmp 0x1015a45
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call fcn.01031b59
push 0x103c1e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0102e8ad
ret 4
Function at 0x1016127
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x500
push ebx
push esi
push edi
xor ebx, ebx
push 0x1c
mov esi, eax
xor eax, eax
cmp dword [ebp + 0x78], ebx
pop ecx
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x78]
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x64], 1
jne 0x101615d
mov edi, 0x1001ab0
lea eax, [ebp - 0x494]
push eax
push dword [esi + 8]
mov word [ebp - 0x28c], bx
push ebx
push dword [esi + 4]
call fcn.01033422
test eax, eax
jne 0x1016182
xor esi, esi
jmp 0x101622a
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.01015fed
call fcn.01015f26
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x101617b
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x494]
push eax
push ebx
push ebx
call fcn.010318de
test eax, eax
jne 0x101617b
push 0x104
lea eax, [ebp - 0x28c]
push eax
push edi
push 0x103c308
call fcn.01033406
or eax, edx
je 0x101617b
push 2
pop eax
cmp word [ebp - 0x70], ax
jne 0x10161d8
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0x28c]
push dword [ebp + 0x64]
push dword [ebp + 0x68]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.0103195a
test eax, eax
lea eax, [ebp - 0x28c]
je 0x101620d
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101622a
mov esi, dword [ebp + 0x7c]
push 0x103
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov word [esi + 0x206], bx
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp + 0x68]
call fcn.01031b59
lea eax, [ebp - 0x10]
push eax
call fcn.01015fcf
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x1016979
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [eax + 0x20]
mov eax, dword [ebx + 0x444]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [eax + 0x34]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10169c2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10169db
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx esi, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
imul esi, esi, 0x3c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esi, eax
movzx eax, word [ebp - 8]
imul esi, esi, 0x3c
add esi, eax
mov eax, dword [0x103c518]
add eax, 0x18
push eax
call edi
mov eax, dword [0x103c518]
add eax, 0x30
push eax
call edi
mov eax, dword [0x103c518]
lea edi, [ebx + 0x46c]
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add eax, 0x1c
push eax
call ebx
mov eax, dword [0x103c518]
push dword [edi]
add eax, 0x34
push eax
call ebx
mov edi, 0x103d604
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x103d528], esi
mov eax, dword [0x103d528]
push 0x3c
pop ecx
xor edx, edx
div ecx
mov ecx, dword [0x103c518]
add dword [0x103d520], esi
push 0x3c
xor edx, edx
mov dword [ecx + 0x20], eax
mov eax, dword [0x103d520]
pop ecx
div ecx
mov ecx, dword [0x103c518]
push edi
mov dword [ecx + 0x38], eax
mov eax, dword [0x103c518]
mov ecx, dword [ebp - 4]
add dword [eax + 0x14], ecx
mov eax, dword [0x103c518]
add dword [eax + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret