joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b450
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x825644]
sub esp, 0x5cc
push ebx
push ebp
push esi
mov esi, dword [0x4a6694]
shr eax, 3
push edi
test eax, eax
je 0x49b623
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
jmp 0x49b484
mov esi, dword [esp + 0x14]
cmp dword [0x825644], 0x1c
jne 0x49b4a1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x49fdc0]
mov eax, dword [0x49fdc4]
mov ecx, dword [0x49fdc8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x49fdcc]
mov ebp, 0xc6ef3720
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], 0x20
mov eax, ebx
shl eax, 4
add eax, dword [esp + 0x28]
mov esi, ebx
shr esi, 5
cmp dword [0x825644], 0x1b
mov dword [esp + 0x10], eax
jne 0x49b51d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1dc]
push ecx
push 0
push 0x402af8
push 0x402b64
push 0x402b98
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov eax, dword [esp + 0x10]
add esi, dword [esp + 0x30]
lea ecx, [ebx + ebp]
xor esi, ecx
xor esi, eax
sub edi, esi
mov eax, edi
shl eax, 4
mov dword [0x8255b4], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
cmp dword [0x825644], 0x1be
jne 0x49b562
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x20]
cmp dword [0x825644], 0x979
mov dword [0x8255b8], 0xff6b3619
mov dword [0x8255bc], 0xffffffff
jne 0x49b5a2
mov edx, dword [esp + 0x2c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [edi + ebp]
xor esi, eax
mov eax, dword [esp + 0x10]
xor eax, esi
sub ebx, eax
add ebp, 0x61c88647
dec dword [esp + 0x18]
mov dword [esp + 0x10], eax
jne 0x49b4da
cmp dword [0x825644], 0x8d4
jne 0x49b5da
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], edi
cmp dword [0x825644], 0x17
jne 0x49b612
push 0
push 0
push 0
push 0x402be4
push 0x402c18
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jne 0x49b480
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5cc
ret
Function at 0x4095e0
Capabilities:
Move file

Disassembly:
mov eax, 0x432168
call fcn.0041e554
mov eax, 0x502c
call fcn.0041e630
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4038]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4097a1
cmp eax, ebx
jae 0x4097a1
push ebx
lea eax, [ebp - 0x5038]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4097a1
cmp eax, ebx
jae 0x4097a1
lea eax, [ebp - 0x4038]
push eax
call fcn.0040be89
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5038]
push eax
call fcn.0040be89
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4097a1
push edi
push dword [ebp - 0x10]
call fcn.00411ac4
test eax, eax
je 0x4097a1
push edi
push esi
call fcn.0040be89
push eax
call fcn.00411ac4
test eax, eax
jne 0x4097a1
mov word [ebp - reloc.wtsapi32.dll_WTSVirtualChannelOpen], ax
mov edi, ebx
test ax, ax
jne 0x409701
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.00410131
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040be89
push eax
call fcn.00403f8f
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a373
test al, al
je 0x4096e6
xor eax, eax
mov word [ebp - reloc.wtsapi32.dll_WTSVirtualChannelOpen], ax
jmp 0x4096ed
mov ax, word [ebp - reloc.wtsapi32.dll_WTSVirtualChannelOpen]
add edi, 0x7b
cmp edi, 0x2710
jl 0x409694
test ax, ax
je 0x4097a1
mov edi, 0x800
lea eax, [ebp - 0x3038]
push edi
push esi
push eax
call fcn.00410131
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3038]
push eax
call fcn.0040beff
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3038]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4097a1
lea ecx, [ebp - 0x2038]
call fcn.004097b6
push esi
mov dword [ebp - 4], ebx
call fcn.0040a373
test al, al
jne 0x409764
push 0x12
push esi
lea ecx, [ebp - 0x2038]
call fcn.004098be
mov bl, al
lea eax, [ebp - 0x3038]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x409792
lea ecx, [ebp - 0x2038]
call fcn.00409870
lea ecx, [ebp - 0x2038]
call fcn.004099b7
lea ecx, [ebp - 0x2038]
call fcn.004097f0
mov al, 1
jmp 0x4097a3
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b85c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041e630
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40b87a
xor al, al
jmp 0x40b9e4
push ebx
push edi
push esi
call fcn.0040b9f6
push esi
call fcn.00423883
pop ecx
push esi
mov edi, eax
call fcn.0040ba22
test al, al
je 0x40b90c
push esi
call fcn.0040b9f6
test al, al
je 0x40b8c3
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40b9e0
push dword [ebp + 0x10]
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410131
push dword [ebp + 0x10]
jmp 0x40b9d3
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40b9e0
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40b9e0
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40b9e0
push esi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410131
push esi
push 0x4338b8
push dword [ebp + 0xc]
call fcn.00410109
push esi
push ebx
jmp 0x40b9d4
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b9e0
cmp eax, ebx
ja 0x40b9e0
movzx eax, word [esi]
push eax
call fcn.0040bafd
test al, al
je 0x40b973
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40b9e0
push edi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410131
xor eax, eax
mov word [ebp - reloc.wtsapi32.dll_WTSVirtualChannelOpen], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00410109
jmp 0x40b9d2
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.0040b3f7
lea eax, [ebp - 0x1000]
push eax
call fcn.00423883
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40b9e0
push edi
push 0x4338ac
push dword [ebp + 0xc]
call fcn.00410131
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00410109
cmp word [esi], 0x2e
jne 0x40b9d2
movzx eax, word [esi + 2]
push eax
call fcn.0040bafd
test al, al
je 0x40b9d2
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.00410109
mov al, 1
jmp 0x40b9e2
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c630
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc eax
mov cl, bl
cmp esi, eax
jbe 0x40c64d
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x40c645
cmp cl, byte [edx]
jne 0x40c688
push esi
push edx
push 0xffffffffffffffff
call fcn.00405ebc
not eax
mov ecx, ebx
cmp dword [ecx + 0x43e02c], eax
jne 0x40c66e
cmp dword [ecx + 0x43e028], esi
je 0x40c679
add ecx, 0xc
inc ebx
cmp ecx, 0x48
jb 0x40c65e
jmp 0x40c688
imul eax, ebx, 0xc
mov ecx, dword [eax + 0x43e030]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
pop esi
pop ebx
ret 0xc
Function at 0x41a07c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push 0x434694
push dword [esp + 0x14]
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a18f
push edi
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41a0d0
push esi
push dword [0x440ed0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a0d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41a0d7
xor eax, eax
jmp 0x41a18e
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a188
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a181
push edi
push esi
push eax
call fcn.0041f750
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41a17a
push ebp
push dword [esp + 0x14]
call fcn.00419fdb
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x433260]
call esi
test edi, edi
je 0x41a17a
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41a168
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41a168
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x433260]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41a7d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e630
cmp word [0x44946a], 0
je 0x41a870
push esi
push 6
push dword [0x43e5f8]
mov esi, 0x44946a
push esi
call fcn.0040be89
push eax
call fcn.00411ae6
test eax, eax
jne 0x41a86f
push 0x448468
call fcn.0041a5b3
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.00410131
lea eax, [ebp - 0x1024]
push eax
call fcn.00423883
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - reloc.wtsapi32.dll_WTSVirtualChannelOpen], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041f5f0
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a8cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43e610], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41a917
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - reloc.wtsapi32.dll_WTSVirtualChannelOpen]
mov word [0x45eca8], ax
xor eax, eax
mov word [0x45ecaa], ax
mov dword [0x43e610], 0x45eca8
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410000
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43e600
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ab60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041e630
cmp byte [0x44a470], 0
je 0x41ac0e
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041c040
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ac0e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ac05
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41abe9
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - reloc.wtsapi32.dll_WTSVirtualChannelOpen], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00410131
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
sub esp, 4
mov dword [esp], esi
pop esi
inc esi
call fcn.0040897b
or esi, eax
sub eax, 0xb73fb386
xor dword [edx], ebx
and eax, esi
add edx, 1
add esi, 0x2aa5a665
or eax, esi
cmp edx, edi
jne fcn.00408944
ret
Function at 0x402830
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, eax
lea ebx, [esp + 0x14]
mov esi, 0x45c030
mov ecx, 3
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004244a0
test eax, eax
je 0x402980
mov esi, eax
mov dword [esp + 8], str.tags.json
mov dword [esp + 4], eax
mov dword [esp], str._s__s
call fcn.0041eef0
mov edi, eax
mov edx, 0x466266
call fcn.0040f6f0
mov ebx, eax
test eax, eax
je 0x402960
mov eax, dword [ebp + 0x498]
mov ebp, dword [eax + 0x74]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x466287
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 0x1cc]
mov ebp, dword [eax + 8]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4028fa
lea esi, [esi]
lea esi, [esi]
nop
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._____s_____s____n
mov dword [esp], ebx
call sub.msvcrt.dll_fprintf
mov ebp, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4028d0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.__null_n__n
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp + 8], str.saved_favorites_tags
mov dword [esp + 4], 0x46602d
mov dword [esp], 2
call fcn.00402010
mov dword [esp], esi
call sub.msvcrt.dll_free
test edi, edi
je 0x402952
mov dword [esp], edi
call sub.msvcrt.dll_free
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.saving_favorites_tags_failed
mov dword [esp + 4], 0x46602d
mov dword [esp], 0
call fcn.00402010
jmp 0x40293e
mov eax, ebx
call fcn.00411500
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x4661cc
mov dword [esp + 4], 0x4661e4
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov eax, 1
call fcn.00411470
lea esi, [esi]
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x498]
test eax, eax
je 0x402a10
cmp dword [eax + 4], 6
jne 0x402a10
mov eax, dword [eax + 0x74]
mov esi, dword [eax + 0x1d4]
test esi, esi
je 0x402a10
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x402a40
mov dword [eax + 0x1d4], 0
mov eax, ebx
call fcn.00402830
mov eax, dword [ebx + 0x498]
test eax, eax
je 0x402a10
cmp byte [eax + 0x58], 0
jne 0x402a20
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00421600
mov byte [0x46f088], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov dword [eax + 4], edx
mov edi, dword [esi]
mov eax, dword [edi]
test eax, eax
je 0x402a72
lea ebp, [edi + 4]
lea esi, [esi]
nop
mov dword [esp], eax
call sub.msvcrt.dll_free
add ebp, 4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402a60
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x498]
mov eax, dword [eax + 0x74]
jmp 0x4029ef
Function at 0x40e4c0
Capabilities:
Log keystrokes via polling

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov dword [esp], 0x10
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
push ebx
movsx ebx, ax
shr ebx, 0x1f
mov dword [esp], 0x11
call esi
push edi
test ax, ax
jns 0x40e4ee
or ebx, 2
mov dword [esp], 0x12
call esi
push ecx
test ax, ax
jns 0x40e500
or ebx, 4
mov dword [esp], 0x5b
call esi
push edi
mov edi, eax
mov dword [esp], 0x5c
call esi
push edx
or di, ax
jns 0x40e51e
or ebx, 8
mov dword [esp], 0x14
call esi
push ecx
test al, 1
je 0x40e52f
or ebx, 0x10
mov dword [esp], 0x90
call esi
push edx
test al, 1
je 0x40e540
or ebx, 0x20
mov eax, ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x40f640
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push edi
push esi
sub esp, 0x24
cmp byte [0x464bb8], 0
jne 0x40f6c0
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x18]
mov dword [esp], eax
call esi
push eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
sub esi, dword [0x46f100]
sbb edi, dword [0x46f104]
mov dword [esp + 8], 0x3e8
mov dword [esp + 0xc], 0
mov eax, dword [0x46f0f8]
mov edx, dword [0x46f0fc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00453f08
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.00453f08
add esp, 0x24
pop esi
pop edi
ret
mov dword [esp], 0x46f100
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call esi
push edx
mov dword [esp], 0x46f0f8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push ecx
mov byte [0x464bb8], 0
jmp 0x40f654
Function at 0x40f9f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
test eax, eax
je 0x40fb06
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
push ebx
test eax, eax
je 0x40fb06
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
push ecx
mov esi, eax
test eax, eax
je 0x40fb00
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edx
mov ebp, eax
test eax, eax
je 0x40fb00
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call edi
sub esp, 0x20
test eax, eax
je 0x40fb06
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_calloc
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
sub esp, 0x20
test eax, eax
je 0x40fb30
test ebx, ebx
je 0x40fb06
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 4], 1
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ebx, eax
mov eax, ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x40fb06
Function at 0x4246c0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edx, 0x46a16f
call fcn.0040f6f0
mov ebx, eax
lea eax, [esp + 0x18]
mov esi, 0x4652cc
mov ecx, 3
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x424755
mov eax, ebx
call fcn.004117f0
mov ebp, eax
lea eax, [esp + 0x24]
mov esi, 0x4652d8
mov ecx, 3
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6ffffffe
cmp esi, ebp
sbb ecx, edx
jae 0x424717
mov dword [esp], eax
call fcn.00411650
add ebp, 0x400
mov edx, 1
mov eax, ebp
call fcn.00411690
mov esi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.00411650
jmp 0x4246e9
Function at 0x42a5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, eax
lea ebp, [esp + 0x20]
mov ecx, 0xc
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esi + 0xf]
mov dword [esp + 0x18], eax
lea edi, [esi - 1]
mov ebx, ebp
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
jmp 0x42a5fc
mov cl, byte [eax]
lea edx, [ecx + 1]
mov byte [eax], dl
dec eax
test dl, dl
jne 0x42a600
cmp eax, edi
jne 0x42a5f0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042dc30
test eax, eax
jne 0x42a6b2
add ebx, 0x10
lea ecx, [esp + 0x50]
cmp ebx, ecx
jne 0x42a5df
mov ebx, eax
mov edx, dword [esp + 0x1c]
lea esi, [esi]
lea esi, [esi]
mov al, byte [ebp + ebx]
xor al, byte [edx + ebx]
mov byte [ebp + ebx], al
inc ebx
cmp ebx, 0x30
jne 0x42a640
mov dword [esp + 8], 0x100
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call fcn.0042cb70
mov ebx, eax
test eax, eax
je 0x42a689
mov dword [esp + 4], 0x30
mov dword [esp], ebp
call fcn.0042b3a0
mov eax, ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0xc], eax
lea edi, [esi + 4]
and edi, 0xfffffffc
mov eax, esi
sub eax, edi
mov esi, edx
sub esi, eax
lea ecx, [eax + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x42a66f
mov ebx, eax
jmp 0x42a66f
Function at 0x42dc30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
je 0x42dc60
mov dword [esp + 4], eax
jmp fcn.0042d690
jmp fcn.0042d110

Function at 0x42e170
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
add esp, 0x2c
ret

Function at 0x42e1b0
Capabilities:
Get socket status

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x268]
mov edx, dword [esp + 0x260]
mov edi, dword [edx]
mov dword [esp + 0x2c], edi
test edi, edi
js 0x42e305
mov dword [esp + 0x38], 0
test al, 1
je 0x42e1f8
and eax, 0xfffffffe
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 1
mov dword [esp + 0x13c], 0
test al, 2
jne 0x42e2d0
test eax, eax
jne 0x42e2fe
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 0x30], edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov edx, ecx
sub edx, eax
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x34], eax
inc ecx
je 0x42e2f0
lea ebp, [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea edi, [eax + 1]
lea ebx, [esp + 0x13c]
lea esi, [esp + 0x38]
nop
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
cmp eax, 0x2714
je 0x42e260
test eax, eax
js 0x42e2f7
mov dword [esp + 4], esi
mov edi, dword [esp + 0x2c]
mov dword [esp], edi
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
setne al
and eax, 0xff
mov esi, eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.WS2_32.dll___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x42e2c0
or esi, 2
mov eax, esi
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
and eax, 0xfffffffd
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x140], ebx
mov dword [esp + 0x13c], 1
jmp 0x42e20b
xor ebp, ebp
jmp 0x42e24c
mov esi, 0xffffffb9
jmp 0x42e2c0
mov esi, 0xffffffb7
jmp 0x42e2c0
mov esi, 0xffffffbb
jmp 0x42e2c0