joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b635
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x44b645
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x44b685
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x44b76a
Capabilities:
Create thread

Disassembly:
push 0x20
mov eax, 0x52f6df
call fcn.004e49d2
mov esi, ecx
push ecx
push dword [esi + 4]
lea ecx, [ebp - 0x2c]
call fcn.0045c8f0
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
push edi
push 0x20
call dword [eax]
test eax, eax
jne 0x44b7d6
push 0x80
mov ecx, esi
call fcn.0044b7e6
push edi
push edi
push esi
push 0x44b842
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x44b7d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x5b51b8
push edi
push edi
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0045c98b
call fcn.004e497c
ret 4
Function at 0x459398
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5df390]
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 0x459462
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050e45b
pop ecx
pop ecx
test eax, eax
jne 0x459454
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 0x459422
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x459447
push dword [ebp - 0x234]
push str.TerminateProcess_failed_for_process_with_name__s
push 0
push 0
call fcn.0043a0a0
push str.Please_terminate_this_process_manually
push 0
push 0
call fcn.0043a0a0
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 0x4593de
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x4598a5
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x531d91
call fcn.004e49d2
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 [0x5ea5e8]
cmp eax, dword [esi + 0x139c]
jle 0x459905
mov esi, 0x5ea5e8
push esi
call fcn.004e3f82
cmp dword [0x5ea5e8], 0xffffffff
pop ecx
jne 0x459905
and dword [ebp - 4], 0
call fcn.004595b9
push 0x53b7f3
call fcn.004e45f2
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
call fcn.004e3f43
pop ecx
cmp dword [0x5ea5fc], 0
jne 0x459915
xor al, al
jmp 0x4599c0
push 0x5ea5ec
lea ecx, [ebp - 0x2c]
call fcn.0042669f
mov dword [ebp - 4], 1
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x45998f
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
lea ecx, [ebp - 0x44]
call fcn.0042669f
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ac92
cmp byte [ebp - 0x45], 0
je 0x459978
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 0x459978
call ebx
cmp eax, 0xb7
jne 0x4599c6
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00427ba9
add esi, 0x18
cmp esi, edi
jne 0x459938
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00420367
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00427b2c
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00427ba9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00427ba9
mov al, bl
call fcn.004e497c
ret
call ebx
push eax
push str.GetPsiphonDataPath
push str._s___create_directory_failed___d_
xor ebx, ebx
push ebx
push ebx
call fcn.0043a0a0
add esp, 0x14
lea ecx, [ebp - 0x44]
push ebx
push 1
call fcn.00427ba9
jmp 0x4599b2

Function at 0x4599ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5df390]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x459a10
mov eax, dword [esi]
jmp 0x459a12
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 0x459a46
test eax, eax
je 0x459a46
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0045cf97
mov al, 1
jmp 0x459a6a
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.0043a0a0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x459b3a
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x531dc6
call fcn.004e49d2
mov esi, edx
mov edi, ecx
cmp esi, 0xa
jle 0x459b72
push esi
push 0x137
push str.GetUniqueTempDir
push str._s:_d___depth_too_large:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
xor al, al
jmp 0x459c73
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], edx
jb 0x459b81
mov eax, dword [edi]
jmp 0x459b83
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.004599ec
test al, al
jne 0x459bc1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x140
push str.GetUniqueTempDir
push str._s:_d___GetSysTempPath_failed:__d
jmp 0x459c8f
test esi, esi
jle 0x459c43
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 0x459c43
push ebx
lea ecx, [ebp - 0x40]
call fcn.00459aff
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042ac92
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00427ba9
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
cmp dword [eax + 0x14], 8
jb 0x459c16
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.00427ba9
add bl, 1
jne 0x459c79
mov ebx, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x44], ebx
cmp ebx, esi
mov ebx, dword [ebp - 0x48]
jl 0x459bdb
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00446be8
push eax
mov ecx, edi
call fcn.00427b2c
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00427ba9
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00427ba9
mov al, bl
call fcn.004e497c
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.0043a0a0
add esp, 0x18
xor bl, bl
jmp 0x459c65

Function at 0x459f2d
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 0x459f3e
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 0x459f8f
cmp dword [edi + 0x14], 0x10
lea ebx, [edi + 0x10]
jb 0x459f69
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 0x459f8f
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x459f8f
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x459fc3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x459faa
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
push 0x5b6d74
push str._s___write_file_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459fca
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 [0x5df390]
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 0x45a15d
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 0x45a13d
add ecx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
xor esi, esi
cmp eax, ecx
jae 0x45a13d
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 0x45a0f2
push 0x10
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x45a0f2
push 0x10
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x45a0f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45a0f2
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 0x45a0f2
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x45a0f2
test byte [esp + 0x34], 0x10
je 0x45a0f2
cmp dword [esp + 0x48], esi
je 0x45a142
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45a106
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x45a12f
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
test ecx, ecx
je 0x45a11c
mov eax, dword [ecx]
push esi
push dword [edx + 4]
call dword [eax]
test eax, eax
jne 0x45a136
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, ebx
jb 0x45a13d
mov ecx, dword [esp + 0x20]
jmp 0x45a068
mov esi, 0x24f
jmp 0x45a142
mov esi, 0x3e3
jmp 0x45a142
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 0x45a162
mov eax, 0x704
mov ecx, dword [esp + 0x1f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3e0d
mov esp, ebp
pop ebp
ret
Function at 0x45c6c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x53239c
call fcn.004e499e
mov esi, edx
push dword [0x5e77b0]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x45c702
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_OpenClipboard_failed:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x14
xor al, al
jmp 0x45c7fd
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x45c727
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_EmptyClipboard_failed:__d
jmp 0x45c7e6
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 0x45c75b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalAlloc_failed:__d
jmp 0x45c7e6
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x45c77e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.CopyToClipboard
push str._s:_GlobalLock_failed:__d
jmp 0x45c7e6
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
jb 0x45c78b
mov esi, dword [esi]
add eax, eax
push eax
push esi
push ecx
call fcn.004fd330
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 0x45c7cc
call esi
test eax, eax
je 0x45c7cc
call esi
push eax
push str.CopyToClipboard
push str._s:_GlobalUnlock_failed:__d
jmp 0x45c7e6
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x45c7f3
call esi
push eax
push str.CopyToClipboard
push str._s:_SetClipboardData_failed:__d
push 1
push ebx
call fcn.0043a0a0
add esp, 0x14
jmp 0x45c7f5
mov bl, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.004e4967
ret

Function at 0x45c877
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 [0x5e77ac]
and dword [edi], 0
and dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45c8ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___FindResource_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x10
xor al, al
jmp 0x45c8eb
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x45c8d5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetResourceBytes___LoadResource_failed___d_
jmp 0x45c8aa
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 0x45c9fe
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x532415
call fcn.004e49d2
push 0x105
lea eax, [ebp - 0x220]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x45caaf
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x250]
call fcn.00426582
push 0x5b7fcc
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.004250a2
or dword [ebp - 4], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
call fcn.00427ba9
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.00427ba9
test edi, edi
je 0x45caaf
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45caa8
push 2
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, esi
call fcn.004e497c
ret
Function at 0x45cbf0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x50
mov eax, 0x532478
call fcn.004e49d2
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 0x45cd14
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 0x45cc61
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 0x45cce3
mov eax, dword [ebp - 0x44]
jmp 0x45cc09
test edi, edi
jne 0x45cce3
mov eax, esi
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x45ccd4
push 2
pop edx
mov ecx, dword [ebx + 0xc]
cmp word [ecx], dx
jne 0x45ccca
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 0x45ccc7
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0042738f
and dword [ebp - 4], 0
mov ecx, esi
push eax
call fcn.00424286
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00427ba9
push 2
pop edx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45cc77
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 8]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x45cc6d
mov esi, dword [ebp - 0x50]
jmp 0x45ccfa
push edi
push str.GetLocalIPv4Addresses
push str._s___GetAdaptersAddresses_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x14
test esi, esi
je 0x45cd0e
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call fcn.004e497c
ret
push str.GetLocalIPv4Addresses
push str._s___HeapAlloc_failed
push 0
push 0
call fcn.0043a0a0
add esp, 0x10
lea ecx, [ebp - 0x5c]
push str.GetLocalIPv4Addresses:2192:_memory_allocation_failed
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0x5c]
push eax
call fcn.004fda0a
int3
Function at 0x4750b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528b46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5df390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.0050c82a
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4750ff
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x475110
push 0x44
push esi
call fcn.004e460c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x47ce10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5341c9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5df390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [0x5e7884], 0
jne 0x47ce5d
call fcn.0046eac0
mov dword [0x5e7884], 0x464210
mov esi, dword [ebp + 8]
mov ecx, 2
mov dword [esi], vtable.CryptoPP::Integer.0
mov dword [esi + 8], 2
call fcn.00473e30
mov ecx, 8
call fcn.0047ed50
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
push 1
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov ecx, edi
push dword [ebp + 0xc]
mov edx, dword [edi]
push esi
mov dword [ebp - 0x10], 1
call dword [edx + 0x30]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a9456
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5385c7
call fcn.004e49d2
mov esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
cmp ecx, ebx
sete al
test al, al
je 0x4a9482
xor eax, eax
cmp ecx, ebx
cmovne eax, ecx
jmp 0x4a95e3
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4a94b0
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4a94b0
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x4a95e3
cmp dword [esi + 0x4c], 0
je 0x4a95e1
mov ecx, esi
call fcn.004a90cf
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x4a94e0
push dword [esi + 0x4c]
mov esi, dword [ebp + 8]
push esi
call fcn.004a8557
test al, al
pop ecx
pop ecx
cmovne ebx, esi
jmp 0x4a95e1
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x14], 0xf
call fcn.00416bc9
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp edi, 0x10
lea edx, [ebp - 0x28]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call dword [edi + 0x1c]
test eax, eax
js 0x4a95d5
cmp eax, 1
jg 0x4a95ba
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x3c], edx
je 0x4a958b
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0050fd41
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, eax
jne 0x4a95d5
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x40], eax
jne 0x4a95b5
test edx, edx
jne 0x4a950b
cmp dword [ebp - 0x18], 0x20
jae 0x4a95d5
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.00416d26
jmp 0x4a9508
mov ebx, dword [ebp + 8]
jmp 0x4a95d5
cmp eax, 3
jne 0x4a95d5
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.004a8557
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
mov eax, ebx
call fcn.004e497c
ret 4