joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x52a08a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52a091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a080
mov eax, 1
add ebx, ebx
jne 0x52a0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52a0b4
jne 0x52a0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a0d3
dec eax
add ebx, ebx
jne 0x52a0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52a098
add ebx, ebx
jne 0x52a0cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52a125
xor ecx, ecx
sub eax, 3
jb 0x52a0eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52a15a
sar eax, 1
mov ebp, eax
jmp 0x52a0f6
add ebx, ebx
jne 0x52a0f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a0c4
inc ecx
add ebx, ebx
jne 0x52a104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52a0c4
add ebx, ebx
jne 0x52a111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52a106
jne 0x52a122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52a106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52a144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52a136
jmp 0x52a086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52a144
add edi, ecx
jmp 0x52a086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52a162
cmp byte [edi], 0x11
jne 0x52a162
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52a167
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x52a1df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17b7d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17b950]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52a194
mov ecx, edi
jns 0x52a1c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17b954]
or eax, eax
je 0x52a1d9
mov dword [ebx], eax
add ebx, 4
jmp 0x52a1b1
call dword [esi + 0x17b964]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52a210
cmp al, 0xef
ja 0x52a203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52a1e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52a1f2
mov ebp, dword [esi + 0x17b958]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52a244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x46315b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46319a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x46319a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46319a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x46319a
cmp dword [ecx + 0x74], 0xe
jbe 0x46319a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46c92b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x46c9c8
push ebx
push esi
call fcn.0046c8f4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0046c888
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46c975
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46c9c7
push edi
push eax
call fcn.0046b3fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46c995
call fcn.0046ae45
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46c9c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0046c888
add esp, 0x20
test eax, eax
jne 0x46c9b4
push edi
call fcn.0046ae45
jmp 0x46c9bc
push ebx
call fcn.0046ae45
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46dd7c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476a20
push 0x476a18
push str.FlsAlloc
push 0x1f
call fcn.0046dc3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46ddb0
push dword [ebp + 8]
mov ecx, esi
call dword [0x47412c]
call esi
jmp 0x46ddb6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46ddfa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476a30
push 0x476a28
push str.FlsGetValue
push 0x21
call fcn.0046dc3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46de31
push dword [ebp + 8]
mov ecx, esi
call dword [0x47412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x46de39
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476a38
push 0x476a30
push str.FlsSetValue
push 0x22
call fcn.0046dc3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46de73
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x46fa16
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47c0f0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fa56
cmp byte [ebx], 0xa
jne 0x46fa56
or byte [edi + eax + 0x28], 4
jmp 0x46fa5b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46fb5a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46fb3d
inc eax
cmp dl, 0xd
je 0x46fa87
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46faad
cmp eax, ecx
jae 0x46fabb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46fa6f
jmp 0x46fb5a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fb38
cmp dword [ebp - 0x10], 0
je 0x46fb38
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47c0f0]
test byte [eax + edi + 0x28], 0x48
je 0x46fb12
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46fafd
mov byte [esi], dl
jmp 0x46fb0e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47c0f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46fb5a
cmp byte [ebp - 1], 0xa
jne 0x46fb21
cmp esi, ebx
jne 0x46fb21
mov byte [esi], 0xa
jmp 0x46fb59
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046f80f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46fb5a
mov byte [esi], 0xd
jmp 0x46fb59
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47c0f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46fb57
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46fb5a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46fb63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47c0f0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fba9
cmp word [ebx], dx
jne 0x46fba9
or byte [eax + edi + 0x28], 4
jmp 0x46fbae
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x46fd11
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x46fcf1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46fbef
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46fc25
cmp eax, edx
jae 0x46fc33
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x46fbca
jmp 0x46fd11
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fcec
cmp dword [ebp - 0x18], 0
je 0x46fcec
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47c0f0]
test byte [eax + edi + 0x28], 0x48
je 0x46fcc2
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46fc86
mov word [esi], cx
jmp 0x46fcbd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47c0f0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47c0f0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47c0f0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46fd11
pop eax
cmp word [ebp - 4], ax
jne 0x46fcd2
cmp esi, ebx
jne 0x46fcd2
mov word [esi], ax
jmp 0x46fd0e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046f80f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46fd11
push 0xd
pop eax
jmp 0x46fccd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47c0f0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46fd0b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46fd11
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x471385
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00471301
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4714f4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4714f4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4714a9
jg 0x4713e1
test eax, eax
je 0x47149f
push 1
push 0x1000
call fcn.0046b448
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x471404
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x471496
push 0x8000
push ebx
call fcn.00468683
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x47142d
jg 0x471428
cmp ecx, 0x1000
jb 0x47142d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00469fd1
add esp, 0x10
cmp eax, 0xffffffff
je 0x471472
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x471428
jl 0x471459
test ecx, ecx
jne 0x47141a
push dword [ebp - 0xc]
push ebx
call fcn.00468683
push esi
call fcn.0046ae45
add esp, 0xc
xor ebx, ebx
jmp 0x471502
cmp byte [edi + 0x24], 0
je 0x471489
cmp dword [edi + 0x20], 5
jne 0x471489
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x471494
mov ebx, dword [edi + 0x18]
jmp 0x471496
xor ebx, ebx
push esi
call fcn.0046ae45
pop ecx
jmp 0x471502
test ecx, ecx
jg 0x47146b
jl 0x4714a9
test eax, eax
jae 0x47146b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f80f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4714c9
cmp byte [edi + 0x1c], 0
je 0x47146b
jmp 0x4714fa
push ebx
call fcn.0046d16b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x47146b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x471502
cmp byte [edi + 0x1c], 0
je 0x4714ff
mov ebx, dword [edi + 0x18]
jmp 0x471502
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046f80f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4734f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47351d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47351d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10011110
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c962
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1007f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x10084fe6
call fcn.10048d85
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10011150
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1001115e
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001127a
mov eax, dword [eax + 8]
test eax, eax
je 0x1001117a
cmp byte [eax + 8], 0
jne 0x1001127a
mov esi, dword [esi + 0x1c]
mov edi, dword [esi + 8]
test edi, edi
je 0x1001127a
mov dword [ebp - 0x10], 0
add edi, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
je 0x100111ab
mov eax, dword [edi]
test eax, eax
je 0x100111ab
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
jne 0x100111f3
mov dword [ebp - 4], 2
test edi, edi
je 0x100111da
mov eax, dword [edi]
test eax, eax
je 0x100111d3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x10037f90
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
je 0x10011252
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x10011244
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1001126b
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x10011263
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.10038160
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10010580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a660
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004edce
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1007f008]
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 ecx, 0x10084fe6
call fcn.10048d85
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
push 0x1002b450
mov byte [ebp - 0x14], bl
push 6
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a76b
cmp dword [ebp - 0x34], esi
je 0x1001a76b
lea ecx, [ebp - 0x30]
call fcn.10006d30
mov dword [ebp - 4], esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.1002e450
add esp, 0x10
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x1001a72d
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
jmp 0x1001a764
push 0xffffffffffffffff
push esi
call edi
test eax, eax
jne 0x1001a73d
mov bl, 1
mov byte [ebp - 0x14], bl
jmp 0x1001a74e
xor bl, bl
push esi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.100080f0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 9
cmp byte [0x100832e8], 0
jne 0x1001a7a4
mov ecx, dword [0x100832c8]
test ecx, ecx
je 0x1001a790
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [0x100832c8]
mov eax, dword [0x100832c0]
mov edi, dword [eax]
test ecx, ecx
je 0x1001a7a6
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1001a7a6
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x1001a7be
test esi, esi
je 0x1001a7d1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1001a7c2
test esi, esi
je 0x1001a7d1
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x18], 0
mov eax, edi
mov byte [ebp - 0x14], 0
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.10046cee
mov esp, ebp
pop ebp
ret
Function at 0x10029a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100538f1
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1007f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, 0x10084fe6
mov dword [ebp - 0x3c], eax
call fcn.10048d85
mov esi, dword [edi + 4]
test esi, esi
je 0x10029b92
cmp byte [esi + 0x54], 0
je 0x10029b92
xorps xmm0, xmm0
add esi, 0x1c
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
xor bl, bl
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], bl
test esi, esi
je 0x10029a97
mov eax, dword [esi]
test eax, eax
je 0x10029a94
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10029a8e
cmp eax, 0x80
je 0x10029a8e
xor bl, bl
jmp 0x10029a94
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x18], bl
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x10029aa9
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10029b64
mov edx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10036890
add esp, 4
mov byte [ebp - 4], 3
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x10029b4a
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10029b40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10029b40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10046d2f
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 1
mov dword [ebp - 4], 8
test esi, esi
je 0x10029b84
test bl, bl
je 0x10029b84
mov eax, dword [esi]
test eax, eax
je 0x10029b80
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10046cee
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f960
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10084fe6
call fcn.10048d85
mov ecx, esi
pop esi
jmp fcn.1002ef20

Function at 0x100314c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x100845f5
push edi
call fcn.10048d85
cmp dword [ebx + 0x38], 0
je 0x100314f8
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1003151a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1003151c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x100315a1
jg 0x10031531
test esi, esi
je 0x100315a1
test ecx, ecx
jl 0x1003157a
jg 0x1003153b
test eax, eax
je 0x1003157a
cmp edi, ecx
jg 0x1003154f
jl 0x10031545
cmp esi, eax
jae 0x1003154f
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1003157d
mov edx, dword [ebp + 8]
test edi, edi
jl 0x100315a1
jg 0x10031587
test esi, esi
je 0x100315a1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100315a1
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc