joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001adc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [ecx + 4]
mov ecx, 0xff
movzx eax, word [edi + 8]
cmp ax, cx
ja 0x1001aeb6
movzx edx, word [edi + eax*2 + 8]
push esi
mov esi, dword [esp + 0xc]
and edx, 0x3fff
cmp esi, eax
jae 0x1001aeb5
cmp dword [esp + 0x10], 0
push ebx
mov ebx, dword [esp + 0x18]
jne 0x1001ae07
movzx ecx, word [edi + esi*2 + 0xa]
and ecx, 0x3fff
jmp 0x1001ae3b
test ebx, ebx
jle 0x1001ae23
test esi, esi
jne 0x1001ae16
mov ecx, 0x800
jmp 0x1001ae3b
movzx ecx, word [edi + esi*2 + 8]
and ecx, 0x3fff
jmp 0x1001ae3b
test esi, esi
jne 0x1001ae2e
mov eax, 0x800
jmp 0x1001ae38
movzx eax, word [edi + esi*2 + 8]
and eax, 0x3fff
lea ecx, [eax + ebx]
test ebx, ebx
js 0x1001ae43
cmp edx, ebx
jb 0x1001aeb4
cmp ecx, edx
jb 0x1001aeb4
push ebp
mov ebp, edx
lea eax, [edi + 0xa]
sub ebp, ebx
add ebp, edi
cmp ebp, eax
jb 0x1001aeb3
sub ecx, edx
lea eax, [edx + edi]
push ecx
push eax
push ebp
call fcn.10045e50
movzx eax, word [edi + 8]
add esp, 0xc
cmp esi, eax
jae 0x1001ae94
lea edx, [esi + 5]
lea edx, [edi + edx*2]
movzx eax, word [edx]
lea edx, [edx + 2]
mov ecx, eax
inc esi
sub ecx, ebx
xor ecx, eax
and ecx, 0x3fff
xor ecx, eax
mov word [edx - 2], cx
movzx eax, word [edi + 8]
cmp esi, eax
jb 0x1001ae73
movzx ecx, word [edi + 8]
mov eax, 0x3fff
mov dx, word [edi + ecx*2 + 8]
and dx, ax
lea eax, [ecx + ecx]
sub dx, ax
sub dx, 0xa
mov word [edi + 2], dx
pop ebp
pop ebx
pop esi
pop edi
ret 0xc

Function at 0x1001c220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x1001c273
lea esi, [ecx + 6]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor edx, edx
mov bl, byte [ecx + 4]
mov dl, byte [ecx + 5]
inc bl
push ebp
xor eax, eax
mov ebp, dword [ebp + 0xc]
mov cl, byte [esi + ebx]
add dl, cl
mov ch, byte [edi]
inc edi
mov al, byte [esi + edx]
mov byte [esi + edx], cl
mov byte [esi + ebx], al
add al, cl
inc bl
xor ch, byte [esi + eax]
dec ebp
mov byte [edi - 1], ch
mov cl, byte [esi + ebx]
jne 0x1001c24b
pop ebp
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], dh
mov byte [ecx + 5], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022110
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x10], 0x80
jne 0x100221cf
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100221b5
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10053c48
call fcn.100394b0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1002218f
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1002218f
or dword [edi + 0x10], 0x80
jmp 0x100221a3
test al, 8
je 0x100221a3
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1001c300
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x100221c9
lea ecx, [esp + 0xc]
call fcn.1001c3d0
jmp 0x100221c9
cmp dword [esp + 0x44], ebx
je 0x100221c9
push 1
push 0xfffffc06
mov ecx, esi
call fcn.1001c550
test byte [edi + 0x10], 0x80
je 0x1002223d
push ebp
lea ebp, [edi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100221fc
push esi
mov ecx, 0x10053c48
call fcn.100394b0
jmp 0x10022235
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10022221
push esi
mov ecx, 0x10053c48
call fcn.100394b0
jmp 0x10022235
cmp dword [esp + 0x48], ebx
je 0x10022235
push 1
push 0xfffffc06
mov ecx, esi
call fcn.1001c550
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
test byte [esi], 8
je 0x1002224c
push 0
push esi
mov ecx, edi
call fcn.100223f0
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x10022500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, ecx
test byte [edi + 0x10], 0x80
jne 0x100225bf
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], 0
push eax
push ebx
push dword [esp + 0x48]
mov dword [esp + 0x40], 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100225a5
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov ecx, 0x10053c48
call fcn.100394b0
mov eax, dword [esp + 0xc]
test al, 1
jne 0x1002257f
cmp dword [esp + 0x10], 0xfffffc15
jne 0x1002257f
or dword [edi + 0x10], 0x80
jmp 0x10022593
test al, 8
je 0x10022593
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.1001c300
mov eax, dword [esp + 0xc]
test eax, 0xfffffffe
je 0x100225b9
lea ecx, [esp + 0xc]
call fcn.1001c3d0
jmp 0x100225b9
cmp dword [esp + 0x44], ebx
je 0x100225b9
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c550
test byte [edi + 0x10], 0x80
je 0x1002262d
push ebp
lea ebp, [edi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push dword [esp + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100225ec
push esi
mov ecx, 0x10053c48
call fcn.100394b0
jmp 0x10022625
push 0
lea eax, [esp + 0x4c]
push eax
push ebx
push dword [esp + 0x4c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10022611
push esi
mov ecx, 0x10053c48
call fcn.100394b0
jmp 0x10022625
cmp dword [esp + 0x48], ebx
je 0x10022625
push 1
push 0xfffff8f0
mov ecx, esi
call fcn.1001c550
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
test byte [esi], 8
je 0x1002263c
push 0
push esi
mov ecx, edi
call fcn.100223f0
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10
Function at 0x10029300
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, ecx
lea eax, [edx + 7]
mov dword [esp + 8], ebp
shr eax, 3
push esi
mov ecx, dword [ebp]
push edi
mov edi, dword [esp + 0x28]
lea ebx, [eax*8 + 1]
add ebx, eax
mov dword [esp + 0x14], ebx
lea eax, [ecx + ebx]
cmp eax, dword [ebp + 0xc]
ja 0x1002933a
mov esi, dword [ebp + 4]
add esi, ecx
jmp 0x10029349
push edi
push ebx
mov ecx, ebp
call fcn.10029e70
mov edx, dword [esp + 0x24]
mov esi, eax
test byte [edi], 8
jne 0x10029489
cmp dword [esp + 0x1c], 0
jne 0x10029361
mov byte [esi], 0x7f
inc esi
xor bl, bl
jmp 0x10029368
mov byte [esi], 0x80
inc esi
or bl, 0xff
mov ecx, dword [esp + 0x20]
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
cmp edx, 8
jbe 0x100293ea
lea edi, [edx - 9]
shr edi, 3
inc edi
lea esp, [esp]
movzx eax, byte [ecx]
sub edx, 8
xor al, bl
mov byte [esi], al
movzx eax, byte [ecx + 1]
xor al, bl
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
xor al, bl
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
xor al, bl
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
xor al, bl
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
xor al, bl
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
xor al, bl
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
add ecx, 8
xor al, bl
mov byte [esi + 7], al
mov byte [esi + 8], 9
add esi, 9
dec edi
jne 0x10029390
mov dword [esp + 0x24], edx
test edx, edx
je 0x10029482
xor ebp, ebp
test edx, edx
je 0x1002945c
cmp edx, 0x20
jb 0x10029447
lea eax, [ecx - 1]
lea edi, [esi - 1]
add eax, edx
add edi, edx
cmp esi, eax
ja 0x1002940f
cmp edi, ecx
jae 0x10029447
mov eax, edx
mov edi, edx
and eax, 0x1f
sub edi, eax
jmp 0x10029420
movdqu xmm0, xmmword [ecx]
add ebp, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp ebp, edi
jb 0x10029420
cmp ebp, edx
jae 0x1002945c
mov edi, edx
sub ecx, esi
sub edi, ebp
mov al, byte [ecx + esi]
xor al, bl
mov byte [esi], al
inc esi
dec edi
jne 0x10029451
mov eax, 8
sub eax, edx
push eax
movzx eax, bl
push eax
push esi
call fcn.100454f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov al, cl
xor al, bl
sub esi, ecx
mov byte [esi + 8], al
mov eax, dword [esp + 0x14]
add dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x100297e0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea eax, [esp + 8]
push esi
push edi
push eax
push 8
xor ebx, ebx
mov esi, ecx
push ebp
xor edi, edi
mov dword [esp + 0x1c], ebx
call fcn.100442f0
test eax, eax
je 0x1002980c
mov eax, dword [esp + 0x10]
cmp eax, dword [esi]
jae 0x10029828
mov eax, dword [esi + 4]
movzx eax, byte [eax + ebp]
sub eax, 0
je 0x10029828
sub eax, 0x80
je 0x10029913
sub eax, 0x7f
jne 0x10029836
mov ecx, dword [esp + 0x24]
push 0x3ec
call fcn.1001c5b0
mov eax, dword [esp + 0x24]
test byte [eax], 4
jne 0x1002992d
lea ecx, [ebp + 1]
mov ebp, 8
add ecx, dword [esi + 4]
neg ebx
mov esi, dword [esp + 0x1c]
sbb bl, bl
movsx eax, bl
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movzx eax, bl
pshufd xmm1, xmm0, 0
mov dword [esp + 0x10], eax
movzx edx, byte [ecx + 8]
xor edx, eax
cmp edx, 8
cmova edx, ebp
lea ebp, [edx + edi]
mov dword [esp + 0x18], ebp
cmp ebp, dword [esp + 0x20]
ja 0x1002991d
xor edi, edi
test edx, edx
je 0x100298f0
cmp edx, 0x20
jb 0x100298df
lea eax, [ecx - 1]
lea ebp, [esi - 1]
add eax, edx
add ebp, edx
cmp esi, eax
ja 0x100298ab
cmp ebp, ecx
jae 0x100298db
mov eax, edx
mov ebp, edx
and eax, 0x1f
sub ebp, eax
movdqu xmm0, xmmword [ecx]
add edi, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pxor xmm0, xmm1
movdqu xmmword [esi + 0x10], xmm0
add esi, 0x20
cmp edi, ebp
jb 0x100298b4
mov ebp, dword [esp + 0x18]
cmp edi, edx
jae 0x100298f0
sub edx, edi
mov al, byte [ecx]
inc ecx
xor al, bl
mov byte [esi], al
inc esi
dec edx
jne 0x100298e5
mov dl, byte [ecx]
mov edi, ebp
mov eax, dword [esp + 0x10]
xor dl, bl
inc ecx
mov ebp, 8
cmp dl, 8
ja 0x10029871
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, 1
jmp 0x10029836
mov ecx, dword [esp + 0x24]
push 1
push 0xfffffbf2
call fcn.1001c550
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x1002a000
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push 9
push dword [esp + 0x20]
mov ebp, ecx
mov dword [esp + 0x1c], ebx
mov esi, 1
call fcn.100442f0
mov edi, dword [esp + 0x24]
test eax, eax
je 0x1002a033
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp]
jae 0x1002a04f
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
movzx eax, byte [eax + ecx]
sub eax, 0
je 0x1002a04f
sub eax, 0x80
je 0x1002a08a
sub eax, 0x7f
jne 0x1002a05f
push 0x3ec
mov ecx, edi
call fcn.1001c5b0
mov ecx, dword [esp + 0x18]
test byte [edi], 4
jne 0x1002a080
mov eax, dword [ebp + 4]
inc eax
add ecx, eax
neg ebx
sbb bl, bl
mov edi, edi
mov dl, byte [ecx + 8]
lea ecx, [ecx + 9]
xor dl, bl
add esi, 9
cmp dl, 8
ja 0x1002a070
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ebx, esi
jmp 0x1002a05f
Function at 0x100398e0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10039909
push dword [esp + 0x10]
mov ecx, esi
call fcn.100394b0
pop esi
ret 0xc

Function at 0x10039940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
mov ecx, reloc.mswstr10.dll_Ordinal_2
push 0x20019
mov ebp, dword [edi]
test eax, eax
push 0
push dword [esp + 0x1c]
cmovne ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100399b3
push ebx
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push esi
push edi
push ebx
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [edi]
cmp eax, ebp
jae 0x100399a5
cmp dword [esp + 0x18], 1
jne 0x100399a5
test esi, esi
jne 0x100399a5
mov byte [eax + ebx], 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret 0x18

Function at 0x100399c0
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x18], 0
jne 0x10039a83
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10045682
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
jne 0x10039a0c
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c550
pop edi
pop esi
pop ebp
pop ebx
ret 8
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jbe 0x10039a83
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
push 4
call fcn.10045682
add esp, 4
test eax, eax
je 0x10039a40
push edi
push esi
push 0x10039cf0
mov ecx, eax
call fcn.100435d0
mov ecx, eax
jmp 0x10039a42
xor ecx, ecx
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], ecx
mov eax, dword [esi + 0x18]
cmp dword [eax + ebx*4], 0
jne 0x10039a5f
push 1
push 0xfffffc0d
mov ecx, edi
call fcn.1001c550
test byte [edi], 8
jne 0x10039ab3
lea eax, [esi + 0xd4]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax]
call ebp
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x10039a20
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
test eax, eax
je 0x10039af0
push eax
lea ecx, [esi + 0xa4]
call fcn.1000e2c0
test eax, eax
jne 0x10039af0
push 1
push 0xfffffc0e
mov ecx, edi
call fcn.1001c550
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi + 0x18]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x10039acd
mov ecx, edi
call fcn.100436b0
push edi
call fcn.100456f8
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [eax + ebx*4], 0
test ebx, ebx
jne 0x10039afa
push dword [esi + 0x18]
call fcn.100456f8
add esp, 4
mov dword [esi + 0x18], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8
push edi
push ebx
lea ecx, [esi + 0x1c]
call fcn.100436e0
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x100435d0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
mov esi, ecx
push eax
push 4
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x10043603
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ecx
ret 0xc
push edi
mov edi, dword [esp + 0x18]
mov ecx, 0x10053c48
push edi
call fcn.100394b0
test byte [edi], 1
jne 0x10043638
cmp dword [edi + 4], 0xffffea84
jne 0x10043638
push 1
push 0
push 0
push 0xffffdf30
push 0xffffea84
mov ecx, edi
call fcn.1001c4e0
pop edi
mov eax, esi
pop esi
pop ecx
ret 0xc

Function at 0x10044710
Capabilities:
Delete file

Disassembly:
sub esp, 0x218
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10053d2c], 0
mov eax, dword [esp + 0x21c]
je 0x10044752
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10045580
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.10044510
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x100447a0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x100447a0
cmp dword [esp + 4], 0xffffffff
je 0x100447a0
push eax
call fcn.10045d86
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10045580
add esp, 0x218
ret 4
Function at 0x10044ba0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x644
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x640], eax
cmp dword [0x10053d2c], 0
mov eax, dword [esp + 0x648]
push esi
mov esi, dword [esp + 0x650]
push edi
mov edi, dword [esp + 0x65c]
je 0x10044be9
push edi
push dword [esp + 0x65c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10044cff
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x224]
mov dword [esp + 0x224], 0
mov dword [esp + 0x228], 0
call fcn.10044510
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.10044510
push 0x104
push edi
lea ecx, [esp + 0x438]
call fcn.10044390
push dword [esp + 0x434]
push dword [esp + 0x65c]
push dword [esp + 0x14]
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x430]
mov esi, eax
call fcn.100444a0
mov eax, dword [esp + 0x434]
lea ecx, [esp + 0x438]
cmp eax, ecx
je 0x10044c97
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10044c97
cmp dword [esp + 0x430], 0xffffffff
je 0x10044c97
push eax
call fcn.10045d86
add esp, 4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp + 0x434], 0
cmp ecx, eax
je 0x10044cc7
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10044cc7
cmp dword [esp + 8], 0xffffffff
je 0x10044cc7
push ecx
call fcn.10045d86
add esp, 4
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0x224]
mov dword [esp + 0xc], 0
cmp ecx, eax
je 0x10044cfd
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x10044cfd
cmp dword [esp + 0x21c], 0xffffffff
je 0x10044cfd
push ecx
call fcn.10045d86
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x648]
pop edi
pop esi
xor ecx, esp
call fcn.10045580
add esp, 0x644
ret 0x10

Function at 0x10044d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10052500]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10053d2c], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x10044d6a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.10045580
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.10044390
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.100444a0
mov esi, eax
test esi, esi
jle 0x10044d9c
dec esi
lea ecx, [esp + 4]
call fcn.100444a0
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x10044dca
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x10044dca
cmp dword [esp + 4], 0xffffffff
je 0x10044dca
push eax
call fcn.10045d86
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10045580
add esp, 0x21c
ret 8
Function at 0x1004d5ae
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10052500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10049468
mov dword [ebp - 0x14], eax
cmp dword [0x10054ae0], esi
jne 0x1004d6a1
push 0x800
push esi
push 0x1000a768
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1004d62e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1004d781
push esi
push esi
push 0x1000a768
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1004d781
push 0x1000a780
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004d781
push eax
call ebx
push 0x1000a78c
push edi
mov dword [0x10054ae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a79c
push edi
mov dword [0x10054ae4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000a7b0
push edi
mov dword [0x10054ae8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10054af0], eax
test eax, eax
je 0x1004d69e
push 0x1000a7cc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10054aec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1004d6c6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004d6b9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1004d6db
push 4
pop eax
jmp 0x1004d783
cmp dword [ebp - 0x14], esi
je 0x1004d6db
push dword [0x10054ae0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1004d6c0
mov eax, dword [0x10054aec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1004d739
cmp dword [0x10054af0], edi
je 0x1004d739
push eax
call ebx
push dword [0x10054af0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1004d739
test eax, eax
je 0x1004d739
call ecx
test eax, eax
je 0x1004d72e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1004d72e
test byte [ebp - 8], 1
jne 0x1004d739
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1004d769
mov eax, dword [0x10054ae4]
cmp eax, edi
je 0x1004d766
push eax
call ebx
test eax, eax
je 0x1004d766
call eax
mov esi, eax
test esi, esi
je 0x1004d766
mov eax, dword [0x10054ae8]
cmp eax, edi
je 0x1004d766
push eax
call ebx
test eax, eax
je 0x1004d766
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10054ae0]
call ebx
test eax, eax
je 0x1004d781
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1004d783
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045580
mov esp, ebp
pop ebp
ret