joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0f98
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push esi
push ebp
mov edi, dword [ecx + 0x31]
mov ecx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5b0fb7
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b0fa2
dec eax
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5b1025
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov ecx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5b0fe9
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b0fd4
dec eax
push eax
push edi
push ebp
call fcn.006a8180
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x5b1010
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5b1025
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop ebp
pop esi
pop edi
ret

Function at 0x5b102c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
push esi
push ebp
push esi
mov edi, ecx
xor eax, eax
mov dword [esp], eax
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5b10b7
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x5b107d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov ecx, ebp
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5b1072
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b105d
dec eax
test eax, eax
jne 0x5b1085
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x5b10b7
lea ecx, [esp]
mov edx, ebp
call fcn.004f60bc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [esp]
test esi, esi
je 0x5b10b7
push esi
mov ecx, edi
call fcn.005b10dc
cmp eax, 0xffffffff
je 0x5b10c8
mov ecx, esi
call fcn.004db958
push 0x8002f
mov ecx, edi
call fcn.005b05ec
pop ecx
pop ebp
pop esi
pop edi
ret
mov ecx, esi
call fcn.004db958
mov eax, 0xffffffff
pop ecx
pop ebp
pop esi
pop edi
ret
Function at 0x5b3688
Capabilities:
Parse url

Disassembly:
push edi
push ebp
push ebx
push ecx
mov eax, 0x40
call fcn.006977b0
mov ecx, dword [esp + 0x40]
mov edi, ecx
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x3c], 1
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp], 0x3c
mov eax, 1
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x40]
lea edx, [esp + 0x3c]
push 0
push edx
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov ecx, dword [esp + 0x3c]
cmp ecx, 1
ja 0x5b373a
add edi, 0x14
mov ecx, edi
mov edx, ebp
call fcn.004f60bc
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
inc ecx
call fcn.004dc288
mov dword [edi + 0x14], eax
lea edx, [esp + 0x3c]
push 0
push edx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 0x14]
xor ebx, ebx
mov byte [eax + edx], bl
mov ecx, dword [edi + 0x14]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5b3778
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b3763
dec eax
lea edx, [esp]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x5b3819
mov eax, dword [esp + 8]
test eax, eax
je 0x5b37a2
lea ecx, [edi + 0x18]
push eax
mov edx, dword [esp + 8]
call fcn.004f7894
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b37b7
lea ecx, [edi + 0x1c]
push eax
mov edx, dword [esp + 0x14]
call fcn.004f7894
movzx eax, word [esp + 0x18]
test eax, eax
jne 0x5b37cb
mov eax, 0x15
mov word [edi + 0x20], ax
jmp 0x5b37cf
mov word [edi + 0x20], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5b37e4
lea ecx, [edi + 0x22]
push eax
mov edx, dword [esp + 0x20]
call fcn.004f7894
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5b37f9
lea ecx, [edi + 0x26]
push eax
mov edx, dword [esp + 0x28]
call fcn.004f7894
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5b3834
add edi, 0x2a
push eax
mov ecx, edi
mov edx, dword [esp + 0x30]
call fcn.004f7894
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
mov ecx, dword [edi + 0x14]
call fcn.004db958
mov dword [edi + 0x14], 0
add edi, 0x14
mov ecx, edi
mov edx, ebp
call fcn.004f60bc
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
Function at 0x5b4028
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push edi
push ecx
mov eax, 0x1c
call fcn.006977b0
mov ecx, dword [esp + 0x1c]
mov edi, ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, 2
mov word [esp], ax
movzx edx, word [edi + 0x30]
push edx
call sub.WSOCK32.dll_htons
mov word [esp + 2], ax
push dword [edi + 0x24]
lea ecx, [esp + 0x14]
call fcn.004e5a7c
lea ecx, [esp + 0x10]
call fcn.0057f960
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x5b409d
lea ecx, [esp + 0x10]
call fcn.0057f960
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x5b40fd
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 4], eax
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x5b40dc
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [edi + 0x60]
mov edx, dword [eax]
push str.Failed_to_connect_nto_Mail_Socket_
push eax
call dword [edx + 0x48]
add esp, 8
mov edi, eax
lea ecx, [esp + 0x10]
call fcn.004e5b7c
mov eax, edi
add esp, 0x20
pop edi
ret
lea edx, [esp]
push 0x10
push edx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x5b4128
lea ecx, [esp + 0x10]
call fcn.004e5b7c
xor eax, eax
add esp, 0x20
pop edi
ret
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [edi + 0x60]
mov edx, dword [eax]
push dword [edi + 0x24]
push str.Unknown_Mail_Server_n_s_
push eax
call dword [edx + 0x48]
add esp, 0xc
mov edi, eax
lea ecx, [esp + 0x10]
call fcn.004e5b7c
mov eax, edi
add esp, 0x20
pop edi
ret
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [edi + 0x60]
mov edx, dword [eax]
push str.Failed_to_connect_nto_Mail_Server_
push eax
call dword [edx + 0x48]
add esp, 8
mov edi, eax
lea ecx, [esp + 0x10]
call fcn.004e5b7c
mov eax, edi
add esp, 0x20
pop edi
ret
Function at 0x5b5bbc
Capabilities:
Send data
Send data on socket

Disassembly:
test dword [0x7eeab0], 0xffffff80
jne 0x5b5be4
test dword [0x7eeab0], 0xffffffff
jne 0x5b5be4
call fcn.006a7fbc
jmp fcn.005b5bbc
push esi
push ebx
sub esp, 0x14
mov ebx, ecx
push dword [esp + 0x20]
lea ecx, [esp + 4]
call fcn.004e5a7c
lea ecx, [esp]
call fcn.0057f960
mov esi, eax
lea ecx, [esp]
call fcn.005b8784
test eax, eax
jbe 0x5b5c33
mov dword [esp + 0x10], edi
mov edi, ebx
mov ebx, eax
push 0
push ebx
push esi
push dword [edi + 8]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5b5c45
sub ebx, eax
add esi, eax
test ebx, ebx
jne 0x5b5c16
mov edi, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004e5b7c
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret 8
mov edi, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004e5b7c
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x5b864c
Capabilities:
Initialize winsock library

Disassembly:
push esi
push ecx
mov eax, 0x18c
call fcn.006977b0
mov ecx, dword [esp + 0x18c]
mov esi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x5b86ab
movzx edx, word [esp]
movzx eax, dl
cmp eax, 1
jne 0x5b868d
and edx, 0xffffff00
cmp edx, 0x100
je 0x5b86c4
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
push str.WinSock_1.1_failed_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x190
pop esi
ret
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
push str.WinSock_failed_nto_initialize_
push eax
call dword [edx + 0x48]
add esp, 8
add esp, 0x190
pop esi
ret
xor eax, eax
add esp, 0x190
pop esi
ret

Function at 0x5b8788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push esi
sub esp, 0xc
mov edi, ecx
push dword [esp + 0x18]
mov ecx, edi
call fcn.00552ba4
mov dword [edi], 0x7f2440
lea ecx, [esp]
call fcn.0052c3f8
push 0x3a
push dword [esp + 0x20]
lea ecx, [esp + 8]
call fcn.0052c078
push 0x3a
push dword [esp + 0xc]
lea ecx, [esp + 8]
call fcn.0052c078
push dword [esp + 8]
push dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5b8806
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5b8806
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi + 8], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
lea ecx, [esp]
call fcn.0052c3e4
mov eax, edi
add esp, 0xc
pop esi
pop edi
ret 8
Function at 0x64cc40
Capabilities:
Hash data with md5

Disassembly:
mov eax, edx
mov edx, dword [esp + 8]
sub esp, 0x58
cmp edx, 0x10
jge 0x64cc57
or eax, 0xffffffff
add esp, 0x58
ret 8
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov edx, ecx
push eax
lea ecx, [esp + 4]
mov dword [esp + 4], 0x67452301
mov dword [esp + 8], 0xefcdab89
mov dword [esp + 0xc], 0x98badcfe
mov dword [esp + 0x10], 0x10325476
call fcn.0064ca90
mov ecx, dword [esp + 0x5c]
lea edx, [esp]
call fcn.0064cb50
xor eax, eax
add esp, 0x58
ret 8
Function at 0x6548c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
test ecx, ecx
mov dword [esp + 0x14], edx
je 0x6549e9
test edx, edx
je 0x6549e9
cmp dword [esp + 0x2c], 0x27
jl 0x6549e9
mov edx, 0x6f2c08
sub edx, ecx
mov dword [esp], edx
mov edx, 0x6f2bf8
sub edx, ecx
mov dword [esp + 4], edx
mov edx, 0x6f2c19
sub edx, ecx
xor eax, eax
mov dword [esp + 8], edx
push ebx
mov dword [esp + 0x1c], eax
mov edx, 0x6f2c09
sub edx, ecx
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
push esi
mov dword [esp + 0x2c], eax
mov edx, 0x6f2bf9
mov ebp, ecx
mov ebx, 0x6f2c18
sub edx, ecx
mov esi, 0xfffffffe
push edi
mov dword [esp + 0x34], eax
sub ebp, 0x6f2c18
sub ebx, ecx
lea eax, [ecx + 2]
lea edi, [esp + 0x36]
mov dword [esp + 0x20], edx
sub esi, ecx
jmp 0x654950
lea ecx, [esi + eax + 0x6f2c18]
mov dl, byte [ecx + ebp]
add dl, byte [ecx]
xor dl, byte [esi + eax + 0x6f2c08]
sub dl, byte [esi + eax + 0x6f2bf8]
mov cl, byte [esi + eax + 0x6f2c19]
mov byte [edi + 1], dl
add cl, byte [eax - 1]
xor cl, byte [esi + eax + 0x6f2c09]
sub cl, byte [esi + eax + 0x6f2bf9]
mov dl, byte [ebx + eax]
mov byte [edi], cl
add dl, byte [eax]
mov ecx, dword [esp + 0x10]
xor dl, byte [ecx + eax]
mov ecx, dword [esp + 0x14]
sub dl, byte [ecx + eax]
add eax, 4
mov byte [edi - 1], dl
mov edx, dword [esp + 0x18]
mov cl, byte [edx + eax - 4]
mov dl, byte [eax - 3]
add cl, dl
mov edx, dword [esp + 0x1c]
xor cl, byte [edx + eax - 4]
mov edx, dword [esp + 0x20]
sub cl, byte [edx + eax - 4]
sub edi, 4
mov byte [edi + 2], cl
lea ecx, [esi + eax]
cmp ecx, 0x10
jl 0x654950
mov edx, dword [esp + 0x3c]
push 1
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
call fcn.006601f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, 0x325
add esp, 0x28
ret 4
Function at 0x655420
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
je 0x655574
test esi, esi
je 0x655574
mov eax, dword [esp + 0x34]
test eax, eax
je 0x655574
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x655460
sub eax, edx
cmp eax, 1
jb 0x655574
push 1
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x6554a0
push 0
push 0
push 1
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x6554ad
pop edi
mov eax, 0x382
pop esi
add esp, 0x28
ret 8
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call fcn.006552d0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x655562
mov eax, dword [esp + 8]
test eax, eax
je 0x655567
mov ecx, dword [esp + 0x14]
push ecx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
je 0x655538
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
mov eax, 0x35d
pop esi
add esp, 0x28
ret 8
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x655558
mov ecx, dword [esp + 0xc]
xor edx, edx
cmp ecx, 1
sete dl
mov dword [eax], edx
pop edi
xor eax, eax
pop esi
add esp, 0x28
ret 8
cmp eax, 5
je 0x65552b
pop edi
mov eax, 0x35f
pop esi
add esp, 0x28
ret 8
pop edi
mov eax, 0x325
pop esi
add esp, 0x28
ret 8
Function at 0x655d30
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x12c
push ebx
mov ebx, ecx
test ebx, ebx
push esi
mov esi, edx
je 0x655dae
test esi, esi
je 0x655dae
push edi
mov edx, 0x64
lea ecx, [esp + 0x70]
call fcn.006522e0
mov edx, 0x64
lea ecx, [esp + 0xc]
call fcn.006527e0
mov edx, 0x64
lea ecx, [esp + 0xd4]
call fcn.006523b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x70]
push eax
push esi
call edi
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
lea edx, [esp + 0xd4]
push edx
push esi
call edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push closesocket
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret
pop esi
mov eax, 0x325
pop ebx
add esp, 0x12c
ret

Function at 0x655dc0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x200
push esi
push edi
xor edi, edi
cmp ecx, edi
mov esi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
je 0x655efa
cmp esi, edi
je 0x655efa
push ebx
push ebp
mov edx, 0x64
lea ecx, [esp + 0x80]
call fcn.00652890
mov edx, 0x64
lea ecx, [esp + 0x1c]
call fcn.00652900
mov edx, 0x64
lea ecx, [esp + 0xe4]
call fcn.00652940
mov edx, 0x64
lea ecx, [esp + 0x148]
call fcn.006529e0
mov edx, 0x64
lea ecx, [esp + 0x1ac]
call fcn.00652a80
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push edi
lea ecx, [esp + 0x8c]
push ecx
push esi
call ebx
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x655ed3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x655ed3
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
call ebx
test eax, eax
jne 0x655ea2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x655ea2
lea edx, [esp + 0xe4]
push edx
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x148]
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1ac]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x80]
push edx
push esi
call edi
push esi
call ebp
mov eax, dword [esp + 0x18]
push eax
push closesocket
call edi
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x200
ret
pop edi
mov eax, 0x325
pop esi
add esp, 0x200
ret
Function at 0x656630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
push ebp
push esi
push edi
mov ebp, edx
mov esi, ecx
test esi, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
je 0x656806
test ebp, ebp
je 0x656806
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x656670
sub eax, edx
cmp eax, 0x26
jne 0x656806
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x656687
sub eax, edx
cmp eax, 0x26
jne 0x656806
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x1f8]
rep stosd dword es:[edi], eax
mov ecx, 0x5a
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, 0x64
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0x1f4
stosb byte es:[edi], al
call fcn.006522e0
mov ecx, esi
call fcn.006564f0
cmp eax, 1
jne 0x656806
mov ecx, ebp
call fcn.00656590
cmp eax, 1
jne 0x656806
push 0x16b
lea edx, [esp + 0x8c]
mov ecx, esi
call fcn.00654a00
test eax, eax
jne 0x656806
call fcn.006552d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x94]
push ecx
push closesocket
call esi
test eax, eax
jne 0x656806
mov eax, dword [esp + 0x10]
test eax, eax
je 0x656806
call fcn.006552d0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call esi
test eax, eax
jne 0x6567fb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6567fb
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x1fc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0x6ba446
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6567de
cmp dword [esp + 0x1c], 1
jne 0x6567de
cmp dword [esp + 0x18], 0x27
jne 0x6567de
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
call fcn.006552d0
lea edx, [esp + 0x1f8]
push ebp
push edx
call fcn.00697d4d
add esp, 8
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x656ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x68
push esi
push edi
mov edi, ecx
test edi, edi
mov esi, edx
mov dword [esp + 8], 0
je 0x656b5c
test esi, esi
jl 0x656b5c
jne 0x656af3
pop edi
xor eax, eax
pop esi
add esp, 0x68
ret
mov edx, 0x64
lea ecx, [esp + 0xc]
call fcn.00652df0
push 0xf0000000
push 1
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp eax, 1
jne 0x656b51
mov eax, dword [esp + 8]
test eax, eax
je 0x656b51
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov edx, dword [esp + 8]
push 0
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, 0x382
pop esi
add esp, 0x68
ret
pop edi
mov eax, 0x382
pop esi
add esp, 0x68
ret
pop edi
mov eax, 0x325
pop esi
add esp, 0x68
ret

Function at 0x6576b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov edx, ecx
cmp edx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x104
je 0x657802
cmp edi, ebx
je 0x657802
mov ecx, dword [ebp + 8]
cmp ecx, 0xa
jl 0x657802
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6577f4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6577f4
lea esp, [esp]
cmp ebx, 0xff
jae 0x6577de
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x34]
push eax
push ebx
push ecx
mov dword [esp + 0x2c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc ebx
cmp eax, 0x103
je 0x6577de
test eax, eax
jne 0x657730
mov eax, dword [esp + 0xc]
test eax, eax
je 0x657730
cmp eax, 0x106
jb 0x657797
mov dword [esp + 0xc], 0x105
lea edx, [esp + 0xc]
lea ecx, [esp + 0x20]
call fcn.00657610
mov edi, dword [esp + 0xc]
test edi, edi
jbe 0x657730
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
jle 0x657730
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x20]
sub esi, eax
cmp ecx, edi
jge 0x657730
mov dl, byte [esi + eax]
add byte [eax], dl
mov edx, dword [ebp + 8]
inc ecx
inc eax
cmp ecx, edx
jl 0x6577c3
jmp 0x657730
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x338
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov eax, 0x325
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x657c30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
push ebx
push esi
xor esi, esi
mov ebx, ecx
cmp ebx, esi
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x104
jne 0x657c65
mov eax, 0x325
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, 0x64
lea ecx, [esp + 0x20]
call fcn.00651120
cmp esi, 0xff
jae 0x657d5d
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x9c]
push edx
push esi
push ebx
mov dword [esp + 0x2c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
inc esi
cmp eax, 0x103
je 0x657d5d
test eax, eax
jne 0x657c73
mov eax, dword [esp + 0xc]
test eax, eax
je 0x657c73
cmp eax, 0x106
jb 0x657ce0
mov dword [esp + 0xc], 0x105
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x657ce7
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00698fb7
add esp, 0xc
test eax, eax
jne 0x657c73
lea edx, [esp + 0x10]
push edx
push 0x20019
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x94]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x657c73
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x657c73
mov edx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x18]
call fcn.00657940
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x657c73
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4