joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401610
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0x18
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016a0
push 0x424
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0x428
push 0
push eax
call fcn.00403330
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401699
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004051e1
add esp, 8
test eax, eax
je 0x4016b3
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x401677
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ebc
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ebc
mov esp, ebp
pop ebp
ret

Function at 0x404f87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404fc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fc6
cmp dword [ecx + 0x74], 0xe
jbe 0x404fc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4089f6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408a93
push ebx
push esi
call fcn.004089bf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408953
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408a40
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408a92
push edi
push eax
call fcn.004074da
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408a60
call fcn.00407585
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408a91
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408953
add esp, 0x20
test eax, eax
jne 0x408a7f
push edi
call fcn.00407585
jmp 0x408a87
push ebx
call fcn.00407585
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409a05
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411238
push 0x411230
push str.FlsAlloc
push 0x1f
call fcn.00409921
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409a39
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f15c]
call esi
jmp 0x409a3f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409a83
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411248
push 0x411240
push str.FlsGetValue
push 0x21
call fcn.00409921
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409aba
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x409ac2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411250
push 0x411248
push str.FlsSetValue
push 0x22
call fcn.00409921
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409afc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f15c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x20dc5a89
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x78a77d8f
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429250]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004060e1
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x429250]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x429250], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x402fa2
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x402fc2
mov dword [ebp - 8], GetSystemMetrics
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fd1
mov ebx, 0x40fe48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe6
mov ecx, dword [0x4291f8]
add ecx, eax
push ecx
call fcn.004031b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040319e
test eax, eax
je 0x403149
test byte [ebp + 0x17], 0x80
je 0x403132
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdb8
mov dword [ebp - 0xc], eax
call fcn.004061fd
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403194
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403036
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
sub dword [ebp + 0x14], esi
mov dword [0x40bdd0], edi
mov dword [0x40bdd4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdb8
mov dword [0x40bdd8], ebx
mov dword [0x40bddc], eax
call fcn.0040621d
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40312a
mov esi, dword [0x40bdd8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429254], 1
mov edi, eax
je 0x4030de
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4030a5
cmp dword [ebp + 0x14], 0
jne 0x4030de
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405021
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40311f
cmp dword [ebp + 0x10], eax
jne 0x403107
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp dword [ebp - 0x14], esi
jne 0x40312e
add dword [ebp - 4], esi
jmp 0x403113
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdd8]
cmp dword [ebp - 0x10], 1
jne 0x403059
jmp 0x403194
cmp dword [ebp + 0x14], eax
jg 0x403029
jmp 0x403194
push 0xfffffffffffffffc
jmp 0x40314b
push 0xfffffffffffffffe
jmp 0x40314b
test edi, edi
je 0x403189
cmp dword [ebp + 0x14], esi
jge 0x40313e
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040319e
test eax, eax
jne 0x403191
push 0xfffffffffffffffd
pop eax
jmp 0x403197
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403159
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40312e
cmp esi, dword [ebp + 0x10]
jne 0x40312e
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40314e
jmp 0x403194
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4054f2
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059be
mov edi, eax
cmp edi, 0xffffffff
je 0x4055f8
test byte [esp + 0x10], 1
push esi
je 0x4055da
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4055e0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4055e9
xor eax, eax
inc eax
jmp 0x4055fa
test byte [esp + 0x10], 4
jne 0x4055f8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055ff
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.004058ca
test bl, 8
mov dword [ebp - 8], eax
je 0x40563e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429228], eax
jmp 0x4057bb
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405658
test eax, eax
je 0x405769
test bl, 2
je 0x405769
mov esi, 0x4246a0
push edi
push esi
call fcn.00405d77
cmp dword [ebp + 8], 0
je 0x405677
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40567d
push edi
call fcn.0040580e
cmp word [edi], 0
jne 0x40568d
cmp word [0x4246a0], 0x5c
jne 0x405698
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40575e
cmp word [ebp - 0x22c], 0x2e
jne 0x4056e2
cmp word [ebp - 0x22a], 0
je 0x405741
cmp word [ebp - 0x22a], 0x2e
jne 0x4056e2
cmp word [ebp - 0x228], 0
je 0x405741
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405d77
test byte [ebp - 0x258], 0x10
je 0x40570d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405741
push dword [ebp + 0xc]
push edi
call fcn.004055ff
jmp 0x405741
push dword [ebp - 4]
push edi
call fcn.004055b7
test eax, eax
jne 0x405739
cmp dword [ebp - 4], eax
je 0x405731
push edi
push 0xfffffffffffffff1
call fcn.00405021
push 0
push edi
call fcn.00405c11
jmp 0x405741
inc dword [0x429228]
jmp 0x405741
push edi
push 0xfffffffffffffff2
call fcn.00405021
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4056ba
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405769
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4057bb
cmp dword [ebp - 8], esi
jne 0x40577d
inc dword [0x429228]
jmp 0x4057bb
push edi
call fcn.004060ba
test eax, eax
je 0x4057bb
push edi
call fcn.004057c2
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004055b7
test eax, eax
jne 0x4057b3
cmp dword [ebp - 4], esi
je 0x405775
push edi
push 0xfffffffffffffff1
call fcn.00405021
push esi
push edi
call fcn.00405c11
jmp 0x4057bb
push edi
push 0xffffffffffffffe5
call fcn.00405021
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4058ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ea0
push esi
call fcn.00405d77
push esi
call fcn.0040586d
mov edi, eax
test edi, edi
jne 0x4058eb
xor eax, eax
jmp 0x405943
push edi
call fcn.0040600b
test byte [0x4291b8], 0x80
je 0x405908
mov ax, word [edi]
test ax, ax
je 0x4058e7
cmp ax, 0x5c
je 0x4058e7
sub edi, esi
sar edi, 1
jmp 0x405922
call fcn.004060ba
test eax, eax
je 0x40591c
test byte [eax], 0x10
je 0x4058e7
push esi
call fcn.0040580e
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40590e
call fcn.004057c2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x4059e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405a12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40950c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409510]
mov dword [ebp - 4], 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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a62
test edi, edi
jne 0x405a1f
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a5c
Function at 0x405a95
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d38
push 0x409530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405ae4
push 1
push 0
push esi
call fcn.004059e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c0b
cmp eax, edi
jg 0x405c0b
mov esi, 0x426538
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c0b
cmp eax, edi
jg 0x405c0b
push esi
push ebx
push str._ls_ls_r_n
push 0x425938
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d99
push 4
push 0xc0000000
push esi
call fcn.004059e3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c0b
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 0x405c04
push edi
push esi
push ebp
call fcn.00405a66
test eax, eax
je 0x405c04
push str._Rename__r_n
push esi
call fcn.00405948
test eax, eax
jne 0x405b9a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bcf
add eax, 0xa
push 0x409514
push eax
call fcn.00405948
mov ebp, eax
test ebp, ebp
je 0x405bcb
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405bbc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405bb6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405bd1
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425938
push eax
call fcn.0040599e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
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
pop ecx
ret

Function at 0x405c44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405cb8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ca5
cmp dword [ebp + 0x14], 1
je 0x405ca8
cmp dword [ebp + 0x14], 2
je 0x405ca8
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40618f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d3c], 0
push esi
jne 0x4061c6
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 0x4061a0
mov dword [ecx*4 + 0x426d38], eax
inc ecx
cmp ecx, 0x100
jl 0x40619b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4061f7
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 + 0x426d38]
xor eax, esi
inc ecx
dec edx
jne 0x4061d9
pop edi
not eax
pop esi
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x294240b1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x35f1441
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x100021e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100120a0]
test eax, eax
je 0x10002298
mov dword [esp], ebx
call eax
sub esp, 4
test eax, eax
mov dword [ebx + 8], eax
jns 0x10002220
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000220c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x100022cd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov dword [0x100120a0], eax
test eax, eax
jne 0x100021fd
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000220e