joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c20
Capabilities:
Connect network resource

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
push eax
pop esi
test esi, esi
jne 0x402c82
push 1
push 1
push ebx
call sub.MPR.dll_WNetCancelConnection2A
sub eax, eax
jmp 0x402c91
push 1
push 1
push ebx
call sub.MPR.dll_WNetCancelConnection2A
pushfd
xor eax, eax
inc eax
popfd
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x403130
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
lea edi, [ebp - 0x19]
mov esi, 0x41147c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x4034f0
push 0xf
call fcn.00404b60
add esp, 8
mov dword [ebp - 0x34], 0
call fcn.00403500
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x403175
nop
push 1
nop
pop eax
jmp 0x4032b3
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x34], eax
or eax, eax
jge 0x403192
mov eax, 2
jmp 0x4032b3
mov word [ebp - 0x44], 2
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
push 0x10
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x48], eax
test eax, eax
jge 0x4031d3
pushal
popal
push 3
pop eax
jmp 0x4032b3
mov dword [0x4159d4], 0
mov edx, 0x417094
push 0x28
pop ecx
nop
nop
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
lea edx, [ebp - 0x19]
push eax
pop eax
push 0x19
pop ecx
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
mov eax, edx
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
mov eax, 0x417094
mov edi, eax
lea esi, [ebp - 0x19]
nop
push 6
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [0x4170b4]
push eax
push 0x4159d8
push 0x417094
call fcn.00403590
add esp, 0xc
mov eax, dword [0x4159ec]
push eax
push 0x417094
call fcn.00403550
add esp, 8
or eax, eax
jne 0x4031dd
mov eax, dword [0x4170b4]
push eax
push 0x4159d8
push 0x417094
call fcn.00403590
add esp, 0xc
lea edi, [ebp - 0x19]
mov esi, 0x417094
nop
nop
push 0xa
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x19
lea eax, [ebp - 0x19]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, eax
jmp 0x4031dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebp
pop esp
pop ebp
ret

Function at 0x406490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
pop esi
cmp byte [esi], 0
jne 0x4064c2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
or ebx, ebx
jne 0x4064f5
push 1
call fcn.00405dc0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x415bb4], eax
mov dword [0x415bb8], ebx
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x406530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
or eax, eax
jne 0x40654e
mov eax, dword [0x4162b0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x406573
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40655f
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x406571
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40655a
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403dc0
pop ecx
mov edi, eax
mov dword [0x415bc0], eax
mov eax, dword [0x415bc0]
or eax, eax
jne 0x40659b
push 1
call fcn.00405dc0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x4065ca
push ebx
pop edx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4065a5
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x4065c8
push edi
pop ecx
push ebx
pop edx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4065bb
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4065a0
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x4162b0]
cmp eax, edx
je 0x4065e9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4170bc]
cmp eax, edx
jae 0x4086ff
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 1
jne 0x408711
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x4088e4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x40872c
xor eax, eax
jmp 0x4088e4
mov eax, dword [ebp + 8]
push eax
pop edx
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x20
je 0x408755
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x80
je 0x408833
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40881f
lea edi, [ebp - 0x411]
jmp 0x4087a1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40879c
inc dword [ebp - 4]
push edi
pop eax
inc edi
mov byte [eax], 0xd
push edi
pop eax
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
push edi
pop edx
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4087c2
mov eax, dword [ebp + 0xc]
push esi
pop edx
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408789
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408814
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x40881f
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x408879
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408781
jmp 0x408879
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408870
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x4088de
cmp dword [ebp - 0x10], 0
je 0x4088aa
cmp dword [ebp - 0x10], 5
jne 0x40889b
mov dword [0x415c84], 9
jmp 0x4088a5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408c30
pop ecx
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x40
je 0x4088cf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4088cf
sub eax, eax
jmp 0x4088e4
mov dword [0x415c84], 0x1c
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
push eax
pop esi
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
push esi
pop eax
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
or esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a11e0
Capabilities:
Encode data using xor

Disassembly:
or bl, byte [ebp - 0x6a41ed0e]
push esi
inc edi
cmp al, 0xdd
push edx
mov byte [edx + ebp*4 - 0x4c], 0xbc
inc esp
stosb byte es:[edi], al
mov ah, 0xbc
xor dword [esp + edx + 0x48], 0x32
sub bl, bl
adc eax, dword [ecx]
or byte [edx + eax - 0x1522b255], dl
jne 0x4a11cb
mov dl, 0xd5
lea eax, [0x2b3e1c02]
cmp eax, 0x327c6368
sbb eax, 0x4063a619
push esp
int 0x69
xchg edx, eax
jmp 0x4a11cb

Function at 0x4baa90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4498
cmp edx, dword [eax]
je 0x4baab2
add eax, 8
inc ecx
cmp eax, 0x4c4528
jl 0x4baaa3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4498]
jne 0x4babe0
mov eax, dword [0x4c6d3c]
cmp eax, 1
je 0x4babba
test eax, eax
jne 0x4baae3
cmp dword [0x4c22e0], 1
je 0x4babba
cmp edx, 0xfc
je 0x4babe0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bab1a
lea eax, [ebp - 0x1a4]
push 0x4beb70
push eax
call fcn.004bbbf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbce0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bab5d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbce0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4beb6c
push edi
call fcn.004bc6a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4beb50
push eax
call fcn.004bbbf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbc00
lea eax, [ebp - 0xa0]
push 0x4beb4c
push eax
call fcn.004bbc00
push dword [esi + 0x4c449c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbc00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4beb24
push eax
call fcn.004bc612
add esp, 0x2c
pop edi
jmp 0x4babe0
lea eax, [ebp + 8]
lea esi, [esi + 0x4c449c]
push 0
push eax
push dword [esi]
call fcn.004bbce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x593faa70
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetFocus]
mov esi, ecx
push dword [esi + 8]
call edi
push dword [esi + 0xc]
call edi
push 5
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x18]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x70]
push 0
mov dword [esi], 1
push dword [ecx + eax*4 + 0x24]
push 0x186
push dword [esi + 0x18]
call dword [sym.imp.vsansi.dll_SendMessageW]
and dword [esi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x593fbcd7
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, dword [esi + 8]
je 0x593fbd16
call fcn.59402243
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [esi + 0x14]
je 0x593fbd06
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x593fbd0f
dec eax
mov dword [esi + 0x3c], eax
jmp 0x593fbd0f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.593fb8d4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x593fc691
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x593fc6ab
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x593fc6d7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x593fc6e2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x59402243
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x59402252
pop dword [ebp - 0x3c]
mov eax, 0x467b2203
sub eax, 0xed3affb1
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x592316c1
sub dword [ebp - 0x4c], 0xad0d176
mov dword [ebp - 0x48], 0xec831872
add dword [ebp - 0x48], 0x45b033d3
mov dword [ebp - 0x44], 0x7d288732
sub dword [ebp - 0x44], 0x30dc4304
mov dword [ebp - 0x40], 0xe47c07f2
sub dword [ebp - 0x40], 0xe47c07f2
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xc4c9df25
sub eax, 0x6b8acec1
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x26b2598a
add dword [ebp - 0x4c], 0x4dc00fcc
mov dword [ebp - 0x48], 0x8f4ee7e5
sub dword [ebp - 0x48], 0x4de28670
mov dword [ebp - 0x44], 0x99bfb79a
sub dword [ebp - 0x44], 0x36504b2e
mov dword [ebp - 0x40], 0x27e83108
sub dword [ebp - 0x40], 0x27e83108
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x38814
push 0
call eax
mov ecx, 0x109d1727
add ecx, 0xef63337d
mov esi, eax
mov edx, 0x4fe1e07d
sub edx, 0xf6a0f07d
add edx, dword [ebp - 0x3c]
mov edi, 0xa2bfae81
sub edi, 0x9d3a1a5e
add dword [ebp - 0x2c], 0x41169a5d
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0x6893184b
xor ebx, edi
sub dword [ebp - 0x2c], 0x6fa97df5
mov dword [esi], ebx
xor dword [ebp - 0x34], 0x1f8a1ba7
add esi, 0x1cf2b885
add esi, 0xe30d477f
add edx, 0xf9c7938e
add edx, 0x6386c76
loop 0x5940236f
add eax, 0xf9fc8005
add eax, 0x6049d5e
mov ebx, eax
add eax, 0xb6c78129
add eax, 0x49387edc
mov ecx, 0xd0d84fbb
add ecx, 0x8866b045
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x59404d9b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.59404d84
and byte [esi + 0xc], 0
mov eax, 0x593f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x59404df5
cmp dword [ebp - 0x18], 5
jb 0x59404e0d
jmp 0x59404e09
cmp dword [ebp - 0xc], 1
jne 0x59404e0d
cmp dword [ebp - 0x18], 4
ja 0x59404e09
jne 0x59404e0d
cmp dword [ebp - 0x14], 0
jbe 0x59404e0d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x59407090
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x404f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x421a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403343
and dword [ebp - 0x14], 0
cmp dword [0x42c784], 0
mov dword [ebp - 0x18], eax
jne 0x40503e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4050e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4050e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42c784], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42c788], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42c78c], eax
call edi
push eax
call esi
mov dword [0x42c794], eax
test eax, eax
je 0x40503e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42c790], eax
mov eax, dword [0x42c790]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405097
cmp dword [0x42c794], ecx
je 0x405097
push eax
call esi
push dword [0x42c794]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405097
test ebx, ebx
je 0x405097
call edi
test eax, eax
je 0x40508e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40508e
test byte [ebp - 8], 1
jne 0x405097
or dword [ebp + 0x10], 0x200000
jmp 0x4050ca
mov eax, dword [0x42c788]
cmp eax, dword [ebp - 0x18]
je 0x4050ca
push eax
call esi
test eax, eax
je 0x4050ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4050ca
mov eax, dword [0x42c78c]
cmp eax, dword [ebp - 0x18]
je 0x4050ca
push eax
call esi
test eax, eax
je 0x4050ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42c784]
call esi
test eax, eax
je 0x4050e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4050e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004052f6
leave
ret

Function at 0x4052f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421a80]
jne 0x405300
repz ret
jmp fcn.004060af
Function at 0x404f52
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov eax, 0x805c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004cb790
sub esp, eax
lea ebx, [ebp - 0x8018]
lea eax, [ebp - 0x8034]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], 2
mov dword [ebp - 0x8034], 0x8000
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
sub esp, 0x14
test eax, eax
jne 0x4050fc
mov ax, word [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
lea ecx, [ebp - 0x802a]
mov dword [ebp - 0x802a], edx
mov word [ebp - 0x8026], ax
call fcn.004c9d1c
test al, al
jne 0x4050f1
cmp dword [ebx + 0x8c], 0
je 0x4050f1
mov eax, dword [ebx + 4]
mov dword [esp], 0x5694e0
mov dword [esp + 4], eax
call fcn.004c8952
mov dword [esp + 4], 0x523289
mov dword [esp], eax
call fcn.004c8905
mov edx, dword [ebx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
mov eax, dword [ebx + 0x8c]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
xor eax, eax
mov edx, dword [edx + 4]
mov dword [ebp - 0x8030], edx
xor edx, edx
cmp edx, ecx
je 0x405040
shr eax, 1
inc edx
or eax, 0x80000000
jmp 0x405032
mov dword [esp], eax
lea edi, [ebp - 0x8024]
call dword [sym.imp.WS2_32.dll_htonl]
push edx
not eax
or dword [ebp - 0x8030], eax
mov dword [esp + 4], 0x52328c
mov dword [esp], 0x5694e0
call fcn.004c8905
lea edx, [ebp - 0x8030]
mov ecx, edi
mov dword [esp], edx
mov dword [ebp - 0x803c], eax
call fcn.004c9d70
mov edx, dword [ebp - 0x8024]
mov eax, dword [ebp - 0x803c]
push ecx
mov ecx, dword [edx]
add edx, 4
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004c8922
mov ecx, edi
mov dword [ebp - 0x803c], eax
call fcn.004c616a
mov eax, dword [ebp - 0x803c]
mov dword [esp], eax
call fcn.004c8cf3
mov eax, dword [ebp - 0x802a]
mov dword [esp], edi
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], eax
mov ax, word [ebp - 0x8026]
mov word [ebp - 0x8020], ax
mov eax, dword [ebp - 0x8030]
mov dword [ebp - 0x801c], eax
call fcn.0050d41c
push edi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404fab
mov eax, dword [esi + 0x44]
cmp dword [esi + 0x40], eax
jne 0x405133
lea eax, [ebp - 0x8024]
lea ecx, [esi + 0x40]
mov dword [ebp - 0x8024], 0xffffffff
mov dword [esp], eax
mov word [ebp - 0x8020], 0xffff
mov dword [ebp - 0x801c], 0xffffffff
call fcn.0050d41c
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret