joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547494
Capabilities:
Initialize winsock library

Disassembly:
push edi
push esi
push ebp
push ebx
push ecx
mov eax, 0x1c8
call fcn.00696350
mov ecx, dword [esp + 0x1c8]
mov ebx, ecx
mov edi, dword [esp + 0x1e0]
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
lea ebp, [ebx + 0xc]
mov ecx, ebp
mov edx, str._tallydata
call fcn.004f5acc
lea ecx, [esp + 0x190]
call fcn.00526518
cmp dword [ebx + 0xab], 0
je 0x5474f9
lea eax, [esp + 0x190]
push str.author.ini
push eax
call fcn.0052473c
jmp 0x54750b
lea eax, [esp + 0x190]
push str.Tally.ini
push eax
call fcn.0052473c
add esp, 8
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, eax
cmp esi, 1
je 0x54754c
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x547551
mov eax, dword [ecx]
call dword [eax + 0x64]
test eax, eax
je 0x547551
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x547551
mov eax, dword [ecx]
call dword [eax + 0x68]
cmp eax, 1
jne 0x547551
mov esi, 1
cmp esi, 1
je 0x547680
test esi, esi
je 0x547667
cmp edi, 1
jle 0x5475a8
mov ecx, dword [ebx + 0xc]
call fcn.004db418
mov ecx, ebp
mov eax, dword [esp + 0x1e4]
mov edx, dword [eax + 4]
call fcn.004f5acc
cmp edi, 2
jle 0x5475a8
mov esi, 1
mov dword [ebx + 0x48], esi
mov eax, dword [esp + 0x1e4]
push dword [eax + 8]
call fcn.006966be
pop ecx
mov dword [0x7e6fc0], eax
mov dword [0x7e6fc4], esi
cmp dword [ebx + 0xc], 0
je 0x547656
cmp dword [ebx + 0x14], 0
je 0x547631
mov ecx, dword [ebx + 0xc]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5475d2
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5475bd
dec eax
cmp byte [ecx + eax - 1], 0x5c
jne 0x5475de
mov byte [ecx + eax - 1], 0
mov ecx, dword [ebx + 0x14]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x5475f8
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5475e3
dec eax
cmp byte [ecx + eax - 1], 0x5c
jne 0x547604
mov byte [ecx + eax - 1], 0
cmp dword [ebx + 0x3c], 0
je 0x547628
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp + 0x190]
call fcn.00524818
add esp, 0x1cc
pop ebx
pop ebp
pop esi
pop edi
ret 8
mov ecx, ebx
call fcn.00547710
jmp 0x54760a
lea ecx, [ebx + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.004f5acc
cmp dword [ebx + 0x14], 0
jne 0x5475b8
lea ecx, [ebx + 0x14]
mov edx, dword [ebx + 0x10]
call fcn.004f5acc
jmp 0x5475b8
mov ecx, ebp
mov edx, str._tallydata
call fcn.004f5acc
jmp 0x5475b2
push 1
push ebx
push 0x54821c
lea ecx, [esp + 0x19c]
call fcn.00526bbc
jmp 0x547562
cmp dword [ebx + 0xab], 0
je 0x5476a0
lea eax, [esp + 0x190]
push str.author.ini
push dword [ebx + 0x10]
push eax
call fcn.005245a4
jmp 0x5476b5
lea eax, [esp + 0x190]
push str.Tally.ini
push dword [ebx + 0x10]
push eax
call fcn.005245a4
add esp, 0xc
mov ecx, dword [esp + 0x19c]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov esi, eax
cmp esi, 1
je 0x547706
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x54755a
mov eax, dword [ecx]
call dword [eax + 0x64]
test eax, eax
je 0x54755a
mov ecx, dword [esp + 0x19c]
test ecx, ecx
je 0x54755a
mov eax, dword [ecx]
call dword [eax + 0x68]
cmp eax, 1
jne 0x54755a
mov esi, 1
jmp 0x54755a
Function at 0x54bd80
Capabilities:
Enumerate pe sections

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x54bda8
test dword [0x7eda90], 0xffffffff
jne 0x54be4c
call fcn.006a6b5c
jmp fcn.0054bd80
push edi
push esi
mov edx, dword [esp + 0xc]
lea eax, [edx + 0x18]
lea edi, [ecx + 0x18]
mov dword [esp], edi
cmp edi, eax
jbe 0x54bdc2
sub edi, eax
cmp edi, 0xe
ja 0x54bdd1
mov edi, dword [esp]
cmp eax, edi
jbe 0x54bdd1
sub eax, dword [esp]
cmp eax, 0xe
ja 0x54bdd1
movzx eax, word [edx + 0x18]
mov word [ecx + 0x18], ax
movzx edi, word [edx + 0x1a]
mov word [ecx + 0x1a], di
movzx eax, word [edx + 0x1c]
mov word [ecx + 0x1c], ax
movzx eax, word [edx + 0x1e]
mov word [ecx + 0x1e], ax
movzx eax, word [edx + 0x20]
mov word [ecx + 0x20], ax
movzx eax, word [edx + 0x22]
mov word [ecx + 0x22], ax
movzx eax, word [edx + 0x24]
mov word [ecx + 0x24], ax
mov edi, dword [edx]
mov dword [ecx], edi
xor eax, eax
mov dword [edx], eax
movzx edi, word [edx + 4]
mov word [ecx + 4], di
movzx edi, word [edx + 6]
mov word [ecx + 6], di
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov dword [edx + 8], eax
movzx eax, word [edx + 0xc]
mov word [ecx + 0xc], ax
movzx eax, word [edx + 0xe]
mov word [ecx + 0xe], ax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov edx, dword [edx + 0x14]
mov dword [ecx + 0x14], edx
pop ecx
pop edi
ret 4
push edi
mov edx, dword [esp + 8]
movzx eax, word [edx + 0x18]
mov word [ecx + 0x18], ax
movzx eax, word [edx + 0x1a]
mov word [ecx + 0x1a], ax
movzx eax, word [edx + 0x1c]
mov word [ecx + 0x1c], ax
movzx eax, word [edx + 0x1e]
mov word [ecx + 0x1e], ax
movzx eax, word [edx + 0x20]
mov word [ecx + 0x20], ax
movzx eax, word [edx + 0x22]
mov word [ecx + 0x22], ax
movzx eax, word [edx + 0x24]
mov word [ecx + 0x24], ax
mov eax, dword [edx]
mov dword [ecx], eax
xor eax, eax
mov dword [edx], eax
movzx edi, word [edx + 4]
mov word [ecx + 4], di
movzx edi, word [edx + 6]
mov word [ecx + 6], di
mov edi, dword [edx + 8]
mov dword [ecx + 8], edi
mov dword [edx + 8], eax
movzx eax, word [edx + 0xc]
mov word [ecx + 0xc], ax
movzx eax, word [edx + 0xe]
mov word [ecx + 0xe], ax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
pop edi
ret 4
Function at 0x57d77c
Capabilities:
Parse url

Disassembly:
push esi
push ebp
push ebx
sub esp, 8
mov ebp, ecx
mov ebx, dword [esp + 0x18]
mov dword [ebp], 0x7f1058
mov dword [esp], 1
lea esi, [ebp + 4]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ebp + 4], 0x3c
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x38], eax
mov edx, 1
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x24], edx
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x3c], edx
lea edx, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov dword [ebp + 0x44], 1
mov ecx, dword [esp]
inc ecx
call fcn.004dbd48
mov dword [ebp + 0x40], eax
lea edx, [esp]
push 0
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov edx, dword [esp]
mov eax, dword [ebp + 0x40]
xor ebx, ebx
mov byte [eax + edx], bl
mov ecx, dword [ebp + 0x40]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x57d850
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x57d83b
dec eax
push esi
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x57d870
mov dword [ebp + 0x44], 0
mov eax, ebp
add esp, 8
pop ebx
pop ebp
pop esi
ret 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov byte [edx + ecx], 0
mov eax, ebp
add esp, 8
pop ebx
pop ebp
pop esi
ret 4
Function at 0x58008c
Capabilities:
Generate random numbers via winapi

Disassembly:
push esi
push ebp
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
call fcn.00696309
pop ecx
mov ebp, eax
call fcn.006962e6
mov ecx, eax
mov eax, ebp
cdq
mov esi, edx
xor edx, edx
add esi, ecx
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edx
lea ecx, [esp + 8]
push 0xf0000000
push 1
push edx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x5800fd
lea eax, [esp]
push eax
push 8
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x5800f1
mov dword [esp], ebp
mov dword [esp + 4], esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebp
pop esi
ret
Function at 0x5845e0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov esi, ecx
mov edi, edx
mov ecx, 0x80
shr ecx, 3
mov eax, 0
mov ebx, 0
xor dword [esi], eax
xor dword [esi + 4], ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
call fcn.005ef940
mov dword [esi], eax
mov dword [esi + 4], ebx
add esi, 8
loop 0x5845f9
pop ebx
pop edi
pop esi
ret
Function at 0x584a64
Capabilities:
Inspect section memory permissions

Disassembly:
sub eax, eax
sub ebx, ebx
bt ecx, 0xa
jae 0x584a73
or eax, 0x80
bt ecx, 0x17
jae 0x584a7c
or eax, 0x40
bt ecx, 0xd
jae 0x584a85
or eax, 0x20
bt ecx, 0x10
jae 0x584a8e
or eax, 0x10
bt ecx, 7
jae 0x584a97
or eax, 8
bt ecx, 3
jae 0x584aa0
or eax, 4
bt ecx, 5
jae 0x584aa9
or eax, 2
bt ecx, 0x1c
jae 0x584ab2
or eax, 1
bt ecx, 9
jae 0x584abd
or eax, 0x8000
bt ecx, 2
jae 0x584ac8
or eax, 0x4000
bt ecx, 0x13
jae 0x584ad3
or eax, 0x2000
bt ecx, 0xe
jae 0x584ade
or eax, 0x1000
bt ecx, 0x11
jae 0x584ae9
or eax, 0x800
bt ecx, 0x15
jae 0x584af4
or eax, 0x400
bt ecx, 0xc
jae 0x584aff
or eax, 0x200
bt ecx, 4
jae 0x584b0a
or eax, 0x100
bt ecx, 0x1e
jae 0x584b15
or eax, 0x800000
bt ecx, 0
jae 0x584b20
or eax, 0x400000
bt ecx, 8
jae 0x584b2b
or eax, 0x200000
bt ecx, 1
jae 0x584b36
or eax, 0x100000
bt ecx, 0x1d
jae 0x584b41
or eax, 0x80000
bt ecx, 0x14
jae 0x584b4c
or eax, 0x40000
bt ecx, 0xb
jae 0x584b57
or eax, 0x20000
bt ecx, 6
jae 0x584b62
or eax, 0x10000
bt edx, 0xf
jae 0x584b6d
or eax, 0x80000000
bt edx, 0x14
jae 0x584b78
or eax, 0x40000000
bt edx, 0x19
jae 0x584b83
or eax, 0x20000000
bt edx, 3
jae 0x584b8e
or eax, 0x10000000
bt edx, 9
jae 0x584b99
or eax, 0x8000000
bt edx, 0x11
jae 0x584ba4
or eax, 0x4000000
bt edx, 0x1a
jae 0x584baf
or eax, 0x2000000
bt edx, 0
jae 0x584bba
or eax, 0x1000000
bt edx, 0x15
jae 0x584bc6
or ebx, 0x80
bt edx, 0xb
jae 0x584bcf
or ebx, 0x40
bt edx, 7
jae 0x584bd8
or ebx, 0x20
bt edx, 8
jae 0x584be1
or ebx, 0x10
bt edx, 0xc
jae 0x584bea
or ebx, 8
bt edx, 0x17
jae 0x584bf3
or ebx, 4
bt edx, 1
jae 0x584bfc
or ebx, 2
bt edx, 0x10
jae 0x584c05
or ebx, 1
bt edx, 6
jae 0x584c11
or ebx, 0x8000
bt edx, 0x13
jae 0x584c1d
or ebx, 0x4000
bt edx, 0xa
jae 0x584c29
or ebx, 0x2000
bt edx, 0xe
jae 0x584c35
or ebx, 0x1000
bt edx, 0x16
jae 0x584c41
or ebx, 0x800
bt edx, 4
jae 0x584c4d
or ebx, 0x400
bt edx, 0x1b
jae 0x584c59
or ebx, 0x200
bt edx, 0x18
jae 0x584c65
or ebx, 0x100
ret
Function at 0x5a6a30
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xfffffe00
jne 0x5a6a68
test dword [0x7eda90], 0xffffff80
jne 0x5a6b18
test dword [0x7eda90], 0xffffffff
jne 0x5a6b90
call fcn.006a6b5c
jmp fcn.005a6a30
push ebx
mov ebx, dword [ecx + 0x25]
test ebx, ebx
jle 0x5a6b0c
mov eax, dword [ecx + 0x29]
mov edx, dword [eax]
mov ecx, dword [edx]
cmp ebx, 4
jl 0x5a6b10
mov edx, ebx
and edx, 3
neg edx
add edx, ebx
pxor xmm1, xmm1
xor eax, eax
movd xmm0, ecx
punpckldq xmm0, xmm0
punpckldq xmm0, xmm0
movdqa xmm3, xmm0
pcmpgtd xmm3, xmm1
movdqa xmm2, xmm0
pxor xmm2, xmm1
pand xmm3, xmm2
pxor xmm1, xmm3
add eax, 4
cmp eax, edx
jb 0x5a6a9f
movdqa xmm0, xmm1
psrldq xmm0, 8
movdqa xmm2, xmm1
pcmpgtd xmm2, xmm0
pxor xmm1, xmm0
pand xmm2, xmm1
pxor xmm2, xmm0
movdqa xmm1, xmm2
psrldq xmm1, 4
movdqa xmm3, xmm2
pcmpgtd xmm3, xmm1
pxor xmm2, xmm1
pand xmm3, xmm2
pxor xmm3, xmm1
movd eax, xmm3
cmp edx, ebx
jae 0x5a6b0e
cmp ecx, eax
cmovge eax, ecx
inc edx
cmp edx, ebx
jb 0x5a6b00
jmp 0x5a6b0e
xor eax, eax
pop ebx
ret
xor eax, eax
xor edx, edx
jmp 0x5a6afc
push ebx
mov ebx, dword [ecx + 0x25]
test ebx, ebx
jle 0x5a6b84
mov eax, dword [ecx + 0x29]
mov edx, dword [eax]
mov ecx, dword [edx]
cmp ebx, 2
jl 0x5a6b88
mov edx, ebx
and edx, 1
neg edx
add edx, ebx
pxor mm1, mm1
xor eax, eax
movd mm0, ecx
punpckldq mm0, mm0
movq mm3, mm0
pcmpgtd mm3, mm1
movq mm2, mm0
pxor mm2, mm1
pand mm3, mm2
pxor mm1, mm3
add eax, 2
cmp eax, edx
jb 0x5a6b40
movq mm0, mm1
psrlq mm0, 0x20
movq mm2, mm1
pcmpgtd mm2, mm0
pxor mm1, mm0
pand mm2, mm1
pxor mm2, mm0
movd eax, mm2
emms
cmp edx, ebx
jae 0x5a6b86
cmp ecx, eax
cmovge eax, ecx
inc edx
cmp edx, ebx
jb 0x5a6b78
jmp 0x5a6b86
xor eax, eax
pop ebx
ret
xor eax, eax
xor edx, edx
jmp 0x5a6b74
push esi
mov edx, dword [ecx + 0x25]
test edx, edx
jle 0x5a6bb0
mov eax, dword [ecx + 0x29]
mov ecx, dword [eax]
mov esi, dword [ecx]
xor eax, eax
xor ecx, ecx
cmp esi, eax
jl 0x5a6ba9
mov eax, esi
inc ecx
cmp ecx, edx
jl 0x5a6ba3
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5a6bb4
Capabilities:
Encode data using xor

Disassembly:
test dword [0x7eda90], 0xfffffe00
jne 0x5a6bec
test dword [0x7eda90], 0xffffff80
jne 0x5a6ca4
test dword [0x7eda90], 0xffffffff
jne 0x5a6d24
call fcn.006a6b5c
jmp fcn.005a6bb4
push ebx
mov ebx, dword [ecx + 0x25]
test ebx, ebx
jle 0x5a6c94
mov eax, dword [ecx + 0x29]
mov edx, dword [eax]
mov ecx, dword [edx]
cmp ebx, 4
jl 0x5a6c9b
mov edx, ebx
and edx, 3
neg edx
add edx, ebx
movdqa xmm1, xmmword [0x6d42f0]
xor eax, eax
movd xmm0, ecx
punpckldq xmm0, xmm0
punpckldq xmm0, xmm0
movdqa xmm2, xmm0
pcmpgtd xmm2, xmm1
pxor xmm1, xmm0
pand xmm2, xmm1
movdqa xmm1, xmm0
pxor xmm1, xmm2
add eax, 4
cmp eax, edx
jb 0x5a6c27
movdqa xmm0, xmm1
psrldq xmm0, 8
movdqa xmm2, xmm1
pcmpgtd xmm2, xmm0
pxor xmm0, xmm1
pand xmm2, xmm0
pxor xmm2, xmm1
movdqa xmm1, xmm2
psrldq xmm1, 4
movdqa xmm3, xmm2
pcmpgtd xmm3, xmm1
pxor xmm1, xmm2
pand xmm3, xmm1
pxor xmm3, xmm2
movd eax, xmm3
cmp edx, ebx
jae 0x5a6c99
cmp ecx, eax
cmovl eax, ecx
inc edx
cmp edx, ebx
jb 0x5a6c88
jmp 0x5a6c99
mov eax, 0x11bed
pop ebx
ret
mov eax, 0x11bed
xor edx, edx
jmp 0x5a6c84
push ebx
mov ebx, dword [ecx + 0x25]
test ebx, ebx
jle 0x5a6d14
mov eax, dword [ecx + 0x29]
mov edx, dword [eax]
mov ecx, dword [edx]
cmp ebx, 2
jl 0x5a6d1b
mov edx, ebx
and edx, 1
neg edx
add edx, ebx
movq mm1, qword [0x6d4300]
xor eax, eax
movd mm0, ecx
punpckldq mm0, mm0
movq mm2, mm0
pcmpgtd mm2, mm1
pxor mm1, mm0
pand mm2, mm1
movq mm1, mm0
pxor mm1, mm2
add eax, 2
cmp eax, edx
jb 0x5a6cd0
movq mm0, mm1
psrlq mm0, 0x20
movq mm2, mm1
pcmpgtd mm2, mm0
pxor mm0, mm1
pand mm2, mm0
pxor mm2, mm1
movd eax, mm2
emms
cmp edx, ebx
jae 0x5a6d19
cmp ecx, eax
cmovl eax, ecx
inc edx
cmp edx, ebx
jb 0x5a6d08
jmp 0x5a6d19
mov eax, 0x11bed
pop ebx
ret
mov eax, 0x11bed
xor edx, edx
jmp 0x5a6d04
push esi
mov edx, dword [ecx + 0x25]
test edx, edx
jle 0x5a6d47
mov eax, dword [ecx + 0x29]
mov ecx, dword [eax]
mov esi, dword [ecx]
mov eax, 0x11bed
xor ecx, ecx
cmp esi, eax
jge 0x5a6d40
mov eax, esi
inc ecx
cmp ecx, edx
jl 0x5a6d3a
pop esi
ret
mov eax, 0x11bed
pop esi
ret
Function at 0x5b0860
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 0x5b087f
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b086a
dec eax
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x5b08ed
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 0x5b08b1
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b089c
dec eax
push eax
push edi
push ebp
call fcn.006a6d20
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 0x5b08d8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5b08ed
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 0x5b08f4
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 0x5b097f
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x5b0945
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 0x5b093a
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b0925
dec eax
test eax, eax
jne 0x5b094d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x5b097f
lea ecx, [esp]
mov edx, ebp
call fcn.004f5acc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [esp]
test esi, esi
je 0x5b097f
push esi
mov ecx, edi
call fcn.005b09a4
cmp eax, 0xffffffff
je 0x5b0990
mov ecx, esi
call fcn.004db418
push 0x8002f
mov ecx, edi
call fcn.005afeb4
pop ecx
pop ebp
pop esi
pop edi
ret
mov ecx, esi
call fcn.004db418
mov eax, 0xffffffff
pop ecx
pop ebp
pop esi
pop edi
ret
Function at 0x5b2f5c
Capabilities:
Parse url

Disassembly:
push edi
push ebp
push ebx
push ecx
mov eax, 0x40
call fcn.00696350
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 0x5b300e
add edi, 0x14
mov ecx, edi
mov edx, ebp
call fcn.004f5acc
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
inc ecx
call fcn.004dbd48
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 0x5b304c
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x5b3037
dec eax
lea edx, [esp]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x5b30ed
mov eax, dword [esp + 8]
test eax, eax
je 0x5b3076
lea ecx, [edi + 0x18]
push eax
mov edx, dword [esp + 8]
call fcn.004f72a4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5b308b
lea ecx, [edi + 0x1c]
push eax
mov edx, dword [esp + 0x14]
call fcn.004f72a4
movzx eax, word [esp + 0x18]
test eax, eax
jne 0x5b309f
mov eax, 0x15
mov word [edi + 0x20], ax
jmp 0x5b30a3
mov word [edi + 0x20], ax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5b30b8
lea ecx, [edi + 0x22]
push eax
mov edx, dword [esp + 0x20]
call fcn.004f72a4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5b30cd
lea ecx, [edi + 0x26]
push eax
mov edx, dword [esp + 0x28]
call fcn.004f72a4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5b3108
add edi, 0x2a
push eax
mov ecx, edi
mov edx, dword [esp + 0x30]
call fcn.004f72a4
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
mov ecx, dword [edi + 0x14]
call fcn.004db418
mov dword [edi + 0x14], 0
add edi, 0x14
mov ecx, edi
mov edx, ebp
call fcn.004f5acc
add esp, 0x44
pop ebx
pop ebp
pop edi
ret 4
Function at 0x5b38fc
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.00696350
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.004e54bc
lea ecx, [esp + 0x10]
call fcn.004e5330
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x5b3971
lea ecx, [esp + 0x10]
call fcn.004e5330
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x5b39d1
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 0x5b39b0
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.004e55bc
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 0x5b39fc
lea ecx, [esp + 0x10]
call fcn.004e55bc
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.004e55bc
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.004e55bc
mov eax, edi
add esp, 0x20
pop edi
ret
Function at 0x5b5490
Capabilities:
Send data
Send data on socket

Disassembly:
test dword [0x7eda90], 0xffffff80
jne 0x5b54b8
test dword [0x7eda90], 0xffffffff
jne 0x5b54b8
call fcn.006a6b5c
jmp fcn.005b5490
push esi
push ebx
sub esp, 0x14
mov ebx, ecx
push dword [esp + 0x20]
lea ecx, [esp + 4]
call fcn.004e54bc
lea ecx, [esp]
call fcn.004e5330
mov esi, eax
lea ecx, [esp]
call fcn.005b2170
test eax, eax
jbe 0x5b5507
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 0x5b5519
sub ebx, eax
add esi, eax
test ebx, ebx
jne 0x5b54ea
mov edi, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004e55bc
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret 8
mov edi, dword [esp + 0x10]
lea ecx, [esp]
call fcn.004e55bc
mov eax, 1
add esp, 0x14
pop ebx
pop esi
ret 8

Function at 0x5b7f20
Capabilities:
Initialize winsock library

Disassembly:
push esi
push ecx
mov eax, 0x18c
call fcn.00696350
mov ecx, dword [esp + 0x18c]
mov esi, ecx
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x5b7f7f
movzx edx, word [esp]
movzx eax, dl
cmp eax, 1
jne 0x5b7f61
and edx, 0xffffff00
cmp edx, 0x100
je 0x5b7f98
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 0x5b8054
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.00552468
mov dword [edi], 0x7f1440
lea ecx, [esp]
call fcn.0052bdc4
push 0x3a
push dword [esp + 0x20]
lea ecx, [esp + 8]
call fcn.0052ba44
push 0x3a
push dword [esp + 0xc]
lea ecx, [esp + 8]
call fcn.0052ba44
push dword [esp + 8]
push dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5b80d2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5b80d2
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.0052bdb0
mov eax, edi
add esp, 0xc
pop esi
pop edi
ret 8