joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c60
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, 0x104
push eax
push 0x40c8c8
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x40c7a4
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40c69c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
mov esi, 0x40c458
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x40c598
push esi
call fcn.00402a20
push esi
call fcn.00402920
add esp, 0xc
add eax, esi
cmp eax, esi
jb 0x401ccc
cmp byte [eax], 0x5c
je 0x401ccc
dec eax
jmp 0x401cc0
inc eax
cmp eax, esi
pop esi
jb 0x401cd5
and byte [eax], 0
leave
ret

Function at 0x407099
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b228
cmp edx, dword [eax]
je 0x4070bb
add eax, 8
inc ecx
cmp eax, 0x40b2b8
jl 0x4070ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b228]
jne 0x4071e9
mov eax, dword [0x40cbf0]
cmp eax, 1
je 0x4071c3
test eax, eax
jne 0x4070ec
cmp dword [0x40b154], 1
je 0x4071c3
cmp edx, 0xfc
je 0x4071e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407123
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407166
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095cc
push edi
call fcn.00407fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a30
lea eax, [ebp - 0xa0]
push 0x4095ac
push eax
call fcn.00402a30
push dword [esi + 0x40b22c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407f0e
add esp, 0x2c
pop edi
jmp 0x4071e9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b22c]
push 0
push eax
push dword [esi]
call fcn.00402920
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x50af5787
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0xfba50fc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402d40
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060bd
xor ebx, ebx
cmp eax, ebx
jne 0x402e23
test byte [ebp + 0x10], 2
je 0x402da1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e08
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402ddd
test edi, edi
jne 0x402e08
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d40
test eax, eax
jne 0x402de6
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402db6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040665f
test eax, eax
jne 0x402e18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e23
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403165
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403174
mov ebx, 0x4178d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403189
mov ecx, dword [0x424378]
add ecx, eax
push ecx
call fcn.0040333a
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403324
test eax, eax
je 0x4032db
test byte [ebp + 0x17], 0x80
je 0x4032c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b848
mov dword [ebp - 0xc], eax
call fcn.00406784
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40331a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031d9
mov esi, dword [ebp + 0x14]
mov edi, 0x4138d8
push esi
push edi
call fcn.00403324
test eax, eax
je 0x4032db
sub dword [ebp + 0x14], esi
mov dword [0x40b860], edi
mov dword [0x40b864], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b848
mov dword [0x40b868], ebx
mov dword [0x40b86c], eax
call fcn.004067a4
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4032bc
mov esi, dword [0x40b868]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4243d4], 1
mov edi, eax
je 0x40327b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403248
cmp dword [ebp + 0x14], 0
jne 0x40327b
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.0040537b
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4032b0
cmp dword [ebp + 0x10], 0
jne 0x403298
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405e71
test eax, eax
je 0x4032c0
add dword [ebp - 4], esi
jmp 0x4032a4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b868]
cmp dword [ebp - 0x10], 1
jne 0x4031fc
jmp 0x40331a
cmp dword [ebp + 0x14], 0
jg 0x4031cc
jmp 0x40331a
push 0xfffffffffffffffc
jmp 0x4032dd
push 0xfffffffffffffffe
jmp 0x4032dd
test edi, edi
je 0x40330f
cmp dword [ebp + 0x14], esi
jge 0x4032d0
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403324
test eax, eax
jne 0x403317
push 0xfffffffffffffffd
pop eax
jmp 0x40331d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4032eb
mov esi, dword [ebp + 0x14]
mov edi, 0x4138d8
push esi
push edi
call fcn.00403324
test eax, eax
je 0x4032db
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e71
test eax, eax
je 0x4032c0
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032e0
jmp 0x40331a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4058d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422128], 0x44
push eax
xor eax, eax
push 0x422128
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40590f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405913
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4059b1
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405da5
mov edi, eax
cmp edi, 0xffffffff
je 0x4059f2
test byte [esp + 0x10], 1
push esi
je 0x4059d4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059da
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4059e3
xor eax, eax
inc eax
jmp 0x4059f4
test byte [esp + 0x10], 4
jne 0x4059f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4059f9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cb7
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a38
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x405bc2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a52
test eax, eax
je 0x405b70
test bl, 2
je 0x405b70
mov esi, 0x421928
push edi
push esi
call fcn.00406237
cmp dword [ebp + 8], 0
je 0x405a71
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a77
push edi
call fcn.00405c10
cmp byte [edi], 0
jne 0x405a85
cmp byte [0x421928], 0x5c
jne 0x405a90
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b66
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405bf4
cmp byte [eax], 0
je 0x405ad6
cmp byte [ebp - 0x1c], 0
je 0x405ad6
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405aec
mov al, byte [esi + 1]
test al, al
je 0x405b45
cmp al, 0x2e
jne 0x405aec
cmp byte [esi + 2], 0
je 0x405b45
push esi
push ebx
call fcn.00406237
test byte [ebp - 0x14c], 0x10
je 0x405b11
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b45
push dword [ebp + 0xc]
push edi
call fcn.004059f9
jmp 0x405b45
push dword [ebp - 4]
push edi
call fcn.004059b1
test eax, eax
jne 0x405b3d
cmp dword [ebp - 4], eax
je 0x405b35
push edi
push 0xfffffffffffffff1
call fcn.0040537b
push 0
push edi
call fcn.00406010
jmp 0x405b45
inc dword [0x4243a8]
jmp 0x405b45
push edi
push 0xfffffffffffffff2
call fcn.0040537b
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ab4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b70
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bc2
cmp dword [ebp - 0xc], esi
jne 0x405b84
inc dword [0x4243a8]
jmp 0x405bc2
push edi
call fcn.004065ca
test eax, eax
je 0x405bc2
push edi
call fcn.00405bc9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059b1
test eax, eax
jne 0x405bba
cmp dword [ebp - 4], esi
je 0x405b7c
push edi
push 0xfffffffffffffff1
call fcn.0040537b
push esi
push edi
call fcn.00406010
jmp 0x405bc2
push edi
push 0xffffffffffffffe5
call fcn.0040537b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cb7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d28
push esi
call fcn.00406237
push esi
call fcn.00405c62
mov edi, eax
test edi, edi
jne 0x405cd8
xor eax, eax
jmp 0x405d2a
push edi
call fcn.00406531
test byte [0x424338], 0x80
je 0x405cf1
mov al, byte [edi]
test al, al
je 0x405cd4
cmp al, 0x5c
je 0x405cd4
sub edi, esi
jmp 0x405d09
call fcn.004065ca
test eax, eax
je 0x405d03
test byte [eax], 0x10
je 0x405cd4
push esi
call fcn.00405c10
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cf5
call fcn.00405bc9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405da5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc4
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405dca
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405df9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e3e
test edi, edi
jne 0x405e04
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e38
Function at 0x405ea0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4226b0], 0x4c554e
mov edi, 0x400
mov ebp, 0x4226b0
je 0x405eec
push 1
push 0
push esi
call fcn.00405dca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40600b
cmp eax, edi
jg 0x40600b
mov esi, 0x422ab0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40600b
cmp eax, edi
jg 0x40600b
push esi
push ebp
push str._s_s_r_n
push 0x4222b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424330]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062ca
push 4
push 0xc0000000
push esi
call fcn.00405dca
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40600b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406004
push edi
push esi
push ebp
call fcn.00405e42
test eax, eax
je 0x406004
push str._Rename__r_n
push esi
call fcn.00405d2f
test eax, eax
jne 0x405fa2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fd7
add eax, 0xa
push 0x40a3d0
push eax
call fcn.00405d2f
mov ebp, eax
test ebp, ebp
je 0x405fd3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fc4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fbe
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fd9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4222b0
push eax
call fcn.00405d85
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e71
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406010
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406033
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ea0
pop ecx
pop ecx
inc dword [0x4243b0]
ret 8

Function at 0x40611e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060bd
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40618d
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x40618d
cmp dword [ebp + 0xc], 1
je 0x406190
cmp dword [ebp + 0xc], 2
je 0x406190
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065f1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406615
xor eax, eax
test eax, eax
je 0x406627
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406627
xor ecx, ecx
jmp 0x40662a
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x422eb4], 0
push esi
jne 0x40674d
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 0x406727
mov dword [ecx*4 + 0x422eb0], eax
inc ecx
cmp ecx, 0x100
jl 0x406722
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40677e
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 + 0x422eb0]
xor eax, esi
inc ecx
dec edx
jne 0x406760
pop edi
not eax
pop esi
ret 0xc
Function at 0x1003123e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10031262
xor eax, eax
jmp 0x100313ac
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10031280
xor eax, eax
jmp 0x100313ac
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 1
push 0x4f8f
push 0x386
call fcn.10030e50
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x100312a8
xor eax, eax
jmp 0x100313ac
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call fcn.10031044
add esp, 0x18
push dword [ebp - 8]
push 0x126c
push 0
push 0x1de
push dword [ebp - 4]
push 0x1d2b
push 0x3068
push dword [ebp + 8]
call fcn.1002ed1d
add esp, 0x20
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1003119a
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x10031321
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x2f96
push 0x76b5
push 1
call fcn.1002d0d8
add esp, 0x14
push dword [ebp - 4]
call fcn.10030ce9
pop ecx
test eax, eax
jne 0x10031332
xor eax, eax
jmp 0x100313ac
push 1
push 0x7e43
push 0x6aee
push dword [ebp - 4]
call fcn.1002a687
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10031394
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10031368
xor eax, eax
jmp 0x100313ac
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10031381
xor eax, eax
jmp 0x100313ac
lea eax, [ebp - 4]
push eax
push 1
push 0x3710
call fcn.100311ea
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100313a5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100313a9
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10047890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100478cd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x14]
sub eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x100478f0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x100478f0
push 0x1cd
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esp, ebp
pop ebp
ret