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

Disassembly:
sub esp, 0x88
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x568]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x453439
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00471540
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x453474
push str.Received_too_short_packet
push edi
call fcn.004418e0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x453499
jmp dword [eax*4 + 0x4535b0]
cmp ecx, 4
jle case.0x453499.4
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x453499.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.00441e40
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x453504
mov ecx, 5
mov eax, esi
call fcn.00453330
mov eax, ebx
jmp 0x45345b
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
mov eax, dword [edi + 0x70]
adc dword [edi + 0x74], edx
mov edx, dword [edi + 0x74]
push edx
push eax
push edi
call fcn.0044a440
jmp 0x453585
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x4970d8
push edi
mov dword [esi + 8], edx
call fcn.00441850
jmp 0x453585
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.00452230
add esp, 0xc
test eax, eax
je case.0x453499.4
jmp 0x45345b
push str.Internal_error:_Unexpected_packet
push 0x494ad4
push edi
call fcn.004418e0
add esp, 0xc
push ebp
call fcn.0044a600
add esp, 4
test eax, eax
je 0x453459
mov ecx, 5
mov eax, esi
call fcn.00453330
mov eax, 0x2a
jmp 0x45345b
Function at 0x454f40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x454f75
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004418e0
add esp, 0xc
jmp 0x454fae
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x454fa0
shr eax, 8
test al, al
jne 0x454fa0
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00471528
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004418e0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00471528
add esp, 0x194
ret

Function at 0x455140
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x168]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x455184
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004418e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00455040
add esp, 4
pop esi
pop ecx
ret
Function at 0x455e20
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x168]
mov dword [esp + 4], eax
jne 0x455f87
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x455e59
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455e66
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455e73
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455ea7
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455eb7
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455ec3
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455ecf
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455edc
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x455ee9
mov byte [eax], pe_nt_image_headers32
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.00455390
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x168]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x455f46
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004418e0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.00455c10
mov edx, dword [edi + 0x168]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jns 0x455f84
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.004418e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x456b50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x16c]
mov ebp, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x456bad
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.004445f0
add esp, 8
cmp edi, 0xffffffff
jne 0x456bd1
push str.Error_accept__ing_server_connect
push ebp
call fcn.004418e0
add esp, 8
mov eax, 0x1e
jmp 0x456c2c
push str.Connection_accepted_from_server_n
push ebp
call fcn.00441850
push 1
push edi
mov dword [esi + 0x2d8], 0
mov dword [esi + 0x16c], edi
call fcn.00465510
mov dword [esi + 0x17c], 1
mov eax, dword [ebp + 0x1f0]
add esp, 0x10
test eax, eax
je 0x456c2a
mov ecx, dword [ebp + 0x1f4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x456c2a
call fcn.00456ab0
mov eax, 0x2a
jmp 0x456c2c
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471528
add esp, 0x88
ret
Function at 0x45a6d0
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x45a706
push str.Couldnt_set_desired_mode
push ebx
call fcn.004418e0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x45a71d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00441850
add esp, 0xc
cmp ebp, 0x13
jne 0x45a731
push edi
call fcn.0045a650
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x45a745
push edi
call fcn.004576f0
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x45a75d
push 0xd
push 1
push edi
call fcn.004599d0
add esp, 0xc
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x45a771
push 0xe
push 1
push edi
call fcn.004599d0
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x461ac0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0047910c
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x461b25
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x461b25
lea edx, [esp]
push edx
call dword [0x4b85a4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00471528
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00471528
add esp, 0x108
ret
Function at 0x4674c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x22c]
test esi, esi
jne 0x4674d9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00441350
push edx
push eax
call fcn.00441380
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x220], 0
je 0x467526
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebx + 0x158]
push eax
push ecx
call fcn.00441350
push edx
push eax
call fcn.00441380
mov ecx, dword [edi + 0x220]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x467528
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4686e0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x468712
push 0x2e
push esi
call fcn.00473d10
add esp, 8
test eax, eax
je 0x468710
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x4687f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b8914]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x468897
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00468760
mov ecx, esi
push 8
push ecx
call fcn.0046de30
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4688a9
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00471528
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00471528
add esp, 0x24
ret
Function at 0x4689f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468a00
sub eax, edx
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x4b8598]
mov esi, eax
add esp, 4
test esi, esi
jne 0x468a29
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x468a40
nop
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x468a30
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x468abf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x468ab2
mov edx, dword [esp + 0x10]
push 0
push ebx
push esi
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [edi + 0x10], eax
push esi
mov byte [edi + 0x14], al
call dword [0x4b859c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x46afd0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x46aff2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x46afe6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x46b022
cmp dword [esi + 8], 0
jne 0x46b015
mov ecx, dword [eax + 8]
push 0x495d6c
push ecx
call fcn.0047727b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x46b015
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00476dc2
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46b044
mov eax, dword [esi + 8]
test eax, eax
je 0x46b03e
push eax
call fcn.0047714b
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x470260
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x4b8598]
mov edi, eax
add esp, 4
test edi, edi
jne 0x470285
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4702cc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4702d0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x47032c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x4702f3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x470368
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x4a556f
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x4a5570
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x470337
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x471528
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b8914]
jne 0x471532
repz ret
jmp fcn.004796aa

Function at 0x486dca
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b8914]
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.0047d090
and dword [ebp - 0x14], 0
cmp dword [0x4bc160], 0
mov dword [ebp - 0x18], eax
jne 0x486e7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x486f25
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x486f25
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4bc160], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4bc164], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4bc168], eax
call edi
push eax
call esi
mov dword [0x4bc170], eax
test eax, eax
je 0x486e7d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4bc16c], eax
mov eax, dword [0x4bc16c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x486ed6
cmp dword [0x4bc170], ecx
je 0x486ed6
push eax
call esi
push dword [0x4bc170]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x486ed6
test ebx, ebx
je 0x486ed6
call edi
test eax, eax
je 0x486ecd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x486ecd
test byte [ebp - 8], 1
jne 0x486ed6
or dword [ebp + 0x10], 0x200000
jmp 0x486f09
mov eax, dword [0x4bc164]
cmp eax, dword [ebp - 0x18]
je 0x486f09
push eax
call esi
test eax, eax
je 0x486f09
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x486f09
mov eax, dword [0x4bc168]
cmp eax, dword [ebp - 0x18]
je 0x486f09
push eax
call esi
test eax, eax
je 0x486f09
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4bc160]
call esi
test eax, eax
je 0x486f25
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x486f27
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00471528
leave
ret
Function at 0x408570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408588
mov eax, 1
add ebx, ebx
jne 0x4085ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4085a0
jne 0x4085bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4085a0
xor ecx, ecx
sub eax, 3
jb 0x4085d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408642
mov ebp, eax
add ebx, ebx
jne 0x4085db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4085e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40860c
inc ecx
add ebx, ebx
jne 0x4085f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4085ed
jne 0x408609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4085ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40862c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40861d
jmp 0x40858e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40862c
add edi, ecx
jmp 0x40858e
pop esi
mov edi, esi
mov ecx, 0xe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40864a
cmp byte [edi], 1
jne 0x40864a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40864f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4086c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x891c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40867c
mov ecx, edi
jns 0x4086ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8920]
or eax, eax
je 0x4086c1
mov dword [ebx], eax
add ebx, 4
jmp 0x408699
call dword [esi + 0x8930]
mov ebp, dword [esi + 0x8924]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4086fb
sub esp, 0xffffff80
jmp 0x401498
Function at 0x40d360
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e85
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x240
push esi
push edi
push 0x1c
mov edi, ecx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.UW1kcnVfcGNaTkE_bm5Rcm1wYw
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
call fcn.0042b390
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
push 0x10
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push str.TkE_bm5Rcm1wYw
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0
call fcn.0042b390
push 0x104
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0042c2f0
lea ecx, [ebp - 0x14]
call fcn.00442a50
add esp, 0x18
push dword [eax]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x14]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40d44b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40d47c
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x14]
push 4
push eax
push 4
push 0
push 0x588b1c
push dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov dword [edi + 0x110], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x40d4b2
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4fd
push ecx
push edx
call fcn.00546e91
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x40d4e8
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d4fd
push ecx
push edx
call fcn.00546e91
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0054be7f
int3