joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417611
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x490e10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417654
cmp word [esi], dx
jne 0x417654
or byte [edi + eax + 0x28], 4
jmp 0x417659
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4177ac
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41778c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41769b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4176d1
cmp eax, edx
jae 0x4176dd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417673
jmp 0x4177ac
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417788
cmp dword [ebp - 0x14], 0
je 0x417788
mov eax, dword [ebx*4 + 0x490e10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417760
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417729
mov word [esi], cx
jmp 0x41775c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x490e10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x490e10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x490e10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4177ac
pop ebx
cmp word [ebp - 4], bx
jne 0x417771
cmp esi, dword [ebp + 0xc]
jne 0x417771
mov word [esi], bx
jmp 0x4177a9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418045
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4177ac
push 0xd
jmp 0x4177a5
mov ecx, dword [ebx*4 + 0x490e10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4177a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4177ac
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
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.00459245
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0045c510
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.00459245
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 1
call fcn.0045c510
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.00459245
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x84
push 0
push esi
mov dword [ebp - 4], 2
call fcn.0045c510
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 0x49586c
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.0045922f
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 0x49586c
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.0045922f
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.0045922f
mov esp, ebp
pop ebp
ret
Function at 0x40a230
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.00457c06
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 0x40a2f0
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.0045b637
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4ac584
push eax
call fcn.0045bb40
push edi
push esi
call fcn.00457f4e
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.0045922f
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5c0
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 0x40c674
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 0x40c6d1
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 0x40e110
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483f20
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4ae070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [edx + 0x51], 0
mov dword [edx + 0x58], 0x10
cmp byte [edx + 0x51], 0
jne 0x40e162
mov byte [edx + 0x51], 1
lea ecx, [edx + 0x10]
jmp 0x40e164
xor ecx, ecx
mov dword [edx + 0x5c], ecx
mov byte [edx + 0xa1], 0
mov dword [edx + 0xa8], 0x10
cmp byte [edx + 0xa1], 0
jne 0x40e18d
mov byte [edx + 0xa1], 1
lea ecx, [edx + 0x60]
jmp 0x40e18f
xor ecx, ecx
mov dword [edx + 0xac], ecx
mov eax, edx
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
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.0045922f
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.0045922f
mov esp, ebp
pop ebp
ret 4
Function at 0x415eb0
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 0x415f3b
nop word [eax + eax]
mov eax, dword [ebp - 8]
cmp eax, esi
ja 0x415f3b
jae 0x415fd5
call ecx
add ebx, dword [ebp - 8]
mov edx, eax
sub esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, 0xbb8
jg 0x415f83
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 0x415ef0
call ecx
mov ecx, dword [0x4b29c0]
mov edx, eax
test ecx, ecx
je 0x415fe8
push edx
push edi
push str.Write_failed_or_else__No_of_bytes_written___data_._Aborting_write_on_pipe__p___errno:__lu
push 0x49586c
push 0x49586c
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.0045922f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b29c0]
test eax, eax
je 0x415fc2
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
push 0x49586c
push 0x49586c
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.0045922f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x41600e
push edi
push edx
push str.Number_of_retries_to_write_to_pipe_exhausted_with_last_error___lu._Aborting_write_on_pipe__p
jmp 0x415ff9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4b29c4]
test ecx, ecx
je 0x41600e
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 0x49586c
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.0045922f
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.00459245
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00457e4b
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.0046c75a
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.0046dd01
push dword [ebp - 0xc]
call fcn.00467084
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.0045922f
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045922f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0045922f
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.0045922f
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.0045922f
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.0045922f
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.0045922f
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.0045922f
mov esp, ebp
pop ebp
ret 4