joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442b4e
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x51c2e8
call fcn.004e34d0
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [0x4f425c]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x442bc4
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x442bc4
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x442bc4
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x442bc4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x442bcd
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.004e3518
ret

Function at 0x442fc5
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, 0x80000
cmp esi, 0x7ff80000
mov ebx, edx
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
cmp byte [esi], 0xe9
jne 0x44302a
lea ecx, [esi + 5]
add ecx, dword [esi + 1]
cmp ecx, esi
jae 0x443019
cmp ecx, 0x80000000
lea eax, [ecx + 0x7ff80000]
mov edi, 0xfff80000
cmovb edi, eax
jmp 0x44302a
cmp ecx, 0x7ff80000
lea eax, [ecx - 0x7ff80000]
mov ebx, edx
cmova ebx, eax
mov edx, dword [0x52a598]
mov eax, dword [0x52a5a4]
test edx, edx
jne 0x443045
test eax, eax
je 0x443058
mov edx, eax
mov dword [0x52a598], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x443058
cmp ecx, ebx
jb 0x443058
cmp ecx, edi
jbe 0x4430d9
mov edx, eax
test eax, eax
jmp 0x443076
test edx, edx
je 0x443071
mov eax, dword [edx + 8]
test eax, eax
je 0x443071
cmp eax, ebx
jb 0x443071
cmp eax, edi
jbe 0x4430d9
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x52a598], edx
jne 0x44305e
movzx eax, si
mov ecx, ebx
sub esi, eax
mov edx, esi
call fcn.00442f29
mov edx, eax
test edx, edx
jne 0x4430a1
mov edx, edi
mov ecx, esi
call fcn.00442e81
mov edx, eax
test edx, edx
je 0x4430fe
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x52a5a4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x52a598], edx
mov dword [0x52a5a4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x4430cb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x4430fe
cmp esi, edi
ja 0x4430fe
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call int.004ce260
add esp, 0xc
mov eax, esi
jmp 0x443100
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x44e380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1731
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5256c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x38]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.004567d0
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.004488f0
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 1
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.00456800
mov dword [edi + 0x48], eax
mov eax, edi
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov dword [eax + 0x50], 0
call fcn.00456970
lea ecx, [edi + 0x40]
call fcn.00456970
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x48]
push dword [eax + 4]
call fcn.004568b0
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x48]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 8], eax
mov dword [edi + 0x4c], 0
call fcn.00459270
mov ecx, edi
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4804a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2463
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5256c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov dword [esi], 0x4fd05c
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov dword [ebp - 4], eax
mov word [ecx], ax
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push eax
push 0x51037c
mov byte [ebp - 4], 1
mov dword [esi + 0x60], 4
mov byte [esi + 0x40], al
mov dword [esi + 0x44], eax
call fcn.00407510
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2493
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5256c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi], 0x4fcfbc
xor ecx, ecx
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x44], 0xffffffff
mov dword [esi + 0x40], 0x4fcfa8
mov dword [esi + 0x64], 7
mov dword [esi + 0x60], 0
mov dword [ebp - 4], eax
lea eax, [esi + 0x40]
mov word [eax + 0x10], cx
mov dword [eax + 0x3c], 7
mov dword [eax + 0x38], ecx
mov word [eax + 0x28], cx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x44], eax
mov dword [eax + 0x40], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov byte [ebp - 4], 1
cmp word [edx], cx
jne 0x480632
xor eax, eax
jmp 0x480646
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480637
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00407510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4806d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f24b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5256c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov edi, dword [ebp + 8]
mov dword [esi], 0x4fcffc
mov dword [ebp - 4], eax
cmp word [edi], ax
jne 0x48074b
xor ecx, ecx
jmp 0x48075f
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480750
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x1c]
call fcn.00407510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402a3f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x451450]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a90
cmp dword [ebp + 0x10], ebx
jne 0x402ac7
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3f
test eax, eax
jne 0x402aa2
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a77
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ebe
cmp eax, ebx
je 0x402ada
push ebx
push dword [0x451450]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad3
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 [0x451450], ebx
jne 0x402ad0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad0
jmp 0x402ad3
Function at 0x405346
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057ff
mov edi, eax
cmp edi, 0xffffffff
je 0x40544c
test byte [esp + 0x10], 1
push esi
je 0x40542e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405434
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40543d
xor eax, eax
inc eax
jmp 0x40544e
test byte [esp + 0x10], 4
jne 0x40544c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405453
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.00405711
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405492
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451428], eax
jmp 0x40561c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054ac
test eax, eax
je 0x4055ca
test bl, 2
je 0x4055ca
mov esi, 0x443028
push edi
push esi
call fcn.00405b93
cmp dword [ebp + 8], 0
je 0x4054cb
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054d1
push edi
call fcn.0040566a
cmp byte [edi], 0
jne 0x4054df
cmp byte [0x443028], 0x5c
jne 0x4054ea
push 0x409014
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 0x4055c0
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040564e
cmp byte [eax], 0
je 0x405530
cmp byte [ebp - 0x1c], 0
je 0x405530
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405546
mov al, byte [esi + 1]
test al, al
je 0x40559f
cmp al, 0x2e
jne 0x405546
cmp byte [esi + 2], 0
je 0x40559f
push esi
push ebx
call fcn.00405b93
test byte [ebp - 0x14c], 0x10
je 0x40556b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40559f
push dword [ebp + 0xc]
push edi
call fcn.00405453
jmp 0x40559f
push dword [ebp - 4]
push edi
call fcn.0040540b
test eax, eax
jne 0x405597
cmp dword [ebp - 4], eax
je 0x40558f
push edi
push 0xfffffffffffffff1
call fcn.00404e7e
push 0
push edi
call fcn.00405a47
jmp 0x40559f
inc dword [0x451428]
jmp 0x40559f
push edi
push 0xfffffffffffffff2
call fcn.00404e7e
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40550e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055ca
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40561c
cmp dword [ebp - 0xc], esi
jne 0x4055de
inc dword [0x451428]
jmp 0x40561c
push edi
call fcn.00405e97
test eax, eax
je 0x40561c
push edi
call fcn.00405623
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040540b
test eax, eax
jne 0x405614
cmp dword [ebp - 4], esi
je 0x4055d6
push edi
push 0xfffffffffffffff1
call fcn.00404e7e
push esi
push edi
call fcn.00405a47
jmp 0x40561c
push edi
push 0xffffffffffffffe5
call fcn.00404e7e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405711
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x445028
push esi
call fcn.00405b93
push esi
call fcn.004056bc
mov edi, eax
test edi, edi
jne 0x405732
xor eax, eax
jmp 0x405784
push edi
call fcn.00405dfe
test byte [0x4513b8], 0x80
je 0x40574b
mov al, byte [edi]
test al, al
je 0x40572e
cmp al, 0x5c
je 0x40572e
sub edi, esi
jmp 0x405763
call fcn.00405e97
test eax, eax
je 0x40575d
test byte [eax], 0x10
je 0x40572e
push esi
call fcn.0040566a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40574f
call fcn.00405623
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 0x4057ff
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 0x40581e
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 0x405824
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 0x405853
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 [0x409368]
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 0x405898
test edi, edi
jne 0x40585e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405892
Function at 0x4058cb
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x4475b0
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x40591a
push 1
push 0
push esi
call fcn.00405824
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a41
cmp eax, ebx
jg 0x405a41
mov esi, 0x4479b0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a41
cmp eax, ebx
jg 0x405a41
push esi
push edi
push str._s_s_r_n
push 0x4471b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4513b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405bb5
push 4
push 0xc0000000
push esi
call fcn.00405824
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a41
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 0x405a3a
push edi
push esi
push ebp
call fcn.0040589c
test eax, eax
je 0x405a3a
push str._Rename__r_n
push esi
call fcn.00405789
test eax, eax
jne 0x4059d0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405a05
add eax, 0xa
push 0x40936c
push eax
call fcn.00405789
mov ebp, eax
test ebp, ebp
je 0x405a01
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059f2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059ec
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405a07
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x4471b0
push eax
call fcn.004057df
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 0x405a7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aeb
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ada
cmp dword [ebp + 0x14], 1
je 0x405adc
cmp dword [ebp + 0x14], 2
je 0x405adc
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x447db4], 0
push esi
jne 0x405f67
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 0x405f41
mov dword [ecx*4 + 0x447db0], eax
inc ecx
cmp ecx, 0x100
jl 0x405f3c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f98
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 + 0x447db0]
xor eax, esi
inc ecx
dec edx
jne 0x405f7a
pop edi
not eax
pop esi
ret 0xc
Function at 0x40180c
Capabilities:
Get common file path
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
mov byte [ebp - 0x50], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.Testing
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], bl
stosb byte es:[edi], al
call dword [0x40b47c]
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
call dword [0x40b448]
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x13
push esi
call dword [0x40b464]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x13
push esi
call dword [0x40b464]
test eax, eax
je 0x401960
push 3
lea eax, [ebp - 0x30]
push 0x4088f8
push eax
call fcn.00402c00
add esp, 0xc
test eax, eax
jne 0x40195b
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push 5
push esi
call dword [0x40b464]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push 5
push esi
call dword [0x40b464]
test eax, eax
je 0x40195b
lea eax, [ebp - 0x50]
push eax
call fcn.00402bf1
pop ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40195b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 1]
push 1
push eax
push esi
call dword [0x40b490]
test eax, eax
je 0x401931
cmp dword [ebp - 8], ebx
je 0x401931
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push edi
call dword [0x40b44c]
jmp 0x401903
push esi
call dword [0x40b450]
push dword [ebp - 0xc]
call dword [0x40b450]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
push dword [ebp + 0xc]
call dword [0x40b478]
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x40b450]
push dword [ebp - 0xc]
call dword [0x40b450]
push ebx
call fcn.00402a91
Function at 0x401976
Capabilities:
Create process on windows
Get common file path
Resume thread
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x158]
push esi
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401acd
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x401acd
push edi
lea eax, [ebp - 0x360]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x360]
push str.cmd.exe
push eax
call fcn.00402c50
pop ecx
lea eax, [ebp - 0x25c]
pop ecx
push str.__c__del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push str.___nul
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
push 1
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
pop esi
mov word [ebp - 0x24], bx
push 0x100
mov dword [ebp - 0x28], esi
stosd dword es:[edi], eax
call dword [0x40b488]
push eax
call dword [0x40b468]
push 0xf
call dword [0x40b474]
push eax
call dword [0x40b458]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
lea eax, [ebp - 0x360]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x401ab0
push 0x40
push dword [ebp - 0x10]
call dword [0x40b468]
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call dword [0x40b458]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebx
leave
ret
push 0x20
call dword [0x40b488]
push eax
call dword [0x40b468]
push ebx
call dword [0x40b474]
push eax
call dword [0x40b458]
push ebx
call fcn.00402a91

Function at 0x401c4c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401cb6
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401cb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.004028d0
cmp eax, 0x26
pop ecx
je 0x401cb6
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.00402950
add esp, 0xc
pop edi
pop esi
pop ebp
ret