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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487b18
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x42ff8c
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42ff8c
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.0042ffa0
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0046b860
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0046b860
lea ecx, [ebp + 8]
lea eax, [eax*2 + 2]
push eax
call fcn.0046b310
push eax
push esi
call fcn.00471f50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x42ff8c
call fcn.0046b840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430870
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00430ec0
mov bl, byte [ebp + 0xc]
lea ecx, [esi + 0xf8]
mov edi, dword [ebp + 8]
push edi
mov byte [esi + 4], 0
mov byte [esi + 5], bl
call fcn.00402270
mov dword [esi + 0xfc], 0
test edi, edi
je 0x4308b5
cmp word [edi], 0
je 0x4308b5
mov dword [esi], 0
jmp 0x4308bb
mov dword [esi], 0x17d78400
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x10]
mov eax, dword [0x4bdb64]
cmovb ecx, dword [ebp - 0x10]
add eax, 8
mov dword [esi + 8], ecx
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x4bdb68]
mov ecx, dword [0x4bdb64]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push 0
lea eax, [ebp - 8]
push eax
call fcn.004450f0
mov eax, dword [0x4bdb64]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
push 0
test eax, eax
je 0x430a43
push eax
push 0
push 0x4000004
push 0
mov dword [esi + 0xc], 0xffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor ecx, ecx
mov dword [esi + 0x10], eax
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
test bl, bl
je 0x430a83
push 3
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x430a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x430a98
push 0
push 0
push 3
push 0
push 1
mov byte [esi + 4], 1
push connect
jmp 0x430a8e
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x430aab
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], eax
test bl, bl
je 0x430af4
xor eax, eax
cmp byte [esi + 4], al
push 0
push 0
sete al
push 0
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esi + 0xc]
jmp 0x430a2a
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], 0
call fcn.00471730
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 0x210]
push eax
push 0x12
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x432283
push 0
call fcn.0046b670
push eax
push 0
jmp 0x43230d
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x22c], 0x4a2cbc
mov dword [ebp - 0x228], 0x1000
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x4322e7
mov ecx, dword [ebp - 0x214]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [ebp - 0x20c]
push eax
call fcn.0046b670
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0046b800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x434270
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4342ee
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0046b860
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, edi
mov esi, eax
call fcn.0046b860
mov ecx, edi
lea eax, [eax*2 + 2]
push eax
call fcn.0046b310
push eax
push esi
call fcn.00471f50
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x434670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4346ff
lea esp, [esp]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.00434670
add esp, 8
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x4346d0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x435300
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004704a9
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.0046b670
push eax
push edi
call fcn.0046b800
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
call fcn.00471723
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435e60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4bdba4], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], 0
jne 0x435ea4
push 5
push 0x4bdba4
push 0xe
mov eax, 0x2e
push 0x400
mov word [0x4bdba4], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsd xmm0, qword [ebp + 0xc]
lea eax, [ebp - 0x68]
sub esp, 8
movsd qword [esp], xmm0
push 0x497320
push eax
call fcn.00431cb0
mov dx, word [0x4bdba4]
lea eax, [ebp - 0x68]
add esp, 0x10
lea esp, [esp]
movzx ecx, word [eax]
cmp ecx, 0x30
je 0x435edd
cmp cx, dx
jne 0x435ee2
add eax, 2
jmp 0x435ed0
cmp word [eax], 0
je 0x435f03
mov ecx, dword [ebp + 0x14]
jmp 0x435ef0
test ecx, ecx
jle 0x435f03
cmp word [eax], dx
je 0x435efa
dec ecx
add eax, 2
cmp word [eax], 0
jne 0x435ef0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x68]
push eax
call fcn.0046b670
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046b800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x436270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x43629f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x436360
push 0
push 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x436370
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x49d5c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00474398
add esp, 0xc
lea eax, [ebp - 0x20c]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
push 0
mov ebx, eax
lea eax, [ebp - 0x210]
push eax
push 0x400
push esi
push ebx
push 0x900
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x436354
push 0x4984e4
mov ecx, edi
call fcn.0046b530
push dword [ebp - 0x210]
mov ecx, edi
call fcn.0046b530
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x43635f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
push 0x4984e4
mov ecx, edi
call fcn.0046b530
push dword [ebp - 0x210]
mov ecx, edi
call fcn.0046b530
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x4363b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
push 0
push 0xe
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004704a9
add esp, 4
mov edi, eax
push edi
push esi
push 0xd
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.0046b670
push eax
push edi
call fcn.0046b800
mov esi, dword [ebp + 8]
push edi
mov dword [esi], eax
call fcn.00471723
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436ab0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 8
mov word [ebp - 8], 0x500
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00471b44
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x436b7b
xor edi, edi
cmp edi, dword [ebx]
jae 0x436b77
lea esi, [ebx + 8]
mov edi, edi
push dword [esi - 4]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x436b6d
mov eax, dword [esi]
test al, 4
je 0x436b6d
test eax, 0xffffffef
jne 0x436b75
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x436b50
cmp edi, dword [ebx]
setne byte [ebp - 0xd]
push ebx
call fcn.00471b0c
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret

Function at 0x436bc0
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x436bda
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 8
cmp al, 2
jb 0x436bda
mov al, 1
ret
xor al, al
ret
Function at 0x437590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ae88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 3
push 0
push 0
push connect
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4376ac
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4376a5
cmp dword [ebp - 0x10], 4
jne 0x4376a5
push dword [ebp - 0x14]
call fcn.0046b770
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x437638
mov ecx, esi
call fcn.0046b760
jmp 0x43763a
xor eax, eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437693
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x437693
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov dword [edi], esi
test esi, esi
je 0x43766e
mov ecx, esi
call fcn.0046b5c0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x437680
mov ecx, esi
call fcn.0046b840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4376a5
mov ecx, esi
call fcn.0046b840
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x437700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aed1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call fcn.0046b770
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x437770
mov ecx, esi
call fcn.0046b760
jmp 0x437772
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x43779b
mov dword [edi], esi
test esi, esi
je 0x437799
mov ecx, esi
call fcn.0046b5c0
jmp 0x4377a1
mov dword [edi], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], 1
test esi, esi
je 0x4377b7
mov ecx, esi
call fcn.0046b840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437b30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push 0x38
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.00471730
add esp, 0xc
mov dword [ebp - 0x23c], esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, 0x4a20d0
test bl, bl
mov dword [ebp - 0x24c], 0x3c
mov eax, 0x4a2de4
mov dword [ebp - 0x248], 0x40
cmove eax, ecx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x238], edi
call esi
test eax, eax
je 0x437bdd
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x437bfb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
push 0x104
mov byte [eax], 1
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x24c]
push eax
call esi
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, dword [ebp - 0x214]
pop esi
pop ebx
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x4390e0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43910d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x439129
call fcn.004062d0
mov dword [ebp - 8], eax
jmp 0x439130
mov dword [ebp - 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x43917b
cmp dword [ebp - 4], 4
jne 0x43917b
mov ecx, dword [edi]
test ecx, ecx
je 0x43915c
call fcn.0046b760
jmp 0x43915e
xor eax, eax
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x43917b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x43917b
mov bl, 1
jmp 0x43917d
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x439191
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x439de0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b138
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call esi
push 0
push 0x4bc114
call fcn.0040f280
add esp, 8
test eax, eax
jne 0x439e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0040ede0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
test eax, eax
je 0x439eaa
mov eax, dword [eax]
test eax, eax
je 0x439eaa
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x439eaa
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x439e71
mov eax, dword [eax]
jmp 0x439e73
xor eax, eax
push 0x4bc114
push eax
call fcn.0040f050
mov edi, eax
add esp, 8
test edi, edi
je 0x439ecd
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x439e92
mov eax, dword [ecx]
jmp 0x439e94
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, 0x800704d6
jne 0x439ea7
push 4
jmp 0x439ea8
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.004021d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x439ee1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x439eb2
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x439eb2
Function at 0x43b320
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 1
push 2
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43b361
push 0x4a3214
call fcn.0046b670
push eax
push 0x4a3214
jmp 0x43b3ce
mov eax, 2
mov dword [ebp - 0xa], 0
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x12], xmm0
push 0x5ab3
mov word [ebp - 6], 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x43b3be
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x4a32c0
call fcn.0046b670
push eax
push 0x4a32c0
jmp 0x43b3ce
push 0
mov dword [0x4bc118], edi
call fcn.0046b670
push eax
push 0
call fcn.0046b800
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
pop esi
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x43ba60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
add edi, esi
cmp esi, edi
jae 0x43ba97
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push 0
mov eax, edi
sub eax, esi
push eax
push esi
push dword [0x4bc118]
call ebx
test eax, eax
je 0x43ba9e
cmp eax, 0xffffffff
je 0x43ba9e
add esi, eax
cmp esi, edi
jb 0x43ba78
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x43bbd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4bdfa9], 0
je 0x43bbe2
call fcn.0043b270
cmp byte [ebp + 8], 0
je 0x43bc3c
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x43a3c0
push 0
push 0
call fcn.00474460
mov dword [0x4bde24], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x442b10
push 0
push 0
call fcn.00474460
mov dword [0x4bde28], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x43b920
push 0
push 0
call fcn.00474460
add esp, 0x48
mov dword [0x4bde2c], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x439f30
push 0
push 0
call fcn.00474460
mov dword [0x4bde1c], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x43a230
push 0
push 0
call fcn.00474460
add esp, 0x30
mov dword [0x4bde20], eax
mov esp, ebp
pop ebp
ret