joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c482
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x45c4a7
cmp ebx, dword [esi + 0x54]
je 0x45c4a7
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x45c569
push edi
test eax, eax
je 0x45c4fa
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0045bfb7
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x45c568
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x45c568
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x45c568
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x45c568
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.0045bfb7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45c766
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.004775e4
test eax, eax
jle 0x45c7b5
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0045feac
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x45c816
mov ecx, edi
inc ebx
call fcn.004775e4
cmp ebx, eax
jl 0x45c784
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x45c86f
sub eax, 4
je 0x45c81a
dec eax
dec eax
jne 0x45c866
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00527dd7
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x45ba3e
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x45c866
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x45c868
cmp dword [esi + 0x54], 0
je 0x45c866
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0045a8c4
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x45c866
cmp dword [esi + 0x54], 0
je 0x45c8be
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x45c8be
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x45c8be
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.00527c60
pop ecx
pop ecx
test eax, eax
je 0x45c8be
mov ecx, dword [esi + 0x54]
call fcn.00470525
test al, al
jne 0x45c866
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.0045c61a
jmp 0x45c816
Function at 0x45f10f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x5b0630]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0xc
mov eax, 0x54818d
call fcn.00523c3b
mov edi, dword [ebp + 0x2c0]
mov ebx, ecx
call fcn.0045e6f8
call fcn.0045aa8c
push eax
lea ecx, [ebp + 0x230]
call fcn.0046028f
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0045aa92
mov ecx, eax
call fcn.00460002
test al, al
je 0x45f271
push edi
lea ecx, [ebp + 0x230]
call fcn.00460092
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp + 0x230]
call fcn.0045ac39
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x45f1e5
push str.Error_opening_file
mov ecx, ebx
call fcn.0045e8ce
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call fcn.0045fedd
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00523c2c
add ebp, 0x2b8
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x45f1fa
push esi
push str.File_is_empty
jmp 0x45f1a6
cmp edi, 0x400000
jbe 0x45f20a
push esi
push 0x553084
jmp 0x45f1a6
push edi
mov dword [ebp - 0x14], esi
call fcn.00450c1a
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x45f250
push dword [ebp - 0x10]
call fcn.00450c25
pop ecx
mov ecx, ebx
call fcn.0045e6f8
push esi
push str.Could_not_read_file
jmp 0x45f1a6
push dword [ebp + 0x2c4]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.0045efbe
push dword [ebp - 0x10]
mov bl, al
call fcn.00450c25
pop ecx
jmp 0x45f1af
call fcn.0045aa92
push eax
lea ecx, [ebp + 0x230]
call fcn.00460078
call fcn.0045aa98
test al, al
je 0x45f292
call fcn.0045aa9e
jmp 0x45f2a9
push 2
push esi
lea ecx, [ebp + 0x230]
call fcn.0045ac39
push eax
call fcn.0046aebb
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x45f2bb
push esi
push str.Error_opening_zip_file
jmp 0x45f1a6
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.004695b9
add esp, 0x14
test eax, eax
je 0x45f2e0
push esi
push str.Could_not_find_ziped_file
jmp 0x45f1a6
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x45f1f2
cmp eax, 0x400000
ja 0x45f202
push eax
call fcn.00450c1a
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0046af18
add esp, 0x18
cmp eax, esi
je 0x45f347
cmp eax, 0x600
je 0x45f347
push edi
call fcn.00450c25
pop ecx
call fcn.0045aa98
test al, al
jne 0x45f33c
push dword [ebp - 0x10]
call fcn.0046af52
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x45f1a6
call fcn.0045aa98
test al, al
jne 0x45f359
push dword [ebp - 0x10]
call fcn.0046af52
pop ecx
push dword [ebp + 0x2c4]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.0045efbe
push edi
jmp 0x45f264
Function at 0x468192
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x46819d
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x468258
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x555a58]
inc edx
sub edi, 8
dec esi
jne 0x4681bd
pop ebx
test edi, edi
je 0x468271
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x555a58]
inc edx
dec edi
jne 0x46825c
pop edi
not eax
pop esi
ret

Function at 0x468708
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x46873c
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x468737
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x468764
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x46874d
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00524660
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x469501
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5b0630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4695ab
movzx ecx, word [esi]
test cx, cx
je 0x4695ab
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x46953f
cmp cx, 0x5c
jne 0x469541
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x469533
cmp eax, esi
je 0x46957f
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00524182
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00469501
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005286e3
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005286b5
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00523c2c
leave
ret
Function at 0x46aadc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46ab57
cmp dword [esi + 4], 0xffffffff
jne 0x46ab57
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x5892a0
push edi
call fcn.005286b5
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x46ab29
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x46ab29
mov eax, 0x2000000
jmp 0x46ab5c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046851e
add esp, 0x10
test eax, eax
jne 0x46ab47
mov eax, dword [ebp + 0x10]
jmp 0x46ab5c
push eax
call fcn.0046a6d8
mov dword [esi], eax
mov eax, dword [0x5b5348]
pop ecx
jmp 0x46ab5c
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4706e3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x47074b
cmp dword [ebp + 8], 0x100
jne 0x47073a
cmp word [ebp + 0xc], 0xd
jne 0x47073a
cmp byte [esi + 0x4da], bl
je 0x470721
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x47073a
cmp byte [esi + 0x4db], bl
jne 0x47073a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x470736
push ebx
push ebx
push ebx
push 0x556418
push esi
call fcn.0045bfb7
xor eax, eax
jmp 0x47074e
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x47b156
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x5b0630]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x47b1c7
cmp dword [esi + 0x10], ebx
je 0x47b1c7
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00528710
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x47b1c7
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00460056
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0045bfb7
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523c2c
leave
ret 0x10
Function at 0x484c71
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x484c96
cmp eax, edi
jge 0x484c8e
mov eax, esi
call fcn.00484625
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x484cb8
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x484c9d
cmp ecx, 4
jge 0x484cd7
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x484cc5
xor eax, eax
jmp 0x484ccd
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x484cbb
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x484d09
mov eax, str.zlib_corrupt
call fcn.00482242
jmp 0x484d44
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x484d19
mov eax, str.read_past_buffer
jmp 0x484d02
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x484d2e
mov ecx, edi
call fcn.00484650
test eax, eax
je 0x484d44
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00524660
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x48b9b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.0048b480
add esp, 0xc
test eax, eax
jl 0x48bbf8
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x48ba2d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x48b9f0
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x48bbf4
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x55a8d0]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x55a8d0]
and esi, 0xff
mov esi, dword [esi*4 + 0x55b4d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55bcd0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55a8d0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x55c0d0]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x55a8d0]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x55b8d0]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x55a8d0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x55a8d0]
and esi, 0xff
mov esi, dword [esi*4 + 0x55b4d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55bcd0]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x55a8d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55b8d0]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55a8d0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x55c0d0]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x55a8d0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x55a8d0]
and esi, 0xff
mov esi, dword [esi*4 + 0x55b4d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55bcd0]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x55a8d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55b8d0]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55a8d0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x55c0d0]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x55a8d0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x55a8d0]
and esi, 0xff
mov esi, dword [esi*4 + 0x55b4d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55bcd0]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x55a8d0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55a8d0]
and edi, 0xff
xor esi, dword [edi*4 + 0x55b8d0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x55c0d0]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x48ba41
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x48c760
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x48c7b2
mov eax, dword [esp]
cmp al, 2
jne 0x48c7ac
shr eax, 8
cmp al, 2
jne 0x48c7ac
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00523c2c
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00523c2c
add esp, 0x194
ret

Function at 0x48d800
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00527b90
mov eax, dword [0x5b0630]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x48d865
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x48d865
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0052a9b3
add eax, 0x40
push eax
call fcn.0052b17f
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00523c2c
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0052b047
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x48d8f4
call fcn.0048d720
test eax, eax
je 0x48d8f4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00523c2c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00523c2c
add esp, 0x108
ret
Function at 0x48ed10
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x48edf3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x48ed8e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x48ede0
shl edx, 0x10
cmp edi, 2
jne 0x48ed9f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x48edcd
lea edx, [edi + 0x3c]
jmp 0x48edda
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x48ed30
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x490de0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov ebp, ecx
test ebp, ebp
je 0x490e04
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call eax
jmp 0x490e35
cmp dword [esi + 8], 0
jne 0x490e28
mov ecx, dword [eax + 8]
push 0x55e55c
push ecx
call fcn.0052ba0d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x490e28
pop edi
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.005299aa
mov edi, eax
add esp, 0x10
test edi, edi
je 0x490e42
cmp edi, ebx
jbe 0x490e5b
test ebp, ebp
jne 0x490e55
mov eax, dword [esi + 8]
push eax
call fcn.00529a3e
add esp, 4
mov dword [esi + 8], ebp
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, edi
pop edi
pop ebp
ret