joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422dab
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.0041fd70
mov eax, dword [0x42e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x210]
push str.FN_CSharedMemoryChannel_GetMessage
push eax
call fcn.00401880
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x423484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, edi
call fcn.0041e4b0
cmp eax, 0xfffe00ff
jne 0x41e8cc
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
mov ecx, edi
call fcn.0041e4b0
lea edx, [eax - 1]
cmp edx, 0xffe
ja 0x41e8b2
push eax
lea eax, [ebp - 0x1210]
mov ecx, edi
push eax
call fcn.0041e540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ecc2
mov esp, ebp
pop ebp
ret
push str.Invalid_Message_Header
lea ecx, [ebp - 0x1228]
call fcn.00402d30
lea eax, [ebp - 0x1228]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1244]
call fcn.00401b80
push 0x42b38c
lea eax, [ebp - 0x1244]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x41f37b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42b2e0
call fcn.0041fa90
push 1
call fcn.0041f03d
pop ecx
test al, al
je 0x41f4d7
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041f00b
mov byte [ebp - 0x24], al
mov eax, dword [0x43222c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41f4d7
test eax, eax
jne 0x41f405
mov dword [0x43222c], ecx
push 0x423340
push 0x42332c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41f3e8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41f4d1
push 0x423328
push 0x423314
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x43222c], 2
jmp 0x41f40a
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0041f1aa
pop ecx
call fcn.0041fc0d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41f43b
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f43b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x423310]
call esi
call fcn.0041fc13
mov esi, eax
cmp dword [esi], edi
je 0x41f459
push esi
call fcn.0041f120
pop ecx
test al, al
je 0x41f459
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.0041f819
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0041f84f
test al, al
je 0x41f4de
test bl, bl
jne 0x41f487
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0041f1c7
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41f4d1
call fcn.0041fad6
ret
push 7
call fcn.0041f6fd
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004c3000
jmp 0x41f37b
Function at 0x403570
Capabilities:
Create pipe
Create process on windows
Get thread local storage value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.004100f0
mov eax, dword [0x45a9f4]
mov ecx, dword [0x45a484]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403687
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45a9f4], 0x959
jne 0x403670
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0x1808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004032b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4035ae
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405240
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b168]
jne 0x40524a
repz ret
jmp fcn.00409b8c

Function at 0x40a2ce
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408800
and dword [ebp - 4], 0
cmp dword [0x4519b0], 0
mov ebx, eax
jne 0x40a37f
push 0x401ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a430
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401acc
push edi
call esi
test eax, eax
je 0x40a430
push eax
call fcn.0040878e
mov dword [esp], 0x401abc
push edi
mov dword [0x4519b0], eax
call esi
push eax
call fcn.0040878e
mov dword [esp], 0x401aa8
push edi
mov dword [0x4519b4], eax
call esi
push eax
call fcn.0040878e
mov dword [esp], 0x401a8c
push edi
mov dword [0x4519b8], eax
call esi
push eax
call fcn.0040878e
pop ecx
mov dword [0x4519c0], eax
test eax, eax
je 0x40a37f
push 0x401a74
push edi
call esi
push eax
call fcn.0040878e
pop ecx
mov dword [0x4519bc], eax
mov eax, dword [0x4519bc]
cmp eax, ebx
je 0x40a3d7
cmp dword [0x4519c0], ebx
je 0x40a3d7
push eax
call fcn.00408809
push dword [0x4519c0]
mov esi, eax
call fcn.00408809
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a3d7
test edi, edi
je 0x40a3d7
call esi
test eax, eax
je 0x40a3ce
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a3ce
test byte [ebp - 0xc], 1
jne 0x40a3d7
or dword [ebp + 0x10], 0x200000
jmp 0x40a410
mov eax, dword [0x4519b4]
cmp eax, ebx
je 0x40a410
push eax
call fcn.00408809
pop ecx
test eax, eax
je 0x40a410
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a410
mov eax, dword [0x4519b8]
cmp eax, ebx
je 0x40a410
push eax
call fcn.00408809
pop ecx
test eax, eax
je 0x40a410
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4519b0]
call fcn.00408809
pop ecx
test eax, eax
je 0x40a430
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a432
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x403226
cmp dword [edi + 0x54], 0
jne 0x403226
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040511d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004031cd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40a1f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a23a
call fcn.0040511d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a255
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409dae
test ebx, ebx
mov esi, eax
je 0x40a253
test edi, edi
je 0x40a253
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x405783
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x447190], 2
jl 0x4057a8
movaps xmm0, xmmword [0x432750]
movaps xmmword [0x43dfc0], xmm0
movaps xmm0, xmmword [0x432740]
movaps xmmword [0x43dfd0], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405b36
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x432720]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4057b6
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405e6a
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x405e94
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x43dfe0]
inc edi
sub esi, 1
jne 0x405e7c
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x406015
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
push 0x20
pop ebp
mov eax, dword [esi]
cmp eax, 2
jne 0x40606d
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x5c]
call fcn.004066de
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x406051
mov eax, dword [esi]
mov dword [esi + 4], edi
pop edi
cmp eax, 3
jne 0x406099
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x58]
call fcn.004066de
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041fb60
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x406487
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x406683
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x4064eb
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040edc3
test al, al
je 0x4064eb
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0042048a
add esp, 0xc
test eax, eax
je 0x40668d
inc edi
add esi, 0x178
cmp edi, 4
jb 0x4064b1
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004119c0
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00422d00
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004068e9
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040efff
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041fb60
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041fb60
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041fb60
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041fb60
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040eefe
cmp dword [esp + 0x290], ebp
je 0x406611
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041fb60
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x406644
push 8
push ebp
push esi
call fcn.0041f830
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x406628
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040efff
cmp dword [esp + 0x288], 0
je 0x406675
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040e44a
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040efff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041fb60
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040eefe
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041fb60
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041fb60
add esp, 0x18
jmp 0x4065f3
Function at 0x4066de
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x406733
lea eax, [esp + 0x164]
push eax
call fcn.0040fbd6
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040fc1c
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040faf3
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x40673a
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x406765
mov ecx, dword [esp + 0x1e8]
cmp byte [ecx], 0
je 0x406765
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x4067c3
xor edx, edx
test ebx, ebx
je 0x406785
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x406773
cmp ebx, edi
jae 0x40679f
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041f830
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040fbd6
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040fc1c
test ebp, ebp
je 0x4067e0
mov eax, dword [esp + 0x1e8]
cmp byte [eax], 0
jne 0x4067e0
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040fc1c
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040faf3
mov ebp, dword [esp + 0x1ec]
test ebp, ebp
je 0x406834
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x406834
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
jmp 0x40689e
test ebx, ebx
je 0x406856
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x406844
cmp ebx, 0x40
jae 0x406872
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041f830
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040fbd6
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fc1c
test ebp, ebp
je 0x4068b4
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
jne 0x4068b4
push 0x1a
pop ecx
lea esi, [esp + 0xfc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040fc1c
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040faf3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x4068e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x190
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406903
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x48]
push eax
call fcn.0041fb60
add esp, 0xc
mov dword [ebp + esi - 0x48], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004066de
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041fb60
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x56], 0
mov dword [ebp + 0x48], eax
xor esi, esi
mov byte [ebp + 0x57], 0
push 0x10
pop eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x44], eax
mov edi, dword [ebp + esi + 0x48]
test edi, edi
je 0x4069cf
lea eax, [ebp + 0x57]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp + 0x56]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004066de
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0041fb60
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x1c]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, ebx
jb 0x4069bd
sub edi, 1
jne 0x406980
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + esi + 0x3c]
call fcn.0041fb60
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x406978
push 0x44
lea eax, [ebp - 0x48]
push eax
call fcn.0040efff
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0040efff
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.0040efff
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.0040efff
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20
Function at 0x409407
Capabilities:
Move file

Disassembly:
mov eax, 0x431640
call fcn.0041e698
mov eax, 0x503c
call fcn.0041e770
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4048]
push edi
mov ebx, 0x800
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4095c8
cmp eax, ebx
jae 0x4095c8
push ebx
lea eax, [ebp - 0x5048]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4095c8
cmp eax, ebx
jae 0x4095c8
lea eax, [ebp - 0x4048]
push eax
call fcn.0040bee0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5048]
push eax
call fcn.0040bee0
mov edi, eax
xor ebx, ebx
cmp word [edi], bx
je 0x4095c8
push edi
push dword [ebp - 0x10]
call fcn.00411b67
test eax, eax
je 0x4095c8
push edi
push esi
call fcn.0040bee0
push eax
call fcn.00411b67
test eax, eax
jne 0x4095c8
mov word [ebp - 0x1010], ax
mov edi, ebx
test ax, ax
jne 0x409528
push 0x800
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004101ac
push edi
push str.rtmp_d
push 0x800
lea eax, [ebp - 0x1010]
push eax
call fcn.0040bee0
push eax
call fcn.004040f4
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a275
test al, al
je 0x40950d
xor eax, eax
mov word [ebp - 0x1010], ax
jmp 0x409514
mov ax, word [ebp - 0x1010]
add edi, 0x7b
cmp edi, 0x2710
jl 0x4094bb
test ax, ax
je 0x4095c8
mov edi, 0x800
lea eax, [ebp - 0x3048]
push edi
push esi
push eax
call fcn.004101ac
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3048]
push eax
call fcn.0040bf56
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3048]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4095c8
lea ecx, [ebp - 0x2048]
call fcn.004095db
push esi
mov dword [ebp - 4], ebx
call fcn.0040a275
test al, al
jne 0x40958b
push 0x12
push esi
lea ecx, [ebp - 0x2048]
call fcn.004096ee
mov bl, al
lea eax, [ebp - 0x3048]
push eax
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x4095b9
lea ecx, [ebp - 0x2048]
call fcn.004096a0
lea ecx, [ebp - 0x2048]
call fcn.004097ce
lea ecx, [ebp - 0x2048]
call fcn.0040961e
mov al, 1
jmp 0x4095ca
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409960
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1050
call fcn.0041e770
push ebx
mov ebx, dword [esp + 0x105c]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x40998c
test bl, 4
jne 0x40998c
xor al, al
jmp 0x40998e
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x4099a7
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x4099b6
or ebx, 2
lea ecx, [esp + 0x18]
call fcn.00406f72
cmp byte [edi + 0x24], 0
je 0x4099cb
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push dword [esp + 0x107c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x409a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x106c]
call fcn.0040b77a
test al, al
je 0x409a3e
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x409a39
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x409a4f
cmp dword [esp + 0x10], 2
jne 0x409a4f
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x409a75
cmp ebp, 0xffffffff
je 0x409a75
or dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
or dword [esp + 0x10], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x14], al
je 0x409aa4
push 0x800
push dword [esp + 0x1064]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.004101ac
mov byte [edi + 0x25], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1050
ret 8