joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3570
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10

Function at 0x4a495f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6306b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x4a499c
push 0x5737f0
push 4
push eax
call fcn.004b5b6f
push eax
call fcn.00403490
add esp, 0x10
jmp 0x4a49ae
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a4a19
push edi
call fcn.004b93a8
mov edi, dword [eax]
call fcn.004b93a8
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004b57a8
add esp, 0x18
mov ebx, eax
call fcn.004b93a8
cmp dword [eax], 0
je 0x4a49f9
call fcn.004b93a8
push dword [eax]
call fcn.004a3b1b
pop ecx
jmp 0x4a4a00
call fcn.004b93a8
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4a4a19
cmp ebx, esi
jae 0x4a4a19
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4a4a1b
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b4b34
leave
ret
Function at 0x4ac67f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4ac6c2
call fcn.004a4420
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ac6c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ac6dd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004ac239
test ebx, ebx
mov esi, eax
je 0x4ac6db
test edi, edi
je 0x4ac6db
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4acca3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50507d
call fcn.004b9295
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4accc8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4acd14
call fcn.004a523f
push eax
lea ecx, [ebp - 0x10]
call fcn.004052a0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a38f9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004035f0
mov eax, esi
call fcn.004b9334
ret 8

Function at 0x4adfba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4adfda
cmp dword [edi + 0x54], 0
jne 0x4adfda
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a4420
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004adf81
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4b4b34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6306b0]
jne 0x4b4b3e
repz ret
jmp fcn.004bd7b8
Function at 0x4b8fde
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4b901b
cmp dword [ebp + 0x14], edi
je 0x4b901b
cmp ecx, edi
jne 0x4b9022
call fcn.004b93a8
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b5f03
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b9036
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b9057
cmp ebx, 0xffffffff
je 0x4b9046
push ebx
push edi
push ecx
call fcn.004b4de0
add esp, 0xc
cmp esi, edi
je 0x4b9003
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b9003
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b9073
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b907a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b916b
test word [esi + 0xc], 0x10c
je 0x4b90ce
mov eax, dword [esi + 4]
test eax, eax
je 0x4b90ce
jl 0x4b91cc
cmp ebx, eax
mov edi, ebx
jb 0x4b909f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b9173
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b4b43
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4b9163
cmp ebx, dword [ebp - 0xc]
jb 0x4b913b
cmp dword [ebp - 0xc], 0
je 0x4b90f8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4b90ed
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b90f4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b9103
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4b9103
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b919f
push eax
push dword [ebp - 8]
push esi
call fcn.004bb580
pop ecx
push eax
call fcn.004c8086
add esp, 0xc
test eax, eax
je 0x4b91de
cmp eax, 0xffffffff
je 0x4b91cc
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b9163
push esi
call fcn.004c33af
cmp eax, 0xffffffff
pop ecx
je 0x4b91d0
cmp dword [ebp - 4], 0
je 0x4b919f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4b9082
mov eax, dword [ebp + 0x14]
jmp 0x4b901d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b918a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b4de0
add esp, 0xc
call fcn.004b93a8
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b9013
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b91b5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b4de0
add esp, 0xc
call fcn.004b93a8
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b9013
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b901d
or dword [esi + 0xc], 0x10
jmp 0x4b91d0
Function at 0x4bc442
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x630860]
je 0x4bc45d
inc edi
cmp edi, 0x17
jb 0x4bc44e
cmp edi, 0x17
jae 0x4bc5dd
push ebp
push 3
call fcn.004c8cdd
cmp eax, 1
pop ecx
je 0x4bc5a9
push 3
call fcn.004c8cdd
test eax, eax
pop ecx
jne 0x4bc491
cmp dword [0x630690], 1
je 0x4bc5a9
cmp ebx, 0xfc
je 0x4bc5dc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x633c20
push ebp
call fcn.004bdc25
add esp, 0xc
test eax, eax
je 0x4bc4c7
push esi
push esi
push esi
push esi
push esi
call fcn.004b5e07
add esp, 0x14
push 0x104
mov esi, 0x633c39
push esi
push 0
mov byte [0x633d3d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bc50b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004bdc25
add esp, 0xc
test eax, eax
je 0x4bc50b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b5e07
add esp, 0x14
push esi
call fcn.004bb010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4bc550
push esi
call fcn.004bb010
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x633f34
push 0x5759bc
sub ecx, eax
push ecx
push eax
call fcn.004c8c2a
add esp, 0x14
test eax, eax
je 0x4bc550
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b5e07
add esp, 0x14
jmp 0x4bc552
xor esi, esi
push 0x5759b8
push ebx
push ebp
call fcn.004c8bb9
add esp, 0xc
test eax, eax
je 0x4bc572
push esi
push esi
push esi
push esi
push esi
call fcn.004b5e07
add esp, 0x14
push dword [edi*8 + 0x630864]
push ebx
push ebp
call fcn.004c8bb9
add esp, 0xc
test eax, eax
je 0x4bc594
push esi
push esi
push esi
push esi
push esi
call fcn.004b5e07
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004c89fc
add esp, 0xc
jmp 0x4bc5dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4bc5dc
cmp ebp, 0xffffffff
je 0x4bc5dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x630864]
push dword [esi]
call fcn.004bb010
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4c89fc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004bcff2
xor ebx, ebx
cmp dword [0x634724], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4c8ad2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c8bb2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4c8bb2
push eax
call fcn.004bcf84
mov dword [esp], 0x575ce0
push edi
mov dword [0x634724], eax
call esi
push eax
call fcn.004bcf84
mov dword [esp], 0x575ccc
push edi
mov dword [0x634728], eax
call esi
push eax
call fcn.004bcf84
mov dword [0x63472c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004b9495
test eax, eax
pop ecx
pop ecx
je 0x4c8aa0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b5e07
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4c8ad2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004bcf84
cmp eax, ebx
pop ecx
mov dword [0x634734], eax
je 0x4c8ad2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004bcf84
pop ecx
mov dword [0x634730], eax
mov eax, dword [0x634730]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4c8b57
cmp dword [0x634734], ecx
je 0x4c8b57
push eax
call fcn.004bcffb
push dword [0x634734]
mov esi, eax
call fcn.004bcffb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4c8b57
cmp edi, ebx
je 0x4c8b57
call esi
cmp eax, ebx
je 0x4c8b24
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c8b24
test byte [ebp - 0x18], 1
jne 0x4c8b57
lea eax, [ebp - 0x10]
push eax
call fcn.004b94cc
test eax, eax
pop ecx
je 0x4c8b3f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b5e07
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4c8b4e
or dword [ebp + 0x10], 0x200000
jmp 0x4c8b92
or dword [ebp + 0x10], 0x40000
jmp 0x4c8b92
mov eax, dword [0x634728]
cmp eax, dword [ebp - 8]
je 0x4c8b92
push eax
call fcn.004bcffb
cmp eax, ebx
pop ecx
je 0x4c8b92
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4c8b92
mov eax, dword [0x63472c]
cmp eax, dword [ebp - 8]
je 0x4c8b92
push eax
call fcn.004bcffb
cmp eax, ebx
pop ecx
je 0x4c8b92
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x634724]
call fcn.004bcffb
cmp eax, ebx
pop ecx
je 0x4c8bb2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c8bb4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d11e3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6306b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d1178
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004b4de0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4d1232
cmp dword [ebp - 0x1c], 5
jb 0x4d124a
jmp 0x4d1246
cmp dword [ebp - 0x10], 1
jne 0x4d124a
cmp dword [ebp - 0x1c], 4
ja 0x4d1246
jne 0x4d124a
cmp dword [ebp - 0x18], 0
jbe 0x4d124a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x57777c
call fcn.004d104c
test eax, eax
jge 0x4d126b
mov byte [0x631ba0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b4b34
add ebp, 0x78
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x1de11e98
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
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
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2f083447
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x409568
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x41e23f
call fcn.0041d6dc
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.0040c010
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x4095f1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x4095f1
call fcn.00401c76
mov esi, eax
jmp 0x4096f4
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x409614
call fcn.00401c76
jmp 0x4096e7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x40960a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x409647
mov esi, 0x8007000e
jmp 0x4096e9
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x409717
jb 0x409662
cmp eax, 0xffffffff
ja 0x409717
cmp eax, 0x400
jbe 0x409677
push eax
lea ecx, [ebp - 0x424]
call fcn.00407f38
jmp 0x409699
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x409699
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x40963d
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40960a
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00409413
mov esi, eax
test edi, edi
je 0x4096f4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40970d
lea ecx, [ebp - 0x424]
call fcn.00407f23
mov eax, esi
call fcn.0041d629
ret 0x10
push 0x80070216
call fcn.004021d4
int3

Function at 0x416575
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004161ee

Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.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 [0x429270]
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 3
call fcn.0040613f
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x429270]
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 [0x429270], 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, 0x40fe60
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe6
mov ecx, dword [0x429218]
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, 0x40bdd0
mov dword [ebp - 0xc], eax
call fcn.0040625b
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, 0x40be60
push esi
push edi
call fcn.0040319e
test eax, eax
je 0x403149
sub dword [ebp + 0x14], esi
mov dword [0x40bde8], edi
mov dword [0x40bdec], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdd0
mov dword [0x40bdf0], ebx
mov dword [0x40bdf4], eax
call fcn.0040627b
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40312a
mov esi, dword [0x40bdf0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429274], 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.0040507f
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 [0x40bdf0]
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, 0x40be60
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 0x405550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4256b8], 0x44
push eax
xor eax, eax
push 0x4256b8
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 0x40558b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a1c
mov edi, eax
cmp edi, 0xffffffff
je 0x405656
test byte [esp + 0x10], 1
push esi
je 0x405638
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40563e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405647
xor eax, eax
inc eax
jmp 0x405658
test byte [esp + 0x10], 4
jne 0x405656
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40565d
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.00405928
test bl, 8
mov dword [ebp - 8], eax
je 0x40569c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429248], eax
jmp 0x405819
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056b6
test eax, eax
je 0x4057c7
test bl, 2
je 0x4057c7
mov esi, 0x4246b8
push edi
push esi
call fcn.00405dd5
cmp dword [ebp + 8], 0
je 0x4056d5
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056db
push edi
call fcn.0040586c
cmp word [edi], 0
jne 0x4056eb
cmp word [0x4246b8], 0x5c
jne 0x4056f6
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 0x4057bc
cmp word [ebp - 0x22c], 0x2e
jne 0x405740
cmp word [ebp - 0x22a], 0
je 0x40579f
cmp word [ebp - 0x22a], 0x2e
jne 0x405740
cmp word [ebp - 0x228], 0
je 0x40579f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405dd5
test byte [ebp - 0x258], 0x10
je 0x40576b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40579f
push dword [ebp + 0xc]
push edi
call fcn.0040565d
jmp 0x40579f
push dword [ebp - 4]
push edi
call fcn.00405615
test eax, eax
jne 0x405797
cmp dword [ebp - 4], eax
je 0x40578f
push edi
push 0xfffffffffffffff1
call fcn.0040507f
push 0
push edi
call fcn.00405c6f
jmp 0x40579f
inc dword [0x429248]
jmp 0x40579f
push edi
push 0xfffffffffffffff2
call fcn.0040507f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405718
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057c7
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405819
cmp dword [ebp - 8], esi
jne 0x4057db
inc dword [0x429248]
jmp 0x405819
push edi
call fcn.00406118
test eax, eax
je 0x405819
push edi
call fcn.00405820
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405615
test eax, eax
jne 0x405811
cmp dword [ebp - 4], esi
je 0x4057d3
push edi
push 0xfffffffffffffff1
call fcn.0040507f
push esi
push edi
call fcn.00405c6f
jmp 0x405819
push edi
push 0xffffffffffffffe5
call fcn.0040507f
pop edi
pop esi
pop ebx
leave
ret 8