joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49be10
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dd568
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x49bf34
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x49bf46
dec ecx
je 0x49be8c
dec ecx
jne 0x49bf34
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x49bf5b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x49bf5b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x49be85
mov eax, dword [0x6bd750]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.0049c390
mov bl, 1
jmp 0x49bf27
mov edx, dword [0x6bd750]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0049c190
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x49bf15
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x49bf15
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x49bee4
mov eax, dword [0x6bd750]
mov ecx, edi
push eax
push ebp
call fcn.0049c390
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x49bef3
mov eax, 0x6bd74c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x49bf23
mov al, byte [ecx - 1]
test al, al
je 0x49bf19
cmp al, 0xff
je 0x49bf19
dec al
mov byte [ecx - 1], al
jmp 0x49bf23
xor bl, bl
jmp 0x49befa
dec ecx
push ecx
call fcn.004cf641
add esp, 4
test bl, bl
je 0x49bf32
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x49bf5b
push eax
call fcn.0049cf10
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x49bf27
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x49c840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x7217e4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x49c88f
call fcn.004d8e4f
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x49c874
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x7217e4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x49c88f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x49c8a5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x49c8b9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x49c8d2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.0049d010
add esp, 0xc
test al, al
jne 0x49c971
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x49c979
mov esi, dword [0x6bd758]
jae 0x49c901
call fcn.004cc157
mov ecx, edi
call fcn.0049cba0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x49c915
mov esi, ecx
test esi, esi
jbe 0x49c953
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004bc2b0
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.0049ca80
test al, al
je 0x49c94f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x49c95f
mov edi, 0x6bd754
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.0049c990
jmp 0x49c953
Function at 0x4a6640
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x73f490]
xor edx, edx
cmp eax, edx
jne 0x4a6666
xor eax, eax
mov byte [eax + 0x73f390], al
inc eax
cmp eax, 0x100
jl 0x4a664e
mov dword [0x73f490], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x73f390
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a66f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a66ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a6698
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a6770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a67c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a67aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dd77e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004adaa0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6c0f44
call fcn.004cf618
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4ad213
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf618
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4ad20c
push 0
mov ecx, eax
call fcn.004a4280
mov dword [esi + 0xc], eax
jmp 0x4ad215
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4ad215
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4be036
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4be056
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bd44a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4be079
test byte [esp + 8], 2
je 0x4be079
call fcn.004bd4bd
mov dword [eax], 0xd
call fcn.004bd4c6
mov dword [eax], 5
jmp 0x4be052
xor eax, eax
ret

Function at 0x4d1ca8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d1ce0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cfd32
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cfd0a
jmp 0x4d1cec
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d339b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d33dd
call fcn.004d8e4f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d33dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d33d4
xor eax, eax
jmp 0x4d33e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d33eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d937f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d93ad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d93cb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d92e5
jmp 0x4d93cb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d93cb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d92e5
test edi, edi
mov eax, edi
jne 0x4d93b5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x410d40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dbf0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fdca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00442d60
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004433c0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x410ed3
mov edx, dword [ebp - 0x14]
push edx
call fcn.004435b0
add esp, 4
cmp eax, 1
jne 0x410da7
jmp 0x410d7b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x410dbc
jmp 0x410d7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str._Error__d_deleting_file__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
cmp dword [ebp - 0x18], 0x20
je 0x410deb
cmp dword [ebp - 0x18], 0x21
jne 0x410ece
lea ecx, [ebp - 0x30]
call fcn.00401dd9
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00451e40
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
call fcn.00451b30
push eax
call fcn.0044a150
add esp, 8
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004518f0
lea ecx, [ebp - 0x30]
call fcn.0040169a
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push str.__d__:_used_by__d_programs:_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401c4e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401c12
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
jmp 0x410e7e
lea ecx, [ebp - 0x34]
call fcn.00402077
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00401807
movzx eax, al
test eax, eax
je 0x410ebf
lea ecx, [ebp - 0x34]
call fcn.004013ed
add eax, 4
mov ecx, eax
call fcn.00402bf8
push eax
lea ecx, [ebp - 0x34]
call fcn.004013ed
mov ecx, dword [eax]
push ecx
push str.__d_:__S_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x410e76
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004020db
jmp 0x410d7b
mov edx, dword [ebp - 0x10]
push edx
call fcn.00443410
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x411e20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dd40
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4fdca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 8]
push eax
call fcn.00412060
add esp, 4
mov byte [ebp - 0x275], al
mov ecx, dword [0x4caa64]
mov dword [ebp - 0x274], ecx
mov dl, byte [0x4caa68]
mov byte [ebp - 0x270], dl
push 0x1fb
push 0
lea eax, [ebp - 0x26f]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x274]
push ecx
call fcn.0043d6a0
add esp, 8
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x411ec9
cmp dword [ebp + 0xc], 0
jle 0x411ec4
lea edx, [ebp - 0x274]
push edx
push str._TMP_directory__s_does_not_exist_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x41203e
movzx eax, byte [ebp - 0x275]
test eax, eax
jne 0x411eee
lea ecx, [ebp - 0x274]
push ecx
push str.Leaving_TMP_directory__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x41203e
cmp dword [ebp + 0xc], 0
jle 0x411f49
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004024f0
add esp, 4
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x280]
call fcn.0040177b
push eax
push str._s_:_Deleting_TMP_directory__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401a91
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x68]
call fcn.00402068
mov dword [ebp - 4], 1
push 0x4caad0
lea ecx, [ebp - 0x68]
call fcn.0040193d
lea ecx, [ebp - 0x68]
call fcn.0040177b
push eax
call fcn.00401ca8
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x411fa1
lea ecx, [ebp - 0x68]
call fcn.0040177b
push eax
mov eax, dword [ebp - 0x6c]
push eax
push str.Error__d_deleting_TMP_files__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.MSVCR100.dll__rmdir]
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x411fda
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
push str.Error__d_deleting_TMP_directory__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
jmp 0x41202f
cmp dword [ebp + 0xc], 0
jle 0x41202f
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.004024f0
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x288]
call fcn.0040177b
push eax
push str._s_:_TMP_directory__s_deleted_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401a91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401a91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469394
mov esp, ebp
pop ebp
ret
Function at 0x41b8a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ecb8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4fdca8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x41b8e0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x41b8ec
mov al, 1
jmp 0x41ba91
mov dword [ebp - 0x10], 8
call fcn.00402b49
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00402b49
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00402806
add esp, 8
movzx eax, al
test eax, eax
je 0x41b92f
xor al, al
jmp 0x41ba91
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00401e1a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.004010c8
mov ecx, eax
call fcn.00401b04
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00401d7a
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.004010c8
mov ecx, eax
call fcn.00401b04
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x41b9ab
cmp dword [ebp - 0x5c], 1
je 0x41b9b2
cmp dword [ebp - 0x5c], 3
je 0x41ba4d
jmp 0x41ba65
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004010c8
mov ecx, eax
call fcn.00401b04
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x41ba16
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.004010c8
mov ecx, eax
call fcn.00401b04
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x41ba16
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401a91
mov al, byte [ebp - 0x51]
jmp 0x41ba91
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x41ba39
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401a91
mov al, byte [ebp - 0x52]
jmp 0x41ba91
cmp dword [ebp - 0x38], 0
jne 0x41ba4b
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040204f
jmp 0x41ba7d
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401a91
mov al, byte [ebp - 0x53]
jmp 0x41ba91
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401a91
mov al, byte [ebp - 0x54]
jmp 0x41ba91
jmp 0x41b942
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00469394
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f08b
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4fdca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [0x4febd8]
and eax, 1
jne 0x420656
mov ecx, dword [0x4febd8]
or ecx, 1
mov dword [0x4febd8], ecx
mov dword [ebp - 4], 0
mov ecx, 0x4febd4
call fcn.0044f540
push 0x4c77b0
call fcn.004695f1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x4febd8]
and edx, 2
jne 0x420693
mov eax, dword [0x4febd8]
or eax, 2
mov dword [0x4febd8], eax
mov dword [ebp - 4], 1
mov ecx, 0x4febd0
call fcn.0044f540
push 0x4c7790
call fcn.004695f1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4febd4
call fcn.004504d0
movzx ecx, al
test ecx, ecx
je 0x4206ea
push 0x4cb074
mov ecx, 0x4febd4
call fcn.00450250
push 0x200
push fcn.0043e960
mov ecx, 0x4febd4
call fcn.0044f8d0
push 0x4cb088
mov ecx, 0x4febd0
call fcn.00450250
push 0x200
push fcn.0043e960
mov ecx, 0x4febd0
call fcn.0044f8d0
mov ecx, 0x4febd4
call fcn.00450270
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov ecx, 0x4febd0
call fcn.00450270
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00401ed3
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00450270
push eax
mov ecx, dword [ebp + 8]
call fcn.00450270
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, 8
call fcn.0040294b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x420a00
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f109
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4fdca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
push 0xffffffffffffffff
push str.WNC_CI_HOOK
call fcn.0043ef80
add esp, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.0044f5c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00450550
movzx eax, al
test eax, eax
jne 0x420ab6
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044f6f0
mov byte [ebp - 4], 1
push str._pre
lea ecx, [ebp - 0x1c]
call fcn.0044f940
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044f940
push 0x4cb0e0
lea ecx, [ebp - 0x1c]
call fcn.0044f940
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044f940
lea ecx, [ebp - 0x1c]
call fcn.00450270
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0044f790
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0044f5c0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.0044f5c0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044f5c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x34]
call fcn.00401f6e
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0044f790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0044f790
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0044f790
lea ecx, [ebp - 0x10]
call fcn.00450550
movzx eax, al
test eax, eax
jne 0x420ba2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0044f6f0
mov byte [ebp - 4], 5
push str._post
lea ecx, [ebp - 0x20]
call fcn.0044f940
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x20]
call fcn.0044f940
push 0x4cb0ec
lea ecx, [ebp - 0x20]
call fcn.0044f940
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20]
call fcn.0044f940
lea ecx, [ebp - 0x20]
call fcn.00450270
push eax
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044f790
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f790
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10