joyce8/EMBER2024-capa huggingface dataset:
Function at 0x137a094
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov word [edi], cx
test eax, eax
je 0x137a261
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x137a260
nop dword [eax]
mov dword [ebp - 0x10], 0xabc9
mov eax, dword [ebp - 0x10]
xor eax, 0x25
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x10]
inc eax
xor eax, 0x30
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x10]
add eax, 2
xor eax, 0x32
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x10]
add eax, 3
xor eax, 0x58
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0xc]
xor eax, eax
mov cx, word [ebp + eax*2 - 0xc]
mov edx, dword [ebp - 0x10]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0xc], dx
inc eax
cmp eax, 4
jb 0x137a106
xor eax, eax
mov word [ebp - 4], ax
movsx eax, byte [esi + ebx + 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi + 0x768]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x137a198
mov dword [ebp - 0x1c], 0xb277
mov eax, 0xb252
mov word [ebp - 0x18], ax
mov eax, 0xb21b
mov word [ebp - 0x16], ax
mov eax, 0xb204
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
xor edx, edx
mov ax, word [ebp - 0x18]
nop
mov ax, word [ebp + edx*2 - 0x18]
movzx ecx, ax
movzx eax, word [ebp - 0x1c]
xor ecx, eax
mov word [ebp + edx*2 - 0x18], cx
inc edx
cmp edx, 3
jb 0x137a174
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
jmp 0x137a1e1
mov eax, 0x30
mov word [ebp - 0x26], ax
mov eax, 0x77
mov word [ebp - 0x24], ax
mov eax, 0x7e
mov word [ebp - 0x22], ax
mov eax, 0x38
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov ax, word [ebp - 0x26]
mov ax, word [ebp + ecx*2 - 0x26]
movzx eax, ax
add eax, 0xfffffff5
mov word [ebp + ecx*2 - 0x26], ax
inc ecx
cmp ecx, 4
jb 0x137a1c8
lea eax, [ebp - 0x26]
push edi
push eax
lea eax, [ebp - 0x448]
push eax
mov eax, dword [esi + 0x768]
call eax
mov eax, 0x26
mov ecx, 0x6d
mov word [ebp - 0x34], ax
mov edx, 0x74
mov word [ebp - 0x32], cx
add esp, 0xc
mov word [ebp - 0x30], dx
mov word [ebp - 0x2e], ax
xor eax, eax
mov word [ebp - 0x2c], cx
xor ecx, ecx
mov word [ebp - 0x2a], dx
mov word [ebp - 0x28], ax
mov ax, word [ebp - 0x34]
mov ax, word [ebp + ecx*2 - 0x34]
movzx eax, ax
dec eax
mov word [ebp + ecx*2 - 0x34], ax
inc ecx
cmp ecx, 6
jb 0x137a228
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x768]
push edi
call eax
add esp, 0x10
sub ebx, 1
jne 0x137a0c4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f0f23dd
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5af73a44
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40142f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x4045e0], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 3
mov dword [0x4045d0], eax
mov eax, edi
mov dword [ebp - 0x44], 0x401341
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Hall
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x40150c
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.moossi
push str.Hall
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4045d8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4045d8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x40150c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014f1
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401fdf
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x402008
mov al, byte [esi + 1]
inc esi
test al, al
je 0x402000
cmp al, 0x22
jne 0x401ff4
cmp byte [esi], 0x22
jne 0x402012
inc esi
jmp 0x402012
cmp al, 0x20
jle 0x402012
inc esi
cmp byte [esi], 0x20
jg 0x40200c
mov al, byte [esi]
test al, al
je 0x40201c
cmp al, 0x20
jle 0x402005
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040208c
push 0x404004
push section..data
call fcn.00402072
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40204c
movzx eax, word [ebp - 0x14]
jmp 0x40204f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004020a4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x41ec7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00415f82
and dword [ebp - 0x14], 0
cmp dword [0x46b150], 0
mov dword [ebp - 0x18], eax
jne 0x41ed2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41edd7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41edd7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46b150], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46b154], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46b158], eax
call edi
push eax
call esi
mov dword [0x46b160], eax
test eax, eax
je 0x41ed2f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46b15c], eax
mov eax, dword [0x46b15c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ed88
cmp dword [0x46b160], ecx
je 0x41ed88
push eax
call esi
push dword [0x46b160]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ed88
test ebx, ebx
je 0x41ed88
call edi
test eax, eax
je 0x41ed7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ed7f
test byte [ebp - 8], 1
jne 0x41ed88
or dword [ebp + 0x10], 0x200000
jmp 0x41edbb
mov eax, dword [0x46b154]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41edbb
mov eax, dword [0x46b158]
cmp eax, dword [ebp - 0x18]
je 0x41edbb
push eax
call esi
test eax, eax
je 0x41edbb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46b150]
call esi
test eax, eax
je 0x41edd7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41edd9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106c7
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x36b2277e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x13e52060
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402ee0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
cmp dword [section.Shared], 0
jne 0x402efd
mov dword [section.Shared], 1
call fcn.00402310
jmp fcn.00402e50
or eax, 0xffffffff
ret
Function at 0x404830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov edi, ecx
push 0x10
lea eax, [edi + 0x1a4]
push eax
movzx eax, word [ebp + 8]
push 0
push eax
push edx
push dword [edi]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404891
push dword [edi + 0x1b8]
mov edx, str.Remote_Port:
push ecx
mov ecx, 0x539030
call fcn.004065b0
add esp, 4
mov ecx, eax
call fcn.004048a0
mov edx, str._send_udp_error_
mov ecx, eax
call fcn.004065b0
push eax
call fcn.00406850
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41987f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004196f5
Function at 0x4010e0
Capabilities:
Query environment variable

Disassembly:
call fcn.004014d0
test eax, eax
jne 0x4010f6
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x401b40
ret
mov eax, dword [0x407458]
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
test eax, eax
jne 0x401b65
mov ecx, dword [0x4074d4]
mov edx, 0x405870
call fcn.00402960
mov dword [0x407458], eax
push 0
push esi
push edi
call eax
mov eax, dword [0x40746c]
add esp, 0xc
test eax, eax
jne 0x401b8c
mov ecx, dword [0x4074d4]
mov edx, 0x405a90
call fcn.00402960
mov dword [0x40746c], eax
push 0x405434
call eax
mov esi, eax
add esp, 4
test esi, esi
je 0x401c54
mov eax, dword [0x407490]
test eax, eax
jne 0x401bbe
mov ecx, dword [0x4074d4]
mov edx, 0x405b30
call fcn.00402960
mov dword [0x407490], eax
push 0
push 0
push 0x407018
call eax
mov ebx, dword [str._MessageBox]
mov edi, eax
mov eax, dword [0x4074f8]
add esp, 0xc
test eax, eax
jne 0x401bf2
mov ecx, dword [0x4074d4]
mov edx, 0x405b18
call fcn.00402960
mov dword [0x4074f8], eax
push edi
push ebx
push esi
call eax
mov eax, dword [0x407490]
add esp, 0xc
test eax, eax
jne 0x401c18
mov ecx, dword [0x4074d4]
mov edx, 0x405b30
call fcn.00402960
mov dword [0x407490], eax
push 0
push 0
push 0x407028
call eax
mov ebx, dword [str._SHGetSpecialFolderPath]
mov edi, eax
mov eax, dword [0x4074f8]
add esp, 0xc
test eax, eax
jne 0x401c4c
mov ecx, dword [0x4074d4]
mov edx, 0x405b18
call fcn.00402960
mov dword [0x4074f8], eax
push edi
push ebx
push esi
call eax
add esp, 0xc
call fcn.00401320
push 0x405298
mov edi, eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x401cdd
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0
call esi
mov ebx, eax
add esp, 4
mov eax, dword [0x4074ac]
test eax, eax
jne 0x401c9a
mov ecx, dword [0x4074d4]
mov edx, 0x405790
call fcn.00402960
mov dword [0x4074ac], eax
push 0x4052a8
push ebx
call eax
add esp, 8
test eax, eax
je 0x401cdd
push 0
call esi
mov esi, eax
add esp, 4
mov eax, dword [0x407528]
test eax, eax
jne 0x401cd0
mov ecx, dword [0x4074d4]
mov edx, 0x4057a4
call fcn.00402960
mov dword [0x407528], eax
push 0
push 0x4052a8
push esi
call eax
add esp, 0xc
mov eax, dword [0x407454]
test eax, eax
jne 0x401cfb
mov ecx, dword [0x4074d4]
mov edx, 0x405818
call fcn.00402960
mov dword [0x407454], eax
call eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x401140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x408
mov eax, dword [0x407004]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push edi
push str.PYTHONSCRIPT
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x401176
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Could_not_locate_script_resource:
jmp 0x401192
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401219
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Could_not_load_script_resource:
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov esi, eax
push 2
call edi
add esp, 4
push eax
call fcn.00401010
add esp, 8
test esi, esi
je 0x401200
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x400
push dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0xc]
push eax
push 2
call edi
add esp, 4
push eax
call fcn.00401010
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00403770
add esp, 0x408
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov dword [0x40754c], edx
mov dword [0x4083a8], edx
test edx, edx
jne 0x40125d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.Could_not_lock_script_resource:
mov ecx, eax
call fcn.00401040
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00403770
add esp, 0x408
ret
cmp dword [edx], 0x78563412
lea esi, [edx + 0x10]
mov eax, dword [edx + 0xc]
mov dword [0x407548], eax
mov dword [0x40754c], esi
je 0x4012a8
push str.Bug:_Invalid_script_resource
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00403770
add esp, 0x408
ret
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012b0
sub ecx, edi
lea eax, [edx + 0x11]
add eax, ecx
cmp byte [esi], 0
mov dword [0x40754c], eax
je 0x4012e7
push esi
push 0x407560
push str._s_S
push 0x608
push 0x407780
call fcn.00401100
add esp, 0x14
jmp 0x4012f9
push 0x608
push 0x407780
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [esp + 0x40c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00403770
add esp, 0x408
ret
Function at 0x40f00a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
push eax
mov edi, edx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x40f035
sub esi, ecx
sar esi, 1
lea ebx, [esi*2 + 0x50]
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40f0f4
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 8]
push ecx
movzx ecx, byte [ebp - 6]
push ecx
movzx ecx, byte [ebp - 7]
push ecx
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
push 0x404bc8
push ebx
push esi
call fcn.0040df5a
add esp, 0x3c
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40f0e5
mov ecx, esi
call fcn.00411562
test eax, eax
jne 0x40f0e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x404c38
push 3
call fcn.0040fadc
add esp, 0x10
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc esi
push ecx
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, edi
push 0
call fcn.00410e44
mov ebx, eax
test ebx, ebx
jne 0x40f177
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
mov dword [ebp - 0x18], eax
call fcn.0040da6c
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.0040da6c
push dword [ebp - 0x18]
push 0x3c
push esi
push edi
push dword [ebp - 0x1c]
push 0x404cc8
push 4
call fcn.0040fadc
add esp, 0x1c
xor edx, edx
mov eax, esi
push 0xa
pop ecx
div ecx
cmp eax, 6
jae 0x40f158
mov eax, dword [eax*4 + 0x403744]
jmp 0x40f15a
xor eax, eax
test eax, eax
je 0x40f165
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
inc esi
lea eax, [esi - 1]
cmp eax, 0x3c
jb 0x40f0f7
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret

Function at 0x40f5ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f5c2
test al, 0x50
jne 0x40f5c2
inc esi
mov eax, esi
pop esi
ret
Function at 0x40f6f1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, edx
mov ebx, 0x80
push edi
mov edi, ecx
cmp esi, ebx
je 0x40f725
test esi, 0xffffff78
je 0x40f725
push edi
push esi
push 0x404fb8
push 4
xor ebx, ebx
call fcn.0040fadc
add esp, 0x10
push 0x57
jmp 0x40f7a9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f766
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0040da6c
cmp esi, 2
je 0x40f754
push esi
push edi
push 0x405018
push 3
jmp 0x40f7a0
push edi
push 0x405078
push 2
call fcn.0040fadc
add esp, 0xc
jmp 0x40f7a8
and eax, 0x3120
or eax, esi
or eax, ebx
cmp eax, ebx
je 0x40f778
and eax, 0xffffff7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
test ebx, ebx
jne 0x40f7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.0040da6c
push esi
push edi
push 0x4050d8
push 4
call fcn.0040fadc
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
ret