joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406ba5
mov al, byte [esp]
jmp 0x406ba7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40946c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4094b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004093d0
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094b9
lea eax, [ebp - 4]
call fcn.00403460
ret

Function at 0x4096b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40973d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4096fa
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403548
jmp 0x409727
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x40970e
lea eax, [ebp - 4]
call fcn.00403460
jmp 0x40971d
lea edx, [ebp - 4]
call fcn.0040957c
test ebx, ebx
je 0x40971d
dec ebx
jmp 0x4096ff
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004034b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409744
lea eax, [ebp - 4]
call fcn.00403460
ret

Function at 0x40974c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.004065a4
add esp, 0x104
pop ebx
ret
Function at 0x409890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4099c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4099ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4098ed
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4099ae
cmp dword [ebp - 0x10], 0
jne 0x409902
mov eax, dword [ebp - 8]
call fcn.00403460
mov bl, 1
jmp 0x4099ae
cmp dword [ebp - 0x10], 0x70000000
jb 0x409910
call fcn.00407314
mov esi, dword [ebp - 0x10]
shr esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403548
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004037e8
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x4098b6
test eax, eax
jne 0x4099ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x40995e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4099ae
mov esi, dword [ebp - 0x10]
shr esi, 0
jmp 0x409967
dec esi
test esi, esi
je 0x409975
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x409966
cmp dword [ebp - 0xc], 7
jne 0x409980
test esi, esi
je 0x409980
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004038bc
cmp dword [ebp - 0xc], 7
jne 0x4099a1
test esi, esi
je 0x4099a1
lea eax, [ebp - 0x14]
call fcn.004037e8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004034b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099cb
lea eax, [ebp - 0x14]
call fcn.00403460
ret

Function at 0x40a36c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40f640
mov eax, esi
mov edx, 8
test al, 1
je 0x40a388
shr eax, 1
xor eax, 0xedb88320
jmp 0x40a38a
shr eax, 1
dec edx
jne 0x40a37b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40a374
pop esi
ret

Function at 0x40a3a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40f63c], 0
jne 0x40a3c3
call fcn.0040a36c
push 1
push 0x40f63c
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40a3ef
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40f640]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40a3c9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40be2c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040bde0
test al, al
jne 0x40be4d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40be99
xor eax, eax
push ebp
push 0x40be89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004037dc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be90
lea eax, [ebp - 0xc]
call fcn.0040be1c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c1d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40c1e0
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40c2cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00409778
mov edx, dword [ebp - 8]
mov ecx, 0x40c2e4
xor eax, eax
call fcn.0040c0c8
push 0
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40c29b
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40c1fa
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040bb9c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.0040636c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409c60
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040bb6c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x405898]
call fcn.00407320
call fcn.00402f30
jmp 0x40c1fa
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004034b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2d4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403484
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403484
ret

Function at 0x40c2f4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40e4e4]
cmp dword [eax], 2
jne 0x40c35c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40c317
xor eax, eax
jmp 0x40c36b
lea eax, [esp + 8]
push eax
push 0x40c370
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x40c35c
xor eax, eax
jmp 0x40c36b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x40c384
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40c3de
inc esi
xor edi, edi
cmp edi, 1
jne 0x40c3aa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40c3b8
cmp edi, 1
jle 0x40c3b8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be2c
test eax, eax
jne 0x40c3de
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40c3de
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40c3de
inc edi
dec esi
jne 0x40c39a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40c3e8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x40c435
xor ebx, ebx
jmp 0x40c42a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00406318
test eax, eax
jne 0x40c429
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c40b
mov al, byte [ebp - 1]
sub al, 1
jb 0x40c440
je 0x40c449
jmp 0x40c452
call fcn.00409a0c
mov edi, eax
jmp 0x40c454
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x40c454
xor edi, edi
test di, di
je 0x40c4e5
xor ebx, ebx
jmp 0x40c490
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x40c48f
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x40c484
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40c48f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c461
xor ebx, ebx
jmp 0x40c4da
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40c4d9
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x40c4ce
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40c4d9
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c49f
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40c890
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c965
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c97c
push ebx
push 0x40c988
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040377c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402764
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c910
mov al, 0x62
call fcn.0040c52c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040c864
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c919
call fcn.0040c864
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c96c
lea eax, [ebp - 4]
call fcn.00403460
ret

Function at 0x40ca28
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40cadc
jmp 0x40cad1
cmp dword [esi + 0x10], 0x1000
jne 0x40cabd
test byte [esi + 0x15], 1
jne 0x40cabd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40ca7c
cmp eax, 2
je 0x40ca7c
cmp eax, 0x10
je 0x40ca7c
cmp eax, 0x20
jne 0x40ca91
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40ca91
mov bl, 1
xor ebp, ebp
jmp 0x40caa2
mov eax, dword [esi]
add eax, ebp
call fcn.0040ca20
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40ca95
test bl, bl
je 0x40cabd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40cadc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40ca54
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
jne 0x401bc5
pop edi
mov eax, 0x57
pop esi
ret 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x800
jbe 0x401c62
sub esi, 0x800
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x401bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 8
mov esi, dword [esp + 0x10]
lea eax, [esp + 0xc]
push 0
push eax
push 0x800
push esi
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401c2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
ret 8
cmp dword [esp + 0xc], 0x800
jne 0x401c62
cmp dword [esi], 0x50414746
jne 0x401c62
cmp dword [esi + 4], 0x800
jne 0x401c62
mov eax, dword [esi + 0x94]
test eax, eax
je 0x401c62
mov eax, dword [esi + 0x98]
test eax, eax
je 0x401c62
pop edi
xor eax, eax
pop esi
ret 8
pop edi
mov eax, 0xb
pop esi
ret 8

Function at 0x401c70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x426030]
push esi
cmp eax, 0xffffffff
jne 0x401c84
mov eax, 0x57
pop esi
ret 8
mov ecx, dword [esp + 0xc]
push 2
neg ecx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret 8
mov esi, dword [esp + 8]
mov eax, dword [0x426030]
lea edx, [esp + 0xc]
push 0
push edx
push 0x400
push esi
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret 8
cmp dword [esp + 0xc], 0x400
je 0x401ceb
mov eax, 0xb
pop esi
ret 8
cmp dword [esi], 0x50464746
je 0x401cfc
mov eax, 0xb
pop esi
ret 8
cmp dword [esi + 4], 0x400
je 0x401d0e
mov eax, 0xb
pop esi
ret 8
mov ax, word [esi + 0x40]
pop esi
neg ax
sbb eax, eax
and al, 0xf5
add eax, 0xb
ret 8
Function at 0x4021e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
push 0
push 0
push esi
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x402217
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14
mov esi, dword [esp + 0x80]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40226c
push 0
push 0x80
push 5
push 0
push 0
push 0xc0000000
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40226c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14
mov ebp, 0x10000
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40229b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
call fcn.00409250
mov eax, dword [esp + 0x7c]
test eax, eax
jbe 0x40233e
mov eax, dword [esp + 0x7c]
sub eax, edi
cmp eax, ebp
jae 0x4022bf
mov ebp, eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x78]
push 0
push edx
push ebp
push esi
push eax
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402330
mov eax, dword [esp + 0x78]
test eax, eax
je 0x402326
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402330
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jne 0x40237d
push eax
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00409280
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add edi, ecx
cmp edi, eax
jb 0x4022b3
jmp 0x40233e
mov dword [esp + 0x10], 0x1e
jmp 0x402361
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x402361
push 0x20
lea eax, [esp + 0x1c]
push 0x426034
push eax
call fcn.00409280
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x84]
push ecx
push edx
call fcn.00409350
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x60
ret 0x14
mov dword [esp + 0x10], 0x1d
jmp 0x402361
Function at 0x403d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x4c
push ebx
push esi
push edi
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x410
rep stosd dword es:[edi], eax
push 0x40
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x403d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
push 0x104
push edi
push 0
lea esi, [edi + 0x208]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
push esi
push 0
push edi
call fcn.0040ab60
cmp eax, 0x80092009
jne 0x403ddc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret
push esi
push 1
push edi
call fcn.0040ab60
mov ebx, eax
test ebx, ebx
je 0x403dfb
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x4c
ret
mov eax, 0x20
mov ecx, 0x65
mov word [esp + 0x20], ax
mov word [esp + 0x16], ax
mov word [esp + 0x30], ax
mov word [esp + 0x28], ax
mov word [esp + 0x46], ax
lea eax, [esp + 0xc]
mov word [esp + 0x34], cx
mov word [esp + 0x2c], cx
mov ebx, 0x67
mov edx, 0x6f
mov ecx, 0x69
push eax
push esi
mov word [esp + 0x14], 0x43
mov word [esp + 0x1a], 0x6e
mov word [esp + 0x26], bx
mov word [esp + 0x2c], dx
mov word [esp + 0x18], dx
mov word [esp + 0x16], 0x68
mov word [esp + 0x36], cx
mov word [esp + 0x2a], 0x59
mov word [esp + 0x3a], 0x54
mov word [esp + 0x56], cx
mov word [esp + 0x24], 0x6e
mov word [esp + 0x3e], 0x63
mov word [esp + 0x1c], bx
mov word [esp + 0x40], 0x68
mov word [esp + 0x20], 0x51
mov word [esp + 0x54], 0x6d
mov word [esp + 0x42], 0x6e
mov word [esp + 0x5a], 0x65
mov word [esp + 0x2e], 0x75
mov word [esp + 0x50], 0x4c
mov word [esp + 0x44], dx
mov word [esp + 0x52], cx
mov word [esp + 0x5e], 0
mov word [esp + 0x46], 0x6c
mov word [esp + 0x22], cx
mov word [esp + 0x48], dx
mov word [esp + 0x58], 0x74
mov word [esp + 0x4a], bx
mov word [esp + 0x32], 0x42
mov word [esp + 0x5c], 0x64
mov word [esp + 0x4c], 0x79
call dword [sym.imp.MSVCRT.dll_wcscmp]
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
push edi
and esi, 5
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x4c
ret

Function at 0x403f30
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp + 4], 1
push eax
push 0x4265e8
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x403f8a
mov ecx, dword [esp]
push 0x426504
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp]
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push 0x426528
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x403f90
Capabilities:
Allocate or change rwx memory
Execute anti-debugging instructions
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
rdtsc
push 0x12c
mov esi, edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
sub eax, edi
push 0x40
push 0x1000
push 0x1000
sbb edx, esi
push 0
mov dword [0x4288f0], eax
mov dword [0x4288f4], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x403fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
test edi, edi
je 0x40400a
rdtsc
push 1
push 0
push edx
push eax
call fcn.0040a380
add eax, dword [esi + edi*4 - 4]
mov dword [esi + edi*4], eax
jmp 0x404019
rdtsc
push 1
push 0
push edx
push eax
call fcn.0040a380
mov dword [esi], eax
inc edi
cmp edi, 0x400
jl 0x403ff0
rdtsc
push 0
push 0x80
push edx
push eax
call fcn.0040a380
lea eax, [esi + eax*4]
push 0x40
push 0x1000
push 0x1000
mov dword [eax], 0x58669c66
mov dword [eax + 4], 0x1000d66
mov dword [eax + 8], 0x9d665066
mov dword [eax + 0xc], 0xccccc390
push 0
mov dword [0x4288f8], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40407b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
test edi, edi
je 0x404097
rdtsc
push 1
push 0
push edx
push eax
call fcn.0040a380
add eax, dword [esi + edi*4 - 4]
mov dword [esi + edi*4], eax
jmp 0x4040a6
rdtsc
push 1
push 0
push edx
push eax
call fcn.0040a380
mov dword [esi], eax
inc edi
cmp edi, 0x400
jl 0x40407d
rdtsc
push 0
push 0x80
push edx
push eax
call fcn.0040a380
lea eax, [esi + eax*4]
mov dword [0x4288fc], eax
mov dword [eax], 0x6a93c3cc
lea eax, [ebp - 4]
push eax
push str.CLSID84698AC3_D3AC_44b6_B858_BAA9319B681C
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40412d
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push edx
push eax
push 0
push str.AppID
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404123
cmp dword [ebp - 8], 0x1eb2f0
jne 0x404123
mov dword [0x4288e8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret