joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe0000]
push edi
jmp 0x54751a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x547521
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547510
mov eax, 1
add ebx, ebx
jne 0x547533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x547544
jne 0x547563
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547563
dec eax
add ebx, ebx
jne 0x547550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x547528
add ebx, ebx
jne 0x54755f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5475b5
xor ecx, ecx
sub eax, 3
jb 0x54757b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5475ea
sar eax, 1
mov ebp, eax
jmp 0x547586
add ebx, ebx
jne 0x547586
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547554
inc ecx
add ebx, ebx
jne 0x547594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547554
add ebx, ebx
jne 0x5475a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x547596
jne 0x5475b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x547596
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5475d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5475c6
jmp 0x547516
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5475d4
add edi, ecx
jmp 0x547516
pop esi
mov edi, esi
mov ecx, 0x520b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5475f2
cmp byte [edi], 0x15
jne 0x5475f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5475f7
lea edi, [esi + 0x13f000]
mov eax, dword [edi]
or eax, eax
je 0x54766f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14de48]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14df74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x547624
mov ecx, edi
jns 0x547653
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14df78]
or eax, eax
je 0x547669
mov dword [ebx], eax
add ebx, 4
jmp 0x547641
call dword [esi + 0x14df88]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5476a0
cmp al, 0xef
ja 0x547693
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x547675
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x547682
mov ebp, dword [esi + 0x14df7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5476d4
sub esp, 0xffffff80
jmp 0x476a72
Function at 0x401650
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x4138ac]
sub esp, 0x100
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.c_nCount_d
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.004041b0
mov eax, dword [0x4138ac]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x4016bd
push edi
mov edi, 0x4094e8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push str.__d____X___X
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.004041b0
mov eax, dword [0x4138ac]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x40168e
pop edi
push 0
push 0x4014f0
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x4016e0
Capabilities:
Enumerate gui resources

Disassembly:
push 2
push 0x4014f0
call dword [sym.imp.USER32.dll_EnumWindows]
ret

Function at 0x401a30
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x409734]
sub esp, 0x1a4
test al, 0xa0
je 0x401a5a
call fcn.00401820
test al, al
jne 0x401a51
call fcn.00401880
test al, al
je 0x401a5a
mov al, 1
add esp, 0x1a4
ret
mov al, byte [0x4138b0]
test al, al
je 0x401a6c
mov al, 1
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.004041b0
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x409734]
add esp, 4
test al, 2
pop edi
je 0x401aad
lea eax, [esp]
push eax
call fcn.00401b90
push 0
call fcn.00401bd0
add esp, 8
push ebx
push esi
call fcn.004014d0
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov al, byte [0x409734]
test al, 0x20
mov byte [0x4138b0], 1
je 0x401b01
push 0x413878
push 0x413838
push 0x4096e8
call fcn.00404350
add esp, 8
push eax
call fcn.004019c0
add esp, 8
jmp 0x401b19
test al, 0x80
je 0x401b0c
call fcn.00401960
jmp 0x401b19
push 0x4096f8
call fcn.004018f0
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
push edx
mov byte [0x4138b0], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401650
test byte [0x409734], 2
je 0x401b4b
lea eax, [esp + 8]
push eax
call fcn.00401bd0
add esp, 4
test esi, esi
je 0x401b7f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x401b72
push str.SetForegroundWindow___succeeded.
call fcn.004041b0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.004041b0
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
Function at 0x401de0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push 0x4090e8
call fcn.004041b0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
lea eax, [esp + 0xc]
push 0x10
add ecx, 3
push eax
push ecx
mov dword [esp + 0x18], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401e74
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x401e74
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push ebx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x401e6c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x401f00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41391c
push 0x4138b8
push 0x80
mov dword [0x413980], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401f41
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret
Function at 0x403670
Capabilities:
Create process on windows
Create thread
Get common file path
Resume thread

Disassembly:
sub esp, 0x18c
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a4]
mov edx, dword [esp + 0x190]
push ebx
mov ebx, dword [esp + 0x19c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1ac]
push edi
push ebx
mov dword [0x413cbc], eax
mov dword [0x413cc0], ecx
mov dword [0x413cc4], ebx
mov dword [0x413cb8], edx
call fcn.004038e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4036d1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18c
ret
test bl, 0x48
jne 0x4036df
test edi, edi
je 0x4036df
cmp byte [edi], 0
jne 0x4036e6
mov edi, dword [esp + 0x1a4]
test edi, edi
jne 0x4036ef
mov edi, 0x41398c
push esi
call fcn.00403ae0
add esp, 4
mov ebp, eax
test bl, 1
je 0x403723
lea eax, [esp + 0x94]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x94]
push edi
push ecx
push str._s__s
jmp 0x40372a
push edi
push esi
push str.__s___s
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x413bb0
call ebx
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov dword [0x413ba0], edx
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [0x413ba4], edx
lea eax, [esp + 0x10]
mov dword [0x413ba8], edx
push 0x413ba0
push eax
push edx
push edx
push 0x24
push edx
push edx
push edx
push 0x413bb0
push esi
mov dword [esp + 0x38], 0x44
mov dword [0x413bac], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4037b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x58]
push str.CreateProcess_d
push ecx
call ebx
lea edx, [esp + 0x60]
push edx
call fcn.004041b0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret
lea eax, [esp + 0x94]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x94]
push ecx
call fcn.004041b0
push esi
call fcn.004041b0
push 0x413bb0
call fcn.004041b0
mov edx, dword [0x413ba8]
add esp, 0xc
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x403835
push str.OpenProcess_failed.
call fcn.004041b0
mov eax, dword [0x413ba4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push eax
call esi
mov ecx, dword [0x413ba0]
push ecx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18c
ret
mov edx, dword [esp + 0x1b4]
mov eax, dword [esp + 0x1b0]
push edx
push eax
push ebp
push esi
call fcn.00403b80
add esp, 0x10
test al, al
jne 0x403885
push str.unpatch_failed.
call fcn.004041b0
mov ecx, dword [0x413ba4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [0x413ba0]
push edx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x413ba4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x413ba0]
push ecx
push 0
push 0x403c50
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret
Function at 0x4038e0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x308
lea eax, [esp + 0x108]
lea ecx, [esp + 0x208]
lea edx, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push 0x413a98
call dword [sym.imp.MSVCRT.dll__splitpath]
mov esi, dword [esp + 0x334]
mov ebx, dword [esp + 0x330]
push esi
push ebx
call fcn.004038c0
add esp, 0x1c
test al, al
je 0x40393d
push 0x41398c
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x18]
push ecx
push edx
jmp 0x403951
push str..bin
lea eax, [esp + 0x1c]
push str.main
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x413990
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
test bl, 0x40
jne 0x403ac6
call fcn.00403d00
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
call fcn.004044e0
mov esi, eax
add esi, 0x10000
sub ebx, esi
mov ebp, ebx
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x4039d0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SetFilePointer_for_input.
call fcn.004041b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403a16
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ReadFile_for_input.
call fcn.004041b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x413990
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403a64
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Cannot_open_output_file.
call fcn.004041b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403aa7
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push str.WriteFile_for_output_file.
call fcn.004041b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push str.Copy_succeeded.
call fcn.004041b0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 0x413990
pop ebx
add esp, 0x308
ret
Function at 0x403ae0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push esi
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b72
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 0x400
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b6b
cmp dword [esp + 4], 0x400
jne 0x403b6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 8], 0x5a4d
jne 0x403b72
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + eax + 8]
lea eax, [esp + eax + 8]
cmp ecx, 0x4550
jne 0x403b72
mov eax, dword [eax + 0x34]
pop esi
add esp, 0x404
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x404
ret

Function at 0x403d40
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403d82
push str.UnPatchFile._cannnot_open_the_file.
call fcn.004041b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push ebp
push ebp
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [edi + 0x88]
cmp ebx, ebp
jne 0x403da7
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403dcd
push str.UnPatchFile._cannnot_allocate_buffer.
call fcn.004041b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 0x80]
push 0
push 0
push ecx
push esi
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [edi + 0x80]
jne 0x403e5f
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403e5f
cmp dword [esp + 0x10], ebx
jne 0x403e5f
mov eax, dword [esp + 0x24]
push eax
push edi
push ebp
call fcn.004042f0
mov ecx, dword [edi + 0x80]
add esp, 0xc
mov byte [esp + 0x20], al
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esp + 0x20]
test al, al
je 0x403e5f
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403e5f
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403e80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi + 0x88]
test ebx, ebx
jne 0x403e9a
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403ec0
push str.SdwPatchProcess._cannnot_allocate_buffer.
call fcn.004041b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [edi + 0x80]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
add esi, edx
push ebx
push ebp
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x403f08
push str.ReadProcessMemory_failed.
call fcn.004041b0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
call fcn.004042f0
add esp, 0xc
mov byte [esp + 0x3c], al
test al, al
je 0x403f8f
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0x40
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x403f6a
push str.VirtualProtectEx_failed.
jmp 0x403f82
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x403f8f
push str.WriteProcessMemory_failed.
call fcn.004041b0
add esp, 4
mov byte [esp + 0x3c], 0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x40]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x403fb0
Capabilities:
Create process on windows
Create thread

Disassembly:
sub esp, 0x15c
push esi
push edi
lea eax, [esp + 0x5c]
push 0x413a98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
push 0x4092f0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x5c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [0x413ba8]
push eax
push str._sd__x__x
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 8]
mov dword [esp + 8], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xc], ecx
push edx
mov dword [esp + 0x14], ecx
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x40405a
xor al, al
add esp, 0x15c
ret
mov edx, dword [esp]
push edx
push 0
push 0x404080
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
add esp, 0x15c
ret
Function at 0x4040a0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x413ba0]
sub esp, 0x400
push ebx
xor bl, bl
test eax, eax
je 0x4040d3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x413ba0], eax
mov dword [0x413ba4], eax
mov dword [0x413ba8], eax
mov dword [0x413bac], eax
test byte [0x413cc4], 0x40
jne 0x404134
mov al, byte [0x413990]
test al, al
je 0x404134
push esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x413990
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x413990
lea ecx, [esp + 0x14]
push str.DeleteFile__s__d___d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
push edx
call fcn.004041b0
add esp, 0x18
test esi, esi
pop esi
je 0x404134
mov byte [0x413990], 0
mov al, bl
pop ebx
add esp, 0x400
ret

Function at 0x404150
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x54
test edx, edx
jne 0x404160
mov edx, 0x413a98
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop edi
add esp, 0x54
ret

Function at 0x4041b0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov eax, dword [0x4092f4]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
push esi
jne 0x404221
lea eax, [esp + 8]
mov dword [0x4092f4], ebx
push eax
push 0x20019
push ebx
push str.SoftwarePaltiosoftWrapping
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404221
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push 0x4092f4
push edx
push ebx
push str.logging
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x404221
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4092f4], ebx
je 0x40428e
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push str.launch3.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40428e
push edi
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push ebx
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
lea ecx, [esp + 0xc]
push ebx
push ecx
push 2
push 0x4092f8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4042a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
je 0x4042ae
xor eax, eax
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
je 0x4042be
xor eax, eax
ret
xor eax, eax
xor edx, edx
mov ax, word [ecx + 0x14]
mov dx, word [ecx + 6]
push esi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ecx + 0x54]
test edx, edx
jle 0x4042e3
lea ecx, [esi + 0x10]
mov esi, dword [ecx]
add ecx, 0x28
add eax, esi
dec edx
jne 0x4042d9
pop esi
ret

Function at 0x4043f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x4044a0
cmp dword [esp + 0x10], 0x400
jne 0x4044a0
push edi
push esi
call fcn.004044b0
mov edi, eax
add esp, 4
cmp edi, 0x400
jbe 0x404484
push edi
push esi
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov esi, eax
lea ecx, [esp + 0x14]
add edi, 0xfffffc00
push 0
push ecx
lea edx, [esi + 0x400]
push edi
push edx
push ebx
call ebp
push esi
call fcn.004044b0
add esp, 4
mov edi, eax
push esi
call fcn.004042a0
push esi
mov dword [0x4140ec], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
ret

Function at 0x4044b0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x4044be
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x4044ce
xor eax, eax
ret
mov eax, dword [eax + 0x54]
ret