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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x134
mov eax, dword [0x46f020]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
call fcn.0040c1f0
xor ecx, ecx
mov dword [esp + 0x30], eax
add esp, 4
mov dword [eax], ecx
mov byte [eax + 4], cl
mov dword [eax + 8], ecx
mov ecx, eax
mov dword [eax + 0xc], 0
push esi
mov dword [0x46fb78], eax
call fcn.004063e0
test al, al
je 0x4063bd
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [0x46fb78]
xor eax, eax
xor ebx, ebx
mov dl, byte [esi + 4]
mov byte [esp + 0x2b], dl
cmp ax, word [esi + 2]
jae 0x406347
cmp bx, word [esi + 2]
jae 0x40633c
mov eax, dword [esi + 8]
movzx ecx, bx
mov dword [esp + 0x2c], ecx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x40633c
movzx eax, dl
sub eax, 1
je 0x406266
sub eax, 2
je 0x40624e
sub eax, 1
jne 0x406290
push eax
push edi
call fcn.0042c120
add esp, 8
test eax, eax
jne 0x40628a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40628a
push dword [edi + 0x108]
mov edx, dword [edi + 0x10c]
mov ecx, edi
call fcn.00403530
add esp, 4
jmp 0x406282
push dword [edi + 0x108]
mov ecx, 0x46fad8
push dword [edi + 0x10c]
push dword [edi + 0x104]
call fcn.00407ef0
test al, al
je 0x4063bd
mov esi, dword [0x46fb78]
push 0x104
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00410bf0
mov eax, dword [esp + 0x38]
add esp, 4
inc eax
mov ecx, str.PATCH_PROGRESS
movd xmm1, eax
movzx eax, word [esi + 2]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
mulss xmm1, dword [0x46c280]
cvtps2pd xmm0, xmm1
movss dword [esp + 0x34], xmm1
movsd qword [esp], xmm0
call fcn.00402c30
push eax
push str._s_.0f_____
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00404930
lea eax, [esp + 0x48]
push eax
push 0x400
push 0x476748
call fcn.00404970
cvttss2si eax, dword [esp + 0x50]
add esp, 0x24
mov dword [0x476bb8], 0x64
push 1
push 0
push 0
push dword [0x476344]
mov dword [0x476bb4], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov esi, dword [0x46fb78]
mov dl, byte [esp + 0x2b]
inc ebx
cmp bx, word [esi + 2]
jb 0x406210
movzx eax, word [esi]
xor ebx, ebx
mov dword [0x46fb1c], eax
xor eax, eax
mov byte [0x46fb81], 1
cmp ax, word [esi + 2]
jae 0x406395
mov eax, dword [esi + 8]
movzx edi, bx
mov eax, dword [eax + edi*4]
test eax, eax
je 0x406385
push 0x110
push eax
call fcn.0040c240
mov eax, dword [esi + 8]
add esp, 8
mov dword [eax + edi*4], 0
inc ebx
cmp bx, word [esi + 2]
jb 0x406360
cmp byte [0x46fb81], 0
je 0x4063a4
push str.data.idx
mov ecx, 0x46fad8
call fcn.00408a70
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x13c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret 4
Function at 0x4074f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0xa
movzx eax, dx
mov esi, ecx
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x407606
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4075fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4075fc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4075fc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4075f5
push esi
push ebx
push eax
call fcn.00410670
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4075ee
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4075c2
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0xc], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
jmp 0x4075c4
xor esi, esi
push 0xff000000
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
test eax, eax
je 0x4075dd
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453a17
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4c]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x46f020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
jmp 0x40a5c1
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp + 0xc]
jge 0x40a6e4
push 0x10
call fcn.0040c1f0
add esp, 4
mov dword [ebp - 0x104], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x104], 0
je 0x40a600
mov ecx, dword [ebp - 0x104]
call fcn.004099b0
mov dword [ebp - 0x10c], eax
jmp 0x40a60a
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x20]
add ecx, 4
push ecx
call fcn.00429c30
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x20]
add ecx, 8
push ecx
call fcn.00429c30
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x20]
add ecx, 0xc
push ecx
call fcn.00429c30
add esp, 0x10
mov eax, dword [ebp - 0x2c]
shl eax, 4
and eax, 0xff
movzx ecx, word [eax*2 + 0x454658]
mov edx, dword [ebp - 0x20]
xor ecx, dword [edx + 4]
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x2c]
shl eax, 3
and eax, 0xff
movzx ecx, word [eax*2 + 0x454658]
mov edx, dword [ebp - 0x20]
xor ecx, dword [edx + 8]
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x2c]
shl eax, 6
and eax, 0xff
movzx ecx, word [eax*2 + 0x454658]
mov edx, dword [ebp - 0x20]
xor ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.0040b9f0
jmp 0x40a5b8
push edx
mov ecx, ebp
push eax
lea edx, [0x40a718]
call fcn.0040d090
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10c
cmp ebp, esp
call fcn.0040d0f0
mov esp, ebp
pop ebp
ret 8
Function at 0x40b500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 0
mov esi, esp
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.0040d0f0
test eax, eax
jne 0x40b553
xor eax, eax
jmp 0x40b556
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x40b580]
call fcn.0040d090
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.0040d0f0
mov esp, ebp
pop ebp
ret 8

Function at 0x4134c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004130e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4134f2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x454304]
call dword [ebp - 8]
jmp 0x4134fc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x42a640
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
call fcn.00425cc0
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x38]
call fcn.00425b90
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004253e0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42a696
call fcn.0042c620
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00425c20
mov eax, dword [ebp - 0x10]
jmp 0x42a71d
lea ecx, [ebp - 0x50]
call fcn.00425b90
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004253e0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42a6e1
call fcn.0042c620
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00425c20
lea ecx, [ebp - 0x38]
call fcn.00425c20
mov eax, dword [ebp - 0x14]
jmp 0x42a71d
lea ecx, [ebp - 0x50]
call fcn.00426090
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
call fcn.00426090
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00442640
add esp, 8
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x50]
call fcn.00425c20
lea ecx, [ebp - 0x38]
call fcn.00425c20
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x4367a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00436010
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4367d4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x454304]
call dword [ebp - 8]
jmp 0x4367da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x436830
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00436050
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x436864
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x454304]
call dword [ebp - 8]
jmp 0x43686e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x436880
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00436070
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4368b8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x454304]
call dword [ebp - 8]
jmp 0x4368c6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x4381a0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0040edc0
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x470e50]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x438378
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x4382c7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x4382c7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x4382a5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x438229
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x438331
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x438398
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x438373
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x438398
jmp 0x438202
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret
Function at 0x4383b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.0040edc0
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x470e50]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x43859b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4384e6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4384e6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4384c2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x438439
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x438554
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4385bb
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x438596
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4385bb
jmp 0x438412
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret
Function at 0x43fbc0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x46f020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00410bf0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x104
ja 0x43fc23
lea edx, [ebp - 0x210]
push edx
call fcn.0043fb70
add esp, 4
jmp 0x43fd01
push 0x25
push str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
push 2
push 2
mov eax, dword [ebp - 0x218]
add eax, 1
push eax
call fcn.00428f90
add esp, 0x14
push eax
lea ecx, [ebp - 0x214]
call fcn.00415390
lea ecx, [ebp - 0x214]
call fcn.004147b0
test eax, eax
jne 0x43fc83
call fcn.0042c620
mov dword [eax], 0xc
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x214]
call fcn.004153b0
mov eax, dword [ebp - 0x21c]
jmp 0x43fd01
lea ecx, [ebp - 0x214]
call fcn.004147b0
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x43fcd6
call fcn.0042c620
mov dword [eax], 0xc
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x214]
call fcn.004153b0
mov eax, dword [ebp - 0x224]
jmp 0x43fd01
lea ecx, [ebp - 0x214]
call fcn.004147b0
push eax
call fcn.0043fb70
add esp, 4
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x214]
call fcn.004153b0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c1e0
mov esp, ebp
pop ebp
ret
Function at 0x442610
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x442637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c570
add esp, 4
or eax, 0xffffffff
jmp 0x442639
xor eax, eax
pop ebp
ret
Function at 0x447810
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.00415390
lea ecx, [ebp - 4]
call fcn.004477e0
movzx eax, al
test eax, eax
jne 0x44784d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.00447700
mov eax, dword [ebp - 0x18]
jmp 0x447975
lea ecx, [ebp - 4]
call fcn.004147b0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004477a0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.004147b0
push eax
push 0
push 0
call fcn.00442730
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4478b3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.00447700
mov eax, dword [ebp - 0x20]
jmp 0x447975
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00429150
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0040bde0
lea ecx, [ebp - 8]
call fcn.0040c190
movzx edx, al
test edx, edx
jne 0x4478fc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.0040c170
lea ecx, [ebp - 4]
call fcn.00447700
mov eax, dword [ebp - 0x24]
jmp 0x447975
lea ecx, [ebp - 8]
call fcn.0040c080
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.004147b0
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.00442730
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x447957
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.0040c170
lea ecx, [ebp - 4]
call fcn.00447700
mov eax, dword [ebp - 0x34]
jmp 0x447975
lea ecx, [ebp - 8]
call fcn.00415470
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.0040c170
lea ecx, [ebp - 4]
call fcn.00447700
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret