joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cf7f8
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 0x5cf9a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5cf987
mov dl, 1
mov eax, dword [0x489418]
call fcn.004b5328
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a43c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5cf976
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.0054c908
test al, al
je 0x5cf969
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5cf9b8
lea eax, [ebp - 0x394]
call fcn.00426a88
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5cf969
xor eax, eax
push ebp
push 0x5cf962
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 0x5cfa28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5cf949
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040afcc
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 0x5cf949
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040afcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cf969
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5cf869
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004b5250
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 0x5cf9af
lea eax, [ebp - 0x3a0]
call fcn.0040a43c
pop eax
jmp eax

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

Disassembly:
push ecx
mov eax, dword [0x5f8c08]
cmp byte [eax + 0xc5], 0
jne 0x5d0632
cmp dword [0x5f8c30], 0
jne 0x5d05f2
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x5f1338]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5f8c30], eax
cmp dword [0x5f8c2c], 0
jne 0x5d060d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5f8c2c], eax
cmp dword [0x5f8c34], 0
jne 0x5d0632
push esp
push 0
push 0
mov eax, dword [0x5f1334]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x5f8c34], eax
pop edx
ret
Function at 0x5d0bac
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5d0bc3
add esp, 0xfffffff0
call fcn.00408c00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c618c
mov eax, dword [0x5f13bc]
cmp byte [eax], 0
jne 0x5d0bf0
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x5f1740]
cmp word [eax + 2], 0
jne 0x5d0c0a
mov eax, dword [0x5f1740]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d3070
mov eax, dword [0x5f187c]
cmp word [eax + 2], 0
jne 0x5d0c24
mov eax, dword [0x5f187c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005d3488
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x50bce8]
call fcn.00512864
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5d3a34
mov dl, 1
mov eax, dword [0x4856cc]
call fcn.004085e4
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x4856cc]
call fcn.004085e4
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 + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x510e58]
call fcn.0051ce78
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5d0e14
mov eax, dword [0x5f15dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0051d394
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5d3d20
mov dl, 1
mov eax, dword [0x4856cc]
call fcn.004085e4
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5f15dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00426888
test eax, eax
je 0x5d0d37
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004266e0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0042686c
test eax, eax
je 0x5d0d4f
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.0040afcc
push ebx
push 0x5d2a44
call fcn.005c5040
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5f13bc]
cmp byte [eax], 0
jne 0x5d0da0
mov eax, ebx
call fcn.005d0fdc
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.005d40c8
mov eax, ebx
call fcn.005d4c04
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5d0e0b
call fcn.00408c58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5d130c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5d13ae
cmp dword [ebx + 0xac], 0
jne 0x5d13a8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5d124c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5d13a8
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 0x5d136e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5d13a8
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.004b0178
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5d137d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5f8c08]
cmp dword [eax + 0x190], 0
je 0x5d1859
test bl, bl
jne 0x5d17ac
cmp dword [esi + 0xb4], 0
jne 0x5d17a1
mov eax, esi
call fcn.005d4a54
push eax
push 0x5d15f0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5d1772
mov eax, dword [0x5f8c08]
cmp byte [eax + 0xeb], 0
je 0x5d1772
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5d1753
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5d1772
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 0x5d175b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5d17a1
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b0178
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5d1781
inc dword [esi + 0xb4]
jmp 0x5d1859
cmp dword [esi + 0xb4], 0
jle 0x5d1859
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5d1859
cmp dword [esi + 0x58], 0
je 0x5d180e
mov eax, dword [0x5f8c08]
cmp byte [eax + 0xeb], 0
je 0x5d180e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5d17ef
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5d180e
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 0x5d17f7
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5d183d
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004b0178
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5d181d
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5c1b38]
call fcn.0040d2c8
pop edi
pop esi
pop ebx
ret
Function at 0x5d2650
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 0x5d26ad
cmp byte [ebx + 0xeb], 0
jne 0x5d26ad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a5d4
mov eax, dword [esi]
test eax, eax
je 0x5d269a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5d26ba
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a82c
jmp 0x5d26ba
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a82c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5d42dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5d434d
mov eax, esi
call fcn.005463f0
test al, al
je 0x5d434d
mov eax, dword [ebx + 0x98]
call fcn.00545f88
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5d434d
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x160]
test al, al
je 0x5d433e
push 0
mov eax, dword [ebx + 0x98]
call fcn.00545f88
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0053c1c0
jmp 0x5d434d
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005d40e8
pop esi
pop ebx
ret
Function at 0x5d9e68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x94], 0
jne 0x5d9eee
mov eax, dword [ebx + 8]
call fcn.00545f88
mov ecx, eax
mov dl, 1
mov eax, dword [0x55313c]
call fcn.0053fa6c
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
xor edx, edx
mov eax, esi
call fcn.00558794
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5d9738
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00545f88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00545f88
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa4], 0
jne 0x5d9f70
mov eax, dword [ebx + 8]
call fcn.00545f88
mov ecx, eax
mov dl, 1
mov eax, dword [0x55313c]
call fcn.0053fa6c
mov dword [ebx + 0xa4], eax
mov esi, dword [ebx + 0xa4]
mov dl, 1
mov eax, esi
call fcn.00558794
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5d9784
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa4]
call fcn.00545f88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa4]
call fcn.00545f88
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5d9fee
mov eax, dword [ebx + 8]
call fcn.00545f88
mov ecx, eax
mov dl, 1
mov eax, dword [0x553c30]
call fcn.0053fa6c
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov byte [esi + 0x2b0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00545f88
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00545f88
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x408950
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x12c
push 0xffffffffffffffff
push 0x53bacf
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x58313c]
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x18], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4089b9
lea eax, [ebp]
mov dword [ebp], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4089c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x408ad8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d780
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a90
push str.io_pro.exe
or ebx, 1
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040fc40
test al, al
jne 0x408a48
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a90
push str.prodriver.exe
or ebx, 2
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040fc40
test al, al
jne 0x408a48
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00428a90
push str.pd5.exe
push eax
or ebx, 4
call fcn.0040fc40
mov byte [ebp - 0xd], 0
test al, al
je 0x408a4c
mov byte [ebp - 0xd], 1
test bl, 4
je 0x408a5c
lea ecx, [ebp - 0x1c]
and ebx, 0xfffffffb
call fcn.0040e7a0
test bl, 2
je 0x408a6c
lea ecx, [ebp - 0x20]
and ebx, 0xfffffffd
call fcn.0040e7a0
test bl, 1
je 0x408a7c
lea ecx, [ebp - 0x24]
and ebx, 0xfffffffe
call fcn.0040e7a0
cmp byte [ebp - 0xd], 0
je 0x408aaf
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408aa9
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x408aaf
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040e7a0
lea eax, [ebp]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4089c6
push edi
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.00512b0b
lea esp, [ebp + 0x12c]
pop ebp
ret
Function at 0x40dd10
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.005133f0
push 0xffffffffffffffff
push 0x53bfed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x58313c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x1010]
xor eax, eax
mov dword [ebp - 0x14], edi
mov word [ebp], ax
lea eax, [ebp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040a680
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00421250
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040e7a0
push esi
push dword [ebp + 0x100c]
mov dword [ebp - 4], 3
push 0x589708
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 5
push 0xdeece66d
push dword [0x589724]
push dword [0x589720]
call fcn.005132c0
mov esi, eax
add esi, 0xb
mov dword [0x589720], esi
adc edx, 0
and edx, 0xffff
mov dword [0x589724], edx
shrd esi, edx, 0x10
push 0x589708
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040b950
mov ecx, eax
add esp, 4
mov byte [ebp - 4], 4
mov eax, esp
push ecx
push str.temp_
push eax
call fcn.00410010
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00416660
mov ecx, dword [ebp - 0x14]
add esp, 0x14
add ecx, 0xfffffff8
or esi, 0xffffffff
cmp ecx, 0x583008
je 0x40de48
mov eax, esi
lock xadd dword [ecx], eax
dec eax
cmp eax, esi
jne 0x40de48
push ecx
call fcn.005128b5
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x40de68
lock xadd dword [eax], esi
dec esi
cmp esi, 0xffffffff
jne 0x40de68
push eax
call fcn.005128b5
add esp, 4
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 4], 0x583010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.00512b0b
lea esp, [ebp + 0x1004]
pop ebp
ret 8

Function at 0x40dfb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c064
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi], eax
add eax, 0xfffffff8
cmp eax, 0x583008
je 0x40dfed
lock inc dword [eax]
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x583010
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041e540
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f230
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c1d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 4
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00414490
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x40f29a
cmp eax, 0xffffffff
je 0x40f29a
push 0
mov ecx, esi
call fcn.00416ba0
jmp 0x40f2a1
mov ecx, esi
call fcn.00416aa0
test al, al
jne 0x40f2ae
push 0x32
call ebx
sub edi, 1
jns 0x40f263
mov ecx, dword [esi + 4]
or edi, 0xffffffff
sub ecx, 8
cmp ecx, 0x583008
je 0x40f2d3
mov eax, edi
lock xadd dword [ecx], eax
dec eax
cmp eax, edi
jne 0x40f2d3
push ecx
call fcn.005128b5
add esp, 4
mov eax, dword [esi]
sub eax, 8
cmp eax, 0x583008
je 0x40f2f2
lock xadd dword [eax], edi
dec edi
cmp edi, 0xffffffff
jne 0x40f2f2
push eax
call fcn.005128b5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4102f0
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
push edi
mov ebp, ecx
push 0
push 8
push 0
mov edi, dword [ebp]
mov eax, dword [ebp + 8]
push dword [ebp + 4]
push dword [edi + 0x40]
mov ebx, dword [eax]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x410375
mov eax, dword [edi + 0x4c]
push esi
xor esi, esi
test eax, eax
jle 0x410374
nop
sub eax, esi
mov dword [esp + 0x10], 0
mov ecx, 0x400
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
je 0x410374
mov eax, dword [edi + 0x48]
lea edx, [esp + 0x10]
push edx
push ecx
add eax, esi
push eax
push dword [edi + 0x40]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x410374
add esi, dword [esp + 0x10]
test ebx, ebx
je 0x41036d
push dword [edi + 0x4c]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push dword [edi + 4]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x410374
mov eax, dword [edi + 0x4c]
cmp esi, eax
jl 0x410320
pop esi
mov eax, dword [ebp]
push 0
push 0
push 0
push dword [eax + 0x40]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
pop edi
test eax, eax
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x4145a0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
cmp byte [esi], 0
je 0x4146bf
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov cl, byte [esi]
inc esi
movzx eax, cl
test cl, cl
jns 0x414600
mov edx, 0x7f
xor edi, edi
lea ecx, [edx - 0x3f]
test cl, al
je 0x4145de
cmp ecx, 8
jbe 0x4145de
shr ecx, 1
inc edi
shr edx, 1
test eax, ecx
jne 0x4145d0
and eax, edx
sub edi, 1
js 0x414600
movzx edx, byte [esi]
mov ecx, edx
and cl, 0xc0
cmp cl, 0x80
jne 0x414600
and edx, 0x3f
shl eax, 6
inc esi
or eax, edx
sub edi, 1
jns 0x4145e5
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x41460c
mov eax, ecx
jmp 0x414651
lea ecx, [eax - 0x61]
cmp ecx, 0x19
ja 0x414619
sub eax, 0x47
jmp 0x414651
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x414626
add eax, 4
jmp 0x414651
cmp eax, 0x2b
jne 0x414632
mov eax, 0x3e
jmp 0x414651
cmp eax, 0x2f
jne 0x41463e
mov eax, 0x3f
jmp 0x414651
cmp eax, 0x3d
jne 0x4146c7
mov eax, 0x40
cmp ebx, 1
jle 0x4146c7
mov byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 4
jl 0x4145b8
mov eax, dword [esp + 0x10]
mov cl, ah
mov edx, dword [ebp]
shr cl, 4
shl al, 2
or cl, al
movzx eax, cl
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov bl, byte [esp + 0x12]
cmp bl, 0x40
jae 0x4146b6
movzx eax, byte [esp + 0x11]
mov cl, bl
mov edx, dword [ebp]
shr cl, 2
shl al, 4
or cl, al
movzx eax, cl
mov ecx, ebp
push eax
call dword [edx + 0x14]
mov al, byte [esp + 0x13]
cmp al, 0x40
jae 0x4146b6
mov edx, dword [ebp]
mov ecx, ebp
shl bl, 6
or bl, al
movzx eax, bl
push eax
call dword [edx + 0x14]
cmp byte [esi], 0
jne 0x4145b6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x414a90
Capabilities:
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c635
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x58313c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x58aa90]
mov edx, dword [eax + edx*4]
mov eax, dword [0x5897bc]
cmp eax, dword [edx + 4]
jg 0x414c2c
mov eax, dword [ebx + 0x40]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebx + 0x40], 0
test eax, eax
je 0x414af1
push eax
call esi
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x414b02
push eax
call esi
mov dword [ebx + 0x3c], 0
cmp dword [0x5897b8], 0
je 0x414c18
push 0x20000
call fcn.0051821c
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x1000
mov dword [ebp - 4], 0
call fcn.0051821c
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0x800
call fcn.0051821c
mov dword [ebp - 0x10], eax
push 0x800
call fcn.0051821c
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x14], ecx
cmp byte [ebx + 0x5a], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x10000
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x800
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0x400
je 0x414bbf
movzx eax, byte [ebx + 0x59]
lea ecx, [ebx + 8]
push eax
lea eax, [ebx + 0x48]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.00415050
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00414490
add esp, 8
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x414bf9
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
mov ecx, ebx
push dword [ebp + 8]
push dword [0x5897b8]
push eax
call fcn.00420ee0
push dword [ebp - 0x14]
call fcn.00518201
push dword [ebp - 0x10]
call fcn.00518201
push edi
call fcn.00518201
push esi
call fcn.00518201
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x5897bc
call fcn.0051304c
add esp, 4
cmp dword [0x5897bc], 0xffffffff
jne 0x414ada
push 0
push 0
push 0
push 0
push str.juce
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0x5897bc
mov dword [0x5897b8], eax
call fcn.00513002
add esp, 4
jmp 0x414ada