joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002df2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001370
mov edi, 0x80000002
push edi
mov dword [ebp - 0xc], 1
call esi
test eax, eax
jne 0x1002e53
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001644
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x10012f8
push edi
call esi
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1002e95
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001644
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x1002e9f
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10060f0]
push ebx
push esi
push edi
push 0x10016b4
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1002eec
push 0x10016a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x1002ee5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x7020420
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov byte [ebp - 0xc], bl
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
pop eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], ebx
jne 0x1002f4d
push 0x1001670
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
je 0x1002f4d
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01004e6a
leave
ret
Function at 0x1002f5f
Capabilities:
Get keyboard layout
Identify system language via api
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10060f0]
push 0x1000
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100309a
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, si
je 0x1003098
push edi
push 5
pop ecx
push 7
mov esi, 0x1001790
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x2001f
push ebx
movsw word es:[edi], word [esi]
push ebx
push ebx
mov esi, 0x1001774
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x1001710
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x1003097
push 0x1c
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x31
mov dword [ebp - 0x4c], 0x33
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10016e0
push edi
call esi
test eax, eax
jne 0x1003097
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
mov esi, 0x10016d0
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x50], 6
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100306c
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x100308e
push 4
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100308e
push ebx
push ebx
push ebx
push 0x5b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.01004e6a
leave
ret

Function at 0x10030ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x10060e4], esi
je 0x100311d
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x10017c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003117
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x10017a8
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100310e
cmp dword [ebp - 4], esi
setne al
mov dword [0x100610c], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x10060e4], esi
mov eax, dword [0x100610c]
pop esi
leave
ret
Function at 0x100312a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003211
push dword [ebp - 0x10]
call fcn.0100482c
test eax, eax
mov dword [ebp - 8], eax
je 0x1003208
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_wcslen]
push edi
mov ebx, 0x1001828
push ebx
call esi
mov edi, 0x1001204
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 8]
add dword [ebp - 4], eax
call esi
mov ecx, dword [ebp - 4]
add ecx, eax
add esp, 0xc
lea eax, [ecx + ecx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10031fd
push ebx
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat]
push esi
call edi
push dword [ebp - 8]
push esi
call edi
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10031f6
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x100161c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 8]
call fcn.010041a9
pop edi
pop esi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x100339c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x10060f0]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003432
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push str.TempPageFile
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100341e
cmp dword [ebp - 0x21c], 4
jne 0x100341e
cmp dword [ebp - 0x218], 4
je 0x1003424
mov dword [ebp - 0x210], edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003438
mov dword [ebp - 0x210], edi
cmp dword [ebp - 0x210], 1
jne 0x100346f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x641
push ebx
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
push edi
push 1
lea eax, [ebp - 0x20c]
push eax
push 0x1001988
call fcn.0100273c
push ebx
call fcn.01002a1b
call fcn.01002e9f
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01004e6a
leave
ret 4
Function at 0x1003a60
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
jne 0x1003a7b
xor eax, eax
inc eax
jmp 0x1003c45
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1003adc
push 0x1001c1c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x1003ac8
push 0x1001c08
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003ac1
push dword [ebp - 8]
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp edi, eax
je 0x1003c43
mov eax, dword [ebp + 8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1003bb0
cmp word [eax], bx
je 0x1003bb0
push eax
call esi
push 0x1001bf4
mov ebx, eax
call esi
push 0x1001bec
add ebx, eax
call esi
add ebx, eax
lea eax, [ebx + ebx + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1003bdf
push 0x1001bec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1001bf4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1003b8e
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01002266
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.010038fd
push dword [ebp - 4]
mov dword [ebp + 8], eax
push 0x100120c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call edi
jmp 0x1003b92
and dword [ebp + 8], 0
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x1003bae
cmp dword [ebp + 0x10], 0
je 0x1003ba6
call fcn.010022e5
xor eax, eax
inc eax
jmp 0x1003c43
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
shl eax, 1
mov dword [ebp - 0xc], eax
je 0x1003bdf
mov ebx, 0x1001bc0
push ebx
call esi
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1003be3
xor eax, eax
jmp 0x1003c43
push dword [ebp - 0xc]
and dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003c2c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 4]
push eax
push esi
call fcn.01002266
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.010038fd
push dword [ebp - 4]
mov dword [ebp + 8], eax
push 0x100120c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call edi
push esi
call edi
cmp dword [ebp + 8], 0
je 0x1003c40
cmp dword [ebp + 0x10], 0
je 0x1003c40
call fcn.010022e5
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10041d0
Capabilities:
Access the windows event log
Get common file path
Query environment variable
Set current directory
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x10060f0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa34], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xa44], eax
mov eax, dword [ebp + 0x24]
push esi
push edi
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa40], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
xor esi, esi
push eax
mov dword [ebp - 0xa30], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1004239
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa34]
call edi
push 0x30c
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp - 0xa44]
call edi
lea eax, [ebp - 0xa30]
push eax
push ebx
call fcn.01002266
lea eax, [ebp - 0x20c]
push eax
call fcn.01002170
xor eax, eax
push 0xf
pop ecx
lea edi, [ebp - 0xa80]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa70], eax
mov ax, word [ebp - 0xa2c]
neg ax
lea ecx, [ebp - 0xa2c]
mov dword [ebp - 0xa80], 0x3c
mov dword [ebp - 0xa7c], 0x800640
mov dword [ebp - 0xa68], ebx
sbb eax, eax
and eax, ecx
cmp dword [ebp + 0x18], esi
mov dword [ebp - 0xa6c], eax
je 0x10042d6
mov dword [ebp - 0xa64], esi
jmp 0x10042e7
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 6
inc eax
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0xa80]
push eax
call dword [ebp - 0xa38]
mov dword [ebp - 0xa38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xa30], esi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xa34], eax
je 0x1004335
push dword [ebp - 0xa30]
push 0x100120c
call edi
push dword [ebp - 0xa30]
call ebx
mov dword [ebp - 0xa30], esi
cmp dword [ebp - 0xa38], esi
je 0x1004375
cmp dword [ebp + 0x14], esi
mov dword [ebp - 0xa34], esi
je 0x1004367
push 0xffffffffffffffff
push dword [ebp - 0xa48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.010022e5
push 0x1001408
push 0x10013dc
call edi
push dword [ebp - 0xa48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10043dc
cmp dword [ebp - 0xa40], esi
je 0x10043dc
mov eax, dword [ebp - 0xa70]
push esi
push 1
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0xa38]
push eax
push esi
push dword [ebp - 0xa34]
mov dword [ebp - 0xa38], esi
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
lea eax, [ebp - 0xa3c]
push eax
push esi
push 2
push esi
push 0x3e8
push esi
push 1
push dword [ebp - 0xa40]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp dword [ebp - 0xa38], esi
je 0x10043dc
push dword [ebp - 0xa38]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa34]
pop edi
pop esi
pop ebx
call fcn.01004e6a
leave
ret 0x24
Function at 0x1004fcb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100201c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005023
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1002058
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005016
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1005025
xor eax, eax
pop esi
leave
ret 4
Function at 0x10050e5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002060
call fcn.010052e8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1005122
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005122
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100513a
cmp eax, 0x20b
je 0x1005127
mov dword [ebp - 0x1c], ebx
jmp 0x100514e
cmp dword [ecx + 0x84], 0xe
jbe 0x1005122
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005148
cmp dword [ecx + 0x74], 0xe
jbe 0x1005122
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1006140], 0xffffffff
or dword [0x1006144], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1006134]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1006130]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1006148], eax
call fcn.010052de
cmp dword [0x10060f4], ebx
jne 0x10051a9
push fcn.010052de
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010052c7
push 0x1006010
push 0x100600c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100612c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1006128]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1006008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100523f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005213
cmp al, 0x22
jne 0x1005205
cmp byte [esi], 0x22
jne 0x100521c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1005226
cmp al, 0x20
jbe 0x1005218
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100524a
movzx eax, word [ebp - 0x50]
jmp 0x100524d
cmp byte [esi], 0x20
jbe 0x100521c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100523f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100526a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100529f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005323
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne bh
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
push esi
jg 0x409803
je 0xcdd18fdb
dec ecx
cmp ecx, 0xf
xorps xmm0, xmmword [eax]
add eax, dword [eax]
add byte [ebx], dh
ror byte [edx + 0x40911091], cl
jno 0x408de6
jmp dword [edx*4 + 0x4090f8]
and al, 0x95
clc
nop
inc eax
add byte [ebx], ch
jne 0x408df8
xor edx, edx
mov ecx, dword [esi - 0x7f]
and ecx, 2
cmp cl, 2
sete dl
cmp eax, edx
xchg ebp, eax
das
sbb al, 0x4e
xlatb
lea esp, [ebp + 0x5004b665]
push 0xffffffffffffff8e
push 0x7f00fff0
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffc0
je 0x409065
mov eax, dword [ebp - 0x38]
test eax, eax
inc eax
inc esi
cmp byte [eax + 0xe], ch
outsd dx, dword [esi]
sub al, 0x89
aas
cmp byte [ebx], dh
rcr byte [esi - 0x75], 0xa0
pop ebp
ret 0xc
add byte [ebx - 0x2dccf78b], cl
or cl, byte [esi + 0x38]
and ecx, 0x8300
cmp ecx, 0x200
sete byte [ecx - 0x7b232fc5]
in eax, 0xfd
invalid
mov esi, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
call esi
test eax, eax
jne 0x40902c
pop esi
insb byte es:[edi], dx
in eax, 0x1c
ret 0xc
pop ebp
push esp
invalid

Function at 0x40b410
Capabilities:
Encode data using xor

Disassembly:
nop
nop
nop
nop
nop
xor byte [eax + 0xf1a8b55], dl
inc ebp
adc byte [ebx + 0x558b0c4d], cl
dec ebx
push eax
push ecx
adc eax, 0x6fe8
add byte [ebp - 0x3e], bl
or al, 0
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebp
mov bh, 0x8b
inc ebp
or byte [edi - 0x1b5a1aa], cl
mov dword [ebp + 0xc7d8b57], ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
jle 0x40b3d9
ljmp 0x37c0:0x8af495d2
Function at 0x10002c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x28]
push 0x28
mov byte [ebp - 0xc], al
call fcn.1001de1b
add esp, 4
test eax, eax
je 0x10002cbf
movups xmm0, xmmword [ebp + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp + 0x18]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp - 0xc]
movq qword [eax + 0x20], xmm0
jmp 0x10002cc1
xor eax, eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push eax
push 0x10001560
push 0
push 0
call fcn.10026a5f
add esp, 0x18
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10002d0a
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10002d03
push ecx
push eax
call fcn.1001c7fb
add esp, 8
test eax, eax
jne 0x10002d03
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e173
mov esp, ebp
pop ebp
ret
push 1
call fcn.1001cf05
push 6
mov dword [ebp - 0x30], 0
call fcn.1001cf05
int3

Function at 0x10002da0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm1, xmmword [ebp + 8]
push esi
movups xmm0, xmmword [ebp + 0x18]
mov esi, dword [ebp + 0x28]
movd eax, xmm1
push edi
mov edi, dword [ebp + 0x2c]
push eax
movups xmmword [ebp - 0x404], xmm0
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3f4], eax
call fcn.10014590
add esp, 4
test eax, eax
je 0x10002e89
push 0x3e8
add eax, 0x10
push edi
push eax
call fcn.10022f34
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002e02
sub eax, edx
xor edi, edi
sar eax, 1
mov esi, 0x1505
push ebx
lea ebx, [eax + eax]
test ebx, ebx
je 0x10002e49
mov eax, esi
mov ecx, edi
shld edi, esi, 5
shl esi, 5
add esi, eax
adc edi, ecx
mov ecx, dword [ebp - 0x3f0]
movzx eax, byte [ecx]
cdq
add esi, eax
adc edi, edx
inc ecx
mov dword [ebp - 0x3f0], ecx
sub ebx, 1
jne 0x10002e20
push edi
push esi
push dword [ebp - 0x3f4]
lea eax, [ebp - 0x3ec]
push str.LUNA_NOTIFY._d._llu
push eax
call fcn.10002fa0
add esp, 0x14
lea eax, [ebp - 0x3ec]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001e173
mov esp, ebp
pop ebp
ret