joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43388c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x28
mov eax, 0x529fea
call fcn.004e4550
mov esi, ecx
push ecx
push dword [esi + 8]
lea ecx, [ebp - 0x2c]
call fcn.0045c49f
and dword [ebp - 4], 0
cmp dword [esi + 0x24], 0
je 0x4338ff
and dword [ebp - 0x34], 0
lea edi, [esi + 0x14]
xor bl, bl
cmp dword [edi + 0x14], 0x10
jb 0x4338c3
mov eax, dword [edi]
jmp 0x4338c5
mov eax, edi
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 1
push dword [esi + 0x24]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x433913
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x2d2
movzx eax, byte [esi + 4]
push str.HTTPSRequest::ValidateServerCert:_d___CryptStringToBinaryA_failed___d_
push eax
push 0
call fcn.00439ccd
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.0045c53a
mov al, bl
call fcn.004e44fa
ret 4
push 0x5e7266
push dword [ebp - 0x34]
call fcn.004e4239
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
jne 0x43393f
movzx eax, byte [esi + 4]
push str.ValidateServerCert:_memory_allocation_failed
push eax
push 0
call fcn.00439ccd
add esp, 0xc
jmp 0x4338ff
cmp dword [edi + 0x14], 0x10
jb 0x433947
mov edi, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push eax
push 1
push dword [esi + 0x24]
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x433971
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x2e2
jmp 0x4338eb
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp dword [eax + 8], edx
jne 0x4339a5
xor edi, edi
mov bl, 1
test edx, edx
je 0x4339a5
mov eax, dword [eax + 4]
mov ecx, esi
sub eax, esi
mov dword [ebp - 0x30], eax
mov al, byte [eax + ecx]
cmp al, byte [ecx]
jne 0x4339a3
mov eax, dword [ebp - 0x30]
inc edi
inc ecx
cmp edi, edx
jb 0x433991
jmp 0x4339a5
xor bl, bl
push 1
push esi
call fcn.004e418a
pop ecx
pop ecx
jmp 0x433901

Function at 0x435c1a
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax + 0x3c], 0
je 0x435c80
add eax, 0x2c
cmp dword [eax + 0x14], 8
jb 0x435c30
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x435c80
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi]
add eax, 0x2c
cmp dword [eax + 0x14], 8
jb 0x435c53
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x435c80
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xed
push str.LocalProxy::Cleanup::_lambda_52991c160c154cbdad19d351afea2101_::operator___
push str._s:_d___DeleteFile_failed:__d
push 1
push 0
call fcn.00439ccd
add esp, 0x18
mov eax, dword [esi]
and dword [eax + 0x3c], 0
add eax, 0x2c
pop esi
cmp dword [eax + 0x14], 8
jb 0x435c92
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
ret
Function at 0x435f62
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp dword [esi + 0x24], ecx
je 0x436158
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xa8], cl
jne 0x435f8e
test bl, bl
jne 0x435f8e
mov eax, ecx
jmp 0x435f91
xor eax, eax
inc eax
mov byte [esi + 0xa8], al
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x74], ecx
jne 0x435fab
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x74], eax
xor ecx, ecx
push ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push ecx
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x435fea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1d0
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_d___PeekNamedPipe_failed___d_
push 0
push 0
call fcn.00439ccd
add esp, 0x18
xor al, al
jmp 0x43615a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x436049
inc eax
push eax
call fcn.004e4198
and dword [esp + 0x18], 0
mov edi, eax
pop ecx
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push edi
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x436032
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1db
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_d___ReadFile_failed___d_
jmp 0x435fd7
mov eax, dword [esp + 0x14]
mov ecx, esi
push edi
mov byte [eax + edi], 0
call fcn.0043649a
push edi
call fcn.004e399c
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
cmp edi, dword [esi + 0x74]
jae 0x43605a
and dword [esi + 0x74], 0
test bl, bl
jne 0x436081
mov eax, dword [esi + 0x74]
add eax, dword [0x5e0de4]
cmp eax, edi
jb 0x436081
mov eax, dword [0x5e0de0]
cmp dword [esi + 0x7c], eax
jae 0x436081
cmp dword [esi + 0x84], eax
jb 0x436158
mov ecx, str.non_final
test bl, bl
mov eax, str.final
cmove eax, ecx
push eax
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_Sending__s_stats.
push 1
push 0
call fcn.00439ccd
mov ecx, dword [esi + 0x24]
lea edx, [esi + 0x80]
add esp, 0x14
mov eax, dword [ecx]
push dword [esi + 0x8c]
push dword [esi + 0x88]
push edx
lea edx, [esi + 0x78]
push edx
push ebx
call dword [eax]
push str.LocalProxy::ProcessStatsAndStatus
test al, al
je 0x436133
push str._s:_Stats_send_success
push 1
push 0
call fcn.00439ccd
lea eax, [esp + 0x24]
mov dword [0x5e0de0], 0x3e8
mov ebx, 0x493e0
push eax
mov dword [0x5e0de4], ebx
call fcn.0050c84e
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x78]
xor edx, edx
add esp, 0x14
div ebx
add dword [0x5e0de4], edx
call fcn.004367c6
lea ecx, [esi + 0x80]
call fcn.004367c6
and dword [esi + 0x88], 0
and dword [esi + 0x8c], 0
mov dword [esi + 0x74], edi
jmp 0x436158
push str._s:_Stats_send_failure
push 1
push 0
call fcn.00439ccd
add dword [0x5e0de4], 0x493e0
add esp, 0x10
add dword [0x5e0de0], 0x3e8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ace1
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push 0x1c
mov eax, 0x52fc8f
call fcn.004e4550
mov eax, dword fs:[0x2c]
or edi, 0xffffffff
mov esi, dword [eax]
mov eax, dword [0x5eb554]
cmp eax, dword [esi + 0x139c]
jle 0x44ad49
mov ebx, 0x5eb554
push ebx
call fcn.004e3b00
pop ecx
cmp dword [0x5eb554], edi
jne 0x44ad49
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x550335
call fcn.00414449
mov byte [ebp - 4], 1
call fcn.004d3de0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416721
push ebx
mov dword [ebp - 4], edi
call fcn.004e3ac1
pop ecx
mov eax, dword [0x5eb550]
mov ebx, 0x5ea1c8
cmp eax, dword [esi + 0x139c]
jle 0x44ad98
mov esi, 0x5eb550
push esi
call fcn.004e3b00
pop ecx
cmp dword [0x5eb550], edi
jne 0x44ad98
mov dword [ebp - 4], 2
call fcn.004d3de0
push 0x6c078965
push eax
mov ecx, ebx
mov dword [0x5eb54c], edi
call fcn.0044aeaf
push esi
mov dword [ebp - 4], edi
call fcn.004e3ac1
pop ecx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], edi
call fcn.0044afe3
pop ecx
call fcn.004e44fa
ret

Function at 0x44aeaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x44aec6
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x44b1ce
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x44b1d7
pop esi
ret
Function at 0x458f72
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5e0390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x230], 0x22c
push 2
mov dword [ebp - 0x234], edi
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
jmp 0x45903c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050e02d
pop ecx
pop ecx
test eax, eax
jne 0x45902e
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x458ffc
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x459021
push dword [ebp - 0x234]
push str.TerminateProcess_failed_for_process_with_name__s
push 0
push 0
call fcn.00439ccd
push str.Please_terminate_this_process_manually
push 0
push 0
call fcn.00439ccd
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x458fb8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e398b
mov esp, ebp
pop ebp
ret
Function at 0x45947f
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x5318c9
call fcn.004e4550
mov byte [ebp - 0x45], dl
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x5eb5e8]
cmp eax, dword [esi + 0x139c]
jle 0x4594df
mov esi, 0x5eb5e8
push esi
call fcn.004e3b00
cmp dword [0x5eb5e8], 0xffffffff
pop ecx
jne 0x4594df
and dword [ebp - 4], 0
call fcn.00459193
push 0x53b323
call fcn.004e4170
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
call fcn.004e3ac1
pop ecx
cmp dword [0x5eb5fc], 0
jne 0x4594ef
xor al, al
jmp 0x45959a
push 0x5eb5ec
lea ecx, [ebp - 0x2c]
call fcn.004262f0
mov dword [ebp - 4], 1
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x459569
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [ebp - 0x44]
call fcn.004262f0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042a8e3
cmp byte [ebp - 0x45], 0
je 0x459552
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x459552
call ebx
cmp eax, 0xb7
jne 0x4595a0
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.004277fa
add esi, 0x18
cmp esi, edi
jne 0x459512
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041ffd5
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0042777d
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004277fa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004277fa
mov al, bl
call fcn.004e44fa
ret
call ebx
push eax
push str.GetPsiphonDataPath
push str._s___create_directory_failed___d_
xor ebx, ebx
push ebx
push ebx
call fcn.00439ccd
add esp, 0x14
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.004277fa
jmp 0x45958c

Function at 0x4595c6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5e0390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4595ea
mov eax, dword [esi]
jmp 0x4595ec
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, 0xf6
ja 0x459620
test eax, eax
je 0x459620
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0045cb46
mov al, 1
jmp 0x459644
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x100
push str.GetSysTempPath
push str._s:_d___GetTempPath_failed:__d
push 1
push 0
call fcn.00439ccd
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e398b
mov esp, ebp
pop ebp
ret
Function at 0x459714
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x5318fe
call fcn.004e4550
mov esi, edx
mov edi, ecx
cmp esi, 0xa
jle 0x45974c
push esi
push 0x137
push str.GetUniqueTempDir
push str._s:_d___depth_too_large:__d
push 1
push 0
call fcn.00439ccd
add esp, 0x18
xor al, al
jmp 0x45984d
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x45975b
mov eax, dword [edi]
jmp 0x45975d
mov eax, edi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 7
pop ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edx
call fcn.004595c6
test al, al
jne 0x45979b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x140
push str.GetUniqueTempDir
push str._s:_d___GetSysTempPath_failed:__d
jmp 0x459869
test esi, esi
jle 0x45981d
push 0x50
pop eax
cdq
idiv esi
cmp eax, ebx
cmovg ebx, eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x48], ebx
test esi, esi
jle 0x45981d
push ebx
lea ecx, [ebp - 0x40]
call fcn.004596d9
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042a8e3
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.004277fa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004467ed
cmp dword [eax + 0x14], 8
jb 0x4597f0
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x40]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.004277fa
add bl, 1
jne 0x459853
mov ebx, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, esi
mov ebx, dword [ebp - 0x48]
jl 0x4597b5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004467ed
push eax
mov ecx, edi
call fcn.0042777d
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004277fa
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004277fa
mov al, bl
call fcn.004e44fa
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x153
push str.GetUniqueTempDir
push str._s:_d___CreateDirectory_failed:__d
push 1
push 0
call fcn.00439ccd
add esp, 0x18
xor bl, bl
jmp 0x45983f

Function at 0x459b07
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x14], 8
push ebx
push esi
push edi
mov edi, edx
jb 0x459b18
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x459b69
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x10]
jb 0x459b43
mov edi, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x459b69
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x459b69
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x459b9d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x459b84
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x5b7564
push str._s___write_file_failed___d_
push 0
push 0
call fcn.00439ccd
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459ba4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x5e0390]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [esp + 0x18], eax
push edi
test si, si
je 0x459d37
lea eax, [esp + 0x60]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 2
pop eax
push str.127.0.0.1
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esp + 0x10], eax
call esi
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x459d17
add ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
xor esi, esi
cmp eax, ecx
jae 0x459d17
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x459ccc
push 0x10
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x459ccc
push 0x10
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x459ccc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x459ccc
push esi
push 0x64
push 1
lea eax, [esp + 0x1c]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
jne 0x459ccc
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x459ccc
test byte [esp + 0x34], 0x10
je 0x459ccc
cmp dword [esp + 0x48], esi
je 0x459d1c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x459ce0
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x459d09
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
test ecx, ecx
je 0x459cf6
mov eax, dword [ecx]
push esi
push dword [edx + 4]
call dword [eax]
test eax, eax
jne 0x459d10
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, ebx
jb 0x459d17
mov ecx, dword [esp + 0x20]
jmp 0x459c42
mov esi, 0x24f
jmp 0x459d1c
mov esi, 0x3e3
jmp 0x459d1c
mov esi, 0x102
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
jmp 0x459d3c
mov eax, 0x704
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e398b
mov esp, ebp
pop ebp
ret
Function at 0x45c26f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x531ed4
call fcn.004e451c
mov esi, edx
push dword [0x5e87b0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x45c2b1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_OpenClipboard_failed:__d
push 1
push 0
call fcn.00439ccd
add esp, 0x14
xor al, al
jmp 0x45c3ac
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x45c2d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_EmptyClipboard_failed:__d
jmp 0x45c395
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x45c30a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalAlloc_failed:__d
jmp 0x45c395
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x45c32d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalLock_failed:__d
jmp 0x45c395
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
jb 0x45c33a
mov esi, dword [esi]
add eax, eax
push eax
push esi
push ecx
call fcn.004fced0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [eax]
push edi
mov word [ecx + eax*2], dx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x45c37b
call esi
test eax, eax
je 0x45c37b
call esi
push eax
push str.CopyToClipboard
push str._s:_GlobalUnlock_failed:__d
jmp 0x45c395
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x45c3a2
call esi
push eax
push str.CopyToClipboard
push str._s:_SetClipboardData_failed:__d
push 1
push ebx
call fcn.00439ccd
add esp, 0x14
jmp 0x45c3a4
mov bl, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.004e44e5
ret

Function at 0x45c426
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xa
push ecx
push dword [0x5e87ac]
and dword [edi], 0
and dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45c469
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___FindResource_failed___d_
push 0
push 0
call fcn.00439ccd
add esp, 0x10
xor al, al
jmp 0x45c49a
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x45c484
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___LoadResource_failed___d_
jmp 0x45c459
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x45c5ad
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x531f4d
call fcn.004e4550
push 0x105
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x45c65e
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.004261d3
push 0x5b87bc
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.00424cf3
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.004277fa
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push esi
push 1
lea ecx, [ebp - 0x238]
mov edi, eax
call fcn.004277fa
test edi, edi
je 0x45c65e
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45c657
push 2
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
call fcn.004e44fa
ret
Function at 0x45c79f
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x50
mov eax, 0x531fb0
call fcn.004e4550
mov dword [ebp - 0x4c], ecx
mov eax, 0x3a98
xor ebx, ebx
mov dword [ebp - 0x44], eax
push 2
pop edi
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45c8c3
lea eax, [ebp - 0x44]
push eax
push esi
push 0
push 0xe
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x45c810
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc ebx
cmp ebx, 3
jge 0x45c892
mov eax, dword [ebp - 0x44]
jmp 0x45c7b8
test edi, edi
jne 0x45c892
mov eax, esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x45c883
push 2
pop edx
mov ecx, dword [ebx + 0xc]
cmp word [ecx], dx
jne 0x45c879
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x16
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_inet_ntop]
test eax, eax
je 0x45c876
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00426fe0
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00423ed7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.004277fa
push 2
pop edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45c826
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x45c81c
mov esi, dword [ebp - 0x50]
jmp 0x45c8a9
push edi
push str.GetLocalIPv4Addresses
push str._s___GetAdaptersAddresses_failed___d_
push 0
push 0
call fcn.00439ccd
add esp, 0x14
test esi, esi
je 0x45c8bd
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.004e44fa
ret
push str.GetLocalIPv4Addresses
push str._s___HeapAlloc_failed
push 0
push 0
call fcn.00439ccd
add esp, 0x10
lea ecx, [ebp - 0x5c]
push str.GetLocalIPv4Addresses:2190:_memory_allocation_failed
call fcn.0040e6bb
push 0x5dc580
lea eax, [ebp - 0x5c]
push eax
call fcn.004fd5aa
int3