joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053a94
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x10074fab
call fcn.10059b82
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, ebx
mov dword [ebp - 0x30], esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10053ab3
sub eax, edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.1000a620
mov dword [ebp - 4], esi
cmp dword [ebp - 0x30], esi
jbe 0x10053bba
jmp 0x10053ae0
mov ebx, dword [ebp + 0xc]
movsx eax, byte [esi + ebx]
mov al, byte [eax + 0x10080808]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x10053af4
cmp al, 0xff
je 0x10053ae0
cmp al, 0xff
je 0x10053bba
movsx ecx, byte [esi + ebx]
mov cl, byte [ecx + 0x10080808]
inc esi
mov byte [ebp - 0x31], cl
cmp esi, dword [ebp - 0x30]
jae 0x10053b14
cmp cl, 0xff
je 0x10053afc
cmp cl, 0xff
je 0x10053bba
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.100088c0
jmp 0x10053b3c
mov ebx, dword [ebp + 0xc]
mov bl, byte [esi + ebx]
inc esi
cmp bl, 0x3d
je 0x10053bba
movsx eax, bl
mov bl, byte [eax + 0x10080808]
cmp esi, dword [ebp - 0x30]
jae 0x10053b58
cmp bl, 0xff
je 0x10053b39
cmp bl, 0xff
je 0x10053bba
mov al, byte [ebp - 0x31]
mov cl, bl
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.100088c0
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x10053bba
movsx eax, al
mov al, byte [eax + 0x10080808]
cmp esi, dword [ebp - 0x30]
jae 0x10053b99
cmp al, 0xff
je 0x10053b7c
cmp al, 0xff
je 0x10053bba
shl bl, 6
or bl, al
movzx eax, bl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.100088c0
cmp esi, dword [ebp - 0x30]
jb 0x10053add
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10006b90
lea ecx, [ebp - 0x2c]
call fcn.10006bc0
mov eax, dword [ebp - 0x38]
call fcn.10059c05
ret

Function at 0x10055232
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008e418]
jne 0x1005523c
repz ret
jmp fcn.1005e7b9
Function at 0x1006d736
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1005f641
and dword [ebp - 4], 0
cmp dword [0x10092230], 0
mov ebx, eax
jne 0x1006d7e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006d898
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1006d898
push eax
call fcn.1005f5cf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10092230], eax
call esi
push eax
call fcn.1005f5cf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10092234], eax
call esi
push eax
call fcn.1005f5cf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10092238], eax
call esi
push eax
call fcn.1005f5cf
pop ecx
mov dword [0x10092240], eax
test eax, eax
je 0x1006d7e7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1005f5cf
pop ecx
mov dword [0x1009223c], eax
mov eax, dword [0x1009223c]
cmp eax, ebx
je 0x1006d83f
cmp dword [0x10092240], ebx
je 0x1006d83f
push eax
call fcn.1005f64a
push dword [0x10092240]
mov esi, eax
call fcn.1005f64a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1006d83f
test edi, edi
je 0x1006d83f
call esi
test eax, eax
je 0x1006d836
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1006d836
test byte [ebp - 0xc], 1
jne 0x1006d83f
or dword [ebp + 0x10], 0x200000
jmp 0x1006d878
mov eax, dword [0x10092234]
cmp eax, ebx
je 0x1006d878
push eax
call fcn.1005f64a
pop ecx
test eax, eax
je 0x1006d878
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1006d878
mov eax, dword [0x10092238]
cmp eax, ebx
je 0x1006d878
push eax
call fcn.1005f64a
pop ecx
test eax, eax
je 0x1006d878
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10092230]
call fcn.1005f64a
pop ecx
test eax, eax
je 0x1006d898
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1006d89a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x104]
push str._s_btn.ini
push eax
call fcn.10001e30
push 0x1000823c
lea eax, [ebp - 0x104]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0x24
cmp dword [ebp - 4], 0
pop esi
je 0x10001e21
lea eax, [ebp - 0x104]
push eax
push 0xffffffffffffffff
push str.func
push str.Button
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x1000a414], eax
cmp eax, 0x64
je 0x10001e0c
or ecx, 0xffffffff
cmp eax, 0x6f
cmovne eax, ecx
mov dword [0x1000a414], eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10002170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x100021ce
lea eax, [ebp - 0x10]
xor esi, esi
sub edx, eax
nop word [eax + eax]
movzx eax, byte [ebx + esi + 0x20]
lea ecx, [ebp - 0x10]
add ecx, esi
xor al, byte [edx + ecx]
mov byte [ecx], al
movzx eax, byte [edi + esi + 1]
xor al, byte [ebx + esi + 0x21]
mov byte [ecx + 1], al
movzx eax, byte [edi + esi + 2]
xor al, byte [ebx + esi + 0x22]
mov byte [ecx + 2], al
movzx eax, byte [edi + esi + 3]
xor al, byte [ebx + esi + 0x23]
add esi, 4
mov byte [ecx + 3], al
cmp esi, 0x10
jl 0x10002190
lea edi, [ebp - 0x10]
mov esi, edi
lea eax, [ebp - 0x20]
xor edx, edx
sub esi, eax
nop word [eax + eax]
movzx eax, byte [ebx + edx + 0x10]
lea ecx, [ebp - 0x20]
add ecx, edx
xor al, byte [esi + ecx]
mov byte [ecx], al
movzx eax, byte [edi + edx + 1]
xor al, byte [ebx + edx + 0x11]
mov byte [ecx + 1], al
movzx eax, byte [ebx + edx + 0x12]
xor al, byte [edi + edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [ebx + edx + 0x13]
xor al, byte [edi + edx + 3]
add edx, 4
mov byte [ecx + 3], al
cmp edx, 0x10
jl 0x100021e0
push 0x200
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
push esi
push pe_nt_image_headers32
push ebx
call dword [0x1000a41c]
push 1
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
push esi
push 0x10
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
movups xmmword [ebp - 0x10], xmm0
call dword [0x1000a418]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401280
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x23
push 0x40
call esi
push 0x213
push 0x40
mov ebx, eax
call esi
mov ecx, dword [esp + 0x24]
mov ebp, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x213
push ebp
push 0x23
push ebx
push 0x7c088
mov byte [ebx + 0xa], 0xec
mov dword [ebx], 0
push ecx
mov dword [ebp], 0x200
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push 0x50804c
push edx
call fcn.0040d310
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x28]
lea esi, [ebp + 0x10]
mov ecx, 0x80
push ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebx
call esi
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4013c0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
lea ecx, [esp]
push edi
push eax
push str..PhysicalDrive_d
push ecx
call fcn.0040d310
lea edx, [esp + 0x10]
push edx
call fcn.00401260
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x4013fe
push str.OpenDevice_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
add esp, 0x14
ret
push ebx
mov ebx, dword [esp + 0x24]
push esi
push ebx
push edi
call fcn.00401280
mov esi, eax
add esp, 8
test esi, esi
je 0x401448
lea eax, [ebx + 0x14]
push 0x14
push eax
call fcn.00401320
lea ecx, [ebx + 0x36]
push 0x28
push ecx
call fcn.00401320
add ebx, 0x2e
push 8
push ebx
call fcn.00401320
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x14
ret
push str.IdentifyDevice_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x14
ret
Function at 0x4015f0
Capabilities:
Get storage device properties
Print debug messages

Disassembly:
mov eax, 0x1118
call fcn.0048e8e0
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1128]
lea ecx, [esp + 0x20]
push eax
push str..PhysicalDrive_d
push ecx
call fcn.0040d310
add esp, 0xc
xor esi, esi
lea edx, [esp + 0x20]
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
je 0x4017bc
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x124]
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push ecx
lea edx, [esp + 0x12c]
mov dword [esp + 0x1c], eax
push 0x1000
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x2d1400
push ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4017aa
mov eax, dword [esp + 0x13c]
cmp eax, 0xffffffff
je 0x4016ef
cmp eax, esi
je 0x4016ef
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.IOCTL_STORAGE_QUERY_PROPERTY
lea edi, [esp + eax + 0x128]
call esi
push edi
call esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x112c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x130]
mov edx, dword [esp + 0x1130]
test eax, eax
push ebp
je 0x40172e
lea edi, [esp + eax + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x138]
test ebp, ebp
je 0x401791
mov edi, 0x5080c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + ebp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1118
ret 0x10
push str.IOCTL_STORAGE_QUERY_PROPERTY_erro_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1118
ret 0x10
Function at 0x402550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xcc
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x4026b2
test esi, esi
je 0x4026b2
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0
push edx
push ecx
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x68], xmm0
push eax
movaps xmmword [esp + 0x7c], xmm0
movaps xmmword [esp + 0x8c], xmm0
movaps xmmword [esp + 0x9c], xmm0
mov byte [esp + 0x6c], 0x80
movaps xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00401d70
xor edx, edx
lea ecx, [esp + 0x19]
nop word [eax + eax]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [esp + edx + 0xa8], al
movzx eax, byte [ecx - 4]
mov byte [esp + edx + 0xa9], al
movzx eax, byte [ecx - 3]
mov byte [esp + edx + 0xaa], al
movzx eax, byte [ecx - 2]
mov byte [esp + edx + 0xab], al
add edx, 4
cmp edx, 8
jb 0x4025f0
mov edx, dword [esp + 0x18]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovae eax, ecx
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00401d70
push 8
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00401d70
xor edx, edx
lea ecx, [esp + 9]
nop
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [esp + edx + 0xb0], al
movzx eax, byte [ecx - 4]
mov byte [esp + edx + 0xb1], al
movzx eax, byte [ecx - 3]
mov byte [esp + edx + 0xb2], al
movzx eax, byte [ecx - 2]
mov byte [esp + edx + 0xb3], al
add edx, 4
cmp edx, 0x10
jb 0x402670
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [esi], xmm0
mov ecx, dword [esp + 0xcc]
pop esi
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4

Function at 0x4026d0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push eax
push 0x101
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402748
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 0
push 0
push 1
push 3
push 2
mov word [esi + 8], ax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40275d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x10], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
push 1
push dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x2c
mov dword [esi + 0x10], 1
call fcn.004a8ede
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
mov eax, esi
jne 0x40274a
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x10], 0
pop esi
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x40291b
mov eax, 2
mov dword [esp + 0x18], 0x10
mov word [esp + 0x1c], ax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0x2710
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0048eab0
mov ebx, eax
mov esi, edx
mov eax, dword [0x50d288]
test eax, eax
jne 0x402853
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x50d288], eax
mov edx, dword [0x50d280]
mov ecx, edx
or ecx, dword [0x50d284]
jne 0x402871
mov dword [0x50d280], ebx
mov edx, ebx
mov dword [0x50d284], esi
mov si, word [0x50d290]
sub ebx, edx
push 0x2c
push 0
push dword [edi + 0xc]
inc si
add ebx, eax
mov word [0x50d290], si
call fcn.004a5f00
mov ecx, dword [edi + 0xc]
add esp, 0xc
mov dword [esp + 0x10], ecx
xor edx, edx
mov word [ecx], 8
mov ax, word [edi + 8]
mov word [ecx + 6], si
mov esi, 0x16
mov word [ecx + 4], ax
mov dword [ecx + 8], ebx
mov ecx, dword [edi + 0xc]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
add edx, eax
sub esi, 1
jne 0x4028c0
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x10]
not eax
mov word [ecx + 2], ax
lea eax, [esp + 0x1c]
push dword [esp + 0x18]
push eax
push esi
push 0x2c
push dword [edi + 0xc]
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x40291b
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403410
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
je 0x403426
add dword [esi + 0x50], 1
adc dword [esi + 0x54], 0
cmp dword [esi + 0x4c], 0
je 0x403488
cmp byte [esi + 0x46], 0
je 0x403446
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x48]
push 0
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x403488
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403465
mov dword [edi + 8], 0xffffffff
jmp 0x403488
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40347a
pop edi
mov eax, 0x80004005
pop esi
pop ebp
ret 8
jle 0x403484
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x4034b6
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x40349c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], 0
cmp byte [esi + 0x34], 0
je 0x4034b4
cmp byte [esi + 0x45], 0
je 0x4034b4
push dword [esi + 0x40]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x405410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d010a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x48
call fcn.0048d8f9
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp + 8]
mov edx, 2
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov dword [ebx], ecx
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [ebx + 8], ecx
xor ecx, ecx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov esi, dword [edi + 0x24]
mov dword [ebx + 0x20], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov ecx, dword [edi + 0x24]
lea ecx, [ecx*2 + 2]
push ecx
push dword [edi + 0x20]
push eax
call fcn.004a5400
mov byte [ebp - 4], 1
xor ecx, ecx
mov esi, dword [edi + 0x30]
mov edx, 2
mov dword [ebx + 0x2c], 0
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov ecx, dword [edi + 0x30]
lea ecx, [ecx*2 + 2]
push ecx
push dword [edi + 0x2c]
push eax
call fcn.004a5400
mov eax, dword [edi + 0x38]
add esp, 0x24
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebx + 0x38], eax
movzx eax, byte [edi + 0x3c]
mov byte [ebx + 0x3c], al
movzx eax, byte [edi + 0x3d]
mov byte [ebx + 0x3d], al
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x40], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00403f20
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
mov eax, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4058c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, edx
mov dword [ebp - 4], ecx
push 0xc6a4a793
mov dword [ebp - 8], eax
mov edi, ecx
cdq
push 0x5bd1e995
push edx
push eax
call fcn.0048e8a0
mov ebx, eax
mov esi, edx
mov eax, dword [ebp - 8]
xor esi, 0
xor ebx, dword [ebp + 8]
cdq
and edx, 7
mov dword [ebp + 8], 0
lea ecx, [edx + eax]
xor edx, edx
and ecx, 0xfffffff8
lea eax, [ecx + edi]
shr ecx, 3
cmp edi, eax
cmova ecx, edx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x40597e
nop word [eax + eax]
push 0xc6a4a793
push 0x5bd1e995
push dword [edi + 4]
push dword [edi]
call fcn.0048e8a0
push 0xc6a4a793
mov edi, edx
xor ecx, ecx
push 0x5bd1e995
xor ecx, edx
shr edi, 0xf
xor edi, eax
push ecx
push edi
call fcn.0048e8a0
push 0xc6a4a793
push 0x5bd1e995
xor edx, esi
xor eax, ebx
push edx
push eax
call fcn.0048e8a0
mov edi, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp + 8]
add edi, 8
inc eax
mov dword [ebp - 4], edi
mov esi, edx
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0xc]
jne 0x405920
mov eax, dword [ebp - 8]
and eax, 7
dec eax
cmp eax, 6
ja case.default.0x40598a
jmp dword [eax*4 + 0x405a34]
movzx eax, byte [edi + 6]
xor ebx, 0
cdq
shl eax, 0x10
xor esi, eax
movzx eax, byte [edi + 5]
xor ebx, 0
cdq
shl eax, 8
xor esi, eax
movzx eax, byte [edi + 4]
xor ebx, 0
cdq
xor esi, eax
movzx eax, byte [edi + 3]
cdq
shld edx, eax, 0x18
shl eax, 0x18
xor ebx, eax
xor esi, edx
movzx eax, byte [edi + 2]
cdq
shld edx, eax, 0x10
shl eax, 0x10
xor ebx, eax
xor esi, edx
movzx eax, byte [edi + 1]
cdq
shld edx, eax, 8
shl eax, 8
xor ebx, eax
xor esi, edx
movzx eax, byte [edi]
push 0xc6a4a793
cdq
push 0x5bd1e995
xor edx, esi
xor eax, ebx
push edx
push eax
call fcn.0048e8a0
mov ebx, eax
mov esi, edx
push 0xc6a4a793
xor eax, eax
mov ecx, esi
push 0x5bd1e995
shr ecx, 0xf
xor eax, esi
xor ecx, ebx
push eax
push ecx
call fcn.0048e8a0
mov ecx, edx
xor edx, edx
mov esi, ecx
shr esi, 0xf
pop edi
xor eax, esi
xor edx, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret