joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d73a0
Capabilities:
Encrypt data using blowfish

Disassembly:
cmp dword [0x5e79c8], 1
je 0x4d7452
push esi
push edi
mov eax, 0x5a79c8
mov edi, 0x53f480
lea esp, [esp]
mov edx, dword [edi]
xor ecx, ecx
mov esi, eax
mov eax, ecx
shr eax, 1
test cl, 1
je 0x4d73d1
xor eax, edx
test al, 1
je 0x4d73db
shr eax, 1
xor eax, edx
jmp 0x4d73dd
shr eax, 1
test al, 1
je 0x4d73e7
shr eax, 1
xor eax, edx
jmp 0x4d73e9
shr eax, 1
test al, 1
je 0x4d73f3
shr eax, 1
xor eax, edx
jmp 0x4d73f5
shr eax, 1
test al, 1
je 0x4d73ff
shr eax, 1
xor eax, edx
jmp 0x4d7401
shr eax, 1
test al, 1
je 0x4d740b
shr eax, 1
xor eax, edx
jmp 0x4d740d
shr eax, 1
test al, 1
je 0x4d7417
shr eax, 1
xor eax, edx
jmp 0x4d7419
shr eax, 1
test al, 1
je 0x4d7423
shr eax, 1
xor eax, edx
jmp 0x4d7425
shr eax, 1
mov dword [esi], eax
add ecx, 1
add esi, 4
cmp ecx, 0x100
jb 0x4d73c6
add edi, 4
cmp edi, 0x53f880
mov eax, esi
jl 0x4d73c0
pop edi
mov dword [0x5e79c8], 1
pop esi
ret

Function at 0x4d7490
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x5e79c8], 1
push esi
mov esi, ecx
je 0x4d74a1
call fcn.004a6300
cmp dword [esi], 0
jne 0x4d74ab
call fcn.004a6300
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d74b9
xor al, al
pop esi
ret 8
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esi + 4], 0xffffffff
jbe 0x4d74f6
push edi
mov edi, dword [esi]
shl edi, 8
nop
movzx edx, byte [ecx]
mov eax, dword [esi + 4]
xor edx, eax
and edx, 0xff
add edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x5a79c8]
add ecx, 1
sub ebp, 1
mov dword [esi + 4], eax
jne 0x4d74d0
pop edi
pop ebp
mov al, 1
pop esi
ret 8
Function at 0x4d8910
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
mov edi, dword [esp + 0x14]
cmp esi, edi
sete al
mov ebx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x4d89a4
push ebp
lea ebp, [eax - 1]
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
cmp dword [esp + 0x14], 0
je 0x4d8958
lea ecx, [esi + 4]
push ecx
push esi
mov ecx, ebx
call fcn.004d7fc0
add esi, 8
jmp 0x4d899e
movzx edx, byte [esi]
mov byte [edi], dl
mov al, byte [esi + 1]
mov byte [edi + 1], al
movzx ecx, byte [esi + 2]
mov byte [edi + 2], cl
movzx edx, byte [esi + 3]
mov byte [edi + 3], dl
movzx ecx, byte [esi + 4]
lea eax, [edi + 4]
mov byte [eax], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx ecx, byte [esi + 6]
mov byte [edi + 6], cl
movzx edx, byte [esi + 7]
push eax
push edi
mov ecx, ebx
mov byte [edi + 7], dl
call fcn.004d7fc0
add esi, 8
add edi, 8
sub ebp, 1
jne 0x4d8940
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4db7a0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4db7e4
cmp dword [esi + 0x18], 1
jne 0x4db7e4
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4db7c4
pop esi
xor eax, eax
pop ebx
ret
cmp eax, 1
jbe 0x4db7dd
push edi
lea edi, [eax - 1]
test edi, edi
jbe 0x4db7dc
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x4db7d1
pop edi
mov dword [esi + 0x18], 0
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4db7f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4db839
cmp dword [esi + 0x18], 0
jne 0x4db839
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4db817
mov dword [esi + 0x18], 0
xor eax, eax
pop esi
ret
test eax, eax
jbe 0x4db832
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
call ebx
sub edi, 1
jne 0x4db825
pop edi
pop ebx
mov dword [esi + 0x18], 1
mov eax, 1
pop esi
ret

Function at 0x4db860
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x4db8a7
cmp byte [esi + 4], 0xb8
push edi
lea edi, [esi + 4]
je 0x4db878
call fcn.004a6300
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x1c]
push eax
push 4
push ecx
push edi
push edx
push 0
call fcn.004e0cee
add esp, 0x18
test eax, eax
mov dword [esi + 0x14], eax
pop edi
je 0x4db8b0
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
ret 0xc
xor eax, eax
pop esi
ret 0xc

Function at 0x4dbb40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x513183
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x540a54]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004dbaf0
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], vtable.CThreadControl.0
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
push 0xfa0
mov dword [esi + 0x30], eax
push edi
lea ecx, [esi + 0x44]
mov dword [esi + 0x2c], 0xffffffff
call fcn.004bff60
mov eax, 1
mov byte [esp + 0x18], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4dc8c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x540a54]
jne 0x4dc8cc
repz ret
jmp fcn.004e304c
Function at 0x4e5cc1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x540c88]
je 0x4e5cdc
inc edi
cmp edi, 0x17
jb 0x4e5ccd
cmp edi, 0x17
jae 0x4e5e5c
push ebp
push 3
call fcn.004f5452
cmp eax, 1
pop ecx
je 0x4e5e28
push 3
call fcn.004f5452
test eax, eax
pop ecx
jne 0x4e5d10
cmp dword [0x540a84], 1
je 0x4e5e28
cmp ebx, 0xfc
je 0x4e5e5b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5e7e08
push ebp
call fcn.004de335
add esp, 0xc
test eax, eax
je 0x4e5d46
push esi
push esi
push esi
push esi
push esi
call fcn.004e04ac
add esp, 0x14
push 0x104
mov esi, 0x5e7e21
push esi
push 0
mov byte [0x5e7f25], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e5d8a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004de335
add esp, 0xc
test eax, eax
je 0x4e5d8a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004e04ac
add esp, 0x14
push esi
call fcn.004e0da0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4e5dcf
push esi
call fcn.004e0da0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5e811c
push 0x5233c8
sub ecx, eax
push ecx
push eax
call fcn.004eb925
add esp, 0x14
test eax, eax
je 0x4e5dcf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004e04ac
add esp, 0x14
jmp 0x4e5dd1
xor esi, esi
push 0x520cb8
push ebx
push ebp
call fcn.004f53e1
add esp, 0xc
test eax, eax
je 0x4e5df1
push esi
push esi
push esi
push esi
push esi
call fcn.004e04ac
add esp, 0x14
push dword [edi*8 + 0x540c8c]
push ebx
push ebp
call fcn.004f53e1
add esp, 0xc
test eax, eax
je 0x4e5e13
push esi
push esi
push esi
push esi
push esi
call fcn.004e04ac
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004f5224
add esp, 0xc
jmp 0x4e5e5b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4e5e5b
cmp ebp, 0xffffffff
je 0x4e5e5b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x540c8c]
push dword [esi]
call fcn.004e0da0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4f5224
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004e29d4
xor ebx, ebx
cmp dword [0x5e84f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4f52fa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4f53da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x524458
push edi
call esi
cmp eax, ebx
je 0x4f53da
push eax
call fcn.004e2966
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5e84f8], eax
call esi
push eax
call fcn.004e2966
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5e84fc], eax
call esi
push eax
call fcn.004e2966
mov dword [0x5e8500], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004e3987
test eax, eax
pop ecx
pop ecx
je 0x4f52c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e04ac
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4f52fa
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004e2966
cmp eax, ebx
pop ecx
mov dword [0x5e8508], eax
je 0x4f52fa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004e2966
pop ecx
mov dword [0x5e8504], eax
mov eax, dword [0x5e8504]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4f537f
cmp dword [0x5e8508], ecx
je 0x4f537f
push eax
call fcn.004e29dd
push dword [0x5e8508]
mov esi, eax
call fcn.004e29dd
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4f537f
cmp edi, ebx
je 0x4f537f
call esi
cmp eax, ebx
je 0x4f534c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4f534c
test byte [ebp - 0x18], 1
jne 0x4f537f
lea eax, [ebp - 0x10]
push eax
call fcn.004e3a36
test eax, eax
pop ecx
je 0x4f5367
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e04ac
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4f5376
or dword [ebp + 0x10], 0x200000
jmp 0x4f53ba
or dword [ebp + 0x10], 0x40000
jmp 0x4f53ba
mov eax, dword [0x5e84fc]
cmp eax, dword [ebp - 8]
je 0x4f53ba
push eax
call fcn.004e29dd
cmp eax, ebx
pop ecx
je 0x4f53ba
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4f53ba
mov eax, dword [0x5e8500]
cmp eax, dword [ebp - 8]
je 0x4f53ba
push eax
call fcn.004e29dd
cmp eax, ebx
pop ecx
je 0x4f53ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5e84f8]
call fcn.004e29dd
cmp eax, ebx
pop ecx
je 0x4f53da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4f53dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b3c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x403b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403b6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b76
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403b74
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x405ac3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4e6140], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e6148], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x40635a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x415f24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x415f5e
xor al, al
jmp 0x415f71
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043d949
leave
ret

Function at 0x416043
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x416084
push 0xa
pop eax
jmp 0x4160fe
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4160bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x4160fd
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4160e6
cmp dword [ebp - 0x210], edi
jne 0x4160e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4160fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043d949
leave
ret

Function at 0x41eca1
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebx]
popal
mov word [ecx + ecx*8], es
inc edi
mov eax, dword [0xd772a59e]
cld
fild dword [ecx + ecx]
xchg byte [ecx], bl
mov ah, byte [edi]
xchg bh, dh
sub al, 0xb6
imul esi, dword [ebx], 0x39a79a5c
insb byte es:[edi], dx
sbb eax, esi
salc
insb byte es:[edi], dx
xchg byte [edi + 0x4b], bl
xor al, 0x83
dec ebp
test byte [edx - 0x274c596c], 0xc2
mov cs, ebp
fstp qword [esi + eax*4 + 0x72]
fidiv word [ebx + 0x6f]
or eax, 0x399a1b16
jle 0x41ecae
ror dword [eax + ebp*4 - 0x5c6b4b8e], 1
and eax, 0xc4a68911
cmp byte [ebp + 0x6b2cd625], cl
mov dword [0x60122c22], eax
imul ebp, dword [ecx], 0xc8148693
sub al, 0x60
or edi, dword [edi]
popfd
arpl word [ecx - 0x37b555d4], bp
mov eax, dword [0x275092f]
out 0xc6, eax
imul edx, dword es:[ebp + ecx*2 + 0x1a], 0xf4a30e52
out 0x91, eax
dec esi
push cs
add al, dl
mov cl, 0x2a
rcl byte [ebx + 0x313c29ed], 0xd8
xor esi, dword [eax + 0x47]
mov eax, 0x4a4c54b7
invalid
Function at 0x4266be
Capabilities:
Encode data using xor

Disassembly:
push esp
mov eax, dword [0xaeaa5592]
hlt
pop edx
call 0x546d3be3
push ebx
aad 0x2a
push esp
push ebx
scasd eax, dword es:[edi]
imul esi, dword [ebx + 0x74b0a945], 0x6d
sub al, 0x4c
pop ecx
push esp
aas
outsd dx, dword [esi]
mov dword [ebp + esi - 0x54], 0x6633f150
mov esp, 0xae5fcf83
pop edi
scasb al, byte es:[edi]
fistp dword [edx + ecx*4 + 0x2777b794]
mov esi, edx
lcall 0x9a4c, 0x9c8e46ef
dec esp
lcall 0xf0a2, 0x6beb7fae
and ecx, ecx
add eax, 0x8bae7f01
pop ds
scasb al, byte es:[edi]
jg 0x4266ae
imul esp, dword [edx + 0x5c921f0], 1
jg 0x42667a
mov byte [0x5c921f0], al
add dword [edi - 0x52], edi
mov ebx, dword [edi]
out dx, eax
jbe 0x426694
ja 0x42668a
xor byte [edx], al
inc ebx
xor al, 0xac
in al, 0x8b
loope 0x4266c4
mov ch, byte [edi - 0x7c]
pop edi
scasb al, byte es:[edi]
inc edi
push 0xffffffffffffffd0
int1
aam 0x47
or edi, ebx
iretd

Function at 0x43edb2
Capabilities:
Encode data using xor

Disassembly:
inc esp
cmp eax, 0x9a733bc4
test al, ch
and dword [eax], eax
add byte [eax], al
xor byte [0x1ab40000], ch
add byte [eax], al
in al, 0x2e
add byte [eax], al
mov ebx, 0x2c3d44
add byte [eax + 0xaa007e], dl
je 0x43edb6
add dword [esi], ecx
mov ebx, 0x3bc43d44
jae 0x43ed76
aam 0x1c
bnd ret

Function at 0x456673
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cedf8
push 0x4cedf0
push str.FlsAlloc
push 0x1f
call fcn.004564de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4566a7
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
jmp 0x4566ad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4566f1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cee08
push 0x4cee00
push str.FlsGetValue
push 0x21
call fcn.004564de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x456728
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x456730
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4cee10
push 0x4cee08
push str.FlsSetValue
push 0x22
call fcn.004564de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45676a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46b2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x458074
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0043da70
mov eax, dword [0x4e01d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00455b15
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4580b6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x458212
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call int.0043e610
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e7010]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00459071
mov ecx, dword [esi*4 + 0x4e7010]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x45820b
cmp eax, dword [ecx + edi + 0x24]
jne 0x45820b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45820b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00459071
add esp, 0x14
test edx, edx
jl 0x45820b
jg 0x458181
test eax, eax
jb 0x45820b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45820b
jl 0x45819b
cmp dword [ebp - 0x1008], eax
ja 0x45820b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4581b9
test ebx, ebx
je 0x4581f2
cmp ecx, edi
jae 0x4581f2
mov al, byte [ecx]
cmp al, 0xd
jne 0x4581d3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4581df
cmp byte [ecx + 1], 0xa
jne 0x4581df
inc ecx
jmp 0x4581df
movzx eax, al
movsx eax, byte [eax + 0x4e0478]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4581b9
cmp edx, ebx
jne 0x4581b9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x458210
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043d949
leave
ret
Function at 0x401280
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov ecx, 1
mov al, byte [edx]
cmp esi, ecx
jle 0x4012a0
push ebx
mov bl, byte [ecx + edx]
xor al, bl
inc ecx
cmp ecx, esi
jl 0x401295
pop ebx
pop esi
ret

Function at 0x4012b0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4012e3
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4012d5
mov eax, dword [eax + 0xc]
pop esi
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret

Function at 0x4012f0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp esi, 0xffffffff
jne 0x40130d
or eax, esi
pop esi
add esp, 0x104
ret
mov eax, 0x1e
lea ecx, [esp + 4]
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x118]
mov dword [esp + 8], esi
push eax
push 0
push ecx
push 0
push 1
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40136a
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
pop esi
add esp, 0x104
ret
neg eax
sbb eax, eax
pop esi
add esp, 0x104
ret

Function at 0x401380
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp esi, 0xffffffff
je 0x4013dd
lea eax, [esp + 0x118]
lea ecx, [esp + 4]
push eax
push 0
push 0
push ecx
push 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4013dd
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
pop esi
add esp, 0x104
ret
xor eax, eax
pop esi
add esp, 0x104
ret
Function at 0x402920
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
push edi
push 0
push 1
mov dword [esp + 0x28], ecx
push 2
mov ebp, 0xf
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402a61
xor eax, eax
push str.dynupdate.no_ip.com
mov dword [esp + 0x14], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call fcn.004012b0
add esp, 4
mov dword [esp + 0x14], eax
push 0x2035
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push ebx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push str.GET_http:__ip1.dynupdate.no_ip.com__HTTP_1.0_rUser_Agent:_Linux_Duc2.1.9_r_n_r_n
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, eax
mov edi, ecx
je 0x4029f1
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
sub ecx, esi
push ebp
lea edx, [esp + esi + 0x30]
push ecx
push edx
push ebx
call fcn.004012f0
add esp, 0x14
test eax, eax
jle 0x402a61
add esi, eax
cmp esi, edi
jne 0x4029ce
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push ebp
push 0x200
push ecx
push ebx
call fcn.00401380
mov edx, dword [esp + 0x34]
xor eax, eax
push 0xa
lea esi, [edx + 0x204]
lea edx, [esp + 0x40]
mov ecx, esi
push edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x1c
test eax, eax
je 0x402a5a
inc eax
push esi
push eax
call fcn.00402a70
add esp, 8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret