joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f2754
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5f2766
add esp, 0xfffffff0
call fcn.0040a184
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004cb72c
mov eax, dword [0x882d6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5f2c20
mov eax, dword [0x882d90]
mov dword [eax + 4], ebx
mov dword [eax], 0x5f2c2c
mov eax, ebx
call fcn.005f2c38
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5ed10c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005f3214
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f3044
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f3044
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f3044
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f3044
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f3044
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5f28e6
call fcn.0040a1dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5f2de4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f2f8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5f2f70
mov dl, 1
mov eax, dword [0x496684]
call fcn.004ba758
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040b964
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5f2f5f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00556e40
test al, al
je 0x5f2f52
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5f2fa0
lea eax, [ebp - 0x394]
call fcn.004298b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5f2f52
xor eax, eax
push ebp
push 0x5f2f4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5f3010
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5f2f34
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040cad4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5f2f34
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040cad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2f52
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5f2e55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004ba67c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f2f96
lea eax, [ebp - 0x3a0]
call fcn.0040b964
ret

Function at 0x5f3b9c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x88a19c]
cmp byte [eax + 0xc5], 0
jne 0x5f3c0e
cmp dword [0x88a1c0], 0
jne 0x5f3bce
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x86825c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x88a1c0], eax
cmp dword [0x88a1bc], 0
jne 0x5f3be9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x88a1bc], eax
cmp dword [0x88a1c4], 0
jne 0x5f3c0e
push esp
push 0
push 0
mov eax, dword [0x868258]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x88a1c4], eax
pop edx
ret
Function at 0x5f4030
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5f4047
add esp, 0xfffffff0
call fcn.0040a184
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004cb72c
mov eax, dword [0x8829f8]
cmp byte [eax], 0
jne 0x5f4074
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x883240]
cmp word [eax + 2], 0
jne 0x5f408e
mov eax, dword [0x883240]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005f6424
mov eax, dword [0x883500]
cmp word [eax + 2], 0
jne 0x5f40a8
mov eax, dword [0x883500]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005f6628
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x50d2e4]
call fcn.00513828
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5f6ba0
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x512080]
call fcn.0051da80
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5f4298
mov eax, dword [0x882f0c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0051df9c
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5f6e88
mov dl, 1
mov eax, dword [0x492c34]
call fcn.00409acc
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x882f0c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004296b0
test eax, eax
je 0x5f41c2
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00429508
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00429694
test eax, eax
je 0x5f41da
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040cad4
push ebx
push 0x5f5e00
call fcn.005e923c
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x8829f8]
cmp byte [eax], 0
jne 0x5f422b
mov eax, ebx
call fcn.005f447c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005f70c0
mov eax, ebx
call fcn.005f7d60
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5f428f
call fcn.0040a1dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f47c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5f4862
cmp dword [ebx + 0xac], 0
jne 0x5f485c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5f46fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5f485c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5f4822
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5f485c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004b5ba4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5f4831
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5f4b1c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x88a19c]
cmp dword [eax + 0x188], 0
je 0x5f4c96
test bl, bl
jne 0x5f4be1
cmp dword [esi + 0xb4], 0
jne 0x5f4bd6
mov eax, esi
call fcn.005f7bb0
push eax
push 0x5f4a10
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5f4ba7
mov eax, dword [0x88a19c]
cmp byte [eax + 0xeb], 0
je 0x5f4ba7
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5f4b88
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f4ba7
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f4b90
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f4bd6
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b5ba4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f4bb6
inc dword [esi + 0xb4]
jmp 0x5f4c96
cmp dword [esi + 0xb4], 0
jle 0x5f4c96
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5f4c96
cmp dword [esi + 0x58], 0
je 0x5f4c4b
mov eax, dword [0x88a19c]
cmp byte [eax + 0xeb], 0
je 0x5f4c4b
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5f4c2c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f4c4b
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f4c34
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f4c7a
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b5ba4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f4c5a
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5e5a80]
call fcn.0040ea30
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5f5934
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5f5991
cmp byte [ebx + 0xeb], 0
jne 0x5f5991
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040baec
mov eax, dword [esi]
test eax, eax
je 0x5f597e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5f599e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040bd44
jmp 0x5f599e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040bd44
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5f72d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5f7345
mov eax, esi
call fcn.00550954
test al, al
je 0x5f7345
mov eax, dword [ebx + 0x98]
call fcn.00550580
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5f7345
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x5f7336
push 0
mov eax, dword [ebx + 0x98]
call fcn.00550580
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00546f7c
jmp 0x5f7345
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005f70e0
pop esi
pop ebx
ret
Function at 0x60a7e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040ba48
xor eax, eax
push ebp
push 0x60a921
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x60a8f4
xor edx, edx
push ebp
push 0x60a8ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x60a831
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x60a8c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x60a8b1
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x60a874
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040ca18
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.004071e8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60a8b8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x882b54]
mov dl, 1
mov eax, dword [0x41f5d8]
call fcn.0042ec74
call fcn.0040afe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60a928
lea eax, [ebp - 4]
call fcn.0040b964
ret
Function at 0x60d2c4
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x60d35e
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x60d2e3
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x60d374
dec edx
je 0x60d3a9
jmp 0x60d3fa
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x60d3fa
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x60d50c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x60d52b
add edx, 3
sar edx, 2
test edx, edx
jle 0x60d639
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x60d560
je 0x60d5a3
sub ecx, 0x2b
je 0x60d599
sub ecx, 4
je 0x60d59e
dec ecx
sub ecx, 0xa
jb 0x60d58b
jmp 0x60d5a6
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x60d572
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x60d57d
jmp 0x60d5a6
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x60d5a6
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x60d5a6
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x60d5a6
mov byte [eax], 0x3e
jmp 0x60d5a6
mov byte [eax], 0x3f
jmp 0x60d5a6
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x60d543
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x60d5f7
cmp byte [esp + 7], 0xff
jne 0x60d5f7
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x60d62e
cmp dl, 0xff
je 0x60d62e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x60d53a
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x60fc5c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
mov edx, ecx
dec edx
test edx, edx
jb 0x60fc77
inc edx
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x60fc6c
pop edi
pop esi
ret
Function at 0x696890
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, eax
xor eax, eax
push ebp
push 0x696a09
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, edx
test esi, esi
je 0x6968cd
or ebx, 0xffff
mov eax, esi
call fcn.0040ca18
mov esi, eax
jmp 0x6968cf
xor esi, esi
xor eax, eax
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x2f76
jne 0x6968fd
mov eax, dword [ebp + 8]
call fcn.0040b964
jmp 0x6969e0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
je 0x69694d
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.KERNEL32.DLL_GetLastError
lea ecx, [ebp - 0x1c]
mov edx, dword [0x88a284]
call fcn.0042d600
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x882f6c]
mov dl, 1
mov eax, dword [0x699f6c]
call fcn.0042ed44
call fcn.0040afe4
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404ba0]
call fcn.0040e90c
add esp, 4
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x6969c9
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call sub.KERNEL32.DLL_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x88a284]
call fcn.0042d600
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x882f6c]
mov dl, 1
mov eax, dword [0x699f6c]
call fcn.0042ed44
call fcn.0040afe4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00437060
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00436ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x696a10
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040b9c4
lea eax, [ebp - 4]
mov edx, dword [0x404ba0]
call fcn.0040ea30
ret

Function at 0x696bde
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x696b9f
add esp, 0xfffffff0
call fcn.0040a184
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.006a1b04
mov dl, 1
mov eax, dword [0x695864]
call fcn.00698b7c
mov dword [edi + 0x98], eax
mov dl, 1
mov eax, dword [0x65b504]
call fcn.006660f8
mov dword [edi + 0x94], eax
mov eax, dword [0x86be78]
call fcn.00698828
push 0
push 0
push 0
push 1
push 0x696c28
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0x90], esi
test esi, esi
jne 0x696c0d
mov ecx, dword [0x88323c]
mov dl, 1
mov eax, dword [0x69a024]
call fcn.0042ec74
call fcn.0040afe4
mov eax, edi
test bl, bl
je 0x696c22
call fcn.0040a1dc
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret