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

Disassembly:
push ebx
push ebp
push esi
mov esi, edx
mov eax, esi
mov ebp, ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x551f90
sub eax, edx
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x551fe9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x551fb6
sub ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x551fef
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x552010
Capabilities:
Open clipboard

Disassembly:
sub esp, 8
push ecx
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x55202a
add esp, 8
ret
push esi
push 1
call dword [0x673874]
mov esi, eax
test esi, esi
je 0x55205d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
lea edx, [ecx + 1]
push ebx
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x552046
sub ecx, edx
pop ebx
mov dword [esp + 8], ecx
jne 0x55206a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
pop esi
add esp, 8
ret
mov edx, eax
lea ecx, [esp + 4]
call fcn.004ea050
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret

Function at 0x552a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov edx, dword [esi + 8]
push 2
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 8]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ax, word [esp + 4]
cmp al, 0xff
pop esi
jne 0x552ab6
cmp ah, 0xfe
jne 0x552ab6
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x552e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push eax
mov esi, ecx
call fcn.0051b7c0
lea ecx, [esp + 8]
mov dword [esi], 0x637928
call fcn.00506920
mov ecx, dword [esp + 0x1c]
push 0x3a
push ecx
lea ecx, [esp + 0x10]
call fcn.00506860
mov edx, dword [esp + 0x10]
push 0x3a
push edx
lea ecx, [esp + 0x10]
call fcn.00506860
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x552e82
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x552e82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
lea ecx, [esp + 8]
call fcn.00506750
pop edi
mov eax, esi
pop esi
add esp, 0xc
ret 8

Function at 0x553000
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x190
call fcn.00609610
push esi
lea eax, [esp + 4]
push eax
push 0x101
mov esi, ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x553039
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
push str.WinSock_failed_nto_initialize_
push eax
call dword [ecx + 0x48]
add esp, 8
pop esi
add esp, 0x190
ret
mov ax, word [esp + 4]
cmp al, 1
jne 0x553050
cmp ah, al
jne 0x553050
xor eax, eax
pop esi
add esp, 0x190
ret
call fcn.0061904a
mov eax, dword [esi + 0x60]
mov edx, dword [eax]
push str.WinSock_1.1_failed_
push eax
call dword [edx + 0x48]
add esp, 8
pop esi
add esp, 0x190
ret

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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004e1d40
lea ecx, [esp + 0xc]
call fcn.00533d50
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00552df0
mov esi, eax
test esi, esi
jbe 0x5531aa
mov ecx, dword [ebx + 8]
push 0
push esi
push edi
push ecx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5531be
sub esi, eax
add edi, eax
test esi, esi
ja 0x553190
lea ecx, [esp + 0xc]
call fcn.004e1cf0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
lea ecx, [esp + 0xc]
call fcn.004e1cf0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
Function at 0x553620
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x14
push ebx
mov ebx, edx
push ebp
mov ebp, ecx
lea ecx, [ebx + 2]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
shl ecx, 2
lea edx, [ecx + 0x47]
mov eax, 0x38e38e39
mul edx
push esi
shr edx, 4
lea ecx, [ecx + edx*2 + 1]
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ecx
call fcn.004dc530
mov ecx, eax
mov eax, ebx
xor edx, edx
mov ebx, 3
div ebx
test eax, eax
mov dword [esp + 0x1c], edx
jbe 0x553717
mov dword [esp + 0x18], eax
jmp 0x553680
mov al, byte [edi + ebp]
mov dl, byte [edi + ebp + 1]
inc edi
mov bl, byte [edi + ebp + 1]
movzx eax, al
inc edi
mov byte [esp + 0x13], bl
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + 0x6646f0]
mov byte [ecx + esi], bl
movzx ebx, dl
and eax, 3
shl eax, 4
mov edx, ebx
shr edx, 4
or edx, eax
mov al, byte [edx + 0x6646f0]
mov byte [ecx + esi + 1], al
movzx eax, byte [esp + 0x13]
inc edi
inc esi
mov edx, eax
and ebx, 0xf
shr edx, 6
shl ebx, 2
or edx, ebx
mov dl, byte [edx + 0x6646f0]
and eax, 0x3f
inc esi
mov byte [ecx + esi], dl
mov al, byte [eax + 0x6646f0]
inc esi
mov byte [ecx + esi], al
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
add eax, 4
inc esi
cmp eax, 0x48
jbe 0x55370d
mov byte [ecx + esi], 0xd
inc esi
mov byte [ecx + esi], 0xa
inc esi
mov dword [esp + 0x14], 0
dec dword [esp + 0x18]
jne 0x553680
mov eax, dword [esp + 0x1c]
dec eax
je 0x553763
dec eax
jne 0x553790
mov al, byte [edi + ebp]
mov dl, byte [edi + ebp + 1]
movzx eax, al
mov edi, eax
shr edi, 2
mov bl, byte [edi + 0x6646f0]
movzx edx, dl
and eax, 3
mov edi, edx
shl eax, 4
mov byte [ecx + esi], bl
shr edi, 4
or edi, eax
mov al, byte [edi + 0x6646f0]
inc esi
mov byte [ecx + esi], al
inc esi
and edx, 0xf
mov dl, byte [edx*4 + 0x6646f0]
mov byte [ecx + esi], dl
jmp 0x55378a
movzx eax, byte [edi + ebp]
mov edx, eax
shr edx, 2
mov dl, byte [edx + 0x6646f0]
and eax, 3
mov byte [ecx + esi], dl
shl eax, 4
mov al, byte [eax + 0x6646f0]
inc esi
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov byte [ecx + esi], 0xd
inc esi
mov byte [ecx + esi], 0xa
mov byte [ecx + esi + 1], 0
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x14
ret 8
Function at 0x5539a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x20
call fcn.00609610
push esi
mov esi, ecx
xor ecx, ecx
mov cx, word [esi + 0x30]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov word [esp + 4], 2
push ecx
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 0x24]
push edx
lea ecx, [esp + 0x18]
mov word [esp + 0xa], ax
call fcn.004e1d40
lea ecx, [esp + 0x14]
call fcn.00533d50
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x553a3e
lea ecx, [esp + 0x14]
call fcn.00533d50
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x553a37
call fcn.0061904a
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
push edx
push str.Unknown_Mail_Server_n_s_
push eax
call dword [ecx + 0x48]
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004e1cf0
mov eax, esi
pop esi
add esp, 0x20
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push 6
push 1
push 2
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x553a61
call fcn.0061904a
push str.Failed_to_connect_nto_Mail_Socket_
jmp 0x553a7d
push 0x10
lea ecx, [esp + 8]
push ecx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x553a9b
call fcn.0061904a
push str.Failed_to_connect_nto_Mail_Server_
mov esi, dword [esi + 0x60]
mov edx, dword [esi]
push esi
call dword [edx + 0x48]
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004e1cf0
mov eax, esi
pop esi
add esp, 0x20
ret
lea ecx, [esp + 0x14]
call fcn.004e1cf0
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x553c30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x18], 0x10
call sub.WSOCK32.dll_getsockname
push 2
push 0x10
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_gethostbyaddr
test eax, eax
je 0x553c68
mov edx, dword [eax]
jmp 0x553c74
mov ecx, dword [esp + 0x14]
push ecx
call sub.WSOCK32.dll_inet_ntoa
mov edx, eax
lea ecx, [esp + 8]
call fcn.004ea050
mov eax, dword [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x553c84
sub eax, edx
lea ecx, [eax + 0xa]
call fcn.004dc530
push str.ESMTP
push 0x75ef08
mov esi, eax
call fcn.00609740
add esp, 8
test eax, eax
je 0x553cb9
mov edx, dword [esp + 8]
push edx
push str.EHLO__s_r_n
jmp 0x553cc3
mov eax, dword [esp + 8]
push eax
push str.HELO__s_r_n
push esi
call fcn.006097c6
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x553cd1
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.00553160
cmp eax, 1
jne 0x553cec
mov edi, eax
jmp 0x553cfa
push 0x637b7c
mov ecx, edi
call fcn.005530e0
mov edi, eax
mov ecx, dword [esp + 8]
call fcn.004dc710
mov ecx, esi
call fcn.004dc710
mov eax, edi
pop edi
pop esi
add esp, 0x18
ret
Function at 0x554b80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x554ba4
mov esi, dword [esi + 0x60]
mov eax, dword [esi]
push str.Could_not_connect_nto_Internet.
push esi
call dword [eax + 0x48]
add esp, 8
pop esi
pop ecx
ret
mov ecx, esi
call fcn.00553000
cmp eax, 1
je 0x554bbc
mov ecx, esi
call fcn.005539a0
cmp eax, 1
jne 0x554bc4
mov eax, 1
pop esi
pop ecx
ret
push 0x637fb4
mov ecx, esi
call fcn.005530e0
cmp eax, 1
jne 0x554be9
mov esi, dword [esi + 0x60]
mov ecx, dword [esi]
push str.Mail_server_nconnection_nfailure_
push esi
call dword [ecx + 0x48]
add esp, 8
pop esi
pop ecx
ret
mov ecx, esi
call fcn.00553c30
cmp eax, 1
jne 0x554c09
mov esi, dword [esi + 0x60]
mov edx, dword [esi]
push str.Mail_server_ndid_not_nhandshake_
push esi
call dword [edx + 0x48]
add esp, 8
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x554c62
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x554c62
push edi
lea edi, [ecx + 1]
jmp 0x554c20
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x554c20
sub ecx, edi
mov dword [esp + 8], ecx
pop edi
je 0x554c62
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x554c33
sub eax, edx
mov dword [esp + 4], eax
je 0x554c62
mov ecx, esi
call fcn.00553d20
cmp eax, 1
jne 0x554c62
mov esi, dword [esi + 0x60]
mov eax, dword [esi]
push str.Authentication_failed_
push esi
call dword [eax + 0x48]
add esp, 8
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x554fc0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5550f2
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x5550f2
push eax
push eax
push eax
push eax
push 0x626ff8
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x55501a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5550f2
mov edx, dword [esi + 0x14]
push edx
push str.Could_not_Open_Internet_Connection:__s
jmp 0x5550e4
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push 0
push 0
push 1
push ecx
xor ecx, ecx
mov cx, word [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x55508a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esi + 0x10], 0
jne 0x5550f2
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push str.Could_not_Connect_to_Internet:__s
push 0
push ecx
call fcn.00559dc0
add esp, 0x10
mov eax, 1
pop esi
ret 8
mov edx, dword [esp + 8]
mov ecx, dword [esi + 0x2c]
push 0
push 2
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5550fb
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edx + 4], eax
mov eax, dword [esi + 0xc]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
pop edi
jne 0x5550f2
mov edx, dword [esi + 0x14]
push edx
push str.Could_not_Open_File_on_Server:__s
mov eax, dword [esi + 4]
push 0
push eax
call fcn.00559dc0
add esp, 0x10
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x555390
Capabilities:
Parse url

Disassembly:
mov eax, 0x40
call fcn.00609610
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov ebp, ecx
xor eax, eax
push eax
mov ecx, 0xf
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
mov esi, 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
ja 0x55540a
lea ecx, [ebp + 0x14]
mov edx, ebx
call fcn.004ea050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
lea ecx, [eax + 1]
call fcn.004dc530
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea esi, [ebp + 0x14]
push ebx
mov dword [esi], eax
call edi
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx + eax], 0
mov ecx, dword [esi]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x555433
lea edx, [esp + 0x14]
push edx
push 0
sub eax, edi
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x5554da
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x555468
mov edx, dword [esp + 0x18]
push eax
lea ecx, [ebp + 0x18]
call fcn.004ea090
mov eax, dword [esp + 0x28]
test eax, eax
je 0x55547d
mov edx, dword [esp + 0x24]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004ea090
mov ax, word [esp + 0x2c]
test ax, ax
mov word [ebp + 0x20], ax
jne 0x555491
mov word [ebp + 0x20], 0x15
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5554a6
mov edx, dword [esp + 0x30]
push eax
lea ecx, [ebp + 0x24]
call fcn.004ea090
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5554bb
mov edx, dword [esp + 0x38]
push eax
lea ecx, [ebp + 0x28]
call fcn.004ea090
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5554f0
mov edx, dword [esp + 0x40]
push eax
lea ecx, [ebp + 0x2c]
call fcn.004ea090
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
mov ecx, dword [esi]
call fcn.004dc710
mov ecx, esi
mov edx, ebx
mov dword [esi], 0
call fcn.004ea050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
Function at 0x574e30
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x18], edx
mov ebp, ecx
xor ebx, ebx
cmp ebx, 3
ja case.default.0x574e48
jmp dword [ebx*4 + 0x574fbc]
lea edi, [ebp + 0x400]
jmp case.default.0x574e48
mov edi, ebp
jmp case.default.0x574e48
lea edi, [ebp + 0xc48]
jmp case.default.0x574e48
lea edi, [ebp + 0x800]
mov eax, ebx
shl eax, 0xa
xor ecx, ecx
add eax, 0x639c38
mov edx, dword [eax]
mov dword [edi + ecx*4], edx
inc ecx
add eax, 4
cmp ecx, 0x100
jl 0x574e75
inc ebx
cmp ebx, 4
jl 0x574e43
mov ebx, dword [esp + 0x20]
lea ecx, [ebp + 0xc00]
xor eax, eax
mov dword [esp + 0x10], 0x639bf0
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + edx]
shl esi, 8
or ecx, esi
inc eax
cmp eax, ebx
jl 0x574eb8
xor eax, eax
movzx esi, byte [eax + edx]
shl ecx, 8
or esi, ecx
inc eax
cmp eax, ebx
jl 0x574ec8
xor eax, eax
movzx ecx, byte [eax + edx]
shl esi, 8
or ecx, esi
inc eax
cmp eax, ebx
jl 0x574ed8
xor eax, eax
movzx esi, byte [eax + edx]
shl ecx, 8
or esi, ecx
inc eax
cmp eax, ebx
jl 0x574ee8
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov edx, dword [esp + 0x14]
xor ecx, esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
add ecx, 4
add edx, 4
cmp ecx, 0x639c38
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jl 0x574ea4
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
lea esi, [ebp + 0xc04]
mov ebx, 9
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov ecx, ebp
call fcn.00574a70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
dec ebx
jne 0x574f25
xor ebx, ebx
lea ebx, [ebx]
cmp ebx, 3
ja case.default.0x574f55
jmp dword [ebx*4 + 0x574fcc]
lea edi, [ebp + 0x400]
jmp case.default.0x574f55
mov edi, ebp
jmp case.default.0x574f55
lea edi, [ebp + 0xc48]
jmp case.default.0x574f55
lea edi, [ebp + 0x800]
xor esi, esi
jmp 0x574f80
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x24]
mov ecx, ebp
call fcn.00574a70
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [edi + esi*4], eax
mov dword [edi + esi*4 + 4], ecx
add esi, 2
cmp esi, 0x100
jl 0x574f80
inc ebx
cmp ebx, 4
jl 0x574f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x57d650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x14]
mov ebp, dword [esi + 0x38]
push edi
mov edi, ecx
mov ecx, dword [eax + 0xc]
and ecx, 0x3f
cmp cl, 5
mov dword [esp + 0x10], edi
jne 0x57d680
mov esi, eax
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0xc]
and edx, 0x3f
cmp dl, 5
je 0x57d670
mov ecx, dword [esi + 0x40]
test ecx, ecx
mov eax, esi
je 0x57d6a0
lea esp, [esp]
mov eax, dword [ecx]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x57d690
lea esp, [esp]
mov ecx, dword [edi + 0x64]
mov ebx, dword [eax + 0xb4]
push eax
call fcn.00576dc0
test ebx, ebx
mov eax, ebx
je 0x57d6c5
mov cl, byte [ebx + 0x98]
test cl, 0x20
je 0x57d6c5
test cl, 0x10
je 0x57d6a0
mov ecx, esi
call fcn.004ecf70
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x60]
push esi
mov dword [esp + 0x1c], eax
call fcn.0054c370
dec dword [ebp + 0x6c]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
test edi, edi
mov esi, dword [esp + 0x1c]
je 0x57d727
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
cmp ax, word [esp + 0x18]
jne 0x57d727
mov ecx, dword [edi + 0x70]
dec ecx
test esi, esi
mov dword [edi + 0x70], ecx
jne 0x57d71a
push 0x100
mov ecx, edi
call fcn.004eb230
mov ecx, edi
call fcn.004ecf70
mov edi, eax
test edi, edi
jne 0x57d6f5
test esi, esi
jne 0x57d757
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x78]
test ecx, ecx
je 0x57d757
call fcn.004e66f0
mov esi, eax
test esi, esi
je 0x57d757
push 1
mov ecx, esi
call fcn.004eb230
mov ecx, esi
call fcn.004ecf70
mov esi, eax
test esi, esi
jne 0x57d741
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 8
Function at 0x5893a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x24
call fcn.00609610
xor al, al
mov byte [esp + 4], al
mov byte [esp + 3], al
mov eax, dword [esp + 0x2c]
mov ecx, eax
shl ecx, 0xb
movsx edx, cx
sar edx, 0xb
mov byte [esp + 5], 0x10
mov byte [esp + 6], 0x18
mov byte [esp + 7], 0x20
mov byte [esp + 8], 0x28
mov byte [esp + 9], 0x30
mov byte [esp + 0xa], 0x38
mov byte [esp + 0xb], 0x40
mov byte [esp + 0xc], 0x48
mov byte [esp + 0xd], 0x50
mov byte [esp + 0xe], 0x58
mov byte [esp + 0xf], 0x60
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x11], 0x70
mov byte [esp + 0x12], 0x78
mov byte [esp + 0x13], 0x80
mov byte [esp + 0x14], 0x88
mov byte [esp + 0x15], 0x90
mov byte [esp + 0x16], 0x98
mov byte [esp + 0x17], 0xa0
mov byte [esp + 0x18], 0xa8
mov byte [esp + 0x19], 0xb0
mov byte [esp + 0x1a], 0xb8
mov byte [esp + 0x1b], 0xc0
mov byte [esp + 0x1c], 0xc8
mov byte [esp + 0x1d], 0xd0
mov byte [esp + 0x1e], 0xd8
mov byte [esp + 0x1f], 0xe0
mov byte [esp + 0x20], 0xe8
mov byte [esp + 0x21], 0xf0
mov byte [esp + 0x22], 0xf8
mov byte [esp + 0x23], 0xff
mov cl, byte [esp + edx + 4]
mov edx, eax
mov byte [esp], cl
shl edx, 6
movsx ecx, dx
sar ecx, 0xb
mov dl, byte [esp + ecx + 4]
add eax, eax
movsx ecx, ax
mov eax, dword [esp + 0x28]
sar ecx, 0xb
mov byte [esp + 1], dl
mov dl, byte [esp + ecx + 4]
mov byte [esp + 2], dl
mov ecx, dword [esp]
mov dword [eax], ecx
add esp, 0x24
ret 8
Function at 0x5b4e80
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x204
call fcn.00609610
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x5b4ecd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x5b4ecd
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
call fcn.0060b11b
add eax, 0x40
push eax
call fcn.00609c6e
add esp, 0xc
lea esp, [ebp - 0x210]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b4ed5
sub eax, edx
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00609610
mov esi, esp
test esi, esi
jne 0x5b4eff
mov esi, str.no_stack_
jmp 0x5b4f94
push ebx
push esi
push ebx
push edi
push 0
push 0
call dword [0x673868]
test eax, eax
jne 0x5b4f31
test ebx, ebx
jbe 0x5b4f31
jmp 0x5b4f20
mov edx, dword [ebp + 8]
movsx cx, byte [eax + edx]
mov word [esi + eax*2], cx
inc eax
cmp eax, ebx
jb 0x5b4f20
xor eax, eax
test ebx, ebx
jbe 0x5b4f94
mov edi, 0x63
lea esp, [esp]
cmp word [esi + eax*2], 0x25
jne case.0x5b4f62.43
lea edx, [esi + eax*2 + 2]
jmp 0x5b4f50
movzx ecx, word [edx]
add ecx, 0xffffffd6
cmp ecx, 0x49
ja case.0x5b4f62.43
movzx ecx, byte [ecx + 0x5b504c]
jmp dword [ecx*4 + 0x5b5034]
inc eax
add edx, 2
jmp 0x5b4f50
mov word [esi + eax*2 + 2], 0x53
jmp case.0x5b4f62.43
mov word [esi + eax*2 + 2], 0x73
jmp case.0x5b4f62.43
mov word [esi + eax*2 + 2], 0x43
jmp case.0x5b4f62.43
mov word [esi + eax*2 + 2], di
inc eax
cmp eax, ebx
jb 0x5b4f40
lea edx, [ebp + 0xc]
push edx
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.0060bb87
add esp, 0x10
mov word [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x5b500e
call fcn.005b4dc0
test eax, eax
jle 0x5b500e
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea ecx, [ebp - 0x204]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x210]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x204]
push eax
push 0
call dword [0x67387c]
lea esp, [ebp - 0x210]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret