joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61ab47
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7a1a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00616c65
and dword [ebp - 0x14], 0
cmp dword [0x7eea24], 0
mov dword [ebp - 0x18], eax
jne 0x61abfa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x61aca2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x61aca2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x7eea24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x7eea28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x7eea2c], eax
call edi
push eax
call esi
mov dword [0x7eea34], eax
test eax, eax
je 0x61abfa
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x7eea30], eax
mov eax, dword [0x7eea30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x61ac53
cmp dword [0x7eea34], ecx
je 0x61ac53
push eax
call esi
push dword [0x7eea34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x61ac53
test ebx, ebx
je 0x61ac53
call edi
test eax, eax
je 0x61ac4a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x61ac4a
test byte [ebp - 8], 1
jne 0x61ac53
or dword [ebp + 0x10], 0x200000
jmp 0x61ac86
mov eax, dword [0x7eea28]
cmp eax, dword [ebp - 0x18]
je 0x61ac86
push eax
call esi
test eax, eax
je 0x61ac86
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x61ac86
mov eax, dword [0x7eea2c]
cmp eax, dword [ebp - 0x18]
je 0x61ac86
push eax
call esi
test eax, eax
je 0x61ac86
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x7eea24]
call esi
test eax, eax
je 0x61aca2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x61aca4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060fdfc
leave
ret
Function at 0x3242a60
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
mov eax, 0xaaaaaaab
push esi
mov esi, dword [esp + 0x18]
mov ecx, esi
mul esi
push edi
mov edi, edx
mov edx, 0
shr edi, 1
lea eax, [edi + edi*2]
sub ecx, eax
setne dl
add edx, edi
shl edx, 2
mov dword [esp + 0xc], edx
test esi, esi
jne 0x3242a9a
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x3242aab
pop ebp
pop edi
pop esi
mov eax, edx
pop ebx
pop ecx
ret
sub ebx, ecx
dec edx
add esi, ebx
test ecx, ecx
je 0x3242b0f
mov bl, byte [esi]
lea eax, [edx - 2]
and bl, 3
mov byte [edx + ebp], 0x3d
shl bl, 4
mov dword [esp + 0x20], eax
cmp ecx, 1
jne 0x3242ad0
mov al, 0x3d
jmp 0x3242ae6
mov al, byte [esi + 1]
shr al, 4
or bl, al
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x33b1ba0]
mov ecx, dword [esp + 0x20]
mov byte [edx + ebp - 1], al
movzx eax, bl
lea edx, [ecx - 2]
movzx eax, byte [eax + 0x33b1ba0]
mov byte [ecx + ebp], al
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x33b1ba0]
mov byte [ecx + ebp - 1], al
add esi, 0xfffffffd
test edi, edi
je 0x3242b81
movzx eax, byte [esi + 2]
lea esi, [esi - 3]
and eax, 0x3f
lea edx, [edx - 4]
movzx eax, byte [eax + 0x33b1ba0]
mov byte [edx + ebp + 4], al
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + 0x33b1ba0]
mov byte [edx + ebp + 3], al
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 4]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + 0x33b1ba0]
mov byte [edx + ebp + 2], al
movzx eax, byte [esi + 3]
shr eax, 2
movzx eax, byte [eax + 0x33b1ba0]
mov byte [edx + ebp + 1], al
sub edi, 1
jne 0x3242b16
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x3242fa0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
movups xmm0, xmmword [0x3411058]
sub esp, 8
mov ecx, 0x400
movups xmmword [0x3419360], xmm0
movups xmm0, xmmword [0x3411068]
push ebx
mov ebx, dword [esp + 0x14]
movups xmmword [0x3419370], xmm0
push ebp
movups xmm0, xmmword [0x3411078]
mov ebp, dword [esp + 0x14]
push esi
movups xmmword [0x3419380], xmm0
push edi
movups xmm0, xmmword [0x3411088]
mov esi, 0x34110a0
mov edi, 0x34193c0
rep movsd dword es:[edi], dword [esi]
movups xmmword [0x3419390], xmm0
xor esi, esi
mov edi, 0x3419360
movq xmm0, qword [0x3411098]
movq qword [0x34193a0], xmm0
nop
lea eax, [esi + 1]
cdq
idiv ebx
movzx eax, byte [esi + ebp]
shl eax, 8
movzx ecx, byte [edx + ebp]
or ecx, eax
lea eax, [esi + 2]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + ebp]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [edx + ebp]
or ecx, eax
lea eax, [esi + 4]
cdq
idiv ebx
xor dword [edi], ecx
add edi, 4
mov esi, edx
cmp edi, 0x34193a8
jl 0x3243010
mov dword [esp + 0x10], 0
mov esi, 0x3419364
mov dword [esp + 0x14], 0
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.032434e0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi - 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add esi, 8
cmp esi, 0x34193ac
jl 0x3243070
mov esi, 0x34193c4
nop
mov edi, 0x80
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.032434e0
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esi - 4], eax
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x32430a5
cmp esi, 0x341a3c4
jl 0x32430a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x3243970
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push esi
push edi
push 0x34191a0
xor esi, esi
call ebp
mov eax, dword [0x34191c0]
mov dword [esp + 0x18], eax
cmp byte [0x3419271], bl
je 0x32439ce
push str.start_bootstrap
push 0x28e
push str..._src_bootstrap.c
push str.__s:_d___s:_suspended_n
push 2
call fcn.0325f280
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x14
mov esi, 0x2bd
push 0x34191a0
call edi
jmp 0x3243a7b
test eax, eax
je 0x3243a5b
mov esi, dword [0x34121e0]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
sub eax, esi
mov dword [esp + 0x10], eax
cmp ecx, esi
jae 0x3243a00
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
cmp ecx, 1
jne 0x3243b0d
mov eax, dword [0x34121f0]
cmp dword [0x34121e8], eax
jae 0x3243b0d
cmp edx, eax
jae 0x3243b0d
push eax
push str.start_bootstrap
push 0x296
push str..._src_bootstrap.c
push str.__s:_d___s:_a_new_bootstrap_was_postponed__d_n
push 2
call fcn.0325f280
mov ebx, dword [0x34121f0]
add esp, 0x18
or dword [0x3416500], 1
mov esi, 0xb
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x34191a0
call edi
test ebx, ebx
je 0x3243a7b
push ebx
push dword [0x34191e4]
call fcn.03246ce0
add esp, 8
cmp dword [esp + 0x18], 0
mov eax, esi
je 0x3243bbd
test eax, eax
jne 0x3243bbd
push 0x34191a0
call ebp
mov eax, dword [0x341923c]
mov esi, eax
and eax, 0xffffffdf
shr esi, 5
push 0x34191a0
mov dword [0x341923c], eax
call edi
test esi, 1
je 0x3243ad2
push 0xffffffffffffffff
push dword [0x34191d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x34191d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x34191a0
call ebp
push 0
push 0x10000
push 0
push 0x3244d70
push 0x200000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x34191d8], eax
test eax, eax
je 0x3243ba0
or dword [0x341923c], 0x20
jmp 0x3243ba7
or dword [0x3416500], ecx
mov eax, dword [0x341923c]
test al, 0x10
je 0x3243b36
push 0x34191a0
mov esi, 0x72
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [0x3419268], ebx
jne 0x3243b86
cmp byte [0x341926f], bl
jne 0x3243b4e
cmp dword [0x3419264], ebx
jne 0x3243b86
push str.start_bootstrap
push 0x2a1
push str..._src_bootstrap.c
push str.__s:_d___s:_skip_bootstrap___null_settings_n
push 3
call fcn.0325f280
add esp, 0x14
mov esi, 0x16
push 0x34191a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0x10
push 0x34191a0
mov dword [0x341923c], eax
call edi
jmp 0x3243a90
and dword [0x341923c], 0xffffffef
test eax, eax
mov ecx, 0x4e38
mov esi, 0x73
push 0x34191a0
cmove esi, ecx
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x32488d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x32488fe
push ebx
mov ebx, dword [esp + 0x10]
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x3412208]
cmp esi, edi
jb 0x32488e5
pop ebx
pop edi
pop esi
ret
Function at 0x324d8c0
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
cmp bl, 0x20
je case.default.0x324d903
cmp bl, 0xd
je case.default.0x324d903
cmp bl, 0xa
je case.default.0x324d903
cmp bl, 9
je case.default.0x324d903
cmp bl, 0xc
je case.default.0x324d903
mov esi, dword [esp + 0xc]
lea eax, [esi - 0x14]
cmp eax, 0xb
ja case.default.0x324d903
jmp dword [eax*4 + 0x324dae0]
cmp bl, 0x2f
je 0x324d97a
cmp bl, 0x2a
je 0x324d97a
or bl, 0x20
sub bl, 0x61
cmp bl, 0x19
ja case.default.0x324d903
pop esi
mov eax, 0x15
pop ebx
ret
mov al, bl
or al, 0x20
sub al, 0x61
cmp al, 0x19
jbe 0x324dad1
cmp bl, 0x3a
jne case.default.0x324d903
pop esi
mov eax, 0x16
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x324d903
pop esi
mov eax, 0x17
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x324d903
pop esi
mov eax, 0x18
pop ebx
ret
cmp bl, 0x40
je case.default.0x324d903
cmp bl, 0x2f
jne 0x324d982
pop esi
mov eax, 0x1b
pop ebx
ret
cmp bl, 0x3f
je 0x324da45
cmp bl, 0x40
jne 0x324d998
pop esi
mov eax, 0x1a
pop ebx
ret
mov al, bl
or al, 0x20
cmp al, 0x61
jb 0x324d9a4
cmp al, 0x7a
jbe 0x324da11
cmp bl, 0x30
jl 0x324d9ae
cmp bl, 0x39
jle 0x324da11
cmp bl, 0x2d
je 0x324da11
cmp bl, 0x5f
je 0x324da11
cmp bl, 0x2e
je 0x324da11
cmp bl, 0x21
je 0x324da11
cmp bl, 0x7e
je 0x324da11
cmp bl, 0x2a
je 0x324da11
cmp bl, 0x27
je 0x324da11
cmp bl, 0x28
je 0x324da11
cmp bl, 0x29
je 0x324da11
cmp bl, 0x25
je 0x324da11
cmp bl, 0x3b
je 0x324da11
cmp bl, 0x3a
je 0x324da11
cmp bl, 0x26
je 0x324da11
cmp bl, 0x3d
je 0x324da11
cmp bl, 0x2b
je 0x324da11
cmp bl, 0x24
je 0x324da11
cmp bl, 0x2c
je 0x324da11
cmp bl, 0x5b
je 0x324da11
cmp bl, 0x5d
jne case.default.0x324d903
pop esi
mov eax, 0x19
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x33b5550], al
jne 0x324dad1
cmp bl, 0x23
je 0x324da79
cmp bl, 0x3f
jne case.default.0x324d903
pop esi
mov eax, 0x1c
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x33b5550], al
jne 0x324da71
cmp bl, 0x23
je 0x324da79
cmp bl, 0x3f
jne case.default.0x324d903
pop esi
mov eax, 0x1d
pop ebx
ret
pop esi
mov eax, 0x1e
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x33b5550], al
jne 0x324daa5
cmp bl, 0x23
je 0x324dad1
cmp bl, 0x3f
jne case.default.0x324d903
pop esi
mov eax, 0x1f
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x33b5550], al
jne 0x324dad1
cmp bl, 0x23
je 0x324dad1
cmp bl, 0x3f
jne case.default.0x324d903
mov eax, esi
pop esi
pop ebx
ret
pop esi
mov eax, 1
pop ebx
ret
Function at 0x324ec40
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
mov ebp, dword [esp + 0x21c]
lea eax, [esp + 0xc]
push edi
push 0x208
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.0338e220
add esp, 0xc
mov dword [esp + 8], 0x208
mov dword [ebp], 0
push str.GlobalWSLibDefProxyMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x324ecc8
push 0x2719
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
add esp, 8
pop edi
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0338ca36
add esp, 0x214
ret
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x324ecfb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0x6e
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0338ca36
add esp, 0x214
ret
push esi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesVSSERV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x324ed2e
push 0x271a
push eax
call fcn.03257780
add esp, 8
mov esi, eax
jmp 0x324edf7
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.ImagePath
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x324ed63
push 2
push esi
call fcn.03257780
add esp, 8
mov esi, eax
jmp 0x324edf7
xor eax, eax
mov word [esp + 0x21a], ax
lea eax, [esp + 0x14]
push str.vsserv
push eax
call fcn.0338e37a
add esp, 8
test eax, eax
jne 0x324ed88
lea esi, [eax + 2]
jmp 0x324edf7
xor ecx, ecx
mov word [eax], cx
lea ecx, [esp + 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x324ed94
sub ecx, edx
sar ecx, 1
push ebx
mov dword [esp + 0x10], ecx
lea eax, [ecx*2 + 0x20]
push eax
call fcn.0339076d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x324edc3
lea esi, [eax + 0xc]
jmp 0x324edf6
mov eax, dword [esp + 0x10]
add eax, eax
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0338dca0
movups xmm0, xmmword [str.LBWSDftPxyz.dat]
mov eax, dword [esp + 0x1c]
add esp, 0xc
movups xmmword [ebx + eax*2], xmm0
movups xmm0, xmmword [0x33b5d78]
movups xmmword [ebx + eax*2 + 0x10], xmm0
mov dword [ebp], ebx
pop ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x324ee06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.0338ca36
add esp, 0x214
ret
Function at 0x32569e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x3256a54
push esi
push 0x2714
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.03257780
mov esi, eax
push esi
call fcn.03248910
push eax
push esi
push str.wsa_init
push 0x23
push str..._srcwindll_main.c
push str.__s:_d__ERR___s:__LITTLE_DNS_CREATE_FAILED__WSAStartup_:__d____s___r_n
push 0
call fcn.0325f280
add esp, 0x28
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov dword [0x341650c], 1
call fcn.0338ca36
add esp, 0x194
ret
Function at 0x32572b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x32572fb
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
add esp, 8
mov edi, eax
jmp 0x325737d
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x3257323
cmp ebp, eax
ja 0x325731c
cmp dword [esp + 0x10], esi
je 0x3257323
mov edi, 0x4b
jmp 0x3257378
lea eax, [ebp + 1]
push eax
call fcn.0339076d
mov esi, eax
add esp, 4
test esi, esi
jne 0x325733a
lea edi, [eax + 0xc]
jmp 0x3257378
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3257362
cmp ebp, dword [esp + 0x10]
jne 0x3257362
mov eax, dword [esp + 0x1c]
mov byte [esi + ebp], 0
mov dword [eax], esi
xor esi, esi
jmp 0x3257378
push 0x271b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
add esp, 8
mov edi, eax
pop ebp
test ebx, ebx
je 0x3257384
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x3257391
push esi
call fcn.03390752
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x32573a0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x32574eb
cmp word [esi], 0
je 0x32574eb
cmp dword [esp + 0x14], 0
je 0x32574eb
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x32574eb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x32573d5
sub ecx, edx
sar ecx, 1
push ebx
push edi
lea edi, [ecx + 0x20]
lea eax, [edi + edi]
push eax
call fcn.0339076d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x32574e0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str._s.tmp._d
push edi
push ebx
call fcn.03257750
add esp, 0x14
xor edi, edi
push edi
push 0x80
push 2
push edi
push 7
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
jne 0x3257451
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
call ebp
push eax
call fcn.03257780
add esp, 8
mov edi, eax
jmp 0x325749f
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x3257478
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
je 0x325748a
push 0x271c
call ebp
push eax
call fcn.03257780
add esp, 8
mov edi, eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x32574a3
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x32574cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x32574cf
push 0x271c
call ebp
push eax
call fcn.03257780
add esp, 8
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.03390752
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop edi
pop ebx
pop esi
mov eax, 0xc
pop ebp
pop ecx
ret
pop esi
mov eax, 0x16
pop ebp
pop ecx
ret

Function at 0x3257570
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x32575cf
push dword [esp + 0x10]
push str.get_file_size
push 0x90
push str..._srcwin_file_io.c
push str.__s:_d__ERR___s:_cannot_open_file__S_n
push 0
call fcn.0325f280
add esp, 0x18
push 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.03257780
add esp, 8
pop esi
add esp, 8
ret
lea eax, [esp + 4]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push esi
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x325ad20
Capabilities:
Create thread

Disassembly:
push esi
push 0x28
call fcn.0339076d
mov esi, eax
add esp, 4
test esi, esi
jne 0x325ad33
pop esi
ret
push esi
call fcn.0325b0f0
add esp, 4
test eax, eax
jne 0x325ad79
push eax
push 0x10000
push esi
push 0x325adb0
push 0x200000
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x325ad8a
push str.network_awareness_create_th
push 0x49
push str..._srcwin_net_awareness.c
push str.__s:_d__ERR___s:_failed_to_create_network_awareness_thread_n
push eax
call fcn.0325f280
add esp, 0x14
push esi
call fcn.0325b360
push esi
call fcn.03390752
add esp, 8
xor esi, esi
mov eax, esi
pop esi
ret
Function at 0x325b0f0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
lea eax, [esi + 0x10]
mov dword [esi + 4], 0xffffffff
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x325b18d
push 0x2714
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.03257780
mov esi, eax
push esi
call fcn.03248910
push eax
push esi
push str.network_awareness_init
push 0x21
push str..._srcwin_net_awareness.c
push str.__s:_d__ERR___s:_WSAStartup_:__d____s___r_n
push 0
call fcn.0325f280
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret
push 0x11
push 2
push 2
mov dword [esi], 1
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x325b1f5
push 0x2716
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.03257780
mov esi, eax
push esi
call fcn.03248910
push eax
push esi
push str.network_awareness_init
push 0x2a
push str..._srcwin_net_awareness.c
push str.__s:_d__ERR___s:_socket_error__d____s___r_n
push 0
call fcn.0325f280
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
jne 0x325b250
push 0x2717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.03257780
mov esi, eax
push esi
call fcn.03248910
push eax
push esi
push str.network_awareness_init
push 0x31
push str..._srcwin_net_awareness.c
push str.__s:_d__ERR___s:_WSACreateEvent:__d____s___r_n
push 0
call fcn.0325f280
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret
push 0x323
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x325b2b1
push 0x2717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.03257780
mov esi, eax
push esi
call fcn.03248910
push eax
push esi
push str.network_awareness_init
push 0x36
push str..._srcwin_net_awareness.c
push str.__s:_d__ERR___s:_WSAEventSelect:__d____s___r_n
push 0
call fcn.0325f280
add esp, 0x28
mov eax, esi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret
push 0x100
push 0x200
push 2
push 1
push 0x20
push 0x323
push str.network_awareness_init
push 0x3b
push str..._srcwin_net_awareness.c
push str.__s:_d___s:_event_set_for__x___FD_CLOSE__x__FD_READ__x__FD_WRITE__x__FD_ADDRESS_LIST_CHANGE___x__FD_ROUTING_INTERFACE_CHANGE__x___n
push 2
call fcn.0325f280
push esi
call fcn.0325b040
push esi
call fcn.0325af70
mov ecx, dword [esp + 0x1c8]
add esp, 0x34
xor eax, eax
pop esi
xor ecx, esp
call fcn.0338ca36
add esp, 0x194
ret