joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403880
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482b36
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4b29b8]
test eax, eax
jne 0x4038e9
push 0x84
call fcn.00459218
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0045c4b0
add esp, 0xc
mov ecx, esi
call fcn.00407050
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b29b8], eax
mov ecx, dword [eax + 4]
add eax, 4
push str.SvcInit:_Started_New
push eax
call dword [ecx + 0x14]
add esp, 8
call fcn.00410500
mov dword [0x4b29b0], eax
test eax, eax
jne 0x403931
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 1
call fcn.004035e0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
push 2
push 1
lea ecx, [edx + 4]
call fcn.004035e0
add esp, 8
push 0
push 0
push 0
push 0x403400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403967
call fcn.00407210
push str.SvcInit:_Creat_thread_failed
jmp 0x403971
call fcn.00407210
push str.SvcInit:_Create_thread_successful
mov ecx, dword [eax + 4]
add eax, 4
push eax
call dword [ecx + 0x14]
mov eax, dword [0x4b29b8]
add esp, 8
test eax, eax
jne 0x4039c3
push 0x84
call fcn.00459218
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 1
call fcn.0045c4b0
add esp, 0xc
mov ecx, esi
call fcn.00407050
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b29b8], eax
mov ecx, dword [eax + 4]
add eax, 4
push str.SvcInit:_Now_wating_for_the_close_signal
push eax
call dword [ecx + 0x14]
mov ecx, dword [0x4b29b0]
push 0
push 0xffffffffffffffff
call fcn.00410600
mov ecx, dword [0x4b29b0]
call fcn.004106b0
xor edx, edx
push 3
push 0
lea ecx, [edx + 1]
call fcn.004035e0
mov eax, dword [0x4b29b8]
add esp, 0x18
test eax, eax
jne 0x403a42
push 0x84
call fcn.00459218
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 2
call fcn.0045c4b0
add esp, 0xc
mov ecx, esi
call fcn.00407050
mov dword [ebp - 4], 0xffffffff
mov dword [0x4b29b8], eax
mov ecx, dword [eax + 4]
add eax, 4
push str.SvcInit:_Finished
push eax
call dword [ecx + 0x14]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4048d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 4
push esi
push 0x404980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x404927
mov eax, dword [esi + 0x40]
push str.failed_to_create_a_new_thread_for_ipc_communications._Fatal_Error
push 0x49587c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40496a
mov eax, dword [esi + 0x40]
push str.thread_failed_to_resumed._fatal_error
push 0x49587c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.00459202
mov esp, ebp
pop ebp
ret

Function at 0x406213
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40624e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x406235
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x406246
add edx, ecx
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40622b
xor eax, eax
pop edi
pop esi
ret
Function at 0x406880
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x406887
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x406882
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40686c
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x406874
cmp edx, ebx
jne 0x4069c2
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x406843
add eax, dword [eax + 4]
jmp 0x406830
mov dword [ebp + 0xc], ebx
jmp 0x406892
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4068aa
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4068c8
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x406926
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40690d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x406916
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x406920
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x406902
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40688c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x406973
dec eax
je 0x40696a
sub eax, 3
je 0x406961
mov dword [ebp - 4], 0x40
jmp 0x406990
mov dword [ebp - 4], 4
jmp 0x406976
mov dword [ebp - 4], 0x20
jmp 0x406976
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4069c2
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x406942
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004061d3
mov bh, 0xef
cld
jle 0x4069b6
push dword [ebp + 0x14]
jne 0x4069cd
push 1
push esi
call edi
mov eax, esi
jmp 0x4069ce
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48379a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00457bd9
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40a310
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0045b5e4
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ac584
push eax
call fcn.0045bae0
push edi
push esi
call fcn.00457f21
add esp, 8
mov eax, esi
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.00459202
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483c07
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ecx, ecx
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
call fcn.0040f930
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 2
xor ecx, ecx
mov dword [esi + 0x14], 0
call fcn.0040f930
mov dword [esi + 0x18], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [esi + 0x20], 0
call fcn.0040f930
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [esi + 0x2c], 0
call fcn.0040f930
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 5
lea edi, [esi + 0x34]
cmp dword [0x4b29cc], 0
mov dword [ebp - 0x10], edi
jne 0x40c684
call fcn.0043a560
mov dword [0x4b29cc], 0x42fcb0
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.00440a30
mov ecx, 8
call fcn.00448640
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov byte [ebp - 4], 6
lea edi, [esi + 0x48]
cmp dword [0x4b29cc], 0
mov dword [ebp - 0x10], edi
jne 0x40c6e1
call fcn.0043a560
mov dword [0x4b29cc], 0x42fcb0
mov dword [edi], vtable.CryptoPP::Integer.0
mov ecx, 2
mov dword [edi + 8], 2
call fcn.00440a30
mov ecx, 8
call fcn.00448640
mov dword [edi + 0xc], eax
mov ecx, eax
mov dword [edi + 0x10], 0
mov eax, esi
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0xc]
mov dword [ecx], 0
mov byte [esi + 0x5c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4144ed
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x228], edi
je 0x414509
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x4144d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
Function at 0x415ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 8]
mov eax, edx
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x415f49
nop word [eax + eax]
mov eax, dword [ebp - 8]
cmp eax, esi
ja 0x415f49
jae 0x415fe3
call ecx
add ebx, dword [ebp - 8]
mov edx, eax
sub esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, 0x32
jg 0x415f91
inc eax
push 0xa
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push esi
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415f00
call ecx
mov ecx, dword [0x4b29c0]
mov edx, eax
test ecx, ecx
je 0x415ff6
push edx
push edi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x49587c
push 0x49587c
push str.CommBridge
push str.OOBEUtils
push 0x28
call ecx
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b29c0]
test eax, eax
je 0x415fd0
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x49587c
push 0x49587c
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x41601c
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
jmp 0x416007
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x41601c
push edx
push edi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
mov eax, dword [ecx]
push str.CommBridge
push 0x49587c
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459202
mov esp, ebp
pop ebp
ret
Function at 0x41c1c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483876
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00459218
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00457e1e
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41fb00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
add ecx, 0x4c
mov word [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ecx + 0x14], 8
jb 0x41fb28
mov ecx, dword [ecx]
push 0x49e83c
push ecx
lea eax, [ebp - 0xc]
push eax
call fcn.0046c64f
mov eax, dword [ebp - 0xc]
add esp, 0xc
test eax, eax
je 0x41fb95
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.0046dbf6
push dword [ebp - 0xc]
call fcn.00466ff3
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x41fb69
cmp al, 0xfe
je 0x41fb72
cmp al, 0xff
jne 0x41fb85
cmp cl, 0xfe
jne 0x41fb85
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret
Function at 0x41fbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x41fbf4
call fcn.0041fb00
test al, al
jne 0x41fbf4
mov eax, dword [ebx]
test eax, eax
je 0x41fbed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.00421890
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x41fc01
mov eax, dword [esi]
jmp 0x41fc03
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x41fc94
cmp dword [esi + 0x14], 8
jb 0x41fc2b
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x41fc60
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
lea ecx, [ebp - 0xc]
push 0
push ecx
jne 0x41fc7d
mov dword [ebp - 8], 0xfeff
lea ecx, [ebp - 8]
push 2
jmp 0x41fc8c
mov word [ebp - 8], 0xbbef
lea ecx, [ebp - 8]
mov byte [ebp - 6], 0xbf
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
Function at 0x41fcb0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ff6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fdb5
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x41fd2e
xor ecx, ecx
jmp 0x41fd46
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fd37
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401830
xor bl, bl
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push 0
cmovae eax, dword [ebp - 0x248]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x41fd8a
cmp eax, 0xb7
je 0x41fd8a
cmp eax, 0x50
jne 0x41fd8c
mov bl, 1
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x41fdaa
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00401e60
test bl, bl
jne 0x41fdb5
xor al, al
jmp 0x41fed6
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x41fddf
xor ecx, ecx
jmp 0x41fdff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fdf0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00401830
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [esi], ax
jne 0x41fe3f
xor ecx, ecx
jmp 0x41fe53
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fe44
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x260]
call fcn.00401830
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00426700
mov byte [ebp - 4], 0
mov bl, al
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x41fe99
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.00401e60
test bl, bl
je 0x41feb6
lea ecx, [edi + 0x4c]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x41feb4
push 0xffffffffffffffff
push 0
push eax
call fcn.00401fa0
mov bl, 1
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41fed4
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00401e60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
Function at 0x420110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420130
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
add esi, esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push 0x49e858
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459202
mov esp, ebp
pop ebp
ret 4

Function at 0x4201a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4201c0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push dword [ebx + 0x68]
call esi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0x49e860
push dword [ebx + 0x68]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459202
mov esp, ebp
pop ebp
ret 4
Function at 0x421890
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4852c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ae070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
lea esi, [edi + 0x4c]
mov dword [ebp - 0x18], 0
push esi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
call fcn.00401fa0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004267b0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004265e0
lea eax, [ebp - 0x58]
mov edx, str._.
push eax
lea ecx, [ebp - 0x70]
call fcn.004149a0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004020c0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x421949
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401e60
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00426a40
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00426840
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x4219d5
cmp dword [esi + 0x10], 0
je 0x4219d5
cmp dword [ebp - 0x18], 0
je 0x4219d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x4219ac
mov esi, dword [esi]
push eax
push esi
call fcn.0046df18
add esp, 8
test eax, eax
jne 0x4219d5
lea ecx, [edi + 0xd4]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x4219d1
push 0xffffffffffffffff
push 0
push eax
call fcn.00401fa0
mov bl, 1
jmp 0x4219d7
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4219ec
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401e60
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x421a15
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00401e60
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x421a3e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401e60
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459202
mov esp, ebp
pop ebp
ret