joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x412d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x412d94
push eax
push esi
call fcn.0041520b
add esp, 8
pop esi
ret 0x10

Function at 0x412da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x412e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x42b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00414dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x412dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x412e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x412eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x42b320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00414dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x412eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x412e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x4141b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00414140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00414140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00414140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00414140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x414bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x42687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x414c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x424ab5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
pushal
jmp 0x424bc6
call 0x424bcb
pop ebx
sub ebx, 0x4012fe
mov edi, ebx
add edi, 0x4012fe
add edi, 0x14
jmp fcn.00424c07

Function at 0x424ac1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12
mov edx, dword ss:[ebp + 8]
push ebx
push esi
push edi
mov eax, dword ds:[edx + 0x3c]
mov eax, dword ds:[eax + edx + 0x78]
js 0x424adb
ret 0x8b3e
pop eax
sbb byte [esi], bh
mov ecx, dword [eax + 0x1c]
Function at 0x4035b7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4035e4
mov ecx, dword [0x44bab8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4213e4], eax
push dword [0x40a5a4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004036e2
cmp eax, edi
jl 0x4036db
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5a4]
call ebx
test eax, eax
je 0x4036d8
cmp dword [ebp - 4], esi
jne 0x4036d8
push dword [ebp + 8]
add dword [0x4213e4], esi
call fcn.004036e2
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4036db
cmp dword [ebp + 0x10], edi
jne 0x4036a7
cmp dword [ebp + 8], edi
jle 0x4036d3
mov esi, 0x41d3a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403657
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5a4]
call ebx
test eax, eax
je 0x4036d8
cmp edi, dword [ebp - 4]
jne 0x4036d8
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036a3
cmp dword [ebp + 0x14], edi
jne 0x4036a3
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4213e4], eax
cmp dword [ebp + 8], 0
jg 0x40364a
jmp 0x4036d3
push 0xfffffffffffffffe
jmp 0x4036da
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4036b2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5a4]
call ebx
test eax, eax
je 0x4036d8
mov eax, dword [ebp - 4]
add dword [0x4213e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4036db
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4036e2
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4213e4]
mov edi, eax
sub esi, dword [0x415314]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x4038b2
push dword [0x4293f0]
call fcn.004038f4
push ebp
push ebp
push dword [0x415314]
push dword [0x40a5a4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4293ec], esi
mov dword [0x4213e0], ebp
mov eax, dword [0x4213e8]
mov ebx, 0x4000
sub eax, dword [0x4293f0]
cmp eax, ebx
jg 0x403755
mov ebx, eax
mov esi, 0x41d3a0
push ebx
push esi
call fcn.004038c2
test eax, eax
je 0x403873
add dword [0x4293f0], ebx
mov dword [0x415330], esi
mov dword [0x415334], ebx
cmp dword [0x44ba68], ebp
je 0x4037e6
cmp dword [0x44bb00], ebp
jne 0x4037e6
cmp dword [esp + 0x10], ebp
je 0x4037b3
mov eax, dword [0x4293ec]
push ebp
sub eax, dword [0x4213e4]
sub eax, dword [esp + 0x20]
add eax, dword [0x415314]
mov dword [0x4213e0], eax
call fcn.00406878
jmp 0x4037e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x4037e6
mov eax, dword [0x44ba64]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x40320f
push ebp
push 0x6f
push dword [0x44ba60]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x415318
mov dword [0x415338], 0x4153a0
mov dword [0x41533c], 0x8000
call fcn.0040694d
test eax, eax
jl 0x4038bd
mov esi, dword [0x415338]
mov eax, 0x4153a0
sub esi, eax
je 0x40384d
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5a4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403878
cmp esi, dword [esp + 0x14]
jne 0x403878
add dword [0x415314], esi
cmp dword [0x415334], ebp
jne 0x40377b
jmp 0x403859
cmp dword [0x415334], ebp
jne 0x4038bd
cmp ebx, ebp
je 0x4038bd
mov eax, dword [0x4213e4]
mov ecx, eax
sub ecx, dword [0x415314]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x40387c
jmp 0x40373f
or eax, 0xffffffff
jmp 0x4038b4
push 0xfffffffffffffffe
jmp 0x4038bf
push ebp
push ebp
push eax
push dword [0x40a5a4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x4038b2
mov eax, dword [0x4293ec]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4213e0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x4038b4
Function at 0x403fe4
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov edi, 0x47c000
je 0x404003
push edi
call fcn.004063c4
jmp 0x404009
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44baa4]
mov ecx, esi
dec esi
test ecx, ecx
je 0x40405d
mov ecx, dword [0x44ba68]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44baa0]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x404044
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x40402c
jmp 0x40405d
mov edx, dword [ecx + 2]
mov dword [0x447a40], edx
mov edx, dword [ecx + 6]
mov dword [0x44bb08], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x40406f
cmp bx, 0xffff
jne 0x40406b
mov ebx, 0x3ff
jmp 0x404009
xor ebx, ebx
jmp 0x404009
mov dword [0x447a3c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.004063ab
push 0xfffffffffffffffe
push 0x447a60
call fcn.0040647d
push eax
push dword [0x435408]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba8c]
mov esi, dword [0x44ba88]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4040c9
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x4040c2
push eax
push ebx
call fcn.0040647d
add esi, edi
add ebx, edi
dec ebp
jne 0x4040b5
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405c7e
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ac30], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405ca2
test al, 0x10
jne 0x405ca5
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ac30
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405cd0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405d50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00406035
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405d84
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bae8], eax
jmp 0x405f4d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405da2
test eax, eax
je 0x405ed1
test byte [ebp + 0xc], 2
je 0x405ed1
mov esi, 0x436430
push edi
push esi
call fcn.0040644e
test ebx, ebx
je 0x405dbf
push str..
push esi
call fcn.0040646c
jmp 0x405dc5
push edi
call fcn.00405f9a
push 0x40a238
push edi
call fcn.0040646c
push edi
call fcn.0040645f
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ec7
cmp byte [ebp - 0x118], 0x2e
jne 0x405e16
cmp byte [ebp - 0x117], 0x2e
je 0x405eaa
cmp byte [ebp - 0x117], 0
je 0x405eaa
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.0040644e
test byte [ebp - 0x144], 0x10
je 0x405e41
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405eaa
push dword [ebp + 0xc]
push edi
call fcn.00405d50
jmp 0x405eaa
push edi
push str.Delete:_DeleteFile___s__
call fcn.004067f4
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405ea2
test byte [ebp + 0xc], 4
push edi
je 0x405e8e
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.004067f4
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040572b
push 0
push edi
call fcn.00406197
jmp 0x405eaa
push str.Delete:_DeleteFile_failed___s__
call fcn.004067f4
inc dword [0x44bae8]
pop ecx
pop ecx
jmp 0x405eaa
push edi
push 0xfffffffffffffff2
call fcn.0040572b
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405df3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405ed1
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405f4d
cmp dword [ebp - 4], esi
push edi
jne 0x405ef3
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.004067f4
inc dword [0x44bae8]
pop ecx
pop ecx
jmp 0x405f4d
call fcn.00406810
test eax, eax
je 0x405f4d
push edi
call fcn.00405f53
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.004067f4
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405f45
test byte [ebp + 0xc], 4
push edi
je 0x405f3e
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.004067f4
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040572b
push esi
push edi
call fcn.00406197
jmp 0x405f4d
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405ee4
push edi
push 0xffffffffffffffe5
call fcn.0040572b
pop edi
pop esi
leave
ret 8
Function at 0x406035
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x438430
push esi
call fcn.0040644e
push esi
call fcn.00405fe6
mov edi, eax
test edi, edi
jne 0x406056
xor eax, eax
jmp 0x4060a8
push edi
call fcn.004066be
test byte [0x44ba70], 0x80
je 0x40606f
mov al, byte [edi]
test al, al
je 0x406052
cmp al, 0x5c
je 0x406052
sub edi, esi
push esi
call fcn.0040645f
cmp eax, edi
push esi
jle 0x406092
call fcn.00406810
test eax, eax
je 0x40608a
test byte [eax], 0x10
je 0x406052
push esi
call fcn.00405f9a
jmp 0x406071
call fcn.00405f53
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 0x40611f
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 0x40614e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
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 0x406193
mov eax, edi
dec edi
test eax, eax
jne 0x406159
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40618d
Function at 0x406197
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040684e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4061c3
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406307
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43adb8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43adb8
je 0x406207
push 1
push 0
push esi
call fcn.0040611f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40630d
cmp eax, edi
jg 0x40630d
mov esi, 0x43a830
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40630d
cmp eax, edi
jg 0x40630d
push esi
push ebp
push str._s_s_r_n
push 0x43a430
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.0040646c
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406307
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4062ef
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4062e3
push str._Rename__r_n
push edi
call fcn.004060ad
test eax, eax
jne 0x406314
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.0040644e
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x43a430
push eax
call fcn.004060f9
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44baf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40a9e8
push eax
call fcn.004060ad
test eax, eax
je 0x4062ca
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x40633d
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x406330
sub eax, edi
jmp 0x4062cc
Function at 0x406341
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4063a5
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406394
cmp dword [ebp + 0x14], 1
je 0x406396
cmp dword [ebp + 0x14], 2
je 0x406396
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x406757
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40677c
mov eax, dword [0x40a8e4]
cmp eax, 0xffffffff
je 0x406773
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8e4], 0xffffffff
jmp 0x4067ef
cmp dword [0x43b9c0], ebx
je 0x4067ef
cmp byte [0x43b5c0], bl
je 0x4067bb
cmp dword [0x40a8e4], 0xffffffff
jne 0x4067c4
push 4
push 0x40000000
push 0x43b5c0
call fcn.0040611f
cmp eax, 0xffffffff
mov dword [0x40a8e4], eax
je 0x4067ef
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8e4], 0xffffffff
je 0x4067ef
push esi
mov esi, 0x43fa00
push 0x40aab8
push esi
call fcn.0040646c
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.0040645f
push eax
push esi
push dword [0x40a8e4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43b1bc], esi
push edi
jne 0x4068ef
mov ecx, 0x43b1b8
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4068cb
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43b5b8
jl 0x4068c6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406924
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43b1b8]
xor eax, esi
inc ecx
dec edx
jne 0x406907
pop edi
pop esi
not eax
ret 0xc
Function at 0x43f523
Capabilities:
Resolve function by parsing pe exports

Disassembly:
not edx
jmp 0x441196
rcl dx, 1
bts ebx, ecx
sub eax, eax
bswap bx
lea ebx, [ebp - 0x4d165765]
lea edx, [edi*4 - 0x355e9b1c]
not bl
pop edx
bswap di
pop ebx
jmp fcn.0042ff07
shld bp, di, 0xc
mov ebp, esp
pushal
lahf
sub esp, 0xfffffff0
bts ax, 2
mov al, dl
push esi
pushfd
mov dword [esp], edi
xor eax, 0xe31a2d9c
rcr al, 7
pushal
test cl, ah
mov dword [esp + 0x1c], ebx
shl ax, cl
clc
mov dword [esp + 0x18], edx
rol al, 5
stc
neg ax
btc eax, edx
mov eax, dword [ebp + 8]
pushfd
pushfd
pushfd
test dh, bh
test eax, eax
mov word [esp], ax
lea esp, [esp + 0x24]
je 0x432d55
jmp 0x432202
lea esp, [esp + 0x24]
je 0x432d55
clc
add edx, eax
lea ecx, [ecx - 0x4a523e07]
adc cl, ah
bswap ecx
mov ecx, dword [esi + 0x7c]
cmp dh, 0x1d
cmc
cmp al, dh
bt dx, 3
add ecx, edx
clc
test cx, 0x9acb
mov dword [ebp - 0x10], ecx
btr cx, di
bsr cx, bp
bswap cx
mov ecx, dword [ebp + 0xc]
call fcn.004308b9
add byte [eax], al
inc esi
insb byte es:[edi], dx
jne 0x43d46a
push 0x656c6946
inc edx
jne 0x43d465
jb 0x43d476
add byte [ebp + 0xf382464], cl
test dword [edi + 0x59], eax
invalid
add byte [ebx + 0x68], dl
insb byte es:[edi], dx
insb byte es:[edi], dx
inc ebp
js 0x43d4d3
arpl word [ebp + 0x74], si
inc ecx
add bh, bh
and eax, sym.imp.KERNEL32.dll_LoadLibraryA_1
cmp byte [0xe8600043], cl
mov al, byte [0xffff58]
add byte [edi + 0x66], cl
jae 0x43d4ec
je 0x43d4db
push edx
arpl word gs:[eax + eax - 0x6b], si
mul dword ds:[di]
xchg edx, eax
xchg esi, eax
bound ecx, qword [edx + 0x6e8492e1]
mov bh, 5
push esp
pushal
loop 0x43d488
jo 0x43d4fd
ja 0x43d4d0
lodsd eax, dword [esi]
add esi, dword [edi]
popfd
cmp eax, 0x18ecda39
out dx, al
and al, 0xe6
push esp
mov edx, esp
imul esp, dword [edx - 0x40], 0xffffffd9
inc ecx
cmc
mov al, byte [0x21b449c9]
iretd
inc esp
jl 0x43d4a7
add al, 0xea
push ecx
cmp dword [eax + 0x6835f73f], ecx
nop
salc
pop eax
je 0x43d52e
push 0x7458d690
dec ebp
out dx, al
or edx, dword [edx - 0x2a]
adc esp, dword [eax + 0x70]
xchg esp, eax
or byte [edx], bl
aaa
sbb al, byte [ecx - 0x2f]
bound edx, qword [ebx + 0x42067b82]
fidiv dword [eax + 0x24]
mov bh, 0x9a
add ecx, dword [ecx + eax*8]
aad 0xf3
scasd eax, dword es:[edi]
or dh, ch
iretd
push esi
mov edi, 0x96e16217
bound eax, qword [ebp + 0x32f31362]
sub bh, byte [eax - 0xf]
test dword [edx + 0x13], esp
xor ch, byte [edx]
js 0x43d527
add al, byte [ebp + 0x33]
mov ebx, 0x6f0217b8
fcom qword [ebx]
retf 0x7ad8
shl ax, cl
push ebp
jmp 0x432dc5
mov esi, dword [eax + 0x3c]
cmp ah, al
inc edx
shr dh, 1
add esi, eax
bts edx, 2
bsf dx, dx
movzx dx, dl
mov edx, dword [esi + 0x78]
pushal
test edx, edx
push dword [esp]
jmp 0x43d3ae