joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407384
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4073d6
test eax, edx
je 0x4073d9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407399
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4073bf
add ecx, 4
js 0x4073af
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4073bc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4073e5
test edx, edx
jne 0x40738c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a274
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 0x40a2ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404594
jmp 0x40a2b6
mov eax, ebx
mov edx, esi
call fcn.004044f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a2c0
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 0x40a2e2
movzx eax, byte [esp]
jmp 0x40a2e4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a974
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a7ec
mov eax, dword [0x417c50]
cmp byte [eax], 0
je 0x40a9f0
mov eax, dword [0x417b70]
call fcn.00403290
call fcn.00402edc
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.00407b70
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 0x40aa38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aa26
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x417b4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41a7f0]
call fcn.004054ec
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 0x40d7f8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.004032f4
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
pop ebp
ret
Function at 0x41442c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push edx
push 0
push 0xa
call sub.kernel32.dll_OpenThread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4144f2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SuspendThread
mov dword [ebp - 0xe4], 0x10007
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
jne 0x414493
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4144f2
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], eax
mov dword [ebx], 1
jmp 0x4144b6
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4144d2
mov eax, dword [ebx]
mov dword [ebx + eax*4 + 4], esi
inc dword [ebx]
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0040cde8
test eax, eax
je 0x4144d2
cmp dword [ebx], 0x64
jb 0x4144a4
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00414238
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4159e0
Capabilities:
Check if file exists
Create pipe
Create thread
Get common file path
Get file attributes
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x415b66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404b44
push 0x104
mov eax, dword [ebp - 4]
call fcn.00404910
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404b44
lea eax, [ebp - 4]
mov edx, 0x415b7c
call fcn.0040474c
mov eax, dword [ebp - 4]
call fcn.00404910
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne byte [0x417ae0]
lea eax, [ebp - 0x210]
xor ecx, ecx
mov edx, 0x208
call fcn.004032f4
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_lstrlenW
mov edx, eax
dec edx
cmp edx, 0
jl 0x415aab
lea eax, [ebp + edx*2 - 0x210]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x415a9b
cmp cx, 0x2f
jne 0x415aa2
mov word [eax], 0
jmp 0x415aab
dec edx
sub eax, 2
cmp edx, 0xffffffff
jne 0x415a8c
push 0x415b90
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_lstrcatW
mov eax, 0x417ad8
lea edx, [ebp - 0x210]
mov ecx, 0x104
call fcn.00404d28
cmp dword [0x417acc], 0
je 0x415aea
push 0xdead
mov eax, dword [0x417acc]
push eax
call sub.kernel32.dll_TerminateThread
cmp dword [0x417ad0], 0xffffffff
je 0x415afe
mov eax, dword [0x417ad0]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 6
push 0x40000003
push 0x415ba8
call sub.kernel32.dll_CreateNamedPipeA
mov dword [0x417ad0], eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [0x417ad0]
push eax
push 0x415530
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x417acc], eax
cmp dword [0x417acc], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415b6d
lea eax, [ebp - 4]
call fcn.004044a4
ret

Function at 0x415bdc
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xdead
mov eax, dword [0x417acc]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x417ad0]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x417acc], eax
mov dword [0x417ad0], 0xffffffff
pop ebp
ret

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

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
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 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0x401da0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x58
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
push eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.00401c40
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
call fcn.00401d00
add esp, 0x24
pop edi
add esp, 0x58
ret

Function at 0x401e20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
cmp ebx, 0xffffffff
push edi
je 0x401ea3
test ebx, ebx
je 0x401ea3
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x401ea3
push edi
call fcn.00407e3c
mov esi, eax
add esp, 4
test esi, esi
je 0x401ea3
lea eax, [esp + 0x14]
push 0
push eax
push edi
push esi
push ebx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e9a
cmp dword [esp + 0x14], edi
jne 0x401e9a
mov ecx, dword [esp + 0x10]
push edi
push esi
push ecx
call fcn.00401da0
push esi
mov edi, eax
call fcn.00407dd3
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
ret
push esi
call fcn.00407dd3
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x402410
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0x80000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x402499
lea ecx, [esp + 8]
push ebx
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402495
mov ecx, dword [esp + 0x2c]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push ecx
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x402495
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x403a20
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1210
call fcn.00408050
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1228]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x403b30
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x220]
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
push 0x1000
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x403b30
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1228]
lea ebp, [esp + 0x220]
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0xfffffffc
cmp edx, 0x1000
jbe 0x403ab1
mov eax, 0x400
jmp 0x403ab4
shr eax, 2
cmp dword [esp + 0x10], eax
jae 0x403b30
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
push 0x208
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jbe 0x403b0f
xor esi, esi
test ebx, ebx
jbe 0x403b08
mov edi, dword [esp + 0x1224]
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00407fc9
add esp, 8
test eax, eax
je 0x403b20
inc esi
add edi, 4
cmp esi, ebx
jb 0x403aec
mov esi, dword [esp + 0x122c]
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 4
mov dword [esp + 0x10], ecx
jmp 0x403a99
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1210
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1210
ret

Function at 0x403b80
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1008
call fcn.00408050
push ebp
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push 0x1000
push ecx
mov dword [esp + 0x18], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x403bc0
pop edi
pop ebp
add esp, 0x1008
ret
mov edi, dword [esp + 0xc]
push ebx
shr edi, 2
push esi
mov ebx, ebp
je 0x403c1e
mov edx, dword [esp + 0x1024]
lea esi, [esp + 0x18]
mov dword [esp + 0x10], edx
mov eax, dword [esi]
mov ecx, dword [esp + 0x1020]
mov edx, dword [esp + 0x101c]
push eax
push ecx
push edx
call fcn.00403b40
add esp, 0xc
test eax, eax
je 0x403c16
mov eax, dword [esp + 0x1028]
cmp dword [eax], ebp
jbe 0x403c1e
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
inc ebp
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x10], eax
inc ebx
add esi, 4
cmp ebx, edi
jb 0x403bdc
mov edx, dword [esp + 0x1028]
pop esi
pop ebx
pop edi
mov dword [edx], ebp
mov eax, 1
pop ebp
add esp, 0x1008
ret
Function at 0x403d40
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x403db3
test eax, eax
je 0x403db3
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call edi
mov ebx, eax
mov eax, dword [esi]
push 0
push 0
push 0
push eax
call edi
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x14]
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esi]
push 0
push 0
push ebx
push ecx
call edi
xor eax, eax
cmp word [esp + 0xc], 0xfeff
pop edi
pop ebx
sete al
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x403dc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
lea ecx, [eax + eax]
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
call fcn.00403d40
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
mov eax, dword [esi]
push 1
push 0
push 0
push eax
call ebx
test edi, edi
je 0x403e12
cmp eax, 2
jae 0x403e12
mov ecx, dword [esi]
push 0
push 0
push 2
push ecx
call ebx
xor ebx, ebx
cmp edi, ebx
je 0x403e9d
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x18]
push ebx
push edx
lea eax, [esp + 0x18]
push 2
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
je 0x403e88
cmp dword [esp + 0x18], 2
jne 0x403e88
mov eax, dword [esp + 0x10]
cmp ax, 0xd
je 0x403e71
cmp ax, 0xa
je 0x403e88
test ax, ax
je 0x403e71
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x403e92
mov word [ebp], ax
add ebp, 2
dec ecx
inc ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x18]
push 2
push eax
push ecx
call edi
test eax, eax
jne 0x403e40
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x4044a0
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
push esi
push eax
push ecx
mov ecx, edi
call fcn.00404020
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x4044ea
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x404be0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x84c]
mov dword [esi + 0x844], 0
push eax
push 0
push esi
push 0x404b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x83c], eax
pop esi
ret
Function at 0x405280
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov ecx, 0x82
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
call fcn.00404b10
lea ecx, [esp + 8]
push str.Symtone.exe
push ecx
call fcn.00407eee
add esp, 0xc
lea edx, [esp + 4]
push 3
push 0
push 0
push edx
push 0x41f114
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
add esp, 0x208
ret

Function at 0x40e89d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421d08
cmp edx, dword [eax]
je 0x40e8bf
add eax, 8
inc ecx
cmp eax, 0x421d98
jl 0x40e8b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421d08]
jne 0x40e9ed
mov eax, dword [0x424a30]
cmp eax, 1
je 0x40e9c7
test eax, eax
jne 0x40e8f0
cmp dword [0x41f604], 1
je 0x40e9c7
cmp edx, 0xfc
je 0x40e9ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e927
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f6c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e96a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b9bc
push edi
call fcn.00410000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f6c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f6d0
lea eax, [ebp - 0xa0]
push 0x41b99c
push eax
call fcn.0040f6d0
push dword [esi + 0x421d0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f6d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004106b6
add esp, 0x2c
pop edi
jmp 0x40e9ed
lea eax, [ebp + 8]
lea esi, [esi + 0x421d0c]
push 0
push eax
push dword [esi]
call fcn.00409570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x415200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41520b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41530e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41bb48]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41bb48]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41bb48]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41bb48]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41bb48]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41bb48]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41bb48]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41bb48]
xor eax, edx
inc ecx
dec edi
jne 0x415226
pop edi
test esi, esi
je 0x415330
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41bb48]
xor eax, edx
inc ecx
dec esi
jne 0x415312
pop esi
pop ebx
not eax
ret
Function at 0x419eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419ed0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041073f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x419ef1
test byte [esp + 8], 2
je 0x419ef1
mov dword [0x424a38], 0xd
mov dword [0x424a3c], 5
jmp 0x419ecc
xor eax, eax
ret
Function at 0x419d90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4adadb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004a0204
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419e12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049d74d
mov eax, dword [eax]
push 0x5ff200
push eax
call fcn.0048f394
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a048f
test bl, bl
je 0x419e12
push 0x5ff200
lea ecx, [esp + 0xc]
call fcn.004a086b
push 0x602db8
lea ecx, [esp + 0xc]
call fcn.004a086b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x419e4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a048f
jmp 0x419f19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x419ed2
lea edx, [esp + 0x7c]
push 0x602db4
push edx
call fcn.0048f394
add esp, 8
test eax, eax
je 0x419ed2
lea eax, [esp + 0x7c]
push 0x602db0
push eax
call fcn.0048f394
add esp, 8
test eax, eax
je 0x419ed2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419e62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004a048f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41a710
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41a772
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc