joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ade3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp + 0x1c]
mov edi, ecx
push eax
push esi
mov ebx, dword [edi + 0xd8]
mov dword [ebp - 4], edi
call fcn.0043a776
push 0
push eax
push dword [edi + 0x9c]
call dword [sym.imp.USER32.dll_SetWindowRgn]
test ebx, ebx
je 0x43ae21
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp + 0x1c]
push esi
push eax
push ebx
call fcn.004250c6
mov eax, dword [esi + 0x44]
add esp, 0x14
add dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x48]
add dword [ebp + 0x20], eax
mov eax, dword [esi + 0x4c]
sub dword [ebp + 0x24], eax
mov eax, dword [esi + 0x50]
push dword [ebp + 0x18]
sub dword [ebp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push ebx
mov dword [ebp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 3
push 0x4635bc
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
lea eax, [ebp - 0x2c]
lea esi, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.0043acb0
push 0
push 0xf
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x1c]
push dword [ebp + 0x10]
push eax
push ebx
call fcn.00425728
add esp, 0x14
lea eax, [ebp - 0xf4]
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x14]
and byte [ebp - 0x2d], 0
add eax, 4
push eax
call fcn.00425cff
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
pop ecx
push eax
push ebx
call esi
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push ebx
mov dword [ebp + 0x10], eax
call edi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xf4]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x14]
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret 0x24
Function at 0x43ea90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
push 1
push eax
call fcn.0043f1f0
push 0
mov ebx, eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043f1f0
xor edx, edx
mov dl, byte [ebx + 0x1f]
mov esi, edx
test esi, esi
je 0x43ec43
cmp esi, 0x1f
jge 0x43ec43
cmp byte [esi + ebx], 0xe9
jne 0x43ec43
mov ecx, dword [esi + ebx + 1]
lea edi, [ecx + ebx + 5]
mov cl, byte [ecx + ebx + 5]
cmp cl, 0xe9
je 0x43eaf6
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edx, dword [edi + 1]
lea ecx, [edx + edi + 5]
cmp ecx, eax
je 0x43eb14
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x43eb5a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x43eb5a
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x43eb5a
lea edx, [esp + 0x18]
push edx
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov eax, ebx
test esi, esi
mov edx, edi
jle 0x43eb78
push 0
push eax
push edx
call fcn.0043f230
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
lea edx, [ecx + edi]
jl 0x43eb64
cmp ecx, esi
je 0x43ebea
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43ec4b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x43ec4b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43ec4b
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x43ec4b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43ec35
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x43ec35
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43ec35
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x43ec35
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028b0
xor eax, eax
push ebp
push 0x4028a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409018], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fa0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403d1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040269c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d21
lea eax, [ebp - 0x10]
call fcn.00403094
ret
Function at 0x4049d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x404ada
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x404a23
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403184
jmp 0x404ac1
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
mov eax, ebx
call fcn.00404984
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004049a4
mov ebx, eax
test esi, esi
je 0x404a4b
dec esi
test esi, esi
jl 0x404a4b
cmp edi, ebx
jne 0x404a2a
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004031c4
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403464
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040320c
cmp eax, 2
jl 0x404ac1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x404ac1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040320c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x404ac1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040320c
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403464
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ae1
lea eax, [ebp - 0x110]
call fcn.00403094
ret

Function at 0x404b9c
Capabilities:
Get file attributes

Disassembly:
call fcn.00404490
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
je 0x404bb0
dec eax
and al, 0x10
sete al
ret

Function at 0x404cf8
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
je 0x404d07
dec eax
and al, 0x10
setne al
ret

Function at 0x404f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404ffa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004031c4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405001
lea eax, [ebp - 0x10c]
call fcn.00403094
ret

Function at 0x405008
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405072
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.KERNEL32.DLL_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004031c4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405079
lea eax, [ebp - 0x10c]
call fcn.00403094
ret
Function at 0x405080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
mov eax, dword [ebp - 8]
call fcn.004033fc
xor eax, eax
push ebp
push 0x4051db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403094
cmp dword [ebp - 4], 0
je 0x4050ee
mov eax, dword [ebp - 4]
call fcn.0040320c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4050ee
lea eax, [ebp - 4]
mov edx, 0x4051f0
call fcn.00403214
cmp dword [ebp - 8], 0
je 0x40511d
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x40511d
lea ecx, [ebp - 0x150]
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00404728
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.0040312c
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403258
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040340c
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
test esi, esi
setne al
jmp 0x4051a6
test dword [ebp - 0x14c], 0x10
ja 0x405193
cmp dword [ebx], 0
je 0x405166
mov eax, ebx
mov edx, 0x4051fc
call fcn.00403214
push dword [ebx]
push dword [ebp - 4]
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004031f4
push dword [ebp - 0x154]
mov eax, ebx
mov edx, 3
call fcn.004032cc
lea eax, [ebp - 0x14c]
push eax
push esi
call sub.KERNEL32.DLL_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x405149
push esi
call sub.KERNEL32.DLL_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051e2
lea eax, [ebp - 0x154]
mov edx, 2
call fcn.004030b8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004030b8
ret
Function at 0x405634
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, eax
pushal
call fcn.004052d8
call fcn.0040456c
mov dword [ebx + 0x18], eax
popal
pushal
lea eax, [ebx + 0x1c]
call fcn.004030e8
popal
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40574c
pushal
lea edx, [ebx + 0x1c]
mov eax, dword [edx]
call fcn.00404db8
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x4056a9
call fcn.00405c80
mov dword [ebx + 0x20], eax
popal
pushal
push ecx
xchg ecx, eax
mov edx, 0x40569b
call fcn.004048d8
test al, al
pop edx
jne 0x405691
mov edx, 0x4056a7
mov eax, dword [ebx + 0x20]
call fcn.00405cac
jmp 0x4056a9
popal
add esp, 0xfffffec0
xor edx, edx
push edx
push edx
xchg ecx, eax
mov edx, esp
call fcn.00405300
lea eax, [esp + 4]
mov edx, dword [ebx + 0x1c]
pop ecx
push ecx
call fcn.00403258
call fcn.004044a8
pop eax
mov edx, esp
push eax
push edx
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
inc eax
mov eax, esp
pushfd
call fcn.00403094
popfd
pop ecx
je 0x405746
mov ecx, dword [esp]
push dword [ebp + 8]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040536c
test al, al
je 0x405735
mov ecx, dword [ebx + 0x24]
jecxz 0x405717
mov eax, dword [ebx + 0x28]
mov ecx, esp
push 1
mov edx, esp
push edx
mov edx, ebx
call dword [ebx + 0x24]
pop ecx
jecxz 0x405735
loop 0x405746
mov eax, 0x140
push eax
call fcn.00402448
push eax
xchg edx, eax
mov eax, dword [ebx + 0x18]
call fcn.004045e8
pop edx
pop ecx
mov eax, esp
call fcn.0040254c
push esp
push edi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4056e9
push edi
call sub.KERNEL32.DLL_FindClose
add esp, 0x140
xor eax, eax
xchg dword [ebx + 0x20], eax
call fcn.00404520
pop edi
pop ebx
pop ebp
ret 4

Function at 0x406218
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.00406144
je 0x40625d
mov eax, ebx
push edx
call fcn.0040648c
pop edx
cmp eax, edx
je 0x40625d
test edx, edx
mov eax, ebx
jne 0x40623c
pop ebx
inc edx
jmp fcn.0040647c
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x406245
dec edx
push edx
xor edx, edx
call fcn.0040647c
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.00405f98
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040627c
ret
Function at 0x406d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x9c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406dfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x97]
push eax
push 0x97
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
xor ebx, ebx
jmp 0x406dd5
mov esi, ebx
and esi, 0xff
lea eax, [ebp + esi - 0x97]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
sub eax, 5
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x41
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x42
je 0x406dd2
lea eax, [ebp - 0x9c]
mov dl, byte [ebp + esi - 0x97]
call fcn.004031b4
mov edx, dword [ebp - 0x9c]
mov eax, edi
call fcn.00403214
add bl, 4
xor eax, eax
mov al, bl
cmp byte [ebp + eax - 0x97], 0
jne 0x406d79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e03
lea eax, [ebp - 0x9c]
call fcn.00403094
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x407bd4
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xa
add esp, 0xfffff004
push eax
dec eax
jne 0x407bdd
mov eax, dword [ebp - 4]
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0xa214], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407d8d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa214]
mov edx, 0x4091c0
mov ecx, 3
call fcn.004031f4
mov edx, dword [ebp - 0xa214]
mov eax, dword [ebp - 4]
call fcn.00406fe4
test al, al
je 0x407d6c
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0040258c
add al, 0xbf
sub al, 2
jb 0x407d6c
sub al, 0x19
je 0x407d6c
mov eax, dword [ebp - 4]
call fcn.00407ad0
mov eax, dword [ebp - 4]
call fcn.00407130
test al, al
je 0x407d6c
mov eax, dword [ebp - 4]
call fcn.0040340c
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 8], eax
test dword [ebp - 8], 1
jbe 0x407c95
push 0
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00405b84
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x407d4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040597c
mov edx, eax
sub edx, 0xa200
mov eax, dword [ebp - 0xc]
call fcn.00405974
lea edx, [ebp - 0xa210]
mov eax, dword [ebp - 0xc]
mov ecx, 0xa200
call fcn.00405988
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x9d3e]
mov ecx, 4
call fcn.0040254c
lea eax, [ebp - 0xa210]
mov ecx, dword [ebp - 0x10]
mov edx, 0x3e8
call fcn.00407080
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00405974
lea edx, [ebp - 0xa210]
mov eax, dword [ebp - 0xc]
mov ecx, 0xa200
call fcn.0040598c
mov eax, dword [ebp - 0xc]
call fcn.0040597c
mov edx, eax
sub edx, 0xa200
mov eax, dword [ebp - 0xc]
call fcn.00405980
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d51
mov eax, dword [ebp - 0xc]
call fcn.00404520
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d94
lea eax, [ebp - 0xa214]
call fcn.00403094
lea eax, [ebp - 4]
call fcn.00403094
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret
Function at 0x402810
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov al, 0xc9
mov byte [esp], 0xcd
mov byte [esp + 1], 0xad
mov byte [esp + 2], 0xea
mov byte [esp + 3], 0xb3
mov byte [esp + 4], 0x49
mov byte [esp + 5], 8
mov byte [esp + 6], 0xee
mov byte [esp + 7], 0xce
mov byte [esp + 8], 0x1f
mov byte [esp + 9], 0x9f
mov byte [esp + 0xa], 0x2c
mov byte [esp + 0xb], al
mov byte [esp + 0xc], 0xe1
mov byte [esp + 0xd], 0xfe
mov byte [esp + 0xe], 0x13
mov byte [esp + 0xf], 0x33
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0xab
mov byte [esp + 0x12], 0xe9
mov byte [esp + 0x13], 0x7d
mov byte [esp + 0x14], 0x3b
mov byte [esp + 0x15], 0x7b
mov byte [esp + 0x16], 0x60
mov byte [esp + 0x17], 0xbf
mov byte [esp + 0x18], 0x8f
mov byte [esp + 0x19], 0x1b
mov byte [esp + 0x1a], 0xc
mov byte [esp + 0x1b], 0xef
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x5b
mov byte [esp + 0x1e], 0x39
mov byte [esp + 0x1f], 0x83
jne 0x4028d4
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d4
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a20
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x100029f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10002a51
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0xc]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10002a12
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
pop ebp
ret 0x18
Function at 0x40bbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x41c084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x407
lea eax, [ebp - 0x40b]
push 0
push eax
mov byte [ebp - 0x40c], 0
call fcn.00410550
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 0x400
lea eax, [ebp - 0x40c]
push 0x408
push eax
call fcn.0040dc5b
lea eax, [ebp - 0x40c]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc47
sub eax, edx
je 0x40bc6d
cmp byte [ebp + eax - 0x40d], 0xa
jne 0x40bc6d
mov word [ebp + eax - 0x40d], 0xa0d
mov byte [ebp + eax - 0x40b], cl
lea eax, [ebp - 0x40c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc76
sub eax, edx
push esi
mov esi, eax
mov eax, dword [0x41de74]
mov dword [ebp - 0x410], 0
test eax, eax
je 0x40bc9e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41cf34]
cmp eax, 0xffffffff
je 0x40bcd0
push 0
lea ecx, [ebp - 0x410]
push ecx
push esi
lea edx, [ebp - 0x40c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40bcd0
mov eax, dword [0x41cf34]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x41de74]
pop esi
test eax, eax
je 0x40bce1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c754
mov esp, ebp
pop ebp
ret