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

Disassembly:
mov eax, dword [0x4b63d0]
cmp eax, 0x270
jl 0x4434a4
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4c532c]
xor eax, dword [ecx + 0x4c5328]
and eax, esi
xor eax, dword [ecx + 0x4c5328]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4b63d4]
xor eax, dword [ecx + 0x4c595c]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4c5328], eax
jl 0x4433fe
cmp edx, 0x26f
jge 0x443476
lea ecx, [edx*4 + 0x4c5328]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x4b63d4]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x4c5ce4
jl 0x443449
mov ecx, dword [0x4c5ce4]
mov eax, dword [0x4c5328]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x4b63d4]
pop edi
xor eax, dword [0x4c5958]
pop esi
mov dword [0x4c5ce4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4c5328]
inc eax
mov dword [0x4b63d0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x444238
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
lea ebx, [esi + 4]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, str.UuidCreateSequential
mov ecx, 0x4983d8
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
call fcn.00445c1c
test eax, eax
je 0x44427a
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
jne 0x44427a
lea esi, [ebp - 0x12]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 4]
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0xa]
push eax
push edi
push edi
push 0x4983d4
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
push ebx
push 0xe
pop edx
mov ecx, esi
call fcn.004395fc
push ebx
push 0xa
pop edx
mov ecx, ebx
call fcn.004395fc
lea eax, [ebp - 0x30]
push eax
push 4
pop edx
mov ecx, esi
call fcn.004395fc
xor eax, eax
mov ecx, dword [ebp + eax - 0x30]
add dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x14
jne 0x4442bd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44436b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
and dword [eax], 0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
call fcn.004461cb
mov ebx, eax
test ebx, ebx
je 0x44446e
cmp byte [ebx], 0x64
push edi
jne 0x44446b
cmp dword [esi], 0x39
jb 0x44446b
push 0x11
pop ecx
mov edi, str.d10:.fileguard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4443ca
push 0x11
pop ecx
mov edi, str.d10:file_guard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x44446b
push 0xa
pop ecx
lea esi, [ebx + 0x11]
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
push 0x28
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x34], 0
call fcn.00414855
test al, al
jne 0x4443f1
mov eax, str.malformed_guard
jmp 0x44442c
mov esi, dword [ebp - 8]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_memmove
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.004395fc
push 5
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x30]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x44446b
mov eax, str.hash_doesnt_match
push dword [ebp - 4]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.00488f98
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.00488f98
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, 0x498410
call fcn.00444103
push 0
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea ecx, [ebp + 8]
call fcn.0043b2c4
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x444601
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x444636
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x44461c
inc ecx
cmp dword [esp + 0x14], 0
je 0x444626
or ecx, 2
test eax, ecx
je 0x444636
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop edi
pop esi
ret 0xc
Function at 0x44528f
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
push str.ReplaceFileW
push 0x490fb0
mov edi, edx
mov dword [ebp - 8], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
je 0x44534f
push dword [0x4c492c]
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
push eax
push edi
push str._s._u.tmp
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0043c65e
push edi
push str._s.new
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0043c65e
add esp, 0x28
push 0
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 0
push 2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call dword [ebp - 4]
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x44534f
push 4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
leave
ret

Function at 0x445c43
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi], 0x22
jne 0x445c58
inc edi
inc edi
push 0x22
lea eax, [edi + 2]
push eax
jmp 0x445c5b
push 0x20
push edi
call sub.MSVCRT.dll_wcschr
mov esi, eax
pop ecx
xor ebx, ebx
pop ecx
test esi, esi
je 0x445c74
movzx ebx, word [esi]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 5
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test esi, esi
je 0x445c8c
mov word [esi - 2], bx
pop edi
pop esi
pop ebx
ret

Function at 0x445d25
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
mov esi, 0x104
or edi, 0xffffffff
push esi
lea edx, [ebp - 0x418]
mov dword [ebp - 4], edi
call fcn.00444647
test al, al
jne 0x445d4f
mov edx, edi
jmp 0x445dc8
push esi
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x445d4b
push 5
lea eax, [ebp - 0x210]
push str.FAT32
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x445dc2
push 3
lea eax, [ebp - 0x210]
push 0x498c8c
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x445dbd
push 5
lea eax, [ebp - 0x210]
push str.FAT16
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x445dc5
mov edi, 0x7ffa8000
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x44600e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
push 0x438
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov ebx, eax
call fcn.00445fc1
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
test al, al
je 0x44607d
mov eax, str.Sysnative..explorer.exe
lea edx, [ebp + ebx*2 - 0x43c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x446050
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x43c]
push eax
push edi
push edi
call esi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov eax, ecx
cmp eax, edi
je 0x4460b4
mov eax, str.explorer.exe
lea edx, [ebp + ebx*2 - 0x43c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x44608b
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x43c]
push eax
push edi
push edi
call esi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov eax, ecx
xor ecx, ecx
cmp eax, edi
pop edi
sete cl
pop esi
mov al, cl
pop ebx
leave
ret

Function at 0x44624e
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
call fcn.004458fa
movzx ebx, al
mov eax, 0x48e94c
test ebx, ebx
je 0x446279
mov eax, str..new
push eax
push edi
push 0x48ef58
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0043c65e
add esp, 0x14
push 7
pop edx
lea ecx, [ebp - 0x210]
call fcn.004454db
mov esi, eax
cmp esi, 0xffffffff
jne 0x4462ad
xor al, al
jmp 0x446315
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.00445545
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
cmp ebx, esi
je 0x446300
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0044528f
movzx eax, al
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x446300
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp + 8], esi
jne 0x446313
cmp dword [ebp - 4], esi
jne 0x44630e
cmp ebx, esi
jne 0x446313
xor eax, eax
inc eax
jmp 0x446315
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44631c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x44632c
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx + 2]
mov eax, edi
call section..text
mov esi, esp
push edi
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x5c
pop edi
cmp word [esi], di
jne 0x446379
cmp word [esi + 2], di
jne 0x446379
lea eax, [esi + 4]
cmp word [eax], 0x3f
jne 0x44638c
cmp word [esi + 6], di
jne 0x44638c
add esi, 8
cmp ebx, 3
jl 0x446388
cmp word [esi + 2], 0x3a
jne 0x446388
add esi, 6
mov ecx, esi
jmp 0x4463d2
push 2
pop ecx
mov esi, eax
movzx eax, word [esi]
inc esi
inc esi
cmp ax, di
jne 0x44639e
dec ecx
je 0x446388
test ax, ax
jne 0x446391
xor al, al
jmp 0x4463e1
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4463c3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4463a3
cmp word [esi], 0
mov eax, edi
mov word [esi - 2], ax
je 0x4463df
lea ecx, [esi + 2]
mov edx, edi
call fcn.0043ab86
mov esi, eax
test esi, esi
jne 0x4463a7
mov al, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4463e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
push dword [ebp + 0xc]
mov ebx, ecx
call fcn.004455d7
test eax, eax
jne 0x446439
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44641f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x446438
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x446436
sub esi, eax
push esi
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x44669e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov eax, edx
push esi
mov ebx, ecx
push edi
mov edx, 0x498da4
mov ecx, eax
call fcn.00444f48
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ecx, esi
mov edi, eax
call fcn.00444521
cmp edi, 0xffffffff
je 0x44671a
cmp byte [ebp + 8], 0
jne 0x4466e8
cmp word [ebp - 0x228], 0x2e
je 0x446701
lea ecx, [ebp - 0x228]
call fcn.00444d11
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00446672
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4466d8
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4478fe
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x87c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x14]
push esi
push edi
test ecx, ecx
je 0x4479af
cmp word [ecx + 0x3d], 0x18
jne 0x447936
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebx + 4]
call fcn.00447327
jmp 0x4479fa
lea ecx, [ebp + 0x40]
call fcn.00439633
mov eax, dword [ebx + 4]
lea ecx, [ebp + 0x74]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0x7d0
lea ecx, [ebp - 0x810]
push ecx
push eax
mov dword [ebp + 0x74], 0x80
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x447985
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x56]
call fcn.004396bf
lea esi, [ebp + 0x56]
lea edi, [ebp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, dword [ebx + 0x14]
add ebx, 0xd5
push ebx
lea ecx, [ebp + 0x40]
call fcn.004397b5
test al, al
jne 0x4479a0
or eax, 0xffffffff
jmp 0x4479fa
mov eax, dword [ebp + 0x78]
inc eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x78]
jmp 0x4479fa
call fcn.00404bb9
test al, al
jne 0x44799b
mov ebx, dword [ebx + 4]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp + 0x78]
mov dword [ebp + 0x68], 0x80
push dword [ebp + 0x74]
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4479f8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x56]
call fcn.004396bf
mov edi, dword [ebp + 0x7c]
lea esi, [ebp + 0x56]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x447af2
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x19c
push ebx
push esi
mov esi, dword [ebp + 0x78]
movzx eax, word [esi + 0x10]
push eax
mov dword [ebp + 0x60], ecx
mov byte [ebp - 0xb6], 0
mov byte [ebp - 0xb7], 0
mov byte [ebp - 0xb8], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x7c], 0
movzx ebx, ax
mov dword [ebp + 0x78], ebx
je 0x447b70
mov eax, dword [ebp + 0x7c]
mov byte [ebp - 0xb5], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447b3e
sub eax, edx
mov ebx, eax
push ebx
push dword [ebp + 0x7c]
lea eax, [ebp - 0xb3]
push eax
mov byte [ebp - 0xb4], bl
call sub.MSVCRT.dll_memcpy
mov ax, word [ebp + 0x78]
add esp, 0xc
mov word [ebp + ebx - 0xb3], ax
jmp 0x447bae
mov ecx, esi
call fcn.00404a13
test al, al
je 0x447b94
mov eax, dword [esi + 0xc]
mov byte [ebp - 0xb5], 1
mov dword [ebp - 0xb4], eax
mov word [ebp - 0xb0], bx
jmp 0x447bae
push edi
mov byte [ebp - 0xb5], 4
lea edi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0xa4], bx
pop edi
lea eax, [ebp - 0xb8]
mov ecx, eax
mov dword [ebp + 0x54], eax
call fcn.004472b2
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x138]
push eax
add ecx, 0xd5
call fcn.0042665d
xor esi, esi
push esi
push esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x138]
push eax
push esi
lea eax, [ebp + 0x7c]
push eax
push 2
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x7c], esi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, esi
mov esi, eax
jne 0x447c14
mov esi, dword [ebp + 0x7c]
or eax, 0xffffffff
cmp esi, eax
je 0x447c34
lea ecx, [ebp - 0xb8]
call fcn.004472b2
mov ecx, eax
cmp esi, ecx
jg 0x447c30
xor eax, eax
jmp 0x447c34
mov eax, esi
sub eax, ecx
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x447e8a
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x48]
push edi
mov ecx, esi
call fcn.004397b5
test al, al
je 0x447eb0
cmp word [esi + 0x10], 0
jne 0x447fa6
cmp dword [ebx + 4], 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x447ec5
push 0
mov ecx, ebx
call fcn.0042a9ea
push 0
push 2
lea ecx, [ebx + 0x48]
call fcn.00404a13
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0042a9a3
cmp dword [ebx + 4], 0xffffffff
je 0x447fa6
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0042afe5
cmp eax, 0xffffffff
jne 0x447f21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
call fcn.004295d5
push eax
push edi
push esi
push str.UDP_port_bind_failed__A:___d___s
call fcn.00488f98
add esp, 0x10
jmp 0x447f33
cmp word [esi + 0x10], 0
jne 0x447f33
mov ecx, ebx
call fcn.004294f5
mov word [ebx + 0x58], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x447f72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.00488fd1
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push edi
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x447f9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.00488fd1
add esp, 0xc
mov ecx, ebx
call fcn.0042947c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44c727
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push esi
mov esi, ecx
cmp byte [esi + 0x50], 0
push edi
je 0x44c74d
push 0x44b264
push 0x10
push 0x10
push 3
call fcn.0044b3c3
mov dword [esi + 0x44], eax
push 0x44c5fa
push 9
push 9
push 2
mov ecx, esi
call fcn.0044b3c3
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x44c77f
mov word [ebp - 0x208], ax
push 0x4011
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00468707
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x4b8]
push 0x4013
mov dword [esi + 0x54], eax
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.00468707
mov eax, dword [ebp - 0x4b8]
pop edi
mov dword [esi + 0x58], eax
pop esi
leave
ret
Function at 0x44ed6c
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov esi, ecx
xor ebx, ebx
jmp 0x44ee47
cmp eax, 0xffffffff
je 0x44ee47
cmp dword [esi + 0x10], ebx
je 0x44ee2b
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0x100]
cmp ecx, 9
ja 0x44ee2b
cmp byte [esi + 0xc], bl
jne 0x44ee47
cmp eax, 0x100
jne 0x44edcd
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x10]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x14]
test eax, eax
jne 0x44ee47
cmp dword [ebp - 0x1c], 0x101
jne 0x44edeb
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x10]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffc
pop edx
call dword [eax + 0x14]
test eax, eax
jne 0x44ee47
lea eax, [ebp - 4]
push eax
push 0x44ecab
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
jne 0x44ee2b
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x14]
jne 0x44ee1c
cmp dword [ebp - 0x1c], 0x100
jne 0x44ee2b
cmp dword [ebp - 0x18], 9
jne 0x44ee2b
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x44ee47
lea ecx, [ebp - 0x20]
call fcn.0041dfe5
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call edi
cmp eax, ebx
jne 0x44ed84
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44f59d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [ecx + 8], 0xffffff96
jne 0x44f5ab
mov ecx, dword [ecx + 0x20]
jmp fcn.0043ad70
mov eax, dword [ecx + 0x20]
ret

Function at 0x44f66f
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [0x4c61f4], eax
push 0
mov edx, esi
mov ecx, 0x44ecea
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
call fcn.00452076
push dword [0x4c61f4]
push 0
push eax
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 4], eax
pop esi
ret 4
Function at 0x45005d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4500da
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x4500b6
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4500ba
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x4500d9
push esi
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4500d7
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8