joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae0c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov byte [ebp - 0x11], cl
mov dword [ebp - 0xc], edx
mov ebx, eax
xor esi, esi
test byte [ebp - 0x11], 1
je 0x40ae33
mov edi, 2
mov dword [ebp - 0x18], 4
jmp 0x40ae3f
mov edi, 4
mov dword [ebp - 0x18], 6
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push edi
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40ae75
push ebp
call fcn.0040addc
pop ecx
jmp 0x40aeb9
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x40ae9f
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
push ebp
call fcn.0040addc
pop ecx
jmp 0x40aeb9
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40afd4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x40afdc
mov eax, dword [esp + 0x4000]
add esp, 4
mov ebx, edx
mov esi, eax
push 0x2000
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
jbe 0x40b013
mov eax, ebx
mov edx, esp
call fcn.00405274
jmp 0x40b01c
mov eax, ebx
xor edx, edx
call fcn.004050c8
add esp, 0x4000
pop esi
pop ebx
ret

Function at 0x40b03c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x40b044
mov eax, dword [esp + 0x4000]
add esp, 4
mov ebx, edx
mov esi, eax
push 0x2000
lea eax, [esp + 4]
push eax
push esi
call sub.kernel32.dll_GetEnvironmentVariableW
test eax, eax
jbe 0x40b07b
mov eax, ebx
mov edx, esp
call fcn.00405274
jmp 0x40b084
mov eax, ebx
xor edx, edx
call fcn.004050c8
add esp, 0x4000
pop esi
pop ebx
ret

Function at 0x40b0f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x40b0f8
mov eax, dword [esp + 0x4000]
add esp, 4
mov esi, edx
mov ebx, eax
push 0x2000
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405204
add esp, 0x4000
pop esi
pop ebx
ret
Function at 0x40b510
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x40b5b4
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x40b59e
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0
call fcn.004052f4
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b559
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x40b559
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00404a20
test eax, eax
je 0x40b562
sub eax, 4
mov eax, dword [eax]
lea esi, [eax + 1]
push esi
push 2
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.0040b460
push ebx
call sub.kernel32.dll_GlobalUnlock
push 0
call sub.user32.dll_OpenClipboard
call sub.user32.dll_EmptyClipboard
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5bb
lea eax, [ebp - 4]
call fcn.00404820
ret

Function at 0x40b5c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
movzx eax, bl
push eax
call sub.user32.dll_GetKeyState
movsx eax, ax
mov dword [esp], eax
test dword [esp], 0x80
seta byte [esp + 4]
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret
Function at 0x40b7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff4c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ba10
push dword fs:[edx]
mov dword fs:[edx], esp
sub al, 1
jb 0x40b84d
je 0x40b823
dec al
je 0x40b83a
dec al
je 0x40b8ac
jmp 0x40b9dd
lea edx, [ebp - 4]
xor eax, eax
call fcn.0040b704
mov eax, dword [ebp - 4]
call fcn.0040b510
jmp 0x40b9dd
xor ecx, ecx
xor edx, edx
mov eax, 0x1009
call fcn.0040b644
jmp 0x40b9dd
lea eax, [ebp - 0xa4]
mov edx, 0x3c
call fcn.0040b4a8
mov dword [ebp - 0xa4], 8
mov eax, 2
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
call fcn.0040b6f4
mov esi, eax
dec esi
test esi, esi
jl 0x40b9dd
inc esi
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
lea ecx, [ebp - 0xa4]
mov edx, ebx
mov eax, 0x104c
call fcn.0040b644
inc ebx
dec esi
jne 0x40b88b
jmp 0x40b9dd
lea eax, [ebp - 0x68]
mov edx, 0x58
call fcn.0040b4a8
mov dword [ebp - 0x68], 0x58
mov eax, dword [0x437b90]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], 0x804
mov eax, 0x40ba20
mov dword [ebp - 0x2c], eax
mov eax, 0x40ba2c
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0xac]
xor eax, eax
call fcn.0040b098
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
xor edx, edx
call fcn.00409614
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0040b400
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xb0]
mov eax, 0x40ba5c
call fcn.0040a454
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 8]
pop edx
call fcn.004054b8
mov eax, 0x400
mov dword [ebp - 0x48], eax
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00405360
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x68]
push eax
call sub.comdlg32.dll_GetSaveFileNameW
test eax, eax
je 0x40b9dd
cmp dword [ebp - 0x50], 1
sete al
lea edx, [ebp - 0xb4]
call fcn.0040b704
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.004052f4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40b99d
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x40b99d
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00404a20
test eax, eax
je 0x40b9a6
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba17
lea eax, [ebp - 0xb4]
mov edx, 4
call fcn.004050c0
lea eax, [ebp - 0xc]
call fcn.00404820
lea eax, [ebp - 8]
mov edx, 2
call fcn.004050c0
ret
Function at 0x40c2a8
Capabilities:
Terminate thread

Disassembly:
push ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x40c2db
mov dword [esp], ecx
xor ecx, ecx
mov dword [eax], ecx
push edx
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40c2d4
push 0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, esp
call fcn.0040c2f4
pop edx
ret

Function at 0x40c674
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov esi, ecx
push esp
mov ecx, dword [0x437b60]
or ecx, 0x20006
push ecx
push 0
push edx
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
sete bl
test bl, bl
je 0x40c6b2
push esi
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edx
pop esi
pop ebx
ret

Function at 0x40c6e8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
lea eax, [esp + 4]
push eax
mov ecx, ebx
mov edx, esi
mov eax, 0x1f0fff
call fcn.0040c6b8
test al, al
jne 0x40c70e
mov byte [esp], 0
jmp 0x40c731
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
test bl, bl
je 0x40c731
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
movzx eax, byte [esp]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x40c73c
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x4342e8]
mov byte [ecx], 1
push esp
push 0
push edx
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
pop edx
ret

Function at 0x40c924
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov ecx, edx
test ecx, ecx
je 0x40c93e
rol ecx, cl
lodsb al, byte [esi]
xor cl, al
rol ecx, cl
xor cl, dl
dec edx
jg 0x40c934
mov dword [ebp - 4], ecx
pop esi
pop ecx
mov eax, dword [ebp - 4]
pop ecx
pop ebp
ret

Function at 0x40df34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x40df98
cmp dword [ebp - 8], 0
je 0x40df98
cmp dword [0x437c2c], 0
je 0x40df71
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [0x437c2c]
mov dword [ebp - 0x10], eax
jmp 0x40df98
lea eax, [ebp - 0x10]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b460
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40dfa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, 0x40e040
call fcn.0040c470
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40e00d
mov eax, 0x42ce50
mov dword [0x42ce38], eax
mov eax, 0x42ce54
mov dword [0x42ce48], eax
push 0x42ce2c
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1fffff
lea eax, [ebp - 4]
push eax
call dword [ebp - 0x14]
test eax, eax
je 0x40e02b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e02b
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateRemoteThread
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40e5ac
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x40e5bb
or edx, 0x200
test eax, 0x20000000
je 0x40e5ef
test eax, 0x40000000
je 0x40e5da
test eax, 0x80000000
je 0x40e5d5
or edx, 0x40
jmp 0x40e616
or edx, 0x20
jmp 0x40e616
test eax, 0x80000000
je 0x40e5e9
or edx, 0x80
jmp 0x40e616
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x40e607
test eax, 0x80000000
je 0x40e602
or edx, 4
jmp 0x40e616
or edx, 2
jmp 0x40e616
test eax, 0x80000000
je 0x40e613
or edx, 8
jmp 0x40e616
or edx, 1
mov eax, edx
ret
Function at 0x40e8d4
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40ea05
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
xor ecx, ecx
push ebp
push 0x40e9e5
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [eax + 0x3c]
add esi, dword [ebp - 0xc]
mov ebx, edx
test ebx, ebx
je 0x40e921
cmp word [ebx], 0x5a4d
je 0x40e926
call fcn.0040c3f8
mov eax, dword [ebx + 0x3c]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [esi + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
lea ebx, [eax + 0x18]
cmp dword [eax], 0x4550
je 0x40e952
cmp word [edx], 0x14c
je 0x40e952
call fcn.0040c3f8
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x20], eax
mov esi, dword [ebx + 0x38]
push 0x40
push 0x3000
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e987
push 0x40
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e993
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x3c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_RtlMoveMemory
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x34], edx
push ebp
call fcn.0040e61c
pop ecx
push ebp
call fcn.0040e688
pop ecx
push ebp
call fcn.0040e7b0
pop ecx
push ebp
call fcn.0040e878
pop ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40e9ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea0c
lea eax, [ebp - 0x14]
call fcn.00404820
ret

Function at 0x40eed4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push ebx
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
lea edx, [ebx + esi]
mov ecx, eax
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x40eee7
pop ebx
pop edi
pop esi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
pop ecx
pop ebp
ret 4
Function at 0x410ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
push eax
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x40772c]
call fcn.004063ec
add esp, 4
push ebp
call fcn.00410cb8
pop ecx
and al, 0x7f
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
xor al, 0xaa
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov byte [edx], al
mov eax, dword [ebp - 8]
test eax, eax
jle 0x410d67
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx - 1]
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x15]
xor al, byte [ebp - 0xd]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx], al
mov al, byte [ebp - 0xd]
xor al, byte [ebp - 0x15]
imul eax, eax, 0x57
and al, 0xff
mov byte [ebp - 0xd], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x410d33
mov esp, ebp
pop ebp
ret

Function at 0x410d6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
xor al, 0xaa
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 8]
test eax, eax
jle 0x410dc8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edx]
xor al, byte [ebp - 0xd]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp - 0x15]
mov byte [eax + edx - 1], cl
mov al, byte [ebp - 0xd]
xor al, byte [ebp - 0x15]
imul eax, eax, 0x57
and al, 0xff
mov byte [ebp - 0xd], al
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x410d96
mov esp, ebp
pop ebp
ret

Function at 0x411408
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
mov word [ebp - 2], ax
lea eax, [ebp - 0x198]
push eax
mov ax, word [ebp - 2]
push eax
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
sete byte [ebp - 3]
mov al, byte [ebp - 3]
mov esp, ebp
pop ebp
ret
Function at 0x411438
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ax, 2
call fcn.00411408
lea eax, [ebp - 0x38]
mov edx, 0x20
call fcn.0040b4a8
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_GetAddrInfoW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4114b4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
push eax
call sub.ws2_32.dll_freeaddrinfo
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4114c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050b0
xor eax, eax
push ebp
push 0x4115d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, 2
call fcn.00411408
push 0
mov eax, dword [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x407700]
call fcn.004063ec
add esp, 4
cmp dword [ebp - 4], 0
jne 0x411534
push 0x80
lea eax, [ebp - 0xb8]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 4]
lea edx, [ebp - 0xb8]
call fcn.00405244
lea eax, [ebp - 0x38]
mov edx, 0x20
call fcn.0040b4a8
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_GetAddrInfoW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4115b5
cmp dword [ebp - 0x10], 0
je 0x4115ac
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00405244
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00408ac8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41157a
mov eax, dword [ebp - 0x10]
push eax
call sub.ws2_32.dll_freeaddrinfo
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4115da
lea eax, [ebp - 0x14]
call fcn.004050b8
lea eax, [ebp - 4]
call fcn.004050b8
ret
Function at 0x416e38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416e71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405204
jmp 0x416e7a
mov eax, ebx
mov edx, esi
call fcn.004050c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416e84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416ea6
movzx eax, word [esp]
jmp 0x416ea8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417755
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417444
mov esi, eax
mov eax, dword [0x434400]
cmp byte [eax], 0
je 0x4176fd
mov eax, dword [0x434320]
call fcn.00403334
call fcn.004030f4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41760c]
call fcn.004063ec
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x417770
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417739
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4342f4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x437b4c]
call fcn.004064a4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41775c
lea eax, [ebp - 4]
mov edx, dword [0x41760c]
call fcn.004063f8
ret
Function at 0x4191a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404b64
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x419152
mov eax, edi
add eax, eax
call fcn.00402f8c
mov esi, eax
jmp 0x419154
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41918d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x419177
mov eax, esp
cmp esi, eax
je 0x41919a
mov eax, esi
call fcn.00402fa8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4191d4
cmp bl, 0
je 0x4191d0
cmp bl, 0x41
jl 0x4191cb
cmp bl, 0x5a
jg 0x4191cb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4191af
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x419114

Function at 0x426aa8
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x426ab0
push ecx
xor eax, eax
push ebp
push 0x426bd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x426be8
mov edx, 0x426c00
mov eax, 0x80000001
call fcn.0040c674
lea eax, [ebp - 4]
call fcn.0040a764
lea eax, [ebp - 0xc]
mov ecx, 0x426c68
mov edx, dword [ebp - 4]
call fcn.004054b8
lea eax, [ebp - 0x10]
mov ecx, 0x426c84
mov edx, dword [ebp - 4]
call fcn.004054b8
lea eax, [ebp - 0x14]
mov edx, 0x426ca0
call fcn.0040511c
lea eax, [ebp - 0x18]
call fcn.0040a8e8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x426cdc
call fcn.004054b8
lea eax, [ebp - 8]
mov edx, 0x426cf4
call fcn.0040511c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x4271a4
call fcn.00414160
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004053f8
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0040ada8
jmp 0x426b89
push 0xa
call sub.kernel32.dll_Sleep_2
mov eax, dword [ebp - 4]
call fcn.0040ad20
test al, al
je 0x426b82
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x427250
push 0
call sub.shell32.dll_ShellExecuteW
xor edx, edx
or eax, 0xffffffff
call fcn.0040c6e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426bd7
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004050c0
ret